From: 三咲智子 Kevin Deng Date: Thu, 23 Nov 2023 15:43:19 +0000 (+0800) Subject: refactor: tidy X-Git-Tag: v3.6.0-alpha.1~16^2~838 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd768d262ffa6671c24f1623f99c979dc63bf0ec;p=thirdparty%2Fvuejs%2Fcore.git refactor: tidy --- diff --git a/packages/runtime-vapor/src/index.ts b/packages/runtime-vapor/src/index.ts index a46041a60d..8553412a3e 100644 --- a/packages/runtime-vapor/src/index.ts +++ b/packages/runtime-vapor/src/index.ts @@ -1,8 +1,3 @@ -export { template } from './template' -export * from './render' export * from './on' - -type Children = Record -export function children(n: ChildNode): Children { - return { ...Array.from(n.childNodes).map(n => [n, children(n)]) } -} +export * from './render' +export * from './template' diff --git a/packages/runtime-vapor/src/render.ts b/packages/runtime-vapor/src/render.ts index 07208d6015..aad51f3ab6 100644 --- a/packages/runtime-vapor/src/render.ts +++ b/packages/runtime-vapor/src/render.ts @@ -112,3 +112,8 @@ export function setDynamicProp(el: Element, key: string, val: any) { setAttr(el, key, void 0, val) } } + +type Children = Record +export function children(n: ChildNode): Children { + return { ...Array.from(n.childNodes).map(n => [n, children(n)]) } +}