File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,12 @@ const modalProps = () => ({
6161 wrapClassName : String ,
6262 maskTransitionName : String ,
6363 transitionName : String ,
64- getContainer : [ String , Function , Boolean , Object ] as PropType <
65- string | HTMLElement | getContainerFunc | false
66- > ,
64+ getContainer : {
65+ type : [ String , Function , Boolean , Object ] as PropType <
66+ string | HTMLElement | getContainerFunc | false
67+ > ,
68+ default : undefined ,
69+ } ,
6770 zIndex : Number ,
6871 bodyStyle : Object as PropType < CSSProperties > ,
6972 maskStyle : Object as PropType < CSSProperties > ,
@@ -206,7 +209,7 @@ export default defineComponent({
206209 < Dialog
207210 { ...restProps }
208211 { ...attrs }
209- getContainer = { getContainer || getPopupContainer }
212+ getContainer = { getContainer || getPopupContainer . value }
210213 prefixCls = { prefixCls . value }
211214 wrapClassName = { wrapClassNameExtended }
212215 visible = { visible }
You can’t perform that action at this time.
0 commit comments