Browse Source

fix: 按照comment修改

es6
windy 6 years ago
parent
commit
a428e74e48
  1. 6
      src/base/single/editor/editor.textarea.js
  2. 5
      src/widget/multilayersingletree/multilayersingletree.leveltree.js

6
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();
},

5
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",

Loading…
Cancel
Save