1.0.2 • Published 6 years ago
vue-iconfont-component v1.0.2
vue-iconfont-component
A Vue component for use iconfont
How to use?
npm install vue-iconfont-component --saveExample
<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 |