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:
aojunhao123
2025-12-02 15:33:52 +08:00
committed by GitHub
parent 76fa62258b
commit aab7fbf40c
30 changed files with 12 additions and 38 deletions

View File

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

View File

@@ -7,8 +7,9 @@ title: 通用属性
> Tips: 以下通用属性适用于 antd 大部分组件,不支持的组件会单独说明。
| 参数 | 说明 | 类型 | 默认值 |
| ------------- | ---------------------------- | ------------- | ------ |
| style | 自定义样式 | CSSProperties | - |
| className | 自定义类名 | string | - |
| rootClassName | 添加在组件最外层的 className | string | - |
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| style | 自定义样式 | CSSProperties | - |
| className | 自定义类名 | string | - |
| rootClassName | 添加在组件最外层的 className | string | - |
| autoFocus | 自动获取焦点,仅对表单类、链接、交互容器等可聚焦元素生效 | boolean | false |