]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
refactor: tidy
author三咲智子 Kevin Deng <sxzz@sxzz.moe>
Thu, 23 Nov 2023 15:43:19 +0000 (23:43 +0800)
committer三咲智子 Kevin Deng <sxzz@sxzz.moe>
Thu, 23 Nov 2023 15:43:19 +0000 (23:43 +0800)
packages/runtime-vapor/src/index.ts
packages/runtime-vapor/src/render.ts

index a46041a60dd724c7ce099226777ac89be7bbe91e..8553412a3e0d72f302ea6d62fa597d5c0c7ffad6 100644 (file)
@@ -1,8 +1,3 @@
-export { template } from './template'
-export * from './render'
 export * from './on'
-
-type Children = Record<number, [ChildNode, Children]>
-export function children(n: ChildNode): Children {
-  return { ...Array.from(n.childNodes).map(n => [n, children(n)]) }
-}
+export * from './render'
+export * from './template'
index 07208d601573b23f5477295debb93404192dcfbe..aad51f3ab6b4abfba55ce51050addb3db0b78410 100644 (file)
@@ -112,3 +112,8 @@ export function setDynamicProp(el: Element, key: string, val: any) {
     setAttr(el, key, void 0, val)
   }
 }
+
+type Children = Record<number, [ChildNode, Children]>
+export function children(n: ChildNode): Children {
+  return { ...Array.from(n.childNodes).map(n => [n, children(n)]) }
+}