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

Function genFor

static/vuejs/vue.js:8592–8615  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

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

Callers 1

genElementFunction · 0.70

Calls 2

maybeComponentFunction · 0.70
genElementFunction · 0.70

Tested by

no test coverage detected