(el)
| 7800 | } |
| 7801 | |
| 7802 | function checkRootConstraints (el) { |
| 7803 | { |
| 7804 | if (el.tag === 'slot' || el.tag === 'template') { |
| 7805 | warnOnce( |
| 7806 | "Cannot use <" + (el.tag) + "> as component root element because it may " + |
| 7807 | 'contain multiple nodes.' |
| 7808 | ); |
| 7809 | } |
| 7810 | if (el.attrsMap.hasOwnProperty('v-for')) { |
| 7811 | warnOnce( |
| 7812 | 'Cannot use v-for on stateful component root element because ' + |
| 7813 | 'it renders multiple elements.' |
| 7814 | ); |
| 7815 | } |
| 7816 | } |
| 7817 | } |
| 7818 | |
| 7819 | // tree management |
| 7820 | if (!root) { |