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

Function genInlineTemplate

static/vuejs/vue.common.js:8721–8732  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

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