@@ -64,17 +64,17 @@ npm start
6464
6565| 名称 | 类型 | 默认值 | 说明 |
6666| -------------- | ------------------------------------------------------------------------ | ---------------- | ---------------------------- |
67- | ` className ` | string | ` '' ` | 附加className。 |
67+ | ` className ` | string | ` '' ` | 附加 className。 |
6868| ` classNames ` | Partial<Record<'item' \| 'label', string>> | - | 内部插槽的语义化 className。 |
6969| ` defaultValue ` | string \| number | 第一个选项值 | 初始选中值。 |
7070| ` direction ` | ` 'ltr' ` \| ` 'rtl' ` | - | Layout direction. |
7171| ` disabled ` | boolean | false | 禁用所有选项。 |
7272| ` itemRender ` | ` (node: ReactNode, info: { item: SegmentedLabeledOption }) => ReactNode ` | identity | 自定义选项项渲染器。 |
73- | ` motionName ` | string | ` 'thumb-motion' ` | 活动拇指的运动className称。 |
73+ | ` motionName ` | string | ` 'thumb-motion' ` | 活动拇指的动画 className。 |
7474| ` name ` | string | - | Radio group name. |
7575| ` onChange ` | ` (value: string \| number) => void ` | - | 当所选值更改时触发。 |
7676| ` options ` | Array<string \| number \| SegmentedLabeledOption> | - | 可用选项,必填。 |
77- | ` prefixCls ` | string | ` 'rc-segmented' ` | 前缀className。 |
77+ | ` prefixCls ` | string | ` 'rc-segmented' ` | className 前缀。 |
7878| ` style ` | React.CSSProperties | - | 根样式。 |
7979| ` styles ` | Partial<Record<'item' \| 'label', React.CSSProperties>> | - | 内部插槽的语义化样式。 |
8080| ` value ` | string \| number | - | 受控选中值。 |
@@ -84,13 +84,13 @@ npm start
8484
8585### SegmentedLabeledOption
8686
87- | 名称 | 类型 | 默认值 | 说明 |
88- | ----------- | ---------------- | -------- | ----------------- |
89- | ` className ` | string | - | 选项className称 。 |
90- | ` disabled ` | boolean | false | 禁用此选项。 |
91- | ` label ` | ReactNode | - | 展示的选项内容。 |
92- | ` title ` | string | 源自标签 | 标签的原生标题。 |
93- | ` value ` | string \| number | - | 选项值。 |
87+ | 名称 | 类型 | 默认值 | 说明 |
88+ | ----------- | ---------------- | -------- | ---------------- |
89+ | ` className ` | string | - | 选项 className 。 |
90+ | ` disabled ` | boolean | false | 禁用此选项。 |
91+ | ` label ` | ReactNode | - | 展示的选项内容。 |
92+ | ` title ` | string | 源自标签 | 标签的原生标题。 |
93+ | ` value ` | string \| number | - | 选项值。 |
9494
9595## 本地开发
9696
0 commit comments