unplugin / unplugin-vue-components

📲 On-demand components auto importing for Vue
https://www.npmjs.com/package/unplugin-vue-components
MIT License
3.65k stars 341 forks source link

how can i get the right component name #772

Open CandyACE opened 3 weeks ago

CandyACE commented 3 weeks ago

Describe the bug

my folder is

image

How can i get the right component name

Reproduction

/

System Info

window 11

Used Package Manager

pnpm

Validations

OliveLeb commented 2 weeks ago

You can use directoryAsNamespace: true, It will prefix your component name with their folders name eg: ASrc and BSrc here (index.vue is not 'translated')

CandyACE commented 2 weeks ago

您可以使用directoryAsNamespace: true, 它将组件名称与其文件夹名称作为前缀 ,例如:此处的 ASrc 和 BSrc (index.vue 未“翻译”)

You can use directoryAsNamespace: true, It will prefix your component name with their folders name eg: ASrc and BSrc here (index.vue is not 'translated')

but i got some component name as "", is callback error