* Only called when shadowRoot is false
()
| 684 | * Only called when shadowRoot is false |
| 685 | */ |
| 686 | private _parseSlots() { |
| 687 | const slots: VueElement['_slots'] = (this._slots = {}) |
| 688 | let n |
| 689 | while ((n = this.firstChild)) { |
| 690 | const slotName = |
| 691 | (n.nodeType === 1 && (n as Element).getAttribute('slot')) || 'default' |
| 692 | ;(slots[slotName] || (slots[slotName] = [])).push(n) |
| 693 | this.removeChild(n) |
| 694 | } |
| 695 | } |
| 696 | |
| 697 | /** |
| 698 | * Only called when shadowRoot is false |