From 5c6678662849293629c80a453339add569859e4a Mon Sep 17 00:00:00 2001 From: zsmj Date: Thu, 20 Oct 2022 10:13:52 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-13169=20feat:=20=E6=88=96=E8=AE=B8?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E9=80=9A=E8=BF=87setValid=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E7=9A=84=E9=94=99=E8=AF=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/editor/editor.js | 5 +++++ src/widget/editor/editor.text.js | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/base/single/editor/editor.js b/src/base/single/editor/editor.js index ac9e779e9..95e863430 100644 --- a/src/base/single/editor/editor.js +++ b/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()); }, diff --git a/src/widget/editor/editor.text.js b/src/widget/editor/editor.text.js index 850ad257c..c2da87b02 100644 --- a/src/widget/editor/editor.text.js +++ b/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); },