| Server IP : 34.87.99.72 / Your IP : 216.73.217.31 Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 User : bitnami ( 1000) PHP Version : 7.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/apache/htdocs/app/resources/js/components/ |
Upload File : |
<!--
ori-doc : https://www.notion.so/w-dropdown-menu-d2007fdce69740fda628a08b07a7961a
-->
<template>
<v-menu
v-bind="$attrs"
v-on="$listeners"
>
<template #activator="{ on }">
<!-- default slot -->
<slot name="activator" :on="on">
<v-btn
icon small
v-on="on"
>
<v-icon small>mdi-dots-vertical</v-icon>
</v-btn>
</slot>
</template>
<v-list dense>
<v-list-item
v-for="(menu_item, i) in items"
:key="i"
:to="menu_item.to || null"
:disabled="menu_item.disabled ? menu_item.disabled : false"
@click="menu_item.action"
>
<v-list-item-icon class="mr-2">
<v-icon small :class="menu_item.icon_class">{{ menu_item.icon }}</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>
<span :class="menu_item.title_class">{{ menu_item.title }}</span>
</v-list-item-title>
</v-list-item-content>
</v-list-item>
</v-list>
</v-menu>
</template>
<script>
export default{
props:{
items:{
type: Array,
default: ()=>{
return []
}
}
},
}
</script>