king
2021-09-24 4ba687dc163413237c68e22f9b994c65c0e937e6
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}