mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
29 lines
633 B
TypeScript
29 lines
633 B
TypeScript
import type { Env } from "../app/app";
|
|
import type { ComponentNode } from "./component_node";
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// Component Class
|
|
// -----------------------------------------------------------------------------
|
|
|
|
export class Component {
|
|
static template: string = "";
|
|
static style: string = "";
|
|
static props?: any;
|
|
|
|
props: any;
|
|
env: Env;
|
|
__owl__: ComponentNode;
|
|
|
|
constructor(props: any, env: Env, node: ComponentNode) {
|
|
this.props = props;
|
|
this.env = env;
|
|
this.__owl__ = node;
|
|
}
|
|
|
|
setup() {}
|
|
|
|
render() {
|
|
this.__owl__.render();
|
|
}
|
|
}
|