From 224e3e53f912a236e8e24f8afef64fa09f6a89aa Mon Sep 17 00:00:00 2001 From: xuqingkai Date: Mon, 16 Oct 2023 14:15:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8Dwd-popu?= =?UTF-8?q?p=E7=BB=84=E4=BB=B6=E7=9A=84click-modal=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E8=B0=83=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/component/action-sheet.md | 2 +- docs/component/curtain.md | 2 +- .../components/wd-action-sheet/wd-action-sheet.vue | 4 ++-- .../wot-design-uni/components/wd-curtain/wd-curtain.vue | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/component/action-sheet.md b/docs/component/action-sheet.md index effc6deb..e0490094 100644 --- a/docs/component/action-sheet.md +++ b/docs/component/action-sheet.md @@ -207,7 +207,7 @@ function select({ item, index }) { | opened | 弹出层打开动画结束时触发 | - | - | | close | 弹出层关闭时触发 | - | - | | closed | 弹出层关闭动画结束时触发 | - | - | -| clickmodal | 点击遮罩时触发 | - | - | +| click-modal | 点击遮罩时触发 | - | - | | cancel | 点击取消按钮时触发 | - | - | ## Action 数据结构 diff --git a/docs/component/curtain.md b/docs/component/curtain.md index dfbaf39c..b61c2d24 100644 --- a/docs/component/curtain.md +++ b/docs/component/curtain.md @@ -115,7 +115,7 @@ function handleClose() { |---------|-----|-----|---------| | click | 点击幕帘时触发 | - | - | | close | 弹出层关闭时触发 | - | - | -| clickmodal | 点击遮罩时触发 | - | - | +| click-modal | 点击遮罩时触发 | - | - | | beforeenter | 进入前触发 | - | - | | enter | 进入时触发 | - | - | | afterenter | 进入后触发 | - | - | diff --git a/src/uni_modules/wot-design-uni/components/wd-action-sheet/wd-action-sheet.vue b/src/uni_modules/wot-design-uni/components/wd-action-sheet/wd-action-sheet.vue index e77e0a20..5d1678cd 100644 --- a/src/uni_modules/wot-design-uni/components/wd-action-sheet/wd-action-sheet.vue +++ b/src/uni_modules/wot-design-uni/components/wd-action-sheet/wd-action-sheet.vue @@ -136,7 +136,7 @@ watch( { deep: true, immediate: true } ) -const emit = defineEmits(['select', 'clickmodal', 'cancel', 'closed', 'close', 'open', 'opened', 'update:modelValue']) +const emit = defineEmits(['select', 'click-modal', 'cancel', 'closed', 'close', 'open', 'opened', 'update:modelValue']) function isArray() { return props.panels.length && !(props.panels[0] instanceof Array) @@ -166,7 +166,7 @@ function select(rowIndex: number, type: 'action' | 'panels', colIndex?: number) close() } function handleClickModal() { - emit('clickmodal') + emit('click-modal') if (props.closeOnClickModal) { close() } diff --git a/src/uni_modules/wot-design-uni/components/wd-curtain/wd-curtain.vue b/src/uni_modules/wot-design-uni/components/wd-curtain/wd-curtain.vue index 734f17e9..b0c4909d 100644 --- a/src/uni_modules/wot-design-uni/components/wd-curtain/wd-curtain.vue +++ b/src/uni_modules/wot-design-uni/components/wd-curtain/wd-curtain.vue @@ -93,7 +93,7 @@ const emit = defineEmits([ 'afterleave', 'close', 'closed', - 'clickmodal', + 'click-modal', 'load', 'error', 'click' @@ -147,7 +147,7 @@ function close() { } function clickModal() { - emit('clickmodal') + emit('click-modal') } function imgLoad(event) {