Auto-import based on prop binding pattern
See original GitHub issueThanks for this amazing plugin. I’m using auto-import via unplugin-components, unicons (prefix is ‘uil’) iconset in the below example (https://stackblitz.com/github/techakayy/vuetify3-beta-unplugin-icons?file=src%2FApp.vue).
So, basically, <i-uil-android>
will auto-import just fine as it uses the {prefix}-{collection}-{icon}
tag pattern.
But, if I’m binding the icon as a prop (uilShoppingCart
in the below example), then looks like I need to manually import the icon.
Is it possible to support auto-import based on prop-binding pattern as well, for example {prefix}{Collection}{Icon}
(camelCase equivalent)?
Issue Analytics
- State:
- Created a year ago
- Comments:9
Top Results From Across the Web
vue.js - With Nuxt's auto import of components, how to use the ...
When you use the binding sign : the template sees for a defined property inside your component instance, if you don't provide that...
Read more >Auto import the prop-types package when using PropTypes ...
From my side, I resolve issue by a crazy trick, I create file with name propTypes.js and I import and export library in...
Read more >Announcing TypeScript 4.8 RC - Microsoft Developer Blogs
When TypeScript sees the binding pattern [a, b, c] , it creates the type [any, any, any] , and that type gets picked...
Read more >vscode will not auto import node modules packages correctly
I meant defaulting to Node.js style path lookups in all module types. Use module to specify the file format/syntax, not the path lookup....
Read more >Python import: Advanced Techniques and Tips
You base this on the PyYAML package, which must be installed from PyPI: ... see how to use namespace packages in a proper...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Unocss icons preset is an amazing combo for vuetify 😃 I think I will leave unplugin-icons behind for now. Thanks a lot for suggesting it…
https://stackblitz.com/github/techakayy/vuetify3-beta-unocss-icons
vuetify
should add a way to use custom icons via slot instead prop