Browse Source

Pull request #2477: DESIGN-130 checkbox灰化样式

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit 'e0da748653547e563268c5af450ab39ac4e552be':
  更新下
  DESIGN-130 checkbox灰化样式
es6
windy 3 years ago
parent
commit
201f6815ba
  1. 2
      src/case/ztree/jquery.ztree.excheck-3.5.js
  2. 12
      src/less/base/tree/ztree.less

2
src/case/ztree/jquery.ztree.excheck-3.5.js

@ -455,7 +455,7 @@
chClass += ' bi-checkbox checkbox-content';
break;
}
return chClass;
return chClass + (node.disabled ? " disabled" : "");
},
repairAllChk: function(setting, checked) {
if (setting.check.enable && setting.check.chkStyle === consts.checkbox.STYLE) {

12
src/less/base/tree/ztree.less

@ -165,7 +165,17 @@
box-sizing: border-box;
&.active {
background-color: @color-bi-background-highlight;
border-color: @color-bi-border-highlight;;
border-color: @color-bi-border-highlight;
}
&.disabled {
border: 1px solid @color-bi-border-disabled;
background-color: @color-bi-background-disabled;
&.active {
border-color: @color-bi-border-disabled;
&:after {
opacity: 0;
}
}
}
}
&.bi-half-button {

Loading…
Cancel
Save