From 067fee4af5f3c3080534dbf5426718c81617c056 Mon Sep 17 00:00:00 2001 From: shutao Date: Wed, 11 Sep 2024 17:09:09 +0800 Subject: [PATCH] uni-native-button rename native-button uni-time-picker rename native-time-picker --- .../changelog.md | 0 .../native-button/native-button.uvue | 43 ++++++++----------- .../package.json | 0 .../readme.md | 0 .../utssdk/app-android/config.json | 0 .../utssdk/app-android/index.uts | 7 ++- .../utssdk/app-ios/config.json | 0 .../utssdk/app-ios/index.uts | 0 .../changelog.md | 0 .../components/time-picker/time-picker.uvue | 6 ++- .../package.json | 0 .../readme.md | 0 .../utssdk/app-android/config.json | 0 .../utssdk/app-android/index.uts | 5 +-- .../utssdk/app-ios/config.json | 0 .../utssdk/app-ios/index.uts | 0 16 files changed, 28 insertions(+), 33 deletions(-) rename uni_modules/{uni-native-button => native-button}/changelog.md (100%) rename uni_modules/{uni-native-button => native-button}/components/native-button/native-button.uvue (53%) rename uni_modules/{uni-native-button => native-button}/package.json (100%) rename uni_modules/{uni-native-button => native-button}/readme.md (100%) rename uni_modules/{uni-native-button => native-button}/utssdk/app-android/config.json (100%) rename uni_modules/{uni-native-button => native-button}/utssdk/app-android/index.uts (90%) rename uni_modules/{uni-native-button => native-button}/utssdk/app-ios/config.json (100%) rename uni_modules/{uni-native-button => native-button}/utssdk/app-ios/index.uts (100%) rename uni_modules/{uni-time-picker => native-time-picker}/changelog.md (100%) rename uni_modules/{uni-time-picker => native-time-picker}/components/time-picker/time-picker.uvue (80%) rename uni_modules/{uni-time-picker => native-time-picker}/package.json (100%) rename uni_modules/{uni-time-picker => native-time-picker}/readme.md (100%) rename uni_modules/{uni-time-picker => native-time-picker}/utssdk/app-android/config.json (100%) rename uni_modules/{uni-time-picker => native-time-picker}/utssdk/app-android/index.uts (91%) rename uni_modules/{uni-time-picker => native-time-picker}/utssdk/app-ios/config.json (100%) rename uni_modules/{uni-time-picker => native-time-picker}/utssdk/app-ios/index.uts (100%) 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 e3a0209f..cd51d4e3 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 88d1ba62..e9fc6cfa 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 70b77ec2..50fa1e61 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 @@