diff --git a/src/base/single/editor/editor.js b/src/base/single/editor/editor.js index ac9e779e9..95e863430 100644 --- a/src/base/single/editor/editor.js +++ b/src/base/single/editor/editor.js @@ -344,6 +344,11 @@ BI.Editor = BI.inherit(BI.Single, { return this.editor.isValid(); }, + setValid: function (b) { + this.editor.setValid(b); + this._checkError(); + }, + destroyed: function () { BI.Bubbles.remove(this.getName()); }, diff --git a/src/core/wrapper/layout/responsive/responsive.flex.horizontal.js b/src/core/wrapper/layout/responsive/responsive.flex.horizontal.js index 70d7ddddb..592d50641 100644 --- a/src/core/wrapper/layout/responsive/responsive.flex.horizontal.js +++ b/src/core/wrapper/layout/responsive/responsive.flex.horizontal.js @@ -51,7 +51,7 @@ BI.ResponsiveFlexHorizontalLayout = BI.inherit(BI.FlexHorizontalLayout, { }, destroyed: function () { - this.unResize(); + this.unResize?.(); } }); BI.shortcut("bi.responsive_flex_horizontal", BI.ResponsiveFlexHorizontalLayout); diff --git a/src/less/base/tree/ztree.less b/src/less/base/tree/ztree.less index e300e0be4..1eb5896a6 100644 --- a/src/less/base/tree/ztree.less +++ b/src/less/base/tree/ztree.less @@ -67,6 +67,27 @@ border-left: 1px solid @border-color-dark-gray-line-theme-dark; } } + + &.bi-checkbox { + border: 1px solid @color-bi-border-checkbox-theme-dark; + + &.active { + background-color: @color-bi-background-active-checkbox-theme-dark; + border-color: @color-bi-border-hover-active-checkbox-theme-dark; + } + + &.disabled { + background-color: @color-bi-background-disabled-checkbox-theme-dark; + + &.active { + border-color: @color-bi-border-disabled-checkbox-theme-dark; + } + } + } + + &.bi-half-button { + border: 1px solid @color-bi-border-hover-active-checkbox-theme-dark; + } } .ztree li a { diff --git a/src/widget/editor/editor.text.js b/src/widget/editor/editor.text.js index 850ad257c..c2da87b02 100644 --- a/src/widget/editor/editor.text.js +++ b/src/widget/editor/editor.text.js @@ -138,6 +138,10 @@ BI.TextEditor = BI.inherit(BI.Widget, { return this.editor.isValid(); }, + setValid: function (b) { + this.editor.setValid(b); + }, + setValue: function (v) { this.editor.setValue(v); },