소스 검색

修改表单渲染核心组件

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>