mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
📃 docs(Select): add optGroups props (#47687)
https://github.com/react-component/select/pull/1020/
This commit is contained in:
parent
b2a83e4353
commit
9970fd3754
@ -154,10 +154,14 @@ Common props ref:[Common props](/docs/react/common-props)
|
||||
|
||||
### OptGroup props
|
||||
|
||||
| Property | Description | Type | Default | Version |
|
||||
| -------- | ----------- | ----------------------- | ------- | ------- |
|
||||
| key | Group key | string | - | |
|
||||
| label | Group label | string \| React.Element | - | |
|
||||
| Property | Description | Type | Default | Version |
|
||||
| -------- | ------------------------------------- | ----------------------- | ------- | ------- |
|
||||
| key | Group key | string | - | |
|
||||
| label | Group label | string \| React.Element | - | |
|
||||
| className | The additional class to option | string | - | |
|
||||
| title | `title` attribute of Select Option | string | - | |
|
||||
|
||||
|
||||
|
||||
## Design Token
|
||||
|
||||
|
@ -155,10 +155,13 @@ return (
|
||||
|
||||
### OptGroup props
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| ----- | ---- | ----------------------- | ------ | ---- |
|
||||
| key | Key | string | - | |
|
||||
| label | 组名 | string \| React.Element | - | |
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| --------- | ----------------------- | ------------------------ | ------- | ---- |
|
||||
| key | Key | string | - | |
|
||||
| label | 组名 | string \| React.Element | - | |
|
||||
| className | Option 器类名 | string | - | |
|
||||
| title | 选项上的原生 title 提示 | string | - | |
|
||||
|
||||
|
||||
## 主题变量(Design Token)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user