@@ -12,6 +12,7 @@ import { useLocaleReceiver } from '../locale-provider/LocaleReceiver';
12
12
import initDefaultProps from '../_util/props-util/initDefaultProps' ;
13
13
import type { Direction } from '../config-provider' ;
14
14
import type { VueNode } from '../_util/type' ;
15
+ import { objectType } from '../_util/type' ;
15
16
import { canUseDocElement } from '../_util/styleChecker' ;
16
17
import useConfigInject from '../config-provider/hooks/useConfigInject' ;
17
18
import { getTransitionName } from '../_util/transition' ;
@@ -55,8 +56,8 @@ export const modalProps = () => ({
55
56
icon : PropTypes . any ,
56
57
maskClosable : { type : Boolean , default : undefined } ,
57
58
forceRender : { type : Boolean , default : undefined } ,
58
- okButtonProps : Object as PropType < ButtonPropsType > ,
59
- cancelButtonProps : Object as PropType < ButtonPropsType > ,
59
+ okButtonProps : objectType < ButtonPropsType > ( ) ,
60
+ cancelButtonProps : objectType < ButtonPropsType > ( ) ,
60
61
destroyOnClose : { type : Boolean , default : undefined } ,
61
62
wrapClassName : String ,
62
63
maskTransitionName : String ,
@@ -68,8 +69,8 @@ export const modalProps = () => ({
68
69
default : undefined ,
69
70
} ,
70
71
zIndex : Number ,
71
- bodyStyle : { type : Object as PropType < CSSProperties > , default : undefined as CSSProperties } ,
72
- maskStyle : { type : Object as PropType < CSSProperties > , default : undefined as CSSProperties } ,
72
+ bodyStyle : objectType < CSSProperties > ( ) ,
73
+ maskStyle : objectType < CSSProperties > ( ) ,
73
74
mask : { type : Boolean , default : undefined } ,
74
75
keyboard : { type : Boolean , default : undefined } ,
75
76
wrapProps : Object ,
0 commit comments