From 52f43dbb9ae11013bf5513b6d56c3e703fa93f68 Mon Sep 17 00:00:00 2001 From: fay Date: Tue, 19 Jan 2021 14:07:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E4=B8=80=E4=B8=AA=E6=8E=A7=E5=88=B6icon=E7=9A=84?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/editor/editor.search.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/widget/editor/editor.search.js b/src/widget/editor/editor.search.js index 8eef89f2f..97e77c086 100644 --- a/src/widget/editor/editor.search.js +++ b/src/widget/editor/editor.search.js @@ -183,6 +183,14 @@ BI.SearchEditor = BI.inherit(BI.Widget, { isValid: function () { return this.editor.isValid(); + }, + + showClearIcon: function () { + this.clear.visible(); + }, + + hideClearIcon: function () { + this.clear.invisible(); } }); BI.SearchEditor.EVENT_CHANGE = "EVENT_CHANGE"; From 56e81d9dad0403b377858e53338e304b6aed23a2 Mon Sep 17 00:00:00 2001 From: fay Date: Tue, 19 Jan 2021 14:08:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/widget/editor/editor.search.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/typescript/widget/editor/editor.search.ts b/typescript/widget/editor/editor.search.ts index 7e5006437..09566c33a 100644 --- a/typescript/widget/editor/editor.search.ts +++ b/typescript/widget/editor/editor.search.ts @@ -38,4 +38,8 @@ export declare class SearchEditor extends Widget { isEditing(): boolean; isValid(): boolean; + + showClearIcon(): void; + + hideClearIcon(): void; }