diff --git a/zh-cn/react-native-slider.md b/zh-cn/react-native-slider.md index 15b9d8c8496cd6dd130607389b9f2ad711948af4..68c511ed5ed0d2057e8948cbba42903719a8395f 100644 --- a/zh-cn/react-native-slider.md +++ b/zh-cn/react-native-slider.md @@ -1,4 +1,4 @@ -> 模板版本:v0.0.1 +> 模板版本:v0.1.2

@react-native-community/slider

@@ -12,21 +12,16 @@

-## 安装与使用 - -> [!tip] 目前 React-Native-OpenHarmony(RNOH) 三方库的 npm 包部署在私仓,需要通过 github token 来获取访问权限。 - -在与 `package.json` 文件相同的目录中,创建或编辑 `.npmrc` 文件以包含指定 GitHub Packages URL 和托管包的命名空间的行。 将 TOKEN 替换为 RNOH 三方库指定的 token。 +> [!tip] [Github 地址](https://github.com/react-native-oh-library/react-native-slider/releases) -```bash -@react-native-oh-library:registry=https://npm.pkg.github.com -//npm.pkg.github.com/:_authToken=TOKEN -``` +## 安装与使用 进入到工程目录并输入以下命令: +**正在 npm 发布中,当前请先从仓库[Release](https://github.com/react-native-oh-library/react-native-slider/releases)中获取库 tgz,通过使用本地依赖来安装本库。** + #### **yarn** ```bash @@ -211,7 +206,11 @@ ohpm install ## 属性 -| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 | +> [!tip] "Platform"列表示该属性在原三方库上支持的平台。 + +> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。 + +| Name | Description | Type | Required | Platform | HarmonyOS Support | | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | -------- | ------------ | -------- | | `style` | Used to style and layout the `Slider`. See `StyleSheet.js` and `ViewStylePropTypes.js` for more info. | View.style | No | All | yes | | `disabled` | If true the user won't be able to move the slider.
Default value is false. | bool | No | All | yes |