0.1.4 ā€¢ Published 5 years ago

vue-preview-image v0.1.4

Weekly downloads
18
License
MIT
Repository
github
Last release
5 years ago

vue-preview-image

ā€” A vue picture preview component.

Demo

Installation

npm install vue-preview-image --save

Usage

Install plugin

import VuePreviewImage from 'vue-preview-image';

export default {
  components: {
    VuePreviewImage,
  },
}

Examples

<template>
  <vue-preview-image :urls="urls" :current="current"></vue-preview-image>
</template>

<script>
  import VuePreviewImage from 'vue-preview-image';

  export default {
    components: {
      VuePreviewImage,
    },
    data() {
      return {
        urls: [
          'https://cdn4.buysellads.net/uu/1/41369/1544727205-bigstock-3.jpg',
          'https://i.loli.net/2018/10/11/5bbec10f722ea.png'
        ],
        current: '',
      };
    },
  }
</script>

Prop

PropertyDescription
urlspreivew list
currentcurrent image

License

MIT Copyright (c) 2019-present Song Zeng

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago