解决demo13 key报错问题
This commit is contained in:
parent
12fc8fe084
commit
74dbebeba7
|
@ -637,7 +637,7 @@ class Table extends Component {
|
||||||
height={height}
|
height={height}
|
||||||
isHiddenExpandIcon={isHiddenExpandIcon}
|
isHiddenExpandIcon={isHiddenExpandIcon}
|
||||||
{...onHoverProps}
|
{...onHoverProps}
|
||||||
key={key}
|
key={"table_row_"+key+"_"+index}
|
||||||
hoverKey={key}
|
hoverKey={key}
|
||||||
ref={rowRef}
|
ref={rowRef}
|
||||||
store={this.store}
|
store={this.store}
|
||||||
|
|
|
@ -168,7 +168,6 @@ class TableRow extends Component{
|
||||||
} = this.props;
|
} = this.props;
|
||||||
let showSum = false;
|
let showSum = false;
|
||||||
let { className } = this.props;
|
let { className } = this.props;
|
||||||
|
|
||||||
if (this.state.hovered) {
|
if (this.state.hovered) {
|
||||||
className += ` ${clsPrefix}-hover`;
|
className += ` ${clsPrefix}-hover`;
|
||||||
}
|
}
|
||||||
|
@ -196,7 +195,7 @@ class TableRow extends Component{
|
||||||
cells.push(
|
cells.push(
|
||||||
<td
|
<td
|
||||||
className={`${clsPrefix}-expand-icon-cell`}
|
className={`${clsPrefix}-expand-icon-cell`}
|
||||||
key="rc-table-expand-icon-cell"
|
key={`rc-table-expand-icon-cell-${i}`}
|
||||||
>
|
>
|
||||||
{expandIcon}
|
{expandIcon}
|
||||||
</td>
|
</td>
|
||||||
|
@ -212,7 +211,7 @@ class TableRow extends Component{
|
||||||
indent={indent}
|
indent={indent}
|
||||||
index={index}
|
index={index}
|
||||||
column={columns[i]}
|
column={columns[i]}
|
||||||
key={columns[i].key || columns[i].dataIndex || i}
|
key={index + "_"+(columns[i].key || columns[i].dataIndex || i)}
|
||||||
fixed= {fixed}
|
fixed= {fixed}
|
||||||
showSum={showSum}
|
showSum={showSum}
|
||||||
expandIcon={(isColumnHaveExpandIcon) ? expandIcon : null}
|
expandIcon={(isColumnHaveExpandIcon) ? expandIcon : null}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
// import Checkbox from 'bee-checkbox';
|
|
||||||
import {ObjectAssign} from './util';
|
import {ObjectAssign} from './util';
|
||||||
/**
|
/**
|
||||||
* 参数: 过滤表头
|
* 参数: 过滤表头
|
||||||
|
@ -11,7 +10,7 @@ import {ObjectAssign} from './util';
|
||||||
|
|
||||||
export default function multiSelect(Table, Checkbox) {
|
export default function multiSelect(Table, Checkbox) {
|
||||||
|
|
||||||
return class NewMultiSelect extends Component {
|
return class MultiSelect extends Component {
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
prefixCls: "u-table-mult-select",
|
prefixCls: "u-table-mult-select",
|
||||||
getSelectedDataFunc:()=>{}
|
getSelectedDataFunc:()=>{}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
// import Checkbox from 'bee-checkbox';
|
|
||||||
import {ObjectAssign} from './util';
|
import {ObjectAssign} from './util';
|
||||||
/**
|
/**
|
||||||
* 参数: 过滤表头
|
* 参数: 过滤表头
|
||||||
|
|
Loading…
Reference in New Issue