fix: modal getContainer not work

pull/4936/head
tangjinzhou 3 years ago
parent b62c1564ec
commit 239354e313

@ -61,9 +61,12 @@ const modalProps = () => ({
wrapClassName: String, wrapClassName: String,
maskTransitionName: String, maskTransitionName: String,
transitionName: String, transitionName: String,
getContainer: [String, Function, Boolean, Object] as PropType< getContainer: {
type: [String, Function, Boolean, Object] as PropType<
string | HTMLElement | getContainerFunc | false string | HTMLElement | getContainerFunc | false
>, >,
default: undefined,
},
zIndex: Number, zIndex: Number,
bodyStyle: Object as PropType<CSSProperties>, bodyStyle: Object as PropType<CSSProperties>,
maskStyle: Object as PropType<CSSProperties>, maskStyle: Object as PropType<CSSProperties>,
@ -206,7 +209,7 @@ export default defineComponent({
<Dialog <Dialog
{...restProps} {...restProps}
{...attrs} {...attrs}
getContainer={getContainer || getPopupContainer} getContainer={getContainer || getPopupContainer.value}
prefixCls={prefixCls.value} prefixCls={prefixCls.value}
wrapClassName={wrapClassNameExtended} wrapClassName={wrapClassNameExtended}
visible={visible} visible={visible}

Loading…
Cancel
Save