浏览代码

fix: 使 Dialog 组件支持 Dialog 内部嵌套另一个 Dialog,需要使用 append-to-body 属性

puhui999 2 年之前
父节点
当前提交
5064845d4e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/Dialog/src/Dialog.vue

+ 1 - 1
src/components/Dialog/src/Dialog.vue

@@ -14,7 +14,7 @@ const props = defineProps({
 })
 
 const getBindValue = computed(() => {
-  const delArr: string[] = ['fullscreen', 'title', 'maxHeight']
+  const delArr: string[] = ['fullscreen', 'title', 'maxHeight', 'appendToBody']
   const attrs = useAttrs()
   const obj = { ...attrs, ...props }
   for (const key in obj) {