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-button/u-button.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/uni_modules/uview-plus/components/u-button/u-button.vue b/src/uni_modules/uview-plus/components/u-button/u-button.vue index 77f5568..c9a52ef 100644 --- a/src/uni_modules/uview-plus/components/u-button/u-button.vue +++ b/src/uni_modules/uview-plus/components/u-button/u-button.vue @@ -271,14 +271,16 @@ 'error', 'opensetting', 'launchapp', 'agreeprivacyauthorization'], methods: { addStyle, - clickHandler() { + clickHandler(e: any) { // 闈炵姝㈠苟涓旈潪鍔犺浇涓紝鎵嶈兘鐐瑰嚮 if (!this.disabled && !this.loading) { // 杩涜鑺傛祦鎺у埗锛屾瘡this.throttle姣鍐咃紝鍙湪寮�濮嬪鎵ц throttle(() => { - this.$emit("click"); + this.$emit("click", e); }, this.throttleTime); } + // 鏄惁闃绘浜嬩欢浼犳挱 + this.stop && this.preventEvent(e) }, // 涓嬮潰涓哄鎺niapp瀹樻柟鎸夐挳寮�鏀捐兘鍔涗簨浠跺洖璋冪殑瀵规帴 getphonenumber(res: any) { -- Gitblit v1.9.1