Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.56 KB

README.md

File metadata and controls

43 lines (32 loc) · 1.56 KB

vue-iconfont-component

https://img.shields.io/npm/v/vue-iconfont-component https://img.shields.io/npm/dt/vue-iconfont-component https://img.shields.io/npm/dm/vue-iconfont-component https://img.shields.io/npm/l/vue-iconfont-component

A Vue component for use iconfont

How to use?

npm install vue-iconfont-component --save

Example

<template>
    <vue-iconfont type="icon-xiaoxi" size="55" color="e5d"></vue-iconfont>
</template>

<script>
  import VueIconfont from 'vue-iconfont-component';
  export default {
    components: { VueIconfont }
  }
</script>

Options

Property Description Type default
type the value of iconfont type String -
size the value of iconfont size Number, String -
color the value of iconfont color String -

Events

Function Name Description
on-click triggers when clicking the icon