固定列和checkbox一起使用
This commit is contained in:
parent
a1d039fc51
commit
6714dbce76
|
@ -20,3 +20,8 @@
|
||||||
.selected{
|
.selected{
|
||||||
background: rgb(227,242,253);
|
background: rgb(227,242,253);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.demo25{
|
||||||
|
width: 500px;
|
||||||
|
height: 100%;
|
||||||
|
}
|
|
@ -114,12 +114,12 @@ class Demo25 extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return <DragColumnTable columns={columns25} data={data25}
|
return <div className="demo25"><DragColumnTable columns={columns25} data={data25}
|
||||||
bordered
|
bordered
|
||||||
dragborder={true}
|
dragborder={true}
|
||||||
scroll={{x:700}}
|
scroll={{x:700}}
|
||||||
multiSelect={{type: "checkbox"}}
|
multiSelect={{type: "checkbox"}}
|
||||||
/>;
|
/></div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Demo25.defaultProps = defaultProps25;
|
Demo25.defaultProps = defaultProps25;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -476,7 +476,6 @@ class Table extends Component{
|
||||||
}
|
}
|
||||||
|
|
||||||
getLeftFixedTable() {
|
getLeftFixedTable() {
|
||||||
debugger;
|
|
||||||
return this.getTable({
|
return this.getTable({
|
||||||
columns: this.columnManager.leftColumns(),
|
columns: this.columnManager.leftColumns(),
|
||||||
fixed: 'left',
|
fixed: 'left',
|
||||||
|
|
|
@ -39,7 +39,6 @@ class TableHeader extends Component{
|
||||||
let newItem = item.key != "checkbox"?ObjectAssign(item):item;
|
let newItem = item.key != "checkbox"?ObjectAssign(item):item;
|
||||||
_row.push(newItem);
|
_row.push(newItem);
|
||||||
});
|
});
|
||||||
debugger;
|
|
||||||
this.drag.data = _row;//JSON.parse(JSON.stringify(this.props.rows[0]));
|
this.drag.data = _row;//JSON.parse(JSON.stringify(this.props.rows[0]));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue