Equal-UI / Equal

Equal UI is a Vue 3 UI library empowered by Tailwindcss
https://equal-ui.github.io/Equal/
MIT License
1.21k stars 67 forks source link

[ Feature Request ] Would it be possible to support PascalCase for the components? #284

Closed gunhaxxor closed 1 year ago

gunhaxxor commented 1 year ago

Is your feature request related to a problem? Please describe.

What the title says. I get the impression that this component library enforces kebab-case for all its components. The official Vue documentation recommends using PascalCase for all components: https://vuejs.org/guide/components/registration.html#component-name-casing

Describe the solution you'd like

Default to use PascalCase instead of kebab-case since vue supports resolving both kebab-case and PascalCase to it's registered PascalCase components:

Luckily, Vue supports resolving kebab-case tags to components registered using PascalCase. This means a component registered as MyComponent can be referenced in the template via both and . This allows us to use the same JavaScript component registration code regardless of template source.

Describe alternatives you've considered

I guess there could be some changes made to the enums file. But I also guess it's related to the variants configuration.

quatrochan commented 1 year ago

Good point. Fixed in v0.9.13