(parentElm, //父亲节点
refElm, //当前点
vnodes, //虚拟dom
startIdx, // 开始index
endIdx, // 结束index
insertedVnodeQueue //插入Vnode队列
)
| 8426 | |
| 8427 | |
| 8428 | function addVnodes(parentElm, //父亲节点 |
| 8429 | refElm, //当前点 |
| 8430 | vnodes, //虚拟dom |
| 8431 | startIdx, // 开始index |
| 8432 | endIdx, // 结束index |
| 8433 | insertedVnodeQueue //插入Vnode队列 |
| 8434 | ) { |
| 8435 | |
| 8436 | for (; startIdx <= endIdx; ++startIdx) { |
| 8437 | |
| 8438 | //创造dom节点 |
| 8439 | createElm( |
| 8440 | vnodes[startIdx], //vnode 节点 |
| 8441 | insertedVnodeQueue, //插入Vnode队列 |
| 8442 | parentElm, //父亲节点 |
| 8443 | refElm, //当前节点 |
| 8444 | false, //嵌套 |
| 8445 | vnodes, //vnodes 数组 |
| 8446 | startIdx //索引 |
| 8447 | ); |
| 8448 | } |
| 8449 | } |
| 8450 | |
| 8451 | //组件销毁,触发销毁钩子函数 |
| 8452 | function invokeDestroyHook(vnode) { |
no test coverage detected