Skip to content

Commit

Permalink
ver. 1.12.20
Browse files Browse the repository at this point in the history
  • Loading branch information
光弘 committed Mar 28, 2017
1 parent 3df6232 commit 53e3c7f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

---

## 1.12.19

* `NEW` add new prop `onSave`

## 1.12.18

* `NEW` `column.actions` can be a function
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uxcore-table",
"version": "1.12.19",
"version": "1.12.20",
"description": "table ui component for react",
"repository": "https://github.com/uxcore/uxcore-table.git",
"author": "zhouquan.yezq",
Expand Down
9 changes: 0 additions & 9 deletions src/Cell/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@ const fieldsMap = {

class Cell extends React.Component {

componentDidMount() {
const me = this;
if (me.props.column.type === 'checkbox'
|| me.props.column.type === 'checkboxSelector'
|| me.props.column.type === 'radioSelector') {
me.props.changeSelected(me.getCellData(), me.props.rowIndex, true);
}
}

shouldComponentUpdate(nextProps) {
// 需要考虑的 prop 包括
// column, rowData, rowIndex(s), index(s), cellIndex(s), hasSubComp(s)
Expand Down

0 comments on commit 53e3c7f

Please sign in to comment.