Skip to content

Adding a config allow nested components #860

@qq1037305420

Description

@qq1037305420

Clear and concise description of the problem

As a developer using Unplugin I want to use nested component so that i can remember less component names.

It works when i manually import the component however Table.Delete is compiled as resolvecomponent('table.delete') since the auto imported component are renamed to unplugin_component_1.

Ex:

<Table>
   <Table.Delete></Table.Delete>
</Table> 
// compiled code
<unplugin_component_1>
   <resolvecomponent('table.delete')></resolvecomponent('table.delete')>
</unplugin_component_1> 

Suggested solution

add the ability to rename sub component.

<unplugin_component_1>
   <unplugin_component_1.Delete></unplugin_component_1.Delete>
</unplugin_component_1> 

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions