Browse Source

无jira 类型

es6
zsmj 2 years ago
parent
commit
100f90d51f
  1. 15
      typescript/core/widget.ts

15
typescript/core/widget.ts

@ -42,8 +42,8 @@ export interface _Widget extends _OB {
element: {
width(): number;
height(): number;
width(width: number | string): _Widget['element'];
height(height: number | string): _Widget['element'];
width(width: number | string): _Widget["element"];
height(height: number | string): _Widget["element"];
[key: string]: any;
};
@ -110,7 +110,7 @@ export interface _Widget extends _OB {
/**
*
*/
shouldUpdate?(): void;
shouldUpdate?(...args: any[]): void;
/**
*
@ -449,8 +449,8 @@ export declare class Widget extends OB {
element: {
width(): number;
height(): number;
width(width: number | string): Widget['element'];
height(height: number | string): Widget['element'];
width(width: number | string): Widget["element"];
height(height: number | string): Widget["element"];
[key: string]: any;
};
@ -783,6 +783,11 @@ export declare class Widget extends OB {
*/
_unMount(): void;
/**
* watch响应式数据
*/
__watch<T extends (...args: any) => any>(getter: T, handler: Function, options?: Obj): ReturnType<T>
/**
* hang元素
*/

Loading…
Cancel
Save