Browse Source

Pull request #41794: BI-105186:复选下拉框全选逻辑判断错误,type:2设置全选时,判断全选按钮选择状态需考虑选项

Merge in DEC/fineui from ~AEOLUS.ZHANG/decision--fineui:release/11.0 to release/11.0

* commit 'c863cd967c5890d3b8b821eeceb867e0014a8eb0':
  BI-105186:复选下拉框全选逻辑判断错误,type:2设置全选时,判断全选按钮选择状态需考虑选项
master
Aeolus.Zhang 3 years ago
parent
commit
521cd19f7d
  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 hasNext = this.list.hasNext();
var isAlreadyAllSelected = this.toolbar.isSelected(); var isAlreadyAllSelected = this.toolbar.isSelected();
var isHalf = selectLength > 0 && notSelectLength > 0; var isHalf = selectLength > 0 && notSelectLength > 0;
var allSelected = isAlreadyAllSelected; var allSelected = selectLength > 0 && notSelectLength <= 0 && (!hasNext || isAlreadyAllSelected);
if (this.isAllSelected() === false) { if (this.isAllSelected() === false) {
hasNext && (isHalf = selectLength > 0); hasNext && (isHalf = selectLength > 0);

Loading…
Cancel
Save