From 2d43a1df3f5ba42710e6d21c27d1e13bdb8dfd56 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期一, 24 三月 2025 09:23:08 +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