feat(runtime): 添加 Fragment Text Comment 导出支持

- 在 runtime-core 中导出 Fragment、Text、Comment 符号
- 在 vue 主入口文件中导出 Fragment、Text、Comment
- 添加 h-other.html 示例文件展示 Text、Comment、Fragment 的使用
- 添加 h-other-ym-test.html 示例文件测试 Fragment 渲染功能
- 创建 Fragment、Text、Comment 符号常量定义
This commit is contained in:
dj
2026-02-27 20:46:53 +08:00
parent 6aa564ef7c
commit abf8112359
6 changed files with 64 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
export { queuePreFlushCb } from './scheduler'
export { watch } from './apiWatch'
export { h } from './h'
export { Fragment, Text, Comment } from './vnode'

View File

@@ -6,6 +6,10 @@ import {
ShapeFlags
} from '@vue/shared'
export const Fragment = Symbol('Fragment')
export const Text = Symbol('Text')
export const Comment = Symbol('Comment')
export interface VNode {
__v_isVNode: true
type: any