diff --git a/PullToRefresh/hvigorfile.js b/PullToRefresh/hvigorfile.ts similarity index 100% rename from PullToRefresh/hvigorfile.js rename to PullToRefresh/hvigorfile.ts diff --git a/PullToRefresh/package.json b/PullToRefresh/package.json index 7c5223e4d61b8479c73d6aab622c7dde8a9289df..4fcfca23fabdcf37481cfba7e0897dfc628b4bba 100644 --- a/PullToRefresh/package.json +++ b/PullToRefresh/package.json @@ -16,5 +16,6 @@ "version": "1.0.1", "dependencies": {}, "license": "Apache License 2.0", - "devDependencies": {} + "devDependencies": {}, + "type": "module" } diff --git a/PullToRefresh/src/main/ets/components/PullToRefresh/PullToRefresh.ets b/PullToRefresh/src/main/ets/components/PullToRefresh/PullToRefresh.ets index d698d5d023046da27ae3e3a3058dd121105de001..2f1e58b9e4ad5a113952617a765dc87eeeaa480a 100644 --- a/PullToRefresh/src/main/ets/components/PullToRefresh/PullToRefresh.ets +++ b/PullToRefresh/src/main/ets/components/PullToRefresh/PullToRefresh.ets @@ -450,7 +450,7 @@ export struct PullToRefresh { } } - private closeRefresh(): void{ + public closeRefresh(): void{ clearInterval(this.timer); animateTo({ duration: this.refreshConfigurator.getAnimDuration() }, () => { this.trYTop = 0; @@ -461,7 +461,7 @@ export struct PullToRefresh { }, this.refreshConfigurator.getAnimDuration()); } - private closeLoad(): void{ + public closeLoad(): void{ clearInterval(this.timer); animateTo({ duration: this.refreshConfigurator.getAnimDuration() }, () => { this.trYBottom = 0; diff --git a/README.md b/README.md index 8526ed89004a0acd40bd6099f0401da91e985880..6b4017af8db592ed21c9fbda079eb98d293bdc5f 100644 --- a/README.md +++ b/README.md @@ -123,4 +123,8 @@ customRefresh: null, ## 开源协议 -本项目基于 [Apache License 2.0](https://gitee.com/openharmony-sig/PullToRefresh/blob/master/LICENSE) ,请自由地享受和参与开源。 \ No newline at end of file +本项目基于 [Apache License 2.0](https://gitee.com/openharmony-sig/PullToRefresh/blob/master/LICENSE) ,请自由地享受和参与开源。 + +## 遗留问题 + +1.自定义列表组件需要设置为无边缘效果(例如:List组件需要设置.edgeEffect(EdgeEffect.None))。 \ No newline at end of file diff --git a/entry/build-profile.json5 b/entry/build-profile.json5 index f8f03407f77914b43168aeca6bb0929efd6700b4..befa10141dfc5999e35f60a36a9f948e664732b1 100644 --- a/entry/build-profile.json5 +++ b/entry/build-profile.json5 @@ -5,9 +5,6 @@ "targets": [ { "name": "default" - }, - { - "name": "ohosTest", } ] } \ No newline at end of file diff --git a/package.json b/package.json index 979e706f74ac9666f0ae6818fcbda76cebabfafa..a761134a0dda9bed964eaee563ff9c5ca4a61318 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "repository": {}, "license": "ISC", "dependencies": { - "@ohos/hypium": "1.0.1", - "@ohos/hvigor": "1.1.6", - "@ohos/hvigor-ohos-plugin": "1.1.6" + "@ohos/hypium": "1.0.3", + "@ohos/hvigor": "1.3.1", + "@ohos/hvigor-ohos-plugin": "1.3.1" } }