MCPcopy
hub / github.com/vuejs/core / _parseSlots

Method _parseSlots

packages/runtime-dom/src/apiCustomElement.ts:686–695  ·  view source on GitHub ↗

* Only called when shadowRoot is false

()

Source from the content-addressed store, hash-verified

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

Callers 1

connectedCallbackMethod · 0.95

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected