📃 docs(Select): add optGroups props (#47687)

https://github.com/react-component/select/pull/1020/
This commit is contained in:
lqzhgood 2024-03-03 14:42:04 +08:00 committed by GitHub
parent b2a83e4353
commit 9970fd3754
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 8 deletions

View File

@ -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

View File

@ -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