From 753ac5f57b10588e225c1d82203b13a81bc9c9a7 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 03 十二月 2020 18:36:26 +0800
Subject: [PATCH] 2020-12-03

---
 src/tabviews/zshare/normalTable/index.jsx |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/tabviews/zshare/normalTable/index.jsx b/src/tabviews/zshare/normalTable/index.jsx
index 73ab9d6..e606eb0 100644
--- a/src/tabviews/zshare/normalTable/index.jsx
+++ b/src/tabviews/zshare/normalTable/index.jsx
@@ -110,7 +110,7 @@
       if (item.type === 'colspan' && item.unfold === 'true') {
         cell = {title: item.label, children: []}
 
-        item.subColumn.forEach(col => {
+        item.subcols.forEach(col => {
 
           if (col.rowspan === 'true') {
             rowspan = col
@@ -617,12 +617,12 @@
         </div>
       )
     } else if (item.type === 'colspan') {
-      if (item.subColumn.length === 0) return ''
+      if (item.subcols.length === 0) return ''
       let ordertype = item.order
       let contents = []
       let images = []
 
-      item.subColumn.forEach(col => {
+      item.subcols.forEach(col => {
         if (!col.field || !record.hasOwnProperty(col.field)) return
         
         if (col.type === 'number') {
@@ -885,7 +885,7 @@
     let index = ''
     let _activeIndex = null
     if (selectedRowKeys.length > 0) {
-      index = selectedRowKeys[selectedRowKeys.length - 1]
+      index = selectedRowKeys.slice(-1)[0]
     }
 
     if (setting.tableType === 'checkbox') {
@@ -918,7 +918,7 @@
       if (newkeys.includes(index)) {
         newkeys = newkeys.filter(item => item !== index)
         if (newkeys.length > 0) {
-          _index = newkeys[newkeys.length - 1]
+          _index = newkeys.slice(-1)[0]
         }
         this.changedata(_index)
       } else {

--
Gitblit v1.8.0