Browse Source

Merge pull request #42635 in DEC/fineui from release/11.0 to bugfix/11.0

* commit '15b7094e564ee6615b9b1a2c6cdb602d9b0f11a7':
  BI-105186:复选下拉框全选逻辑判断错误,type:2设置全选时,判断全选按钮选择状态需考虑选项
  BI-105186:复选下拉框全选逻辑判断错误,type:2设置全选时,判断全选按钮选择状态需考虑选项
research/test
superman 3 years ago
parent
commit
b7ae60c23c
  1. 2
      src/case/list/list.select.js

2
src/case/list/list.select.js

@ -94,7 +94,7 @@ BI.SelectList = BI.inherit(BI.Widget, {
var hasNext = this.list.hasNext();
var isAlreadyAllSelected = this.toolbar.isSelected();
var isHalf = selectLength > 0 && notSelectLength > 0;
var allSelected = isAlreadyAllSelected;
var allSelected = selectLength > 0 && notSelectLength <= 0 && (!hasNext || isAlreadyAllSelected);
if (this.isAllSelected() === false) {
hasNext && (isHalf = selectLength > 0);

Loading…
Cancel
Save