Browse Source

KERNEL-13169 feat: 或许可以通过setValid控制输入框的错误提示显示

es6
zsmj 2 years ago
parent
commit
5c66786628
  1. 5
      src/base/single/editor/editor.js
  2. 4
      src/widget/editor/editor.text.js

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

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

Loading…
Cancel
Save