From c9b0b820272d4bd8cfcefa3a8c67720124253a6b Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期一, 25 三月 2024 15:07:39 +0800
Subject: [PATCH] 表格树

---
 Source/ProjectWeb/src/components/dynamic-components/dynamic-TreeTable.vue |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-TreeTable.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-TreeTable.vue
index a545bd7..28b19a6 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-TreeTable.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-TreeTable.vue
@@ -72,11 +72,11 @@
         currentPage: 1,
         total: 50,
       },
-      simplePage:{
+      simplePage: {
         currentPage: 1,
         total: 100,
-        pagerCount:4,
-        layout:"prev, pager, next"
+        pagerCount: 4,
+        layout: "prev, pager, next"
       },
       //琛ㄦ牸鏍�
       form: {},
@@ -86,7 +86,7 @@
         editBtn: false,
         delBtn: false,
         selection: true,
-        tip:false,
+        tip: false,
         calcHeight: 15,
         indexFixed: false,
         menuFixed: false,
@@ -183,13 +183,13 @@
       TreeSelectList: []
     }
   },
-  watch:{
-    parentHeight:{
+  watch: {
+    parentHeight: {
       handler(newval) {
-        if(newval >50){
-          this.option.height=newval;
+        if (newval > 50) {
+          this.option.height = newval;
           //doLayout涓嶇敓鏁堬紝鎵嬪姩璁剧疆琛ㄦ牸楂樺害
-          this.$children[0].$children[1].$children[1].$children[0].$el.style.height=newval+'px';
+          this.$children[0].$children[1].$children[1].$children[0].$el.style.height = newval + 'px';
           /*this.$nextTick(() => {
             if (this.$refs.dataTable && this.$refs.dataTable.doLayout) {
               this.$refs.dataTable.doLayout();
@@ -198,9 +198,9 @@
         }
       }
     },
-    isShow:{
+    isShow: {
       handler(newval) {
-        if(newval && this.$el.clientHeight>50) {
+        if (newval && this.$el.clientHeight > 50) {
           this.parentHeight = this.$el.clientHeight - this.$children[0].$children[1].$children[0].$el.clientHeight - this.$children[0].$children[2].$el.clientHeight - 5;
         }
       }

--
Gitblit v1.9.3