fix(modal): proptype conflict with ant design modal(fixed: #545) (#575)

This commit is contained in:
Netfan
2021-05-09 15:21:31 +08:00
committed by GitHub
parent 43e4c21950
commit a579b8456a

View File

@@ -122,12 +122,14 @@
wrapClassName: toRef(getMergeProps.value, 'wrapClassName'),
});
// modal component does not need title
// modal component does not need title and origin buttons
const getProps = computed(
(): ModalProps => {
const opt = {
...unref(getMergeProps),
visible: unref(visibleRef),
okButtonProps: undefined,
cancelButtonProps: undefined,
title: undefined,
};
return {