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

Function genInlineTemplate

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

Source from the content-addressed store, hash-verified

8717}
8718
8719function genInlineTemplate (el) {
8720 var ast = el.children[0];
8721 if (process.env.NODE_ENV !== 'production' && (
8722 el.children.length > 1 || ast.type !== 1
8723 )) {
8724 warn$3('Inline-template components must have exactly one child element.');
8725 }
8726 if (ast.type === 1) {
8727 var inlineRenderFns = generate(ast, currentOptions);
8728 return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
8729 }
8730}
8731
8732function genScopedSlots (slots) {
8733 return ("scopedSlots:_u([" + (Object.keys(slots).map(function (key) { return genScopedSlot(key, slots[key]); }).join(',')) + "])")

Callers 1

genDataFunction · 0.70

Calls 1

generateFunction · 0.70

Tested by

no test coverage detected