File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ import '@rc-component/dialog/assets/index.css';
4747
4848export default function App() {
4949 return (
50- <Dialog title = " Dialog " visible onClose = { () => {}} >
50+ <Dialog title = " 对话框 " visible onClose = { () => {}} >
5151 <p >Dialog content</p >
5252 </Dialog >
5353 );
@@ -90,11 +90,11 @@ npm start
9090| prefixCls | 组件 className 前缀 | string | ` rc-dialog ` |
9191| scrollLock | 打开时是否锁定body滚动 | boolean | true |
9292| style | 根对话框样式 | ` React.CSSProperties ` | - |
93- | styles | Semantic styles | ` { header?: React.CSSProperties; body?: React.CSSProperties; footer?: React.CSSProperties; mask?: React.CSSProperties; content?: React.CSSProperties; wrapper?: React.CSSProperties } ` | - |
94- | title | Dialog title | ` React.ReactNode ` | - |
93+ | styles | 语义化样式 | ` { header?: React.CSSProperties; body?: React.CSSProperties; footer?: React.CSSProperties; mask?: React.CSSProperties; content?: React.CSSProperties; wrapper?: React.CSSProperties } ` | - |
94+ | title | 对话框标题 | ` React.ReactNode ` | - |
9595| transitionName | 对话框过渡 className | string | - |
9696| visible | 对话框是否可见 | boolean | false |
97- | zIndex | Dialog z-index | number | - |
97+ | zIndex | 对话框 z-index | number | - |
9898| onClose | 点击关闭按钮或遮罩时的回调 | ` (event: React.SyntheticEvent) => void ` | - |
9999
100100## 本地开发
You can’t perform that action at this time.
0 commit comments