monkeeShark/src/client/components/ui/popup-menu.vue
syuilo 1c764139bf 🎨
2021-08-09 18:01:12 +09:00

38 lines
674 B
Vue

<template>
<MkPopup ref="popup" :src="src" @closed="$emit('closed')" #default="{point}">
<MkMenu :items="items" :align="align" :point="point" @close="$refs.popup.close()" class="_popup _shadow"/>
</MkPopup>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import MkPopup from './popup.vue';
import MkMenu from './menu.vue';
export default defineComponent({
components: {
MkPopup,
MkMenu,
},
props: {
items: {
type: Array,
required: true
},
align: {
type: String,
required: false
},
viaKeyboard: {
type: Boolean,
required: false
},
src: {
required: false
},
},
emits: ['close', 'closed'],
});
</script>