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

Function processKey

vue.js:13579–13589  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

13577
13578 //获取属性key值,校验key 是否放在template 标签上面
13579 function processKey(el) {
13580 //校验key 有没有放在
13581 var exp = getBindingAttr(el, 'key');
13582 if (exp) {
13583 if ("development" !== 'production' && el.tag === 'template') {
13584 //不能的。把键放在真实的template元素上。
13585 warn$2("<template> cannot be keyed. Place the key on real elements instead.");
13586 }
13587 el.key = exp;
13588 }
13589 }
13590
13591 //获取ref 属性,并且判断ref 是否含有v-for指令
13592 function processRef(el) {

Callers 1

processElementFunction · 0.85

Calls 1

getBindingAttrFunction · 0.85

Tested by

no test coverage detected