Skip to content

在SFC中使用如不使用自动按需导入插件就必须在导入时重命名组件 #8194

Open
@hsbtr

Description

@hsbtr
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

SFC中Form Table Button 等组件如不重命名必须使用大写方式才能不覆盖原始标签,是否可以在组件导出的时候就为每个组件增加一个如全局注册一样的前缀;用户不使用插件且在script setup 中导入组件时不再需要重命名;也解决了部分组件在小写使用时会覆盖原始标签的问题

What does the proposed API look like?

https://stackblitz.com/edit/vitejs-vite-1c1ckml1?file=src%2FApp.vue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions