1
/
of
1
VueJs 3 Props Slots Usage
VueJs 3 Props Slots Usage
The slot content has access to the data scope of the parent component To access the component's data source value inside the template, pass the props
Inside the script part: we receive props from the parent component which will allow us to set the Google Map: mapConfig
vue3 slot The mechanism of slots in makes it easier to create universal, reusable components slot :row=row :prop=prop> {{ row }}
vue3 slot用法 default If a slot is a scoped slot, arguments passed to the slot functions are available to the slot as its slot props In the following
Regular
price
188.00 ₹ INR
Regular
price
188.00 ₹ INR
Sale
price
188.00 ₹ INR
Unit price
/
per
Share
![vue slot props](10052.png)