jsx support use function as component
This commit is contained in:
1
doric-js/lib/src/ui/view.d.ts
vendored
1
doric-js/lib/src/ui/view.d.ts
vendored
@@ -145,6 +145,7 @@ export declare abstract class View implements Modeling {
|
||||
doAnimation(context: BridgeContext, animation: IAnimation): Promise<void>;
|
||||
clearAnimation(context: BridgeContext, animation: IAnimation): Promise<void>;
|
||||
cancelAnimation(context: BridgeContext, animation: IAnimation): Promise<void>;
|
||||
static isViewClass(): boolean;
|
||||
}
|
||||
export declare abstract class Superview extends View {
|
||||
subviewById(id: string): View | undefined;
|
||||
|
||||
@@ -253,6 +253,9 @@ export class View {
|
||||
}
|
||||
});
|
||||
}
|
||||
static isViewClass() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
__decorate([
|
||||
Property,
|
||||
|
||||
Reference in New Issue
Block a user