From a579b8456ac73ac48c6af1510317acca20ed9b52 Mon Sep 17 00:00:00 2001 From: Netfan Date: Sun, 9 May 2021 15:21:31 +0800 Subject: [PATCH] fix(modal): proptype conflict with ant design modal(fixed: #545) (#575) --- src/components/Modal/src/BasicModal.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Modal/src/BasicModal.vue b/src/components/Modal/src/BasicModal.vue index 377b62e53b6..de2152c823a 100644 --- a/src/components/Modal/src/BasicModal.vue +++ b/src/components/Modal/src/BasicModal.vue @@ -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 {