<slot>
╱🚧 under construction -> default slot
Last updated
Was this helpful?
╱🚧 under construction -> default slot
Last updated
Was this helpful?
⟩ ⟩ <slot>
named slot:可控制內容的插入位置。
fallback content: 的預設內容。
📁 的 中:定義 <slot>
的位置(也可以放 named slot)
slotchange
事件當 <slot>
的內容發生變化時(如插入或移除 ),就會觸發 這個事件。你可以使用這個事件來監聽 的變化,並執行相應的操作。