diff --git a/uni_modules/uni-native-button/changelog.md b/uni_modules/native-button/changelog.md
similarity index 100%
rename from uni_modules/uni-native-button/changelog.md
rename to uni_modules/native-button/changelog.md
diff --git a/uni_modules/uni-native-button/components/native-button/native-button.uvue b/uni_modules/native-button/components/native-button/native-button.uvue
similarity index 53%
rename from uni_modules/uni-native-button/components/native-button/native-button.uvue
rename to uni_modules/native-button/components/native-button/native-button.uvue
index e3a0209fcb0e36f8a38b89996aeecda3fd3f71c1..cd51d4e34c8e78d65e9ac85dd8ea328e630d7a0b 100644
--- a/uni_modules/uni-native-button/components/native-button/native-button.uvue
+++ b/uni_modules/native-button/components/native-button/native-button.uvue
@@ -1,20 +1,13 @@
-
-
-
-
-
-
-
-
diff --git a/uni_modules/uni-native-button/package.json b/uni_modules/native-button/package.json
similarity index 100%
rename from uni_modules/uni-native-button/package.json
rename to uni_modules/native-button/package.json
diff --git a/uni_modules/uni-native-button/readme.md b/uni_modules/native-button/readme.md
similarity index 100%
rename from uni_modules/uni-native-button/readme.md
rename to uni_modules/native-button/readme.md
diff --git a/uni_modules/uni-native-button/utssdk/app-android/config.json b/uni_modules/native-button/utssdk/app-android/config.json
similarity index 100%
rename from uni_modules/uni-native-button/utssdk/app-android/config.json
rename to uni_modules/native-button/utssdk/app-android/config.json
diff --git a/uni_modules/uni-native-button/utssdk/app-android/index.uts b/uni_modules/native-button/utssdk/app-android/index.uts
similarity index 90%
rename from uni_modules/uni-native-button/utssdk/app-android/index.uts
rename to uni_modules/native-button/utssdk/app-android/index.uts
index 88d1ba62288f93bef4abb5646de50d923fa7ebad..e9fc6cfa063c443f24eb4d5ff98ffa2b96f47670 100644
--- a/uni_modules/uni-native-button/utssdk/app-android/index.uts
+++ b/uni_modules/native-button/utssdk/app-android/index.uts
@@ -15,7 +15,7 @@ export class NativeButton {
//限制原生Button 文案描述不自动大写
this.button?.setAllCaps(false)
//监听原生Button点击事件
- this.button?.setOnClickListener(_ => {
+ this.button?.setOnClickListener(_ => {
const detail = {}
//构建自定义UniNativeViewEvent返回对象
const event = new UniNativeViewEvent("customClick", detail)
@@ -23,7 +23,7 @@ export class NativeButton {
this.$element.dispatchEvent(event)
})
//UniNativeViewEvent 绑定 安卓原生view
- this.$element.bindAndroidView(button!);
+ this.$element.bindAndroidView(this.button!);
}
updateText(text: string) {
@@ -31,4 +31,7 @@ export class NativeButton {
this.button?.setText(text)
}
+ destroy(){
+ //数据回收
+ }
}
diff --git a/uni_modules/uni-native-button/utssdk/app-ios/config.json b/uni_modules/native-button/utssdk/app-ios/config.json
similarity index 100%
rename from uni_modules/uni-native-button/utssdk/app-ios/config.json
rename to uni_modules/native-button/utssdk/app-ios/config.json
diff --git a/uni_modules/uni-native-button/utssdk/app-ios/index.uts b/uni_modules/native-button/utssdk/app-ios/index.uts
similarity index 100%
rename from uni_modules/uni-native-button/utssdk/app-ios/index.uts
rename to uni_modules/native-button/utssdk/app-ios/index.uts
diff --git a/uni_modules/uni-time-picker/changelog.md b/uni_modules/native-time-picker/changelog.md
similarity index 100%
rename from uni_modules/uni-time-picker/changelog.md
rename to uni_modules/native-time-picker/changelog.md
diff --git a/uni_modules/uni-time-picker/components/time-picker/time-picker.uvue b/uni_modules/native-time-picker/components/time-picker/time-picker.uvue
similarity index 80%
rename from uni_modules/uni-time-picker/components/time-picker/time-picker.uvue
rename to uni_modules/native-time-picker/components/time-picker/time-picker.uvue
index 70b77ec2370baae6d288bafc986304b4620482f4..50fa1e6112efa00f1a6509cb6466dc351b10b283 100644
--- a/uni_modules/uni-time-picker/components/time-picker/time-picker.uvue
+++ b/uni_modules/native-time-picker/components/time-picker/time-picker.uvue
@@ -1,9 +1,11 @@
-
+
+
+