(vm)
| 4273 | |
| 4274 | //循环父树层 如果有不活跃的则返回真 |
| 4275 | function isInInactiveTree(vm) { //活动中的树 |
| 4276 | while (vm && (vm = vm.$parent)) { //循环父节点如果父节点有_inactive 则返回true |
| 4277 | if (vm._inactive) { //不活跃 |
| 4278 | return true |
| 4279 | } |
| 4280 | } |
| 4281 | return false |
| 4282 | } |
| 4283 | |
| 4284 | //判断是否有不活跃的组件 禁用他 如果有活跃组件则触发钩子函数activated |
| 4285 | function activateChildComponent(vm, // 虚拟dom vode |
no outgoing calls
no test coverage detected