Slots in Vue 3: Enhancing Flexibility and Reusability
Slots in Vue 3: Enhancing Flexibility and Reusability
我們在直接 light-box 元件裡加入要給燈箱顯示的內容,並在HTML 標籤裡加入 slot 屬性,指定該節點要出現在哪個對應的 slot 位置。 而未指定 name 的部分
The QSelect Vue component has two types of selection
vue slot props Each slot passed to a component should have unique name VUE_DUPLICATE_SLOT; Error; Medium; vue This rule applies when multiple slots with the same name
vue slot A child component can have multiple named slots, each with a unique name The parent component specifies the slot name when providing content
Regular
price
166.00 ₹ INR
Regular
price
166.00 ₹ INR
Sale
price
166.00 ₹ INR
Unit price
/
per