1.0.2 • Published 5 years ago

vue-iconfont-component v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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

PropertyDescriptionTypedefault
typethe value of iconfont typeString-
sizethe value of iconfont sizeNumber, String-
colorthe value of iconfont colorString-

Events

Function NameDescription
on-clicktriggers when clicking the icon
1.0.2

5 years ago

1.0.12

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago