From 4495c80cd084b3f2f9347417fb450d23e66d3199 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 17 Dec 2020 11:00:12 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E5=A3=B0?= =?UTF-8?q?=E6=98=8E=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/widget.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/typescript/core/widget.ts b/typescript/core/widget.ts index 7bc644721..fb39f1f65 100644 --- a/typescript/core/widget.ts +++ b/typescript/core/widget.ts @@ -40,8 +40,8 @@ export interface _Widget extends _OB { * 真实dom的类jQuery对象 */ element: { - width(): number; - height(): number; + width(width?: number): number; + height(height?: number): number; [key: string]: any; }; @@ -79,7 +79,7 @@ export interface _Widget extends _OB { * 初始化前 */ beforeInit?(cb: Function): void; - + /** * 创建前 */ @@ -479,7 +479,7 @@ export declare class Widget extends OB { * 初始化前 */ beforeInit?(cb: Function): void; - + /** * 创建前 */ From 2d60b74f1f08e608dbffa0f4fa8d4c545b543342 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 17 Dec 2020 12:05:45 +0800 Subject: [PATCH 2/3] update --- typescript/core/widget.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/typescript/core/widget.ts b/typescript/core/widget.ts index fb39f1f65..2f49c2d53 100644 --- a/typescript/core/widget.ts +++ b/typescript/core/widget.ts @@ -40,8 +40,10 @@ export interface _Widget extends _OB { * 真实dom的类jQuery对象 */ element: { - width(width?: number): number; - height(height?: number): number; + width(): number; + height(): number; + width(width: number): _Widget['element']; + height(height: number): _Widget['element']; [key: string]: any; }; @@ -442,6 +444,8 @@ export declare class Widget extends OB { element: { width(): number; height(): number; + width(width: number): _Widget['element']; + height(height: number): _Widget['element']; [key: string]: any; }; From 0f9d5eb7c0841851aa1ca6b6397b56ebee3469b3 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 17 Dec 2020 18:39:51 +0800 Subject: [PATCH 3/3] update --- typescript/core/widget.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript/core/widget.ts b/typescript/core/widget.ts index 2f49c2d53..457b092f9 100644 --- a/typescript/core/widget.ts +++ b/typescript/core/widget.ts @@ -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): Widget['element']; + height(height: number): Widget['element']; [key: string]: any; };