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 cd51d4e34c8e78d65e9ac85dd8ea328e630d7a0b..a0c4e0f4f1621e0536f0e55b4bd24567c641b29f 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)