feat(runtime-core): 添加 Vue 渲染器和 h 函数实现
- 实现了 render 函数用于 Vue 组件渲染 - 实现了 h 函数用于创建虚拟节点(VNode) - 添加类型定义和相关工具函数
This commit is contained in:
14
stage07/index.html
Normal file
14
stage07/index.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang='zh-cn'>
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||
<title>Stage 07: 全量重新渲染的问题</title>
|
||||
</head>
|
||||
<body>
|
||||
<input type="number" id="userId" placeholder="用户 ID" />
|
||||
<button id="loadBtn">加载用户</button>
|
||||
<div id="minivue"></div>
|
||||
<script src="./index.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user