docs: ✏️ 修复全局 closeOutside 影响 DropDown 异步开关的问题

This commit is contained in:
不如摸鱼去 2025-03-28 17:15:05 +08:00
parent f9605b71b6
commit 49e5d63dd1

View File

@ -1,7 +1,9 @@
<template> <template>
<page-wraper> <page-wraper>
<wd-message-box></wd-message-box> <view @click.stop="">
<view class="demo-body" @click="closeOutside"> <wd-message-box></wd-message-box>
</view>
<view class="demo-body">
<demo-block title="基本用法" transparent> <demo-block title="基本用法" transparent>
<wd-drop-menu> <wd-drop-menu>
<wd-drop-menu-item v-model="value1" :options="option1" @change="handleChange1" /> <wd-drop-menu-item v-model="value1" :options="option1" @change="handleChange1" />
@ -64,7 +66,6 @@ import { ref } from 'vue'
import { useMessage, useQueue } from '@/uni_modules/wot-design-uni' import { useMessage, useQueue } from '@/uni_modules/wot-design-uni'
import type { SliderInstance } from '@/uni_modules/wot-design-uni/components/wd-slider/types' import type { SliderInstance } from '@/uni_modules/wot-design-uni/components/wd-slider/types'
import type { DropMenuItemBeforeToggle } from '@/uni_modules/wot-design-uni/components/wd-drop-menu-item/types' import type { DropMenuItemBeforeToggle } from '@/uni_modules/wot-design-uni/components/wd-drop-menu-item/types'
const { closeOutside } = useQueue()
const messageBox = useMessage() const messageBox = useMessage()
const dropMenu = ref() const dropMenu = ref()