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; + }; /** * 子元素 */