From d08fba77101b83f211738c722403506cc7dab50b Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 08 五月 2024 22:41:50 +0800
Subject: [PATCH] 2024-05-08

---
 src/menu/components/table/edit-table/index.jsx |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/menu/components/table/edit-table/index.jsx b/src/menu/components/table/edit-table/index.jsx
index b4e2f7f..b6bfbee 100644
--- a/src/menu/components/table/edit-table/index.jsx
+++ b/src/menu/components/table/edit-table/index.jsx
@@ -296,12 +296,19 @@
   updatecolumn = (config) => {
     config.absFields = []
     config.mergeCol = false
+    config.hasExtend = false
+    config.parCtrl = false
 
     let mapCol = (cols) => {
       cols.forEach(col => {
         if (col.type === 'number') {
           if (col.format === 'abs') {
             config.absFields.push(col.field)
+          }
+        } else if (col.type === 'extend') {
+          config.hasExtend = true
+          if (col.supField) {
+            config.parCtrl = true
           }
         } else if (col.type === 'colspan' && col.subcols) {
           mapCol(col.subcols)
@@ -316,6 +323,11 @@
         if (col.format === 'abs') {
           config.absFields.push(col.field)
         }
+      } else if (col.type === 'extend') {
+        config.hasExtend = true
+        if (col.supField) {
+          config.parCtrl = true
+        }
       } else if (col.type === 'colspan' && col.subcols) {
         mapCol(col.subcols)
       } else if (col.type === 'text') {

--
Gitblit v1.8.0