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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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