mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-26 12:38:07 +09:00
43 lines
749 B
Vue
43 lines
749 B
Vue
<template>
|
|
<MkPopup ref="popup" v-slot="{ maxHeight, close }" :src="src" @closed="$emit('closed')">
|
|
<MkMenu :items="items" :align="align" :width="width" :max-height="maxHeight" class="_popup _shadow" @close="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,
|
|
required: false
|
|
},
|
|
viaKeyboard: {
|
|
type: Boolean,
|
|
required: false
|
|
},
|
|
src: {
|
|
required: false
|
|
},
|
|
},
|
|
|
|
emits: ['close', 'closed'],
|
|
});
|
|
</script>
|