Browse Source

无JIRA任务 参数类型补充

es6
windy 4 years ago
parent
commit
ae86e137f5
  1. 8
      typescript/core/widget.ts

8
typescript/core/widget.ts

@ -42,8 +42,8 @@ export interface _Widget extends _OB {
element: {
width(): number;
height(): number;
width(width: number): _Widget['element'];
height(height: number): _Widget['element'];
width(width: number | string): _Widget['element'];
height(height: number | string): _Widget['element'];
[key: string]: any;
};
@ -444,8 +444,8 @@ export declare class Widget extends OB {
element: {
width(): number;
height(): number;
width(width: number): Widget['element'];
height(height: number): Widget['element'];
width(width: number | string): Widget['element'];
height(height: number | string): Widget['element'];
[key: string]: any;
};

Loading…
Cancel
Save