king
2021-09-24 4ba687dc163413237c68e22f9b994c65c0e937e6
2021-09-24
2个文件已修改
21 ■■■■ 已修改文件
src/tabviews/zshare/actionList/normalbutton/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/normalTable/index.jsx 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -715,7 +715,7 @@
                this.updateStatus('over')
                _resolve()
              })
            }, 20 * i)
            }, 100 * i)
          })
        })
        Promise.all(deffers).then(result => {
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}