From be5788e704af31593e5eecd2dd30f8b4d1c1d3c9 Mon Sep 17 00:00:00 2001 From: iapyang Date: Tue, 10 Mar 2020 15:05:26 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=AE=8C=E5=96=84element=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/widget.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/typescript/core/widget.ts b/typescript/core/widget.ts index a3c5ddf921..c2b307bfb4 100644 --- a/typescript/core/widget.ts +++ b/typescript/core/widget.ts @@ -33,7 +33,11 @@ export interface _Widget extends _OB { /** * 真实dom的类jQuery对象 */ - element: any; + element: { + width(): number; + height(): number; + [key: string]: any; + }; /** * 子元素 */