mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 09:08:51 +08:00
parent
ff99b22a69
commit
eddbd5d22e
@ -78,7 +78,6 @@ const showWrapper = ref<boolean>(false)
|
||||
const showPop = ref<boolean>(false)
|
||||
const position = ref<PopupType>()
|
||||
const zIndex = ref<number>(12)
|
||||
const modal = ref<boolean>(true)
|
||||
const duration = ref<number>(0)
|
||||
|
||||
const { parent: dropMenu } = useParent(DROP_MENU_KEY)
|
||||
@ -186,7 +185,6 @@ function handleOpen() {
|
||||
showWrapper.value = true
|
||||
showPop.value = true
|
||||
if (dropMenu) {
|
||||
modal.value = Boolean(dropMenu.props.modal)
|
||||
duration.value = Number(dropMenu.props.duration)
|
||||
position.value = dropMenu.props.direction === 'down' ? 'top' : 'bottom'
|
||||
}
|
||||
|
||||
@ -1,6 +1,14 @@
|
||||
<template>
|
||||
<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 -->
|
||||
<view :id="dropMenuId">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user