From a428e74e48fae14dc4861c58a15a05bf641220a5 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 21 Jun 2019 16:11:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8C=89=E7=85=A7comment=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/editor/editor.textarea.js | 6 ++---- .../multilayersingletree/multilayersingletree.leveltree.js | 5 ++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/base/single/editor/editor.textarea.js b/src/base/single/editor/editor.textarea.js index 11a539c3a..9b51b63c7 100644 --- a/src/base/single/editor/editor.textarea.js +++ b/src/base/single/editor/editor.textarea.js @@ -11,8 +11,8 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { value: "" }); }, - _init: function () { - BI.TextAreaEditor.superclass._init.apply(this, arguments); + + render: function() { var o = this.options, self = this; this.content = BI.createWidget({ type: "bi.layout", @@ -67,8 +67,6 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { if (BI.isNotNull(o.style)) { this.setStyle(o.style); } - // REPORT-18438 调用_setEnable的时候this.content还为创建, 所以这边需要主动调用下 - this.setEnable(!o.disabled); this._checkWaterMark(); }, diff --git a/src/widget/multilayersingletree/multilayersingletree.leveltree.js b/src/widget/multilayersingletree/multilayersingletree.leveltree.js index ced457acf..8b897354e 100644 --- a/src/widget/multilayersingletree/multilayersingletree.leveltree.js +++ b/src/widget/multilayersingletree/multilayersingletree.leveltree.js @@ -18,8 +18,11 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { }, _init: function () { + var o = this.options; BI.MultiLayerSingleLevelTree.superclass._init.apply(this, arguments); + this.storeValue = o.value; + this.initTree(this.options.items); this.check(); @@ -106,7 +109,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { el: { type: "bi.loader", - isDefaultInit: false, + isDefaultInit: o.itemsCreator !== BI.emptyFn, chooseType: o.chooseType, el: { type: "bi.button_tree",