diff --git a/package.json b/package.json index 9341362e9..e6824771b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fineui", - "version": "2.0.20220309184345", + "version": "2.0.20220310140337", "description": "fineui", "main": "dist/fineui.min.js", "types": "dist/lib/index.d.ts", diff --git a/src/core/4.widget.js b/src/core/4.widget.js index 2d5c3d8da..bddc7caba 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -570,12 +570,12 @@ throw new Error("组件:组件名已存在,不能进行添加"); } widget._setParent && widget._setParent(this); - // if(!this.isEnabled()){ - // widget._setEnable(false); - // } - // if(!this.isValid()){ - // widget._setValid(false); - // } + if (this.options.disabled) { + widget.options && (widget.options.disabled = true); + } + if (this.options.invalid) { + widget.options && (widget.options.invalid = true); + } widget.on(BI.Events.DESTROY, function () { BI.remove(self._children, this); }); diff --git a/src/less/base/tree/tree.expander.less b/src/less/base/tree/tree.expander.less index 371e39eec..76a77a655 100644 --- a/src/less/base/tree/tree.expander.less +++ b/src/less/base/tree/tree.expander.less @@ -13,6 +13,9 @@ } .bi-theme-dark { + .bi-tree-expander-popup.line:before { + border-left: 1px dashed @color-bi-border-tree-expander-popup-line-theme-dark; + } .bi-tree-expander-popup.line.solid:before { border-left: 1px solid @color-bi-border-tree-expander-popup-line-theme-dark; }