| 8719 | } |
| 8720 | |
| 8721 | function 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 | |
| 8734 | function genScopedSlots (slots) { |
| 8735 | return ("scopedSlots:_u([" + (Object.keys(slots).map(function (key) { return genScopedSlot(key, slots[key]); }).join(',')) + "])") |