Match-id-e0e95bb5c52370f74cb10bee7a7f9c78cd0d390b

This commit is contained in:
* 2022-01-26 10:55:58 +08:00 committed by *
parent 6e19d6b6af
commit 0f5ee5f274
3 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ import {
const prefix = '_horizon'; const prefix = '_horizon';
export const internalKeys = { const internalKeys = {
VNode: `${prefix}VNode`, VNode: `${prefix}VNode`,
props: `${prefix}Props`, props: `${prefix}Props`,
events: `${prefix}Events`, events: `${prefix}Events`,

View File

@ -62,7 +62,7 @@ export class VNode {
ForceUpdate?: boolean; ForceUpdate?: boolean;
Clear?: boolean; Clear?: boolean;
} = {}; } = {};
clearChild: VNode|null = null; clearChild: VNode | null = null;
// one tree相关属性 // one tree相关属性
isCreated: boolean = true; isCreated: boolean = true;
oldHooks: Array<Hook<any, any>> = []; // 保存上一次执行的hook oldHooks: Array<Hook<any, any>> = []; // 保存上一次执行的hook

View File

@ -20,8 +20,8 @@ export const ShouldCapture = 'ShouldCapture';
export const ForceUpdate = 'ForceUpdate'; export const ForceUpdate = 'ForceUpdate';
export const Clear = 'Clear'; export const Clear = 'Clear';
const FlagArr = [Addition, Update, Deletion, ResetText, Callback, const FlagArr = [Addition, Update, Deletion, Clear, ResetText, Callback,
DidCapture, Ref, Snapshot, Interrupted, ShouldCapture, ForceUpdate, Clear]; DidCapture, Ref, Snapshot, Interrupted, ShouldCapture, ForceUpdate];
const LifecycleEffectArr = [Update, Callback, Ref, Snapshot]; const LifecycleEffectArr = [Update, Callback, Ref, Snapshot];