Browse Source

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

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

* commit '1bb8913a1a853cb6bb6aca99a153e3b43ab6bd42':
  BI-105186:复选下拉框全选逻辑判断错误,type:2设置全选时,判断全选按钮选择状态需考虑选项
research/test
Aeolus.Zhang 3 years ago
parent
commit
8037b0e80a
  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