* Queue a kept-alive component that was activated during patch. 对补丁期间激活的kept-alive组件进行队列。 * The queue will be processed after the entire tree has been patched. 队列将在整个树被修补之后处理。 * 添加活跃的组件函数 把活跃的vm添加到activatedChildren 中
(vm)
| 4466 | * 添加活跃的组件函数 把活跃的vm添加到activatedChildren 中 |
| 4467 | */ |
| 4468 | function queueActivatedComponent(vm) { |
| 4469 | // setting _inactive to false here so that a render function can 在这里将_inactive设置为false,以便呈现函数可以 |
| 4470 | // rely on checking whether it's in an inactive tree (e.g. router-view) 依赖于检查它是否在非活动树中(例如router-view) |
| 4471 | vm._inactive = false; |
| 4472 | activatedChildren.push(vm); |
| 4473 | } |
| 4474 | |
| 4475 | // 调用组件激活的钩子 |
| 4476 | function callActivatedHooks(queue) { |