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