Unverified Commit a579b845 authored by Netfan's avatar Netfan Committed by GitHub

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

parent 43e4c219
...@@ -122,12 +122,14 @@ ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment