| 8713 | } |
| 8714 | |
| 8715 | function 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 | |
| 8728 | function genScopedSlots (slots) { |
| 8729 | return ("scopedSlots:_u([" + (Object.keys(slots).map(function (key) { return genScopedSlot(key, slots[key]); }).join(',')) + "])") |