<template>
<MkPopup ref="popup" :src="src" @closed="$emit('closed')">
<MkMenu :items="items" :align="align" :width="width" class="_popup _shadow" @close="$refs.popup.close()"/>
</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
width: {
type: Number,
viaKeyboard: {
type: Boolean,
src: {
emits: ['close', 'closed'],
});
</script>