mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[REF] component, vdom: small cleanup
This commit is contained in:
+2
-3
@@ -3,7 +3,6 @@ import { Observer } from "./observer";
|
|||||||
import { QWeb } from "./qweb";
|
import { QWeb } from "./qweb";
|
||||||
import { h, patch, VNode } from "./vdom";
|
import { h, patch, VNode } from "./vdom";
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Types/helpers
|
// Types/helpers
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
@@ -12,7 +11,7 @@ export interface Env {
|
|||||||
qweb: QWeb;
|
qweb: QWeb;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Meta<T extends Env, Props> {
|
interface Meta<T extends Env, Props> {
|
||||||
readonly id: number;
|
readonly id: number;
|
||||||
vnode: VNode | null;
|
vnode: VNode | null;
|
||||||
isStarted: boolean;
|
isStarted: boolean;
|
||||||
@@ -155,7 +154,7 @@ export class Component<
|
|||||||
* It is not called on the initial render. This is useful to get some
|
* It is not called on the initial render. This is useful to get some
|
||||||
* information which are in the DOM. For example, the current position of the
|
* information which are in the DOM. For example, the current position of the
|
||||||
* scrollbar
|
* scrollbar
|
||||||
*
|
*
|
||||||
* The return value of willPatch will be given to the patched function.
|
* The return value of willPatch will be given to the patched function.
|
||||||
*/
|
*/
|
||||||
willPatch(): any {}
|
willPatch(): any {}
|
||||||
|
|||||||
@@ -28,8 +28,6 @@ interface VNodeData {
|
|||||||
hook?: Hooks;
|
hook?: Hooks;
|
||||||
key?: Key;
|
key?: Key;
|
||||||
ns?: string; // for SVGs
|
ns?: string; // for SVGs
|
||||||
fn?: () => VNode; // for thunks
|
|
||||||
args?: Array<any>; // for thunks
|
|
||||||
[key: string]: any; // for any other 3rd party module
|
[key: string]: any; // for any other 3rd party module
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user