未验证 提交 a579b845 编写于 作者: N Netfan 提交者: GitHub

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

上级 43e4c219
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册