Browse Source

Pull request #2104: CHART-19948 fix:部分选中时显示半选按钮

Merge in VISUAL/fineui from ~CLAIRE.TANG/fineui:master to master

* commit 'bd9fe547068c10fda1ff50956d1a6f573a22291f':
  BI-92646 fix:选色控件色值小写
  CHART-19948 fix:部分选中时显示半选按钮
  CHART-19948 fix:部分选中时显示半选按钮
es6
Claire.Tang 3 years ago
parent
commit
1e8630d462
  1. 2
      src/case/colorchooser/colorchooser.js
  2. 2
      src/case/toolbar/toolbar.multiselect.js

2
src/case/colorchooser/colorchooser.js

@ -19,7 +19,7 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
_init: function () {
var self = this, o = this.options;
BI.ColorChooser.superclass._init.apply(this, arguments);
o.value = o.value || "";
o.value = (o.value || "").toLowerCase();
this.combo = BI.createWidget({
type: "bi.combo",
element: this,

2
src/case/toolbar/toolbar.multiselect.js

@ -130,7 +130,7 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
setValue: function (selectedValues) {
BI.MultiSelectBar.superclass.setValue.apply(this, arguments);
var isAllChecked = this.options.isAllCheckedBySelectedValue.apply(this, arguments);
this._setSelected(isAllChecked);
this.setSelected(isAllChecked);
!isAllChecked && this.setHalfSelected(this.options.isHalfCheckedBySelectedValue.apply(this, arguments));
},

Loading…
Cancel
Save