mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 03:59:01 +08:00
docs: supplement type for classnames and styles (#49984)
* docs(modal): supplement type for classnames and styles * fix
This commit is contained in:
parent
2efbdbfe25
commit
ad4e522724
@ -48,8 +48,8 @@ Common props ref:[Common props](/docs/react/common-props)
|
|||||||
| Property | Description | Type | Default | Version |
|
| Property | Description | Type | Default | Version |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- |
|
||||||
| afterClose | Specify a function that will be called when modal is closed completely | function | - | |
|
| afterClose | Specify a function that will be called when modal is closed completely | function | - | |
|
||||||
| classNames | Config Modal build-in module's className | `header?: string; body?: string; footer?: string; mask?: string; wrapper?: string;` | - | |
|
| classNames | Config Modal build-in module's className | `header?: string; body?: string; footer?: string; mask?: string; content?: string; wrapper?: string;` | - | |
|
||||||
| styles | Config Modal build-in module's style | `header?: CSSProperties; body?: CSSProperties; footer?: CSSProperties; mask?: CSSProperties;` | - | 5.10.0 |
|
| styles | Config Modal build-in module's style | `header?: CSSProperties; body?: CSSProperties; footer?: CSSProperties; mask?: CSSProperties; content?: CSSProperties; wrapper?: CSSProperties;` | - | 5.10.0 |
|
||||||
| cancelButtonProps | The cancel button props | [ButtonProps](/components/button/#api) | - | |
|
| cancelButtonProps | The cancel button props | [ButtonProps](/components/button/#api) | - | |
|
||||||
| cancelText | Text of the Cancel button | ReactNode | `Cancel` | |
|
| cancelText | Text of the Cancel button | ReactNode | `Cancel` | |
|
||||||
| centered | Centered Modal | boolean | false | |
|
| centered | Centered Modal | boolean | false | |
|
||||||
|
@ -49,8 +49,8 @@ demo:
|
|||||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- |
|
||||||
| afterClose | Modal 完全关闭后的回调 | function | - | |
|
| afterClose | Modal 完全关闭后的回调 | function | - | |
|
||||||
| classNames | 配置弹窗内置模块的 className | `header?: string; body?: string; footer?: string; mask?: string; wrapper?: string;` | - | |
|
| classNames | 配置弹窗内置模块的 className | `header?: string; body?: string; footer?: string; mask?: string; content?: string; wrapper?: string;` | - | |
|
||||||
| styles | 配置弹窗内置模块的 style | `header?: CSSProperties; body?: CSSProperties; footer?: CSSProperties; mask?: CSSProperties;` | - | 5.10.0 |
|
| styles | 配置弹窗内置模块的 style | `header?: CSSProperties; body?: CSSProperties; footer?: CSSProperties; mask?: CSSProperties; content?: CSSProperties; wrapper?: CSSProperties;` | - | 5.10.0 |
|
||||||
| cancelButtonProps | cancel 按钮 props | [ButtonProps](/components/button-cn#api) | - | |
|
| cancelButtonProps | cancel 按钮 props | [ButtonProps](/components/button-cn#api) | - | |
|
||||||
| cancelText | 取消按钮文字 | ReactNode | `取消` | |
|
| cancelText | 取消按钮文字 | ReactNode | `取消` | |
|
||||||
| centered | 垂直居中展示 Modal | boolean | false | |
|
| centered | 垂直居中展示 Modal | boolean | false | |
|
||||||
|
Loading…
Reference in New Issue
Block a user