publish 1.0.10

This commit is contained in:
huyueb 2018-01-03 16:14:01 +08:00
parent 60d951967d
commit 498c0a8ac0
6 changed files with 20 additions and 22 deletions

View File

@ -1,5 +1,10 @@
<a name="1.0.10"></a>
## [1.0.10](https://github.com/tinper-bee/bee-table/compare/v1.0.9...v1.0.10) (2018-01-03)
<a name="1.0.9"></a>
## [1.0.9](https://github.com/tinper-bee/bee-table/compare/1.0.8...1.0.9) (2018-01-03)
## [1.0.9](https://github.com/tinper-bee/bee-table/compare/1.0.9...v1.0.9) (2018-01-03)
### Bug Fixes

View File

@ -152,13 +152,9 @@ function multiSelect(Table) {
data = props.data;
for (var i = 0; i < data.length; i++) {
var bool = selectDisabled(data[i], i);
var bool = selectDisabled && selectDisabled(data[i], i) || false;
if (!bool) {
if (selectedRow && selectedRow(data[i], i)) {
checkedObj[data[i]["key"]] = true;
} else {
checkedObj[data[i]["key"]] = false;
}
checkedObj[data[i]["key"]] = selectedRow && selectedRow(data[i], i) || false;
}
}
return checkedObj;

8
dist/demo.js vendored
View File

@ -11983,13 +11983,9 @@
data = props.data;
for (var i = 0; i < data.length; i++) {
var bool = selectDisabled(data[i], i);
var bool = selectDisabled && selectDisabled(data[i], i) || false;
if (!bool) {
if (selectedRow && selectedRow(data[i], i)) {
checkedObj[data[i]["key"]] = true;
} else {
checkedObj[data[i]["key"]] = false;
}
checkedObj[data[i]["key"]] = selectedRow && selectedRow(data[i], i) || false;
}
}
return checkedObj;

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "bee-table",
"version": "1.0.9",
"version": "1.0.10",
"description": "Table ui component for react",
"keywords": [
"react",

View File

@ -37,7 +37,11 @@ export default function multiSelect(Table) {
let props = this.props,
{ selectDisabled, selectedRow, data } = props,
checkedObj = {};
if (nextProps.data !== data || nextProps.selectDisabled !== selectDisabled || nextProps.selectedRow !== selectedRow) {
if (
nextProps.data !== data ||
nextProps.selectDisabled !== selectDisabled ||
nextProps.selectedRow !== selectedRow
) {
checkedObj = this.initCheckedObj(nextProps);
this.setState({
checkedAll: false,
@ -51,13 +55,10 @@ export default function multiSelect(Table) {
let checkedObj = {},
{ selectDisabled, selectedRow, data } = props;
for (var i = 0; i < data.length; i++) {
let bool = selectDisabled(data[i], i);
let bool = (selectDisabled && selectDisabled(data[i], i)) || false;
if (!bool) {
if(selectedRow&&selectedRow(data[i], i)){
checkedObj[data[i]["key"]] = true;
}else{
checkedObj[data[i]["key"]] = false;
}
checkedObj[data[i]["key"]] =
(selectedRow && selectedRow(data[i], i)) || false;
}
}
return checkedObj;