From 16213c0f85aa3ac8317797bf4a05fd12940e16d3 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期三, 05 三月 2025 17:29:42 +0800 Subject: [PATCH] - --- src/uni_modules/uview-plus/components/u-swipe-action/u-swipe-action.vue | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/src/uni_modules/uview-plus/components/u-swipe-action/u-swipe-action.vue b/src/uni_modules/uview-plus/components/u-swipe-action/u-swipe-action.vue index 09e96fd..1cc1ff6 100644 --- a/src/uni_modules/uview-plus/components/u-swipe-action/u-swipe-action.vue +++ b/src/uni_modules/uview-plus/components/u-swipe-action/u-swipe-action.vue @@ -35,6 +35,7 @@ return [this.autoClose] } }, + emits: ['opendItem:update'], watch: { // 褰撶埗缁勪欢闇�瑕佸瓙缁勪欢闇�瑕佸叡浜殑鍙傛暟鍙戠敓浜嗗彉鍖栵紝鎵嬪姩閫氱煡瀛愮粍浠� parentData() { @@ -45,6 +46,11 @@ }) } }, + opendItem(val) { + if (val == false) { + this.closeAll() + } + } }, created() { this.children = [] @@ -59,6 +65,15 @@ } }) } + }, + closeAll() { + // 鍏抽棴鎵�鏈夊崟鍏冩牸 + this.children.map((item, index) => { + item.closeHandler() + }) + }, + setOpendItem(ins) { + this.$emit('opendItem:update', true) } } } -- Gitblit v1.9.1