From 39cfb07ee158fb8a58e33020137c1f7aac6cb41e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=B4=8B?= <251448644@qq.com> Date: Thu, 11 Jan 2024 18:14:18 +0800 Subject: [PATCH 1/3] =?UTF-8?q?[Issues:=20#I8VCNY]=20=E6=B7=BB=E5=8A=A0rea?= =?UTF-8?q?ct-native-community/segmented-control=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...eact-native-community-segmented-control.md | 91 +++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 1224/react-native-community-segmented-control.md diff --git a/1224/react-native-community-segmented-control.md b/1224/react-native-community-segmented-control.md new file mode 100644 index 00000000..cb9d62c4 --- /dev/null +++ b/1224/react-native-community-segmented-control.md @@ -0,0 +1,91 @@ +> 模板版本:v0.1.2 + +
+
react-native-community/segmented-control
react-native-community/segmented-control
-
+
@@ -66,9 +66,8 @@ return (
详情见 [react-native-community/segmented-control 源库地址](https://github.com/react-native-segmented-control/segmented-control)
-
| Name | Description | Type | Required | Platform | HarmonyOS Support | Notes |
-| -----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | -------- | -------- | -------- |-------- |
+| ---------|------- | ------------- | -------- | -------- | -------- |-------- |
| enabled | If false the user won't be able to interact with the control. Default value is true. | boolean | No |All | Yes |
| momentary | If true, then selecting a segment won't persist visually. The onValueChange callback will still work as expected.| boolean | No |iOS | No | android和harmonyos侧,效果一致,不生效,ios侧有效果
| onChange |Callback that is called when the user taps a segment; passes the event as an argument | function | No | All | Yes |
@@ -77,7 +76,7 @@ return (
| tintColor | Accent color of the control. | string | No |All | Yes |
| backgroundColor | Background color color of the control. | string | No | All | Yes |
| values | The labels for the control's segment buttons, in order.| string | Yes | All | Yes |
-| appearance | Overrides the control's appearance irrespective of the OS theme | 'dark', 'light' | No | All | Yes |
+| appearance | Overrides the control's appearance irrespective of the OS theme | 'dark', 'light' | No | All | Yes |
| fontStyle | An object container,color: color of segment;fontSize: font-size of segment text;fontFamily: font-family of segment text;fontWeight: font-weight of segment text| object | No | All | Yes | android和harmonyos侧,fontFamily效果一致,均不生效
| activeFontStyle | An object container,color: overrides color of selected segment text;fontSize: overrides font-size of selected segment text;fontFamily: overrides font-family of selected segment text;fontWeight: overrides font-weight of selected segment text| object | No | All | Yes | android和harmonyos侧,fontFamily效果一致,均不生效
| tabStyle | Styles the clickable surface which is responsible to change tabs| object | No | Android, Web | Yes |
--
Gitee
From f342f50945857e39aa2f23f592dffef2b71e091e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B4=E6=B4=8B?= <251448644@qq.com>
Date: Thu, 11 Jan 2024 18:43:31 +0800
Subject: [PATCH 3/3] =?UTF-8?q?[Issues:=20#I8VCNY]=20=E6=B7=BB=E5=8A=A0rea?=
=?UTF-8?q?ct-native-community/segmented-control=E6=96=87=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
1224/react-native-community-segmented-control.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/1224/react-native-community-segmented-control.md b/1224/react-native-community-segmented-control.md
index aafe2f85..dc58febe 100644
--- a/1224/react-native-community-segmented-control.md
+++ b/1224/react-native-community-segmented-control.md
@@ -69,7 +69,7 @@ return (
| Name | Description | Type | Required | Platform | HarmonyOS Support | Notes |
| ---------|------- | ------------- | -------- | -------- | -------- |-------- |
| enabled | If false the user won't be able to interact with the control. Default value is true. | boolean | No |All | Yes |
-| momentary | If true, then selecting a segment won't persist visually. The onValueChange callback will still work as expected.| boolean | No |iOS | No | android和harmonyos侧,效果一致,不生效,ios侧有效果
+| momentary | If true, then selecting a segment won't persist visually. The onValueChange callback will still work as expected.| boolean | No |iOS | No | Android和HarmonyOS侧,效果一致,不生效,iOS侧有效果
| onChange |Callback that is called when the user taps a segment; passes the event as an argument | function | No | All | Yes |
| onValueChange | Callback that is called when the user taps a segment; passes the segment's value as an argument | function | No |All | Yes |
| selectedIndex |The index in props.values of the segment to be (pre)selected. | number | No | All | Yes |
@@ -77,8 +77,8 @@ return (
| backgroundColor | Background color color of the control. | string | No | All | Yes |
| values | The labels for the control's segment buttons, in order.| string | Yes | All | Yes |
| appearance | Overrides the control's appearance irrespective of the OS theme | 'dark', 'light' | No | All | Yes |
-| fontStyle | An object container,color: color of segment;fontSize: font-size of segment text;fontFamily: font-family of segment text;fontWeight: font-weight of segment text| object | No | All | Yes | android和harmonyos侧,fontFamily效果一致,均不生效
-| activeFontStyle | An object container,color: overrides color of selected segment text;fontSize: overrides font-size of selected segment text;fontFamily: overrides font-family of selected segment text;fontWeight: overrides font-weight of selected segment text| object | No | All | Yes | android和harmonyos侧,fontFamily效果一致,均不生效
+| fontStyle | An object container,color: color of segment;fontSize: font-size of segment text;fontFamily: font-family of segment text;fontWeight: font-weight of segment text| object | No | All | Yes | Android和HarmonyOS侧,fontFamily效果一致,均不生效
+| activeFontStyle | An object container,color: overrides color of selected segment text;fontSize: overrides font-size of selected segment text;fontFamily: overrides font-family of selected segment text;fontWeight: overrides font-weight of selected segment text| object | No | All | Yes | Android和HarmonyOS侧,fontFamily效果一致,均不生效
| tabStyle | Styles the clickable surface which is responsible to change tabs| object | No | Android, Web | Yes |
## 遗留问题
--
Gitee