unplugin-vue-components icon indicating copy to clipboard operation
unplugin-vue-components copied to clipboard

how can i get the right component name

Open CandyACE opened this issue 1 year ago • 3 comments

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

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [X] The provided reproduction is a minimal reproducible of the bug.

CandyACE avatar Jun 13 '24 09:06 CandyACE

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')

OliveLeb avatar Jun 14 '24 15:06 OliveLeb

您可以使用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

CandyACE avatar Jun 18 '24 09:06 CandyACE

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

What error are you getting? Could you share a minimal reproduction?

ilyaliao avatar Jul 01 '25 05:07 ilyaliao