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:
@@ -1,3 +1,4 @@
|
||||
export { queuePreFlushCb } from './scheduler'
|
||||
export { watch } from './apiWatch'
|
||||
export { h } from './h'
|
||||
export { Fragment, Text, Comment } from './vnode'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user