Skip to content

Commit

Permalink
chore: refactor batch-actions component using script setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mzner committed Feb 11, 2025
1 parent 28ccc01 commit 53ec234
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions packages/web-pkg/src/components/BatchActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,17 @@
</div>
</template>

<script lang="ts">
<script lang="ts" setup>
import ActionMenuItem from './ContextActions/ActionMenuItem.vue'
import { defineComponent, PropType } from 'vue'
import { Action, ActionOptions } from '../composables'
export default defineComponent({
name: 'BatchActions',
components: { ActionMenuItem },
props: {
actions: {
type: Array as PropType<Action[]>,
required: true
},
actionOptions: {
type: Object as PropType<ActionOptions>,
required: true
},
limitedScreenSpace: {
type: Boolean,
default: false,
required: false
}
}
})
interface Props {
actions: Action[]
actionOptions: ActionOptions
limitedScreenSpace?: boolean
}
const { actions, actionOptions, limitedScreenSpace = false } = defineProps<Props>()
</script>

<style lang="scss">
Expand Down

0 comments on commit 53ec234

Please sign in to comment.