MCPcopy Create free account
hub / github.com/ygs-code/vue / isInInactiveTree

Function isInInactiveTree

vue.js:4275–4282  ·  view source on GitHub ↗
(vm)

Source from the content-addressed store, hash-verified

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

Callers 2

activateChildComponentFunction · 0.85
deactivateChildComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected