fixed: 修改多选示例
This commit is contained in:
parent
3a3df49637
commit
264a51b571
|
@ -113,26 +113,26 @@ export class Demo12 extends Component {
|
||||||
// self.props.onSelIds(selIds);
|
// self.props.onSelIds(selIds);
|
||||||
};
|
};
|
||||||
renderColumnsMultiSelect(columns) {
|
renderColumnsMultiSelect(columns) {
|
||||||
// const { data,checkedArray } = this.state;
|
const { data,checkedArray } = this.state;
|
||||||
const { multiSelect } = this.props;
|
const { multiSelect } = this.props;
|
||||||
let select_column = {};
|
let select_column = {};
|
||||||
// let indeterminate_bool = false;
|
let indeterminate_bool = false;
|
||||||
// let indeterminate_bool1 = true;
|
// let indeterminate_bool1 = true;
|
||||||
if (multiSelect && multiSelect.type === "checkbox") {
|
if (multiSelect && multiSelect.type === "checkbox") {
|
||||||
// let i = checkedArray.length;
|
let i = checkedArray.length;
|
||||||
// while(i--){
|
while(i--){
|
||||||
// if(checkedArray[i]){
|
if(checkedArray[i]){
|
||||||
// indeterminate_bool = true;
|
indeterminate_bool = true;
|
||||||
// break;
|
break;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
let defaultColumns = [
|
let defaultColumns = [
|
||||||
{
|
{
|
||||||
title: (
|
title: (
|
||||||
<Checkbox
|
<Checkbox
|
||||||
className="table-checkbox"
|
className="table-checkbox"
|
||||||
checked={this.state.checkedAll}
|
checked={this.state.checkedAll}
|
||||||
|
indeterminate={indeterminate_bool&&!this.state.checkedAll}
|
||||||
onHandleChange={this.onAllCheckChange}
|
onHandleChange={this.onAllCheckChange}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -42,7 +42,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bee-animate": "latest",
|
"bee-animate": "latest",
|
||||||
"bee-button": "latest",
|
"bee-button": "latest",
|
||||||
"bee-checkbox": "^0.2.2",
|
"bee-checkbox": "^0.2.4",
|
||||||
"bee-form-control": "^0.1.8",
|
"bee-form-control": "^0.1.8",
|
||||||
"bee-icon": "0.0.5",
|
"bee-icon": "0.0.5",
|
||||||
"bee-input-group": "^0.1.12",
|
"bee-input-group": "^0.1.12",
|
||||||
|
|
Loading…
Reference in New Issue