ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

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

Open hsbtr opened this issue 5 months ago • 0 comments
trafficstars

  • [ ] 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

hsbtr avatar May 23 '25 03:05 hsbtr