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-alert/u-alert.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/uni_modules/uview-plus/components/u-alert/u-alert.vue b/src/uni_modules/uview-plus/components/u-alert/u-alert.vue index dea66b1..9f4fc4b 100644 --- a/src/uni_modules/uview-plus/components/u-alert/u-alert.vue +++ b/src/uni_modules/uview-plus/components/u-alert/u-alert.vue @@ -79,6 +79,7 @@ * @property {String | Number} fontSize 瀛椾綋澶у皬 锛堥粯璁� 14 锛� * @property {Object} customStyle 瀹氫箟闇�瑕佺敤鍒扮殑澶栭儴鏍峰紡 * @event {Function} click 鐐瑰嚮缁勪欢鏃惰Е鍙� + * @event {Function} close 鐐瑰嚮鍏抽棴鎸夐挳鏃惰Е鍙� * @example <u-alert :title="title" type = "warning" :closable="closable" :description = "description"></u-alert> */ export default { @@ -116,7 +117,7 @@ } } }, - emits: ["click"], + emits: ["click","close"], methods: { addUnit, addStyle, @@ -126,7 +127,8 @@ }, // 鐐瑰嚮鍏抽棴鎸夐挳 closeHandler() { - this.show = false + this.show = false + this.$emit('close') } } } -- Gitblit v1.9.1