From 0f5ee5f274fcd0305c123eed42b25401953fc48e Mon Sep 17 00:00:00 2001 From: * <8> Date: Wed, 26 Jan 2022 10:55:58 +0800 Subject: [PATCH] Match-id-e0e95bb5c52370f74cb10bee7a7f9c78cd0d390b --- libs/horizon/src/dom/DOMInternalKeys.ts | 2 +- libs/horizon/src/renderer/vnode/VNode.ts | 2 +- libs/horizon/src/renderer/vnode/VNodeFlags.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/horizon/src/dom/DOMInternalKeys.ts b/libs/horizon/src/dom/DOMInternalKeys.ts index 724ae509..dec6fed1 100644 --- a/libs/horizon/src/dom/DOMInternalKeys.ts +++ b/libs/horizon/src/dom/DOMInternalKeys.ts @@ -16,7 +16,7 @@ import { const prefix = '_horizon'; -export const internalKeys = { +const internalKeys = { VNode: `${prefix}VNode`, props: `${prefix}Props`, events: `${prefix}Events`, diff --git a/libs/horizon/src/renderer/vnode/VNode.ts b/libs/horizon/src/renderer/vnode/VNode.ts index 82b4ae1e..e5a848de 100644 --- a/libs/horizon/src/renderer/vnode/VNode.ts +++ b/libs/horizon/src/renderer/vnode/VNode.ts @@ -62,7 +62,7 @@ export class VNode { ForceUpdate?: boolean; Clear?: boolean; } = {}; - clearChild: VNode|null = null; + clearChild: VNode | null = null; // one tree相关属性 isCreated: boolean = true; oldHooks: Array> = []; // 保存上一次执行的hook diff --git a/libs/horizon/src/renderer/vnode/VNodeFlags.ts b/libs/horizon/src/renderer/vnode/VNodeFlags.ts index 449d6baa..f511ac85 100644 --- a/libs/horizon/src/renderer/vnode/VNodeFlags.ts +++ b/libs/horizon/src/renderer/vnode/VNodeFlags.ts @@ -20,8 +20,8 @@ export const ShouldCapture = 'ShouldCapture'; export const ForceUpdate = 'ForceUpdate'; export const Clear = 'Clear'; -const FlagArr = [Addition, Update, Deletion, ResetText, Callback, - DidCapture, Ref, Snapshot, Interrupted, ShouldCapture, ForceUpdate, Clear]; +const FlagArr = [Addition, Update, Deletion, Clear, ResetText, Callback, + DidCapture, Ref, Snapshot, Interrupted, ShouldCapture, ForceUpdate]; const LifecycleEffectArr = [Update, Callback, Ref, Snapshot];