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

Function genInlineTemplate

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

Source from the content-addressed store, hash-verified

8713}
8714
8715function genInlineTemplate (el) {
8716 var ast = el.children[0];
8717 if ("development" !== 'production' && (
8718 el.children.length > 1 || ast.type !== 1
8719 )) {
8720 warn$3('Inline-template components must have exactly one child element.');
8721 }
8722 if (ast.type === 1) {
8723 var inlineRenderFns = generate(ast, currentOptions);
8724 return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
8725 }
8726}
8727
8728function genScopedSlots (slots) {
8729 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