king
2021-02-03 365ea069f179ee71a7a8cc7785ccd2d86bd4881c
src/tabviews/zshare/normalTable/index.jsx
@@ -922,7 +922,7 @@
      index = selectedRowKeys.slice(-1)[0]
    }
    if (setting.tableType === 'checkbox') {
    if (setting.tableType === 'checkbox' || setting.tableType === 'radio') {
      _activeIndex = index === '' ? null : index
    }
@@ -946,7 +946,7 @@
    if (this.props.setting.tableType === 'radio') {
      newkeys = [index]
      this.changedata(index)
      this.setState({ selectedRowKeys: newkeys })
      this.setState({ selectedRowKeys: newkeys, activeIndex: index })
    } else {
      let _index = ''
      if (newkeys.includes(index)) {
@@ -1155,7 +1155,7 @@
          dataSource={_data}
          rowClassName={(record) => {
            let className = ''
            if (setting.tableType === 'checkbox' && record.key === activeIndex) {
            if ((setting.tableType === 'checkbox' || setting.tableType === 'radio') && record.key === activeIndex) {
              className = 'mk-row-active '
            }