From 3c3dafa39bd5adbf296a7705cfc2354f8725567d Mon Sep 17 00:00:00 2001 From: shutao Date: Tue, 24 Sep 2024 15:53:13 +0800 Subject: [PATCH] update native-button.uvue --- .../native-button/components/native-button/native-button.uvue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uni_modules/native-button/components/native-button/native-button.uvue b/uni_modules/native-button/components/native-button/native-button.uvue index cd51d4e3..a0c4e0f4 100644 --- a/uni_modules/native-button/components/native-button/native-button.uvue +++ b/uni_modules/native-button/components/native-button/native-button.uvue @@ -28,9 +28,10 @@ methods: { //native-view初始化时触发此方法 onviewinit(e : UniNativeViewInitEvent) { - //获取UniNativeViewElement 传递给NativeButton插件 + //获取UniNativeViewElement 传递给NativeButton对象 this.button = new NativeButton(e.detail.element); this.button?.updateText(this.value) + this.$emit("load") }, ontap(e: UniNativeViewEvent) { this.$emit("buttonTap", e) -- GitLab