(el)
| 8615 | } |
| 8616 | |
| 8617 | function genData (el) { |
| 8618 | var data = '{'; |
| 8619 | |
| 8620 | // directives first. |
| 8621 | // directives may mutate the el's other properties before they are generated. |
| 8622 | var dirs = genDirectives(el); |
| 8623 | if (dirs) { data += dirs + ','; } |
| 8624 | |
| 8625 | // key |
| 8626 | if (el.key) { |
| 8627 | data += "key:" + (el.key) + ","; |
| 8628 | } |
| 8629 | // ref |
| 8630 | if (el.ref) { |
| 8631 | data += "ref:" + (el.ref) + ","; |
| 8632 | } |
| 8633 | if (el.refInFor) { |
| 8634 | data += "refInFor:true,"; |
| 8635 | } |
| 8636 | // pre |
| 8637 | if (el.pre) { |
| 8638 | data += "pre:true,"; |
| 8639 | } |
| 8640 | // record original tag name for components using "is" attribute |
| 8641 | if (el.component) { |
| 8642 | data += "tag:\"" + (el.tag) + "\","; |
| 8643 | } |
| 8644 | // module data generation functions |
| 8645 | for (var i = 0; i < dataGenFns.length; i++) { |
| 8646 | data += dataGenFns[i](el); |
| 8647 | } |
| 8648 | // attributes |
| 8649 | if (el.attrs) { |
| 8650 | data += "attrs:{" + (genProps(el.attrs)) + "},"; |
| 8651 | } |
| 8652 | // DOM props |
| 8653 | if (el.props) { |
| 8654 | data += "domProps:{" + (genProps(el.props)) + "},"; |
| 8655 | } |
| 8656 | // event handlers |
| 8657 | if (el.events) { |
| 8658 | data += (genHandlers(el.events)) + ","; |
| 8659 | } |
| 8660 | if (el.nativeEvents) { |
| 8661 | data += (genHandlers(el.nativeEvents, true)) + ","; |
| 8662 | } |
| 8663 | // slot target |
| 8664 | if (el.slotTarget) { |
| 8665 | data += "slot:" + (el.slotTarget) + ","; |
| 8666 | } |
| 8667 | // scoped slots |
| 8668 | if (el.scopedSlots) { |
| 8669 | data += (genScopedSlots(el.scopedSlots)) + ","; |
| 8670 | } |
| 8671 | // component v-model |
| 8672 | if (el.model) { |
| 8673 | data += "model:{value:" + (el.model.value) + ",callback:" + (el.model.callback) + ",expression:" + (el.model.expression) + "},"; |
| 8674 | } |
no test coverage detected