vue-iconfont-component
v1.0.2
Published
vue-iconfont-component
Downloads
6
Readme
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 |