unplugin / unplugin-vue-components

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

fix resolveVue3 regular (#694) #696

Closed voyageh closed 9 months ago

voyageh commented 9 months ago

Description

Cannot match the resolveComponent written by oneself

Linked Issues

694

Additional context

stackblitz[bot] commented 9 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

antfu commented 9 months ago

It's intended, we shouldn't change the behavior / the capability of using runtime resolveComponent. If you need that way, you can either register them globally, or directly import the components. Thanks for bringing this up.

voyageh commented 9 months ago

Isn’t there a detailed introduction to the resolveComponent method on the official website that can be used? If you import it yourself, you will import many, many styles. Can I make a copy and upload it to npm for use?

voyageh commented 9 months ago

@antfu