ZaiZai 1 jaar geleden
bovenliggende
commit
97554671bf
1 gewijzigde bestanden met toevoegingen van 7 en 8 verwijderingen
  1. 7 8
      src/global/components/table-form/index.vue

+ 7 - 8
src/global/components/table-form/index.vue

@@ -58,14 +58,13 @@ const formRegExpJson = ref({})
 const tableFormStyle = computed(() => `width: ${props.width}; height: ${props.height};`)
 
 // 监听属性变化
-watch(() => [props.pkey, props.noTip, props.scroll, props.loading, props.pid],
-    ([pkey, tip, scroll, loading, pid]) => {
-        keyId.value = pkey
-        noTips.value = tip
-        isScroll.value = scroll
-        isLoading.value = loading
-        activeKey.value = pid
-    })
+watch(() => [props.pkey, props.noTip, props.scroll, props.loading, props.pid], ([pkey, tip, scroll, loading, pid]) => {
+    keyId.value = pkey
+    noTips.value = tip
+    isScroll.value = scroll
+    isLoading.value = loading
+    activeKey.value = pid
+})
 
 watch(() => props.html, (html) => {
     excelHtml.value = html