MCPcopy Create free account
hub / github.com/TruthHun/BookStack / genFor

Function genFor

static/vuejs/vue.esm.js:8596–8619  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

8594}
8595
8596function genFor (el) {
8597 var exp = el.for;
8598 var alias = el.alias;
8599 var iterator1 = el.iterator1 ? ("," + (el.iterator1)) : '';
8600 var iterator2 = el.iterator2 ? ("," + (el.iterator2)) : '';
8601
8602 if (
8603 process.env.NODE_ENV !== 'production' &&
8604 maybeComponent(el) && el.tag !== 'slot' && el.tag !== 'template' && !el.key
8605 ) {
8606 warn$3(
8607 "<" + (el.tag) + " v-for=\"" + alias + " in " + exp + "\">: component lists rendered with " +
8608 "v-for should have explicit keys. " +
8609 "See https://vuejs.org/guide/list.html#key for more info.",
8610 true /* tip */
8611 );
8612 }
8613
8614 el.forProcessed = true; // avoid recursion
8615 return "_l((" + exp + ")," +
8616 "function(" + alias + iterator1 + iterator2 + "){" +
8617 "return " + (genElement(el)) +
8618 '})'
8619}
8620
8621function genData (el) {
8622 var data = '{';

Callers 1

genElementFunction · 0.70

Calls 2

maybeComponentFunction · 0.70
genElementFunction · 0.70

Tested by

no test coverage detected