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 as 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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy