@@ -49,34 +49,34 @@ ReactDOM.render(
49
49
50
50
### rc-dialog
51
51
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 |
80
80
81
81
## Development
82
82
@@ -85,8 +85,6 @@ npm install
85
85
npm start
86
86
```
87
87
88
-
89
-
90
88
## Test Case
91
89
92
90
```
@@ -102,7 +100,6 @@ npm run coverage
102
100
103
101
open coverage/ dir
104
102
105
-
106
103
## License
107
104
108
105
rc-dialog is released under the MIT license.
0 commit comments