File tree 1 file changed +2
-15
lines changed
1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -28,20 +28,13 @@ const ConfirmDialog = (props: ConfirmDialogProps) => {
28
28
onCancel,
29
29
onOk,
30
30
close,
31
- zIndex,
32
- afterClose,
33
- visible,
34
- keyboard,
35
- centered,
36
- getContainer,
37
31
maskStyle,
38
32
okText = 'delete' ,
39
33
okButtonProps,
40
34
cancelText = 'cancel' ,
41
35
cancelButtonProps,
42
36
bodyStyle,
43
37
closable = true ,
44
- closeIcon,
45
38
className,
46
39
okCancel,
47
40
width = 520 ,
@@ -50,6 +43,7 @@ const ConfirmDialog = (props: ConfirmDialogProps) => {
50
43
maskClosable = false ,
51
44
transitionName = 'zoom' ,
52
45
maskTransitionName = 'fade' ,
46
+ ...resetProps
53
47
} = props ;
54
48
55
49
const confirmDescriperClassName = getBEMElement (
@@ -82,23 +76,16 @@ const ConfirmDialog = (props: ConfirmDialogProps) => {
82
76
) ] : ! ! props . centered ,
83
77
} ) }
84
78
onCancel = { ( ) => close ( { triggerCancel : true } ) }
85
- visible = { visible }
86
79
title = ""
87
80
transitionName = { transitionName }
88
81
footer = ""
89
82
maskTransitionName = { maskTransitionName }
90
83
mask = { mask }
91
84
maskClosable = { maskClosable }
92
- maskStyle = { maskStyle }
93
85
style = { style }
94
86
width = { width }
95
- zIndex = { zIndex }
96
- afterClose = { afterClose }
97
- keyboard = { keyboard }
98
- centered = { centered }
99
- getContainer = { getContainer }
100
87
closable = { closable }
101
- closeIcon = { closeIcon }
88
+ { ... resetProps }
102
89
>
103
90
< div className = { containerClassName } style = { bodyStyle } >
104
91
< div className = { contentClassName } >
You can’t perform that action at this time.
0 commit comments