|
|
|
@ -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元素 |
|
|
|
|
*/ |
|
|
|
|