vue-empty-image
v1.0.1
Published
vue-empty-image
Downloads
5
Maintainers
Readme
vue-empty-image
A reusable focus directive for reusable Vue.js components
Overview
Create empty test images for vue
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">',
};