2👍
You’ll need to access the icon’s SVG directly, not through the component.
Assuming that you use webpack and npm, and your icon lib contains SVG data (i.e. it’s not wrapping the images in JS files, like e.g. vue-awesome does): you can just write the relative path to the SVG file into the style, in which case you don’t have to bind it (style
instead of :style
).
- [Vuejs]-Vue .js v-on:input how to pass parameters(inputted value and the index) to a computed property
- [Vuejs]-Vue.js why my watcher is not working?
Source:stackexchange.com