From 3e44e3eee8c64c0e5a8218c9ff370dd9357bfb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cliang=5Ftao001=E2=80=9D?= Date: Thu, 18 Jul 2024 17:30:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9react-native-card?= =?UTF-8?q?view=E5=BA=93=E7=9A=84=E6=8C=87=E5=AF=BC=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “liang_tao001” --- zh-cn/react-native-cardview.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/zh-cn/react-native-cardview.md b/zh-cn/react-native-cardview.md index 50b50df1..930ee746 100644 --- a/zh-cn/react-native-cardview.md +++ b/zh-cn/react-native-cardview.md @@ -242,21 +242,24 @@ ohpm install ## 属性 -> [!tip] "Platform"列表示该属性在原三方库上支持的平台。 + cardview组件接收所有[React Native Text](https://reactnative.dev/docs/text)组件的Props。 -> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。 +> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。 + +> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。 | Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- | -------- | ------------------ | -| cornerRadius | An attribute to set the elevation of the card. | number | No | All | yes | -| cardElevation | An attribute to support shadow on pre-lollipop device in android. | number | No | All | yes | -| cardMaxElevation | An attribute to set the radius of the card. | number | No | All | yes | -| useCompatPadding | CardView adds additional padding to draw shadows on platforms before Lollipop. | boolean | No | All | yes | -| cornerOverlap | On pre-Lollipop platforms, CardView does not clip the bounds of the Card for the rounded corners. | boolean | No | All | yes | -| backgroundColor | The background color of the card. | number | No | All | yes | +| cornerRadius | An attribute to set the elevation of the card. | number | No | iOS/Android | yes | +| cardElevation | An attribute to support shadow on pre-lollipop device in android. | number | No | iOS/Android | yes | +| cardMaxElevation | An attribute to set the radius of the card. | number | No | Android | yes | +| useCompatPadding | CardView adds additional padding to draw shadows on platforms before Lollipop. | boolean | No | Android | no | +| cornerOverlap | On pre-Lollipop platforms, CardView does not clip the bounds of the Card for the rounded corners. | boolean | No | Android | no | ## 遗留问题 +- [ ] cornerRadius和cardElevation属性同时调用的时会导致阴影不显示: [#issues14](https://github.com/react-native-oh-library/react-native-cardview/issues/14) + ## 其他 ## 开源协议 -- Gitee From f41b4cbe8bf205014184ea97983726eeedb99026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cliang=5Ftao001=E2=80=9D?= Date: Wed, 24 Jul 2024 15:01:24 +0800 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9react-native-devi?= =?UTF-8?q?ce-info=E7=9A=84=E6=8C=87=E5=AF=BC=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “liang_tao001” --- zh-cn/react-native-device-info.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/react-native-device-info.md b/zh-cn/react-native-device-info.md index 7fa78dfd..108aa0ce 100644 --- a/zh-cn/react-native-device-info.md +++ b/zh-cn/react-native-device-info.md @@ -94,7 +94,7 @@ import DeviceInfo from 'react-native-device-info'; ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-device-info": "file:../../node_modules/@react-native-oh-tpl/react-native-device-info/device_info.har" + "@react-native-oh-tpl/react-native-device-info": "file:../../node_modules/@react-native-oh-tpl/react-native-device-info/harmony/device_info.har" } ``` -- Gitee