This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
/** | |
* Usage: | |
* <span v-slot:one="{ slots, value: 'component B2' }"></span> | |
* v-slot:<SLOT_NAME>="{ slots, <VALUE> }" | |
* | |
* Pass the slots like this: | |
* <my-component :slots="$scopedSlots" /> | |
* inside MyComponent define props: ['slots'] |