vue-slot-checker
vue-slot-checker provide functions like checking props.
When using components that require default slot.
It is output to the console as shown in the next image.
Install
Plugin
Install plugin
Mixin
Use with component
Usage
slots
option
- type:
Boolean | Array | Object
Boolean example
Require only default slot.
Array example
Require default slot and header slot.
Object example
Require default slot.
header slot is require and only text.
Options
silent
(option)
- type:
Boolean
- default:
Vue.config.silent (false)
Don't output to log.
e.g.