useSlots-TS
import {useSlots, VNode} from 'vue';
export const useGetSlots = () => {
const slots = useSlots();
const defaults: VNode[] = [...(slots.default as (() => Array<VNode>))()];
return {defaults};
};
import {useSlots, VNode} from 'vue';
export const useGetSlots = () => {
const slots = useSlots();
const defaults: VNode[] = [...(slots.default as (() => Array<VNode>))()];
return {defaults};
};