We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2af8df commit c92c981Copy full SHA for c92c981
README.md
@@ -41,6 +41,7 @@ runtime-core 部分
41
- [x] 实现 shapeFlags (利用位运算 左移运算 对 vnode 添加标识,标识是什么类型:子级文本,子级数组,组件,HTML 元素)
42
- [x] 实现注册事件功能 (通过在 vnode.props 识别 props 对象的 key 是以 on 开头并且后一个字母是大写来判断是否是事件)
43
- [x] 实现组件 props 功能 (在 render 的 h 函数中可以用 this 访问到,并且是 shallowReadonly)
44
+- [x] 实现组件 attrs 功能
45
- [x] 实现组件 emit 功能 (获取组件的 props 并判断 props 的'on+事件名'是否是 emit 的第一个参数:事件名匹配,是的话就执行 props 的里面的事件)
46
- [x] 实现组件 slots 功能 (具名插槽&作用域插槽)
47
- [x] 实现 Fragment 和 Text 类型节点 (避免固定死外层嵌套某个元素 比如说 div,使用 Fragment/Text 标识符 直接不渲染外层的 div,直接走 mountChildren 函数 处理 children 外层用户需要什么节点进行包裹自行选择)
0 commit comments