Skip to content

Commit

Permalink
fix(modal): proptype conflict with ant design modal(fixed: #545) (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetfan authored May 9, 2021
1 parent 43e4c21 commit a579b84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Modal/src/BasicModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a579b84

Please sign in to comment.