Renovamen / oh-vue-icons

A Vue component for importing inline SVG icons from different popular icon packs easily.
https://oh-vue-icons.js.org
Other
245 stars 22 forks source link

Local Import Issue #13

Closed jrafaaael closed 3 years ago

jrafaaael commented 3 years ago

The documentation states that, to perform a local import, the path must be placed: "oh-vue-icons/components/icon"

But the "components" folder does not exist when downloading, at least when downloading the module through npm.

image

vicenterusso commented 3 years ago

Maybe because 0.4.1 changed a few things

This is how I'm using after updating:

import OhVueIcon from 'oh-vue-icons';
import {LaThSolid,LaBarsSolid,RiRefreshLine} from 'oh-vue-icons/icons';
OhVueIcon.add(LaThSolid, LaBarsSolid, RiRefreshLine);

export default {
    components: {
        'v-oh-icon': OhVueIcon
    },
    // {...}
}
jrafaaael commented 3 years ago

This is how I'm using after updating:

Thanks! At the moment I use it with the global import. Similarly, the documentation should be updated. I hope it is solved soon😄

Renovamen commented 3 years ago

Hi @jrafaaael @vicenterusso! I forgot to update the documentation, sorry for that. Now the documentation has been updated, thank you!