From 82287c917c82de4117a21c004c61ae8394f0fed1 Mon Sep 17 00:00:00 2001 From: "Jimmy.Chai" Date: Fri, 2 Apr 2021 10:58:36 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-7314=20refactor=EF=BC=9A=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/button/buttons/button.image.ts | 10 ++-------- typescript/core/widget.ts | 4 ++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/typescript/base/single/button/buttons/button.image.ts b/typescript/base/single/button/buttons/button.image.ts index 997153a11..5c9a34403 100644 --- a/typescript/base/single/button/buttons/button.image.ts +++ b/typescript/base/single/button/buttons/button.image.ts @@ -4,13 +4,9 @@ export declare class ImageButton extends BasicButton { static xtype: string; static EVENT_CHANGE: string; - setWidth(w: number): void; + setImageWidth(w: number | string): void; - setHeight(h: number): void; - - setImageWidth(w: number): void; - - setImageHeight(h: number): void; + setImageHeight(h: number | string): void; getImageWidth(): number; @@ -19,6 +15,4 @@ export declare class ImageButton extends BasicButton { setSrc(src: string): void; getSrc(): string; - - doClick(): void; } diff --git a/typescript/core/widget.ts b/typescript/core/widget.ts index cc0675947..6871bf09b 100644 --- a/typescript/core/widget.ts +++ b/typescript/core/widget.ts @@ -600,12 +600,12 @@ export declare class Widget extends OB { /** * 设置宽度 */ - setWidth(w: number): void; + setWidth(w: number | string): void; /** * 设置高度 */ - setHeight(h: number): void; + setHeight(h: number | string): void; /** * 设置可用