File tree 2 files changed +11
-9
lines changed
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,12 @@ export default {
66
66
67
67
render ( ) {
68
68
const { type, loading, buttonProps } = this ;
69
- return (
70
- < Button type = { type } onClick = { this . onClick } loading = { loading } { ...buttonProps } >
71
- { getSlot ( this ) }
72
- </ Button >
73
- ) ;
69
+ const props = {
70
+ type,
71
+ onClick : this . onClick ,
72
+ loading,
73
+ ...buttonProps ,
74
+ } ;
75
+ return < Button { ...props } > { getSlot ( this ) } </ Button > ;
74
76
} ,
75
77
} ;
Original file line number Diff line number Diff line change @@ -82,13 +82,13 @@ export interface ModalOptions {
82
82
* The ok button props
83
83
* @type object
84
84
*/
85
- okButtonProps ?: Button ;
85
+ okButtonProps ?: Button . $props ;
86
86
87
87
/**
88
88
* The cancel button props
89
89
* @type object
90
90
*/
91
- cancelButtonProps ?: Button ;
91
+ cancelButtonProps ?: Button . $props ;
92
92
93
93
/**
94
94
* Title
@@ -259,13 +259,13 @@ export declare class Modal extends AntdComponent {
259
259
* The ok button props, follow jsx rules
260
260
* @type object
261
261
*/
262
- okButtonProps ?: { props : Button ; on : { } } ;
262
+ okButtonProps ?: Button . $props ;
263
263
264
264
/**
265
265
* The cancel button props, follow jsx rules
266
266
* @type object
267
267
*/
268
- cancelButtonProps ?: { props : Button ; on : { } } ;
268
+ cancelButtonProps ?: Button . $props ;
269
269
270
270
/**
271
271
* The modal dialog's title
You can’t perform that action at this time.
0 commit comments