Commit a579b8456ac73ac48c6af1510317acca20ed9b52
Committed by
GitHub
1 parent
43e4c219
fix(modal): proptype conflict with ant design modal(fixed: #545) (#575)
Showing
1 changed file
with
3 additions
and
1 deletions
src/components/Modal/src/BasicModal.vue
... | ... | @@ -122,12 +122,14 @@ |
122 | 122 | wrapClassName: toRef(getMergeProps.value, 'wrapClassName'), |
123 | 123 | }); |
124 | 124 | |
125 | - // modal component does not need title | |
125 | + // modal component does not need title and origin buttons | |
126 | 126 | const getProps = computed( |
127 | 127 | (): ModalProps => { |
128 | 128 | const opt = { |
129 | 129 | ...unref(getMergeProps), |
130 | 130 | visible: unref(visibleRef), |
131 | + okButtonProps: undefined, | |
132 | + cancelButtonProps: undefined, | |
131 | 133 | title: undefined, |
132 | 134 | }; |
133 | 135 | return { | ... | ... |