Browse Source

BI-17963

1. bi.code_editor应该在初始化时应该根据传入的style初始化样式(该组件提供了setStyle getStyle方法)
2. bi.textarea_editor存在属性style按照逻辑应该调用setStyle
es6
MrErHu 7 years ago
parent
commit
fc9b243e61
  1. 62
      dist/_fineui.min.js
  2. 8
      dist/base.js
  3. 8
      dist/bundle.js
  4. 62
      dist/bundle.min.js
  5. 62
      dist/fineui.min.js
  6. 6
      src/base/single/editor/editor.code.js
  7. 2
      src/base/single/editor/editor.textarea.js

62
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

8
dist/base.js vendored

@ -18184,6 +18184,12 @@ BI.CodeEditor = BI.inherit(BI.Single, {
self.setValue(o.value); self.setValue(o.value);
}); });
} }
if (BI.isNotNull(o.style)) {
BI.nextTick(function () {
self.setStyle(o.style);
});
}
}, },
_setEnable: function (b) { _setEnable: function (b) {
@ -18769,7 +18775,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
self.setValue(o.value); self.setValue(o.value);
} }
if (BI.isNotNull(o.style)) { if (BI.isNotNull(o.style)) {
self.setValue(o.style); self.setStyle(o.style);
} }
this._checkWaterMark(); this._checkWaterMark();
}, },

8
dist/bundle.js vendored

@ -53705,6 +53705,12 @@ BI.CodeEditor = BI.inherit(BI.Single, {
self.setValue(o.value); self.setValue(o.value);
}); });
} }
if (BI.isNotNull(o.style)) {
BI.nextTick(function () {
self.setStyle(o.style);
});
}
}, },
_setEnable: function (b) { _setEnable: function (b) {
@ -54290,7 +54296,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
self.setValue(o.value); self.setValue(o.value);
} }
if (BI.isNotNull(o.style)) { if (BI.isNotNull(o.style)) {
self.setValue(o.style); self.setStyle(o.style);
} }
this._checkWaterMark(); this._checkWaterMark();
}, },

62
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

62
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

6
src/base/single/editor/editor.code.js

@ -93,6 +93,12 @@ BI.CodeEditor = BI.inherit(BI.Single, {
self.setValue(o.value); self.setValue(o.value);
}); });
} }
if (BI.isNotNull(o.style)) {
BI.nextTick(function () {
self.setStyle(o.style);
});
}
}, },
_setEnable: function (b) { _setEnable: function (b) {

2
src/base/single/editor/editor.textarea.js

@ -65,7 +65,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
self.setValue(o.value); self.setValue(o.value);
} }
if (BI.isNotNull(o.style)) { if (BI.isNotNull(o.style)) {
self.setValue(o.style); self.setStyle(o.style);
} }
this._checkWaterMark(); this._checkWaterMark();
}, },

Loading…
Cancel
Save