Skip to content

New Iterator function: extractChildren ? #9

Open
@mrleblanc101

Description

@mrleblanc101

It would be nice to have an interator function to get all the children, wither they are static components or fragment child.
Even better if we can do it in a TypeSafe way, so that it returns VNode<InstanceType<typeof UTab>>[].

<UTabs>
    <UTab :name="t('Tab 1')"></UTab>
    <UTab v-for="i in 4"  :name="t(`Tab ${i}`)">...</UTab>
</UTabs>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions