mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 17:18:40 +08:00
parent
ff99b22a69
commit
eddbd5d22e
@ -78,7 +78,6 @@ const showWrapper = ref<boolean>(false)
|
|||||||
const showPop = ref<boolean>(false)
|
const showPop = ref<boolean>(false)
|
||||||
const position = ref<PopupType>()
|
const position = ref<PopupType>()
|
||||||
const zIndex = ref<number>(12)
|
const zIndex = ref<number>(12)
|
||||||
const modal = ref<boolean>(true)
|
|
||||||
const duration = ref<number>(0)
|
const duration = ref<number>(0)
|
||||||
|
|
||||||
const { parent: dropMenu } = useParent(DROP_MENU_KEY)
|
const { parent: dropMenu } = useParent(DROP_MENU_KEY)
|
||||||
@ -186,7 +185,6 @@ function handleOpen() {
|
|||||||
showWrapper.value = true
|
showWrapper.value = true
|
||||||
showPop.value = true
|
showPop.value = true
|
||||||
if (dropMenu) {
|
if (dropMenu) {
|
||||||
modal.value = Boolean(dropMenu.props.modal)
|
|
||||||
duration.value = Number(dropMenu.props.duration)
|
duration.value = Number(dropMenu.props.duration)
|
||||||
position.value = dropMenu.props.direction === 'down' ? 'top' : 'bottom'
|
position.value = dropMenu.props.direction === 'down' ? 'top' : 'bottom'
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<view :style="customStyle" :class="`wd-drop-menu ${customClass}`" @click.stop.prevent="noop" :id="dropMenuId">
|
<view :style="customStyle" :class="`wd-drop-menu ${customClass}`" @click.stop.prevent="noop" :id="dropMenuId">
|
||||||
<wd-overlay :show="overlayVisible" :duration="duration" :z-index="12" :custom-style="modalStyle" @click="handleClickOverlay" @touchmove="noop" />
|
<wd-overlay
|
||||||
|
:show="overlayVisible"
|
||||||
|
:duration="duration"
|
||||||
|
:z-index="12"
|
||||||
|
:custom-style="modalStyle"
|
||||||
|
@click="handleClickOverlay"
|
||||||
|
@touchmove="noop"
|
||||||
|
v-if="modal"
|
||||||
|
/>
|
||||||
|
|
||||||
<!-- #ifdef MP-DINGTALK -->
|
<!-- #ifdef MP-DINGTALK -->
|
||||||
<view :id="dropMenuId">
|
<view :id="dropMenuId">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user