diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..7cc64fb --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +# Changelog + +## 鸿蒙化Log + +### v0.15.0-rc.2 + +- pre-release:@react-native-ohos/react-native-nested-scroll@0.15.0-rc.2([6d229e1](https://github.com/react-native-oh-library/react-native-nested-scroll/pull/31)) +- fix: fix:修复bounces属性的热更新不生效、修改onscroll事件返回的对象 ([5a925c6](https://github.com/react-native-oh-library/react-native-nested-scroll/pull/28)) + diff --git a/README.md b/README.md index c3d115b..0728c1d 100644 --- a/README.md +++ b/README.md @@ -245,12 +245,17 @@ export default NestedScrollFlatList > [!TIP] "如果“HarmonyOS 支持”列的值为“yes”,则表示 HarmonyOS 平台支持该属性;“no”则表示不支持;“partially”表示部分支持该属性的功能。该属性在不同平台上的使用方法相同,效果与 iOS 或 Android 平台一致。 +### NestedScrollView | Name | Description | Type | Required | Platform | HarmonyOS Support | | ----------- | ------------------------------------------------- | ------ | -------- | -------- | ----------------- | -| stickyHeight| The area of the header height will be pinned to the top | number | NO | All | yes | -| stickyHeaderBeginIndex | It means that starting with the first few subcomponents, the subassemblies will be pinned to the top | number | NO | All | yes | -| bounce | Elastic effect | boolean | NO | All | yes | -| onScroll |component callbacks | number | NO | All | yes | +| bounces | 弹性效果 | boolean | NO | All | yes | + +### NestedScrollViewHeader +| Name | Description | Type | Required | Platform | HarmonyOS Support | +| ----------- | ------------------------------------------------- | ------ | -------- | -------- | ----------------- | +| stickyHeight| 标题高度的区域会固定在顶部 | number | NO | All | yes | +| stickyHeaderBeginIndex | 这意味着从前几个子组件开始,子组件将固定在顶部 | number | NO | All | yes | +| onScroll |组件回调 | function | NO | All | yes | ## 遗留问题 无 diff --git a/README_en.md b/README_en.md index 8fbc832..08dd23a 100644 --- a/README_en.md +++ b/README_en.md @@ -240,12 +240,17 @@ export default NestedScrollFlatList > [!TIP] > If the value in the "HarmonyOS Support" column is "yes," it means the prop is supported on the HarmonyOS platform; "no" means it is not supported; "partially" means that some of its features are supported. The usage of this prop is the same on different platforms, and its effect is consistent with that on iOS or Android. -| Name | Description | Type | Required | Platform | HarmonyOS Support | -| ---------------------- | ------------------------------------------------------------------------------------------------- | ------- | -------- | -------- | ----------------- | -| stickyHeight | The area of the header height will be pinned to the top. | number | NO | All | yes | -| stickyHeaderBeginIndex | It means that starting with the first few subcomponents, the subassemblies will be pinned to the top. | number | NO | All | yes | -| bounce | Elastic effect. | boolean | NO | All | yes | -| onScroll | Component callbacks. | number | NO | All | yes | +### NestedScrollView +| Name | Description | Type | Required | Platform | HarmonyOS Support | +| ----------- | ------------------------------------------------- | ------ | -------- | -------- | ----------------- | +| bounces | Elastic effect | boolean | NO | All | yes | + +### NestedScrollViewHeader +| Name | Description | Type | Required | Platform | HarmonyOS Support | +| ----------- | ------------------------------------------------- | ------ | -------- | -------- | ----------------- | +| stickyHeight| The area of the header height will be pinned to the top | number | NO | All | yes | +| stickyHeaderBeginIndex | It means that starting with the first few subcomponents, the subassemblies will be pinned to the top | number | NO | All | yes | +| onScroll |component callbacks | function | NO | All | yes | ## Known Issues