vue3-core/packages/runtime-vapor/src/index.ts

9 lines
260 B
TypeScript
Raw Normal View History

2023-11-09 17:54:31 +08:00
export { template } from './template'
2023-11-23 23:42:08 +08:00
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)]) }
}