🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more
Socket
Book a DemoInstallSign in
Socket

@hanyk/mviewer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hanyk/mviewer

vue图片预览指令

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

mviewer

基于 viewerjs 封装的vue 图片预览指令

用法

npm install @hanyk/mviewer

import Vue from 'vue'
import mviewer from '@hanyk/mviewer'
Vue.use(mviewer)
<template>
<div v-viewer >
  <img src='xxxxxx'>
  <div>
    <img src='xxxxxx'>
  </div>
</div>
or
<div v-viewer='options'  ref='viewer'>
  <img src='xxxxxx'>
  <div>
    <img src='xxxxxx'>
  </div>
</div>
 data(){
   options:{
     zIndex: 100000000
   }
 }

当前viewer实例 可用 this.$refs.viewer.viewer 来获取

Options

参考 viewerjs

Keywords

vue

FAQs

Package last updated on 25 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts