From ae86e137f5c3c914c1422ac4083b433557fc8162 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 18 Dec 2020 09:18:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=B1=BB=E5=9E=8B=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 457b092f9..cc0675947 100644 --- a/typescript/core/widget.ts +++ b/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; };