vue-preview-image

— A vue picture preview component.
1,572 1
Install
npm install vue-preview-image
Latest Version:0.1.4
Vue:2
License:MIT
Last Updated:Jan 2, 2019
Links: GitHub  ·  npm
Maintainer: songzeng

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

Property Description
urls preivew list
current current image

License

MIT Copyright (c) 2019-present Song Zeng

Related Packages

vue-directive-image-previewer

A Vue.js directive plugin for , click image to show preview.

6,412 42
vue3-preview-image

一个基于vue3的图片预览插件,可以缩放图片,移动图片,旋转图片,目前只支持pc端。

2,595
vue-image-previewer

A vue component for previewing images

1,272 8
wd-ws-ui-v3

一个基于element-plus二次封装的组件二次封装。

639

Version History

Version Released Vue License
0.1.4 ^2.5.17 MIT
0.1.3 ^2.5.17
0.1.2 ^2.5.17
0.1.1 ^2.5.17
0.1.0 ^2.5.17