Error instantiating a viukit icon

让人想犯罪 __ 提交于 2020-01-06 06:00:13

问题


Given:

import Vue from 'vue'
import Vuikit from 'vuikit'
import VuikitIcons from '@vuikit/icons'

Vue.use(Vuikit)
Vue.use(VuikitIcons)

...

Trying to instantiate an icon like this doesn't work:

  <vk-icon icon="cog" v-on:click="onClick"></vk-icon> // doesn't work

error:

Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

I'm only able to instantiate it like this:

<vk-icons-cog  v-on:click.native="onClick"> // does work

is there anything I'm missing?


回答1:


Issue related to version 0.6.2 it works fine on 0.8.5



来源:https://stackoverflow.com/questions/51201826/error-instantiating-a-viukit-icon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!