mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
docs: remove autoFocus property from various components doc to common-props doc (#56012)
* docs: remove autoFocus property from various components doc to common-props doc * chore: update docs * chore: update docs
This commit is contained in:
@@ -7,8 +7,9 @@ title: Common Props
|
||||
|
||||
> Tips: The following generic properties apply to most antd components; those not supported are described separately.
|
||||
|
||||
| Property | Description | Type | Default |
|
||||
| ------------- | ----------------------------- | ------------- | ------- |
|
||||
| style | The additional style | CSSProperties | - |
|
||||
| className | The additional css class | string | - |
|
||||
| rootClassName | ClassName on the root element | string | - |
|
||||
| Property | Description | Type | Default |
|
||||
| --- | --- | --- | --- |
|
||||
| style | The additional style | CSSProperties | - |
|
||||
| className | The additional css class | string | - |
|
||||
| rootClassName | ClassName on the root element | string | - |
|
||||
| autoFocus | Auto focus when component mounted, only effective for focusable elements like forms, links, etc. | boolean | false |
|
||||
|
||||
@@ -7,8 +7,9 @@ title: 通用属性
|
||||
|
||||
> Tips: 以下通用属性适用于 antd 大部分组件,不支持的组件会单独说明。
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
| ------------- | ---------------------------- | ------------- | ------ |
|
||||
| style | 自定义样式 | CSSProperties | - |
|
||||
| className | 自定义类名 | string | - |
|
||||
| rootClassName | 添加在组件最外层的 className | string | - |
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
| --- | --- | --- | --- |
|
||||
| style | 自定义样式 | CSSProperties | - |
|
||||
| className | 自定义类名 | string | - |
|
||||
| rootClassName | 添加在组件最外层的 className | string | - |
|
||||
| autoFocus | 自动获取焦点,仅对表单类、链接、交互容器等可聚焦元素生效 | boolean | false |
|
||||
|
||||
Reference in New Issue
Block a user