1.0.7 • Published 7 years ago

vui-icon v1.0.7

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

vui-icon

https://img.shields.io/npm/v/vui-icon.svg https://img.shields.io/npm/dm/vui-icon.svg https://img.shields.io/npm/l/vui-icon.svg

vue2 svg icon component

The icons are from iconfont.cn

Demo

https://qinshenxue.github.io/vui-icon/ npm.io

Installation

$ npm install vui-icon

Usage

const Vue = require('vue');
const VuiIcon=require('vui-icon');
Vue.use(VuiIcon);
<vui-icon name="close"></vui-icon>

Icon Style

You should define the icon style in your project as follows.

.vui-icon{
    fill:#666
}
.vui-icon:hover{
    fill:#000
}
.icon-close{
	fill:red
}

How to use your icon

You can download the icon on the iconfont.cn or design your own icon to save as SVG file. Put the SVG file in src/svg/, and run npm install && npm run build.

How to change the component name

Find vui-icon in src/index.js, change it to your component name, then run npm install && npm run build.

Component Attributes

AttributeDescriptionType
nameThe name of the SVG filestring
wIcon's widthnumber
hIcon's heightnumber

ChangeLog

Detailed changes for each release are documented in the release notes.

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago