mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-22 11:44:10 +02:00
enhance(frontend): improve nested popup menu ux (#17187)
* wip
* Update MkMenu.vue
* wip
* wip
* Update MkMenu.vue
* wip
* Update MkMenu.vue
* Update MkMenu.vue
* Update MkMenu.vue
* Update MkMenu.vue
* Update MkMenu.vue
* Update MkMenu.vue
* Update MkMenu.vue
* Update MkMenu.vue
* 💢
* Update MkMenu.vue
* Update MkMenu.vue
* Update MkMenu.vue
This commit is contained in:
@@ -4,8 +4,31 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
-->
|
||||
|
||||
<template>
|
||||
<MkModal ref="modal" v-slot="{ type, maxHeight }" :manualShowing="manualShowing" :zPriority="'high'" :anchorElement="anchorElement" :transparentBg="true" :returnFocusTo="returnFocusTo" @click="click" @close="onModalClose" @closed="onModalClosed">
|
||||
<MkMenu :items="items" :align="align" :width="width" :max-height="maxHeight" :asDrawer="type === 'drawer'" :returnFocusTo="returnFocusTo" :class="{ [$style.drawer]: type === 'drawer' }" @close="onMenuClose" @hide="hide"/>
|
||||
<MkModal
|
||||
ref="modal"
|
||||
v-slot="{ type, maxHeight }"
|
||||
:manualShowing="manualShowing"
|
||||
:zPriority="'high'"
|
||||
:anchorElement="anchorElement"
|
||||
:transparentBg="true"
|
||||
:returnFocusTo="returnFocusTo"
|
||||
@click="click"
|
||||
@close="onModalClose"
|
||||
@closed="onModalClosed"
|
||||
>
|
||||
<MkMenu
|
||||
:items="items"
|
||||
:align="align"
|
||||
:width="width"
|
||||
:max-height="maxHeight"
|
||||
:asDrawer="type === 'drawer'"
|
||||
:returnFocusTo="returnFocusTo"
|
||||
:debugDisablePredictionCone="debugDisablePredictionCone"
|
||||
:debugShowPredictionCone="debugShowPredictionCone"
|
||||
:class="{ [$style.drawer]: type === 'drawer' }"
|
||||
@close="onMenuClose"
|
||||
@hide="hide"
|
||||
/>
|
||||
</MkModal>
|
||||
</template>
|
||||
|
||||
@@ -21,6 +44,8 @@ defineProps<{
|
||||
width?: number;
|
||||
anchorElement?: HTMLElement | null;
|
||||
returnFocusTo?: HTMLElement | null;
|
||||
debugDisablePredictionCone?: boolean;
|
||||
debugShowPredictionCone?: boolean;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
||||
Reference in New Issue
Block a user