MCPcopy Index your code
hub / github.com/ygs-code/vue / processRef

Function processRef

vue.js:13592–13600  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

13590
13591 //获取ref 属性,并且判断ref 是否含有v-for指令
13592 function processRef(el) {
13593 //获取ref 属性
13594 var ref = getBindingAttr(el, 'ref');
13595 if (ref) {
13596 el.ref = ref;
13597 //检查当前虚拟dom vonde 是否有for指令,或者父组件是否有for指令
13598 el.refInFor = checkInFor(el);
13599 }
13600 }
13601
13602 //判断获取v-for属性是否存在如果有则转义 v-for指令 把for,alias,iterator1,iterator2属性添加到虚拟dom中
13603 function processFor(el) {

Callers 1

processElementFunction · 0.85

Calls 2

getBindingAttrFunction · 0.85
checkInForFunction · 0.85

Tested by

no test coverage detected