Skip to content

loveyunk/vue-iconfont-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published