Browse Source

Pull request #2353: 无JIRA任务 bugfix

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '16a97beee59eafee99374df5e5d617cf8866cc64':
  bugfix
es6
guy 3 years ago
parent
commit
3d317cf7c5
  1. 4
      src/case/checkbox/check.arrownode.js
  2. 7
      src/case/checkbox/check.checkingmarknode.js

4
src/case/checkbox/check.arrownode.js

@ -5,7 +5,7 @@
BI.ArrowTreeGroupNodeCheckbox = BI.inherit(BI.IconButton, { BI.ArrowTreeGroupNodeCheckbox = BI.inherit(BI.IconButton, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.ArrowTreeGroupNodeCheckbox.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.ArrowTreeGroupNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-arrow-group-node-checkbox" extraCls: "bi-arrow-group-node-checkbox expander-right-font"
}); });
}, },
@ -18,4 +18,4 @@ BI.ArrowTreeGroupNodeCheckbox = BI.inherit(BI.IconButton, {
} }
} }
}); });
BI.shortcut("bi.arrow_group_node_checkbox", BI.ArrowTreeGroupNodeCheckbox); BI.shortcut("bi.arrow_group_node_checkbox", BI.ArrowTreeGroupNodeCheckbox);

7
src/case/checkbox/check.checkingmarknode.js

@ -6,14 +6,9 @@
BI.CheckingMarkNode = BI.inherit(BI.IconButton, { BI.CheckingMarkNode = BI.inherit(BI.IconButton, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend( BI.CheckingMarkNode.superclass._defaultConfig.apply(this, arguments), { return BI.extend( BI.CheckingMarkNode.superclass._defaultConfig.apply(this, arguments), {
extraCls: "check-mark-font"
}); });
}, },
_init: function () {
BI.CheckingMarkNode.superclass._init.apply(this, arguments);
this.setSelected(this.options.selected);
},
setSelected: function (v) { setSelected: function (v) {
BI.CheckingMarkNode.superclass.setSelected.apply(this, arguments); BI.CheckingMarkNode.superclass.setSelected.apply(this, arguments);
if(v === true) { if(v === true) {
@ -23,4 +18,4 @@ BI.CheckingMarkNode = BI.inherit(BI.IconButton, {
} }
} }
}); });
BI.shortcut("bi.checking_mark_node", BI.CheckingMarkNode); BI.shortcut("bi.checking_mark_node", BI.CheckingMarkNode);

Loading…
Cancel
Save