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图片预览指令

0.0.3
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.