mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 19:26:44 -06:00
0e4a111f81
Resolve #7779
42 lines
707 B
Vue
42 lines
707 B
Vue
<template>
|
|
<MkPopup ref="popup" :src="src" @closed="$emit('closed')">
|
|
<MkMenu :items="items" :align="align" :width="width" @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
|
|
},
|
|
width: {
|
|
type: Number,
|
|
required: false
|
|
},
|
|
viaKeyboard: {
|
|
type: Boolean,
|
|
required: false
|
|
},
|
|
src: {
|
|
required: false
|
|
},
|
|
},
|
|
|
|
emits: ['close', 'closed'],
|
|
});
|
|
</script>
|