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; /** * 设置可用