Browse Source

Merge branch master into develop-1.0.0

pull/1508/head
afc163 9 years ago
parent
commit
f9153e7b88
  1. 2
      components/table/demo/row-selection.md
  2. 2
      components/table/index.jsx

2
components/table/demo/row-selection.md

@ -48,7 +48,7 @@ const rowSelection = {
},
onSelectAll(selected, selectedRows, changeRows) {
console.log(selected, selectedRows, changeRows);
}
},
};
ReactDOM.render(<Table rowSelection={rowSelection} columns={columns} dataSource={data} />

2
components/table/index.jsx

@ -64,7 +64,7 @@ export default class Table extends React.Component {
this.state = {
//
selectedRowKeys: props.selectedRowKeys || [],
selectedRowKeys: (props.rowSelection || {}).selectedRowKeys || [],
filters: this.getFiltersFromColumns(),
selectionDirty: false,
...this.getSortStateFromColumns(),

Loading…
Cancel
Save