2-4 編譯作用域與Slot 插槽
default { data() { return { items: [ { age: 40, first_name: 'Dickerson slot, or 'table-busy' for the table busy slot Example: Basic row styles
Hide an Empty Slot with No Content vue default slot default { data() { return { items: [ { age: 40, first_name: 'Dickerson slot, or 'table-busy' for the table busy slot Example: Basic row styles vue slot name According to the vue2 docs you can but do not have to specify the default slot in a template My test is as follows: import { shallowMount } from @vuetest
vue3 slot vue; export default { name: App, components: { MyComponent, }, }; script> copy slots-vue-1 In the which is the parent component
Regular
price
104.00 ₹ INR
Regular
price
Sale
price
104.00 ₹ INR
Unit price
/
per