0.2.2 • Published 6 years ago

vue-svg-component-creator v0.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

vue-svg-component-creator

version license

vue-svg-component-creator is build util for create Vue.js component with collection based on svg files. Using as alternative of svg sprites in Vue.js application.

Advantages

  • Full controll of svg
  • There is no need svg polyfills
  • Correct rendering in IE11 (Known issue when updating components)

Installation

npm i -D vue-svg-component-creator

Usage

Before build your project:

const VSVGComponentCreator = require('vue-svg-component-creator');
// Will be crated Vue component with name 'vSvg.js'
VSVGComponentCreator.createComponent(pathToIcons, pathToNewComponent)

In project:

import VSvg from './vSvg.js';
Vue.component('vSvg', VSvg);

In template:

svgName equal svg fileName without extension

<v-svg name="svgName"></svg>

Change log

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago