浏览代码

修改表单渲染核心组件

ZaiZai 2 年之前
父节点
当前提交
aa01be4417
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      src/components/table-form/index.vue

+ 9 - 1
src/components/table-form/index.vue

@@ -370,12 +370,20 @@ const isFormRegExp = async () => {
     }
 }
 
+//卸载渲染
+const unmountHtml = () => {
+    if (tableFormApp.value) {
+        tableFormApp.value?.unmount()
+    }
+}
+
 // 暴露出去
 defineExpose({
     getFormData,
     setFormData,
     getRegExpJson,
-    isFormRegExp
+    isFormRegExp,
+    unmountHtml
 })
 </script>