Open Decipher opened 3 years ago
Just to clarify, your expected behavior for components/druxt/field/number/integer/FieldNumberOfServings.vue
is to be named DruxtFieldNumberIntegerOfServings
right?
Yes, correct. I also fixed the typo.
From your edited comment, seems expected is DruxtFieldNumberIntegerFieldNumberOfServings
(adding full path as prefix regardless). But it is not how prefixing works. We remove common part as duplicate so components/Foo/Bar/FooBarBaz.vue
will be FooBarBaz
and not FooBarFooBarBaz
). For https://github.com/nuxt/components/issues/175#issuecomment-810917147, I've made proposal PR #177
I had a similar problem. The component was located at /components/tile-display/TileViewer.vue
and the component was actually named TileDisplayTileViewer
, but when the component tag was generated it came out as <tile-viewer
. I think the autoload module should either not remove common parts or at least explain how it works in the docs. Took me a while to figure out why my component could not be found.
This is still very much on my radar, I will try to test out the PR next week.
Describe the bug Some components are being incorrectly named:
To Reproduce Steps to reproduce the behaviour:
git clone https://github.com/druxt/demo.druxtjs.org.git
components/druxt/field/NumberIntegerFieldNumberOfServings.vue
tocomponents/druxt/field/number/integer/FieldNumberOfServings.vue
.nuxt/components/readme.md
Expected behaviour The file located at
components/druxt/field/number/integer/FieldNumberOfServings.vue
should be namedDruxtFieldNumberIntegerFieldNumberOfServings
Screenshots N/A
Additional context A few of my components for comparison.
Note that
number/integer
appears to be a potential lead.