lkt-vue-tools
v1.0.1
Published
A collection of functions for working with Vue.js 3
Downloads
21
Maintainers
Readme
LKT Vue Tools
Methods
getSlots
Retrieve all slots in a component $slots property.
If slotStartingPattern
is given, only will return slots which name starts by that string.
Args
- $slots: object
- slotStartingPattern?: string
Returns
An object containing all slots
slotProvided
Checks if client using this $vm
Vue component had been defined any slot named name
.
Args
- $vm: object
- name: string
Returns
Boolean