Browse Source

KERNEL-7314 refactor:修改类型

es6
Jimmy.Chai 4 years ago
parent
commit
82287c917c
  1. 10
      typescript/base/single/button/buttons/button.image.ts
  2. 4
      typescript/core/widget.ts

10
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;
}

4
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;
/**
*

Loading…
Cancel
Save