From 032ddb30a8d9d884cc176a4a506580b4a1272586 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 26 十二月 2023 17:14:07 +0800
Subject: [PATCH] 模态框ui调整

---
 src/views/common/ztt-table.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/views/common/ztt-table.vue b/src/views/common/ztt-table.vue
index 70b8191..04f5297 100644
--- a/src/views/common/ztt-table.vue
+++ b/src/views/common/ztt-table.vue
@@ -164,7 +164,7 @@
         :span-method="objectSpanMethod"
         :header-cell-style="tableHeaderStyle"
         v-adaptive="{ bottomOffset: bottomOffset, fixedHeight: fixedHeight }"
-        height="100px"
+        height="300px"
         :class="[
           'commonTable',
           isGeneralSearch && !isEdit
@@ -568,6 +568,10 @@
         return 'id'
       }
     },
+    toolbarMaxLength: {
+      type: Number,
+      default: 5,
+    },
     // 琛ㄦ牸鍨嬪彿锛歮ini,medium,small
     tableSize: { type: String, default: 'small' },
     // 鏁版嵁璇锋眰鏂规硶
@@ -755,11 +759,11 @@
       return colList
     },
     getToolBarBtn() {
-      return this.table.toolbar ? this.table.toolbar.slice(0, 5) : []
+      return this.table.toolbar ? this.table.toolbar.slice(0, this.toolbarMaxLength) : []
     },
     getToolbarDown() {
-      return this.getToolBarBtn.length === 5
-        ? this.table.toolbar.slice(5, this.table.toolbar.length)
+      return this.getToolBarBtn.length == this.toolbarMaxLength
+        ? this.table.toolbar.slice(this.toolbarMaxLength, this.table.toolbar.length)
         : []
     },
     isRefreshBtn() {

--
Gitblit v1.9.3