Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/Lt0/vicon

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/Lt0/vicon

  • v0.0.0-20181012154306-6eb6789ed49e
  • Source
  • Go
  • Socket score

Version published
Created
Source

中文说明

vicon

Vicon is an simple iconfont componenet for vue.


iconfont

iconfont is a Vector Icon Management & Communication Platform made by Alimama MUX. iconfont



Usage

1. Prepare iconfonts

Get your iconfonts from iconfont and then save in your porject.


1.1 Download zip

Select "Symbol" in your project page and then select "Download Code"

dowload icons

1.2 save iconfont.js

unpack downloading zip package and then copy file "iconfont.js" to your new project. Files looks like below:

project/
├── iconfont.js
└── main.js


2. install vicon

npm install vicon --save

After installing vicon, the whole project files looks like below:

project/
├── iconfont.js
├── main.js
└── node_modules
    └── vicon
        └── ...


3. import

import and regist vicon/iconfonts in main.js.

import icon from 'vicon'
import './static/icon/iconfont'

Vue.component('icon', icon)


4. use icon

Using icon selected from iconfont in template.

<template>
  <icon>tools</icon>
</template>

Note:

  1. icon name could be found in demo_symbol.html which include in download.zip(file downloaded by step 1)
  2. you can open demo_symbol.html directly with web browser.
icon name

FAQs

Package last updated on 12 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc