vue-empty-image

1.0.1 • Public • Published

vue-empty-image

A reusable focus directive for reusable Vue.js components

Overview

Create empty test images for vue

200x200 300x300

Requirements

  • vue: ^2.0.0

Install

From npm:

$ npm install vue-empty-image --save

API

empty-image

A directive create empty image,

import { emptyImage } from 'vue-empty-image';
 
export default {
  directives: { 'empty-image': emptyImage },
  template: '<img type="text" v-empty-image="200x200">',
};

mixin

A mixin that makes the v-empty-image directive available to the component under the default name.

import { mixin as emptyImage }  from 'vue-empty-image';
 
export default {
  mixins: [ emptyImage ],
  template: '<img type="text" v-empty-image="200x200">',
};

License

MIT

Install

DownloadsWeekly Downloads

8

Version

1.0.1

License

MIT

Last publish

Collaborators

  • s00d