Browse Source

DESIGN-130 checkbox灰化样式

es6
windy 3 years ago
parent
commit
d960d53fab
  1. 2
      src/case/ztree/jquery.ztree.excheck-3.5.js
  2. 9
      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) {

9
src/less/base/tree/ztree.less

@ -165,7 +165,14 @@
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;
}
}
}
&.bi-half-button {

Loading…
Cancel
Save