mirror of https://github.com/doccano/doccano.git
2 changed files with 58 additions and 26 deletions
Split View
Diff Options
@ -0,0 +1,46 @@ |
|||
<template> |
|||
<v-menu |
|||
offset-y |
|||
open-on-hover |
|||
> |
|||
<template v-slot:activator="{ on }"> |
|||
<v-btn |
|||
color="primary text-capitalize" |
|||
v-on="on" |
|||
> |
|||
{{ text }} |
|||
<v-icon>mdi-menu-down</v-icon> |
|||
</v-btn> |
|||
</template> |
|||
<v-list> |
|||
<v-list-item |
|||
v-for="(item, index) in items" |
|||
:key="index" |
|||
@click="$emit(item.event)" |
|||
> |
|||
<v-list-item-icon> |
|||
<v-icon>{{ item.icon }}</v-icon> |
|||
</v-list-item-icon> |
|||
<v-list-item-content> |
|||
<v-list-item-title>{{ item.title }}</v-list-item-title> |
|||
</v-list-item-content> |
|||
</v-list-item> |
|||
</v-list> |
|||
</v-menu> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
props: { |
|||
text: { |
|||
type: String, |
|||
default: 'Actions' |
|||
}, |
|||
items: { |
|||
type: Array, |
|||
default: () => [], |
|||
required: true |
|||
} |
|||
} |
|||
} |
|||
</script> |
Write
Preview
Loading…
Cancel
Save