From 721e6f70451fe81fbf029fbfc7378a7f412bb3f6 Mon Sep 17 00:00:00 2001 From: zsmj Date: Wed, 21 Sep 2022 11:15:28 +0800 Subject: [PATCH 1/2] =?UTF-8?q?KERNEL-12866=20feat:=20BI.Switch=20?= =?UTF-8?q?=E5=AF=B9=E5=A4=96=E5=8F=91=E4=BA=8B=E4=BB=B6=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E5=80=99=E5=B8=A6=E4=B8=8Aselected=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/button/switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/case/button/switch.js b/src/case/button/switch.js index 2cfbf8839..1ca2bd2b6 100644 --- a/src/case/button/switch.js +++ b/src/case/button/switch.js @@ -77,7 +77,7 @@ BI.Switch = BI.inherit(BI.BasicButton, { doClick: function () { BI.Switch.superclass.doClick.apply(this, arguments); - this.fireEvent(BI.Switch.EVENT_CHANGE); + this.fireEvent(BI.Switch.EVENT_CHANGE, this.isSelected()); } }); BI.Switch.EVENT_CHANGE = "EVENT_CHANGE"; From 792736320173ad27a8f3b444149ebdbe9dc00176 Mon Sep 17 00:00:00 2001 From: zsmj Date: Wed, 21 Sep 2022 11:17:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=97=A0JIRA=20=20=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/label/abstract.label.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/base/single/label/abstract.label.ts b/typescript/base/single/label/abstract.label.ts index 431d79ab6..60d6ee8fc 100644 --- a/typescript/base/single/label/abstract.label.ts +++ b/typescript/base/single/label/abstract.label.ts @@ -10,7 +10,7 @@ export declare class AbstractLabel extends Single { textHeight?: number | null; highLight?: boolean; handler?: Function | null; - text?: string; + text?: string | ((context: any) => string); } & Single['props'] doRedMark(...args: any[]): void;