Justineo / vue-awesome

Awesome SVG icon component for Vue.js, built-in with Font Awesome icons.

Home Page:https://justineo.github.io/vue-awesome/demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

import 'vue-awesome/icons/flag' 引入方式,无法显示图标

Centerful opened this issue · comments

使用import 'vue-awesome/icons/flag' 方式引入图标,图标无法显示.
import 'vue-awesome/icons' 没有问题.

代码如下:

<template>
  <div id="app">
    <icon name="beer"/>
  </div>
</template>

<script>
import 'vue-awesome/icons/flag'
import Icon from 'vue-awesome/components/Icon'
export default {
  name: 'App',
  components: {
    'icon': Icon
  }
}
</script>

你引入了 flag 但是输出的是 beer,当然不能工作了呀。