init: чистый старт Laravel + Vuexy
This commit is contained in:
31
resources/ts/@core/components/MoreBtn.vue
Normal file
31
resources/ts/@core/components/MoreBtn.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<script lang="ts" setup>
|
||||
interface Props {
|
||||
menuList?: unknown[]
|
||||
itemProps?: boolean
|
||||
iconSize?: string
|
||||
class?: string
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
class: 'text-disabled',
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<IconBtn :class="props.class">
|
||||
<VIcon
|
||||
:size="iconSize"
|
||||
icon="tabler-dots-vertical"
|
||||
/>
|
||||
|
||||
<VMenu
|
||||
v-if="props.menuList"
|
||||
activator="parent"
|
||||
>
|
||||
<VList
|
||||
:items="props.menuList"
|
||||
:item-props="props.itemProps"
|
||||
/>
|
||||
</VMenu>
|
||||
</IconBtn>
|
||||
</template>
|
||||
Reference in New Issue
Block a user