From a1b035a6fe3a9ae3a023032b6c33403853424559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=A6=82=E6=91=B8=E9=B1=BC=E5=8E=BB?= <1780903673@qq.com> Date: Wed, 12 Feb 2025 15:20:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20ActionSheet=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20close-on-click-action=20=E6=8E=A7=E5=88=B6=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E9=80=89=E9=A1=B9=E5=90=8E=E6=98=AF=E5=90=A6=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E8=8F=9C=E5=8D=95=E5=8A=9F=E8=83=BD=20(#891)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: #698 --- .../components/wd-action-sheet/wd-action-sheet.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 459442a3b..3711d6207 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 @@ -123,13 +123,12 @@ function select(rowIndex: number, type: 'action' | 'panels', colIndex?: number) colIndex }) } - close() + if (props.closeOnClickAction) { + close() + } } function handleClickModal() { emit('click-modal') - // if (props.closeOnClickModal) { - // close() - // } } function handleCancel() { emit('cancel')