From 4ba687dc163413237c68e22f9b994c65c0e937e6 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 24 九月 2021 18:39:13 +0800
Subject: [PATCH] 2021-09-24

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

diff --git a/src/tabviews/zshare/normalTable/index.jsx b/src/tabviews/zshare/normalTable/index.jsx
index 7aa11e6..9c9dc2f 100644
--- a/src/tabviews/zshare/normalTable/index.jsx
+++ b/src/tabviews/zshare/normalTable/index.jsx
@@ -19,11 +19,12 @@
 
 class BodyRow extends React.Component {
   shouldComponentUpdate (nextProps) {
-    return this.props.className !== nextProps.className
+    return !is(fromJS(this.props.record), fromJS(nextProps.record)) || this.props.className !== nextProps.className
   }
 
   render() {
-    return <tr {...this.props}/>
+    const { record, ...resProps } = this.props
+    return <tr {...resProps}/>
   }
 }
 
@@ -1254,9 +1255,17 @@
           loading={this.props.loading}
           scroll={{ x: '100%', y: height }}
           onRow={(record, index) => {
-            return {
-              onClick: () => {this.changeRow(record, index)},
-              onDoubleClick: () => {this.doubleClickLine(record)}
+            if (setting.tableMode === 'fast') {
+              return {
+                record,
+                onClick: () => {this.changeRow(record, index)},
+                onDoubleClick: () => {this.doubleClickLine(record)}
+              }
+            } else {
+              return {
+                onClick: () => {this.changeRow(record, index)},
+                onDoubleClick: () => {this.doubleClickLine(record)}
+              }
             }
           }}
           onChange={this.changeTable}

--
Gitblit v1.8.0