Browse Source

修改表单渲染核心组件

ZaiZai 2 years ago
parent
commit
aa01be4417
1 changed files with 9 additions and 1 deletions
  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>