1.2.8 • Published 1 day ago
@frankhoodbs/slot-helper v1.2.8
Slot helper
This is a helper used to check if a slot is available or is not empty.
Usage
import { isSlotAvailable, isSlotNotEmpty } from '../src';
// Slots
const slots = defineSlots<{
'default'?: (props: {}) => any;
'content'?: (props: {}) => any;
}>();
const hasSlot = (name: 'default' | 'content'): boolean => isSlotAvailable(slots, name);
const hasSlotNotEmpty = (name: 'default' | 'content'): boolean => isSlotNotEmpty(slots, name);
// on the template v-if="hasSlot('default')"
1.2.8
1 day ago
1.2.7
1 day ago
1.2.4
2 days ago
1.2.3
6 days ago
1.2.2
19 days ago
1.2.1
22 days ago
1.2.0
23 days ago
1.1.17
23 days ago
1.1.16
2 months ago
1.1.15
2 months ago
1.1.14
2 months ago
1.1.13
2 months ago
1.1.12
3 months ago
1.1.11
3 months ago
1.1.10
4 months ago
1.1.9
4 months ago
1.1.8
4 months ago
1.1.7
4 months ago
1.1.6
4 months ago
1.1.1
4 months ago
1.1.3
4 months ago
1.1.2
4 months ago
1.0.4
7 months ago
1.0.0
7 months ago