diff --git a/components/modal/demo/_semantic.tsx b/components/modal/demo/_semantic.tsx index 0547852766..dcb6ac8e44 100644 --- a/components/modal/demo/_semantic.tsx +++ b/components/modal/demo/_semantic.tsx @@ -9,7 +9,7 @@ const locales = { cn: { mask: '遮罩层元素', wrapper: '包裹层元素,一般用于动画容器', - content: 'Drawer 容器元素', + content: 'Modal 容器元素', header: '头部元素', body: '内容元素', footer: '底部元素', @@ -17,7 +17,7 @@ const locales = { en: { mask: 'Mask element', wrapper: 'Wrapper element. Used for motion container', - content: 'Drawer container element', + content: 'Modal container element', header: 'Header element', body: 'Body element', footer: 'Footer element', @@ -57,6 +57,8 @@ const App: React.FC = () => { ](#semantic-dom) | - | | +| styles | Config Modal build-in module's style | [Record](#semantic-dom) | - | 5.10.0 | | cancelButtonProps | The cancel button props | [ButtonProps](/components/button/#api) | - | | | cancelText | Text of the Cancel button | ReactNode | `Cancel` | | | centered | Centered Modal | boolean | false | | @@ -192,7 +192,7 @@ const confirmed = await modal.confirm({ ... }); | originNode | default node | React.ReactNode | - | | extra | extended options | { OkBtn: FC; CancelBtn: FC } | - | -### `styles` and `classNames` attribute +## Semantic DOM diff --git a/components/modal/index.zh-CN.md b/components/modal/index.zh-CN.md index 4c6bee53ab..83a83ff0dd 100644 --- a/components/modal/index.zh-CN.md +++ b/components/modal/index.zh-CN.md @@ -49,8 +49,8 @@ demo: | 参数 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | | afterClose | Modal 完全关闭后的回调 | function | - | | -| classNames | 配置弹窗内置模块的 className | `header?: string; body?: string; footer?: string; mask?: string; content?: string; wrapper?: string;` | - | | -| styles | 配置弹窗内置模块的 style | `header?: CSSProperties; body?: CSSProperties; footer?: CSSProperties; mask?: CSSProperties; content?: CSSProperties; wrapper?: CSSProperties;` | - | 5.10.0 | +| classNames | 配置弹窗内置模块的 className | [Record](#semantic-dom) | - | | +| styles | 配置弹窗内置模块的 style | [Record](#semantic-dom) | - | 5.10.0 | | cancelButtonProps | cancel 按钮 props | [ButtonProps](/components/button-cn#api) | - | | | cancelText | 取消按钮文字 | ReactNode | `取消` | | | centered | 垂直居中展示 Modal | boolean | false | | @@ -193,7 +193,7 @@ const confirmed = await modal.confirm({ ... }); | originNode | 默认节点 | React.ReactNode | - | | extra | 扩展选项 | { OkBtn: FC; CancelBtn: FC } | - | -### `styles` and `classNames` 属性 +## Semantic DOM