|
|
abf8112359
|
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 符号常量定义
|
2026-02-27 20:46:53 +08:00 |
|
|
|
6aa564ef7c
|
feat(runtime): 支持对象类型的组件创建
- 在 vnode.ts 中引入 isObject 判断函数
- 修改 createVNode 函数支持对象类型组件的 shapeFlag 设置
- 更新 h-component.html 示例代码,使用 h 函数创建组件
- 新增 h-component-video-test.html 测试文件包含原始 vnode 创建方式
- 移除手动创建 vnode 对象的硬编码方式,统一使用 h 函数创建
|
2026-02-27 20:01:20 +08:00 |
|
dj
|
61edc322f2
|
feat(runtime): 添加H函数组件示例和数组子节点标记支持
- 新增h-component.html示例文件展示直接创建虚拟DOM节点
- 在vnode.ts中为数组子节点添加ShapeFlags.ARRAY_CHILDREN标记
- 实现了绕过h函数直接构建组件虚拟节点的演示功能
|
2026-02-27 17:35:51 +08:00 |
|
|
|
4225ae0b8f
|
feat(examples): 更新 h-element 示例并添加文本版本
- 将 h-element.html 重命名为 h-element-array.html
- 修改示例代码以展示数组子元素渲染功能
- 添加新的 h-element-text.html 示例文件
- 新示例演示基本文本内容渲染用法
|
2026-02-26 23:41:04 +08:00 |
|
|
|
a3a7b8c7e4
|
feat(runtime): 添加 h 函数和虚拟节点系统
- 实现了 h 函数用于创建虚拟节点
- 添加了 VNode 接口定义和创建逻辑
- 引入了 ShapeFlags 枚举来标记节点类型
- 实现了虚拟节点子元素标准化功能
- 在 runtime-core 中导出 h 函数
- 添加了 h 函数使用示例页面
|
2026-02-26 22:35:22 +08:00 |
|