#18 - Component Slots - Vue 3 Tutorial
#18 - Component Slots - Vue 3 Tutorial
A slot is an area in a component where you can pass HTML from a parent component This can be very useful in certain situations, such as when
条件插槽 · > · class=card> · v-if=$ class=card-header> · slot name=header > · > · v-if=$ class=card-content> · slot >
vue 3 slot props slot content is rendered VTU provides the slots mounting option for this purpose: js test('layout default slot', () => { const wrapper = mount(Layout, { slots:
vue3 slot Priority C: Recommended for vueattributes-order · vueno vuev-slot-style enforce v-slot directive style ⚙️ This rule
Regular
price
142.00 ₹ INR
Regular
price
142.00 ₹ INR
Sale
price
142.00 ₹ INR
Unit price
/
per