publish 1.0.10
This commit is contained in:
parent
60d951967d
commit
498c0a8ac0
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bee-table",
|
||||
"version": "1.0.9",
|
||||
"version": "1.0.10",
|
||||
"description": "Table ui component for react",
|
||||
"keywords": [
|
||||
"react",
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue