@@ -49,34 +49,34 @@ ReactDOM.render(
4949
5050### rc-dialog
5151
52- | Name | Type | Default | Description | Version |
53- | ---------------------- | ------------------------------ | --------- | ------------------------------------------------------------------------------- | ---- --- |
54- | prefixCls | String | rc-dialog | The dialog dom node's prefixCls | |
55- | className | String | | additional className for dialog | |
56- | classNames | { header?: string; body?: string; footer?: string; mask?: string; content?: string; wrapper?: string; } | | pass className to target area | |
57- | styles | { header?: CSSProperties; body?: CSSProperties; footer?: CSSProperties; mask?: CSSProperties; content?: CSSProperties; wrapper?: CSSProperties; } | | pass styles to target area | |
58- | style | Object | {} | Root style for dialog element.Such as width, height | |
59- | zIndex | Number | | | |
60- | visible | Boolean | false | current dialog's visible status | |
61- | animation | String | | part of dialog animation css class name | |
62- | maskAnimation | String | | part of dialog's mask animation css class name | |
63- | transitionName | String | | dialog animation css class name | |
64- | maskTransitionName | String | | mask animation css class name | |
65- | title | String\| React.Element | | Title of the dialog | |
66- | footer | React.Element | | footer of the dialog | |
67- | closable | Boolean \| ({ closeIcon?: React.ReactNode; disabled?: boolean } & React.AriaAttributes | true | whether show close button | |
68- | mask | Boolean | true | whether show mask | |
69- | maskClosable | Boolean | true | whether click mask to close | |
70- | keyboard | Boolean | true | whether support press esc to close | |
71- | mousePosition | {x: number ,y: number } | | set pageX and pageY of current mouse(it will cause transform origin to be set). | |
72- | onClose | function() | | called when click close button or mask | |
73- | afterClose | function() | | called when close animation end | |
74- | getContainer | function(): HTMLElement | | to determine where Dialog will be mounted | |
75- | destroyOnClose | Boolean | false | to unmount child compenents on onClose | |
76- | closeIcon | ReactNode | | specific the close icon. | |
77- | forceRender | Boolean | false | Create dialog dom node before dialog first show | |
78- | focusTriggerAfterClose | Boolean | true | focus trigger element when dialog closed | |
79- | modalRender | (node: ReactNode) => ReactNode | | Custom modal content render | 8.3.0 |
52+ | Name | Type | Default | Description | Version |
53+ | --- | --- | --- | --- | --- |
54+ | prefixCls | String | rc-dialog | The dialog dom node's prefixCls | |
55+ | className | String | | additional className for dialog | |
56+ | classNames | { header?: string; body?: string; footer?: string; mask?: string; content?: string; wrapper?: string; } | | pass className to target area | |
57+ | styles | { header?: CSSProperties; body?: CSSProperties; footer?: CSSProperties; mask?: CSSProperties; content?: CSSProperties; wrapper?: CSSProperties; } | | pass styles to target area | |
58+ | style | Object | {} | Root style for dialog element.Such as width, height | |
59+ | zIndex | Number | | | |
60+ | visible | Boolean | false | current dialog's visible status | |
61+ | animation | String | | part of dialog animation css class name | |
62+ | maskAnimation | String | | part of dialog's mask animation css class name | |
63+ | transitionName | String | | dialog animation css class name | |
64+ | maskTransitionName | String | | mask animation css class name | |
65+ | title | String\| React.Element | | Title of the dialog | |
66+ | footer | React.Element | | footer of the dialog | |
67+ | closable | Boolean \| ({ closeIcon?: React.ReactNode; disabled?: boolean } & React.AriaAttributes | true | whether show close button | |
68+ | mask | Boolean | true | whether show mask | |
69+ | maskClosable | Boolean | true | whether click mask to close | |
70+ | keyboard | Boolean | true | whether support press esc to close | |
71+ | mousePosition | {x: number ,y: number } | | set pageX and pageY of current mouse(it will cause transform origin to be set). | |
72+ | onClose | function() | | called when click close button or mask | |
73+ | afterClose | function() | | called when close animation end | |
74+ | getContainer | function(): HTMLElement | | to determine where Dialog will be mounted | |
75+ | destroyOnHidden | Boolean | false | to unmount child compenents on onClose | |
76+ | closeIcon | ReactNode | | specific the close icon. | |
77+ | forceRender | Boolean | false | Create dialog dom node before dialog first show | |
78+ | focusTriggerAfterClose | Boolean | true | focus trigger element when dialog closed | |
79+ | modalRender | (node: ReactNode) => ReactNode | | Custom modal content render | 8.3.0 |
8080
8181## Development
8282
@@ -85,8 +85,6 @@ npm install
8585npm start
8686```
8787
88-
89-
9088## Test Case
9189
9290```
@@ -102,7 +100,6 @@ npm run coverage
102100
103101open coverage/ dir
104102
105-
106103## License
107104
108105rc-dialog is released under the MIT license.
0 commit comments