New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-photo-zoomer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-photo-zoomer

基于vue2.x设计的图片放大镜组件。

0.2.2
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

vue-photo-zoomer

Build Status Coverage Status license language

基于vue2.x设计的图片放大镜组件。

DEMO

<template>
  <div class="zoomer-x">
    <VuePhotoZoomer
      :url="demoImg"
      :style="{
        width: '500px'
      }"
    />
  </div>
</template>

<script>
import VuePhotoZoomer from 'vue-photo-zoomer'
import demoImg from './assets/demo.jpg'
export default {
  name: 'App',
  components: {
    VuePhotoZoomer
  },
  data () {
    return {
      demoImg
    }
  }
}
</script>
<style>
.zoomer-x {
  text-align: center;
}
</style>

示例

Props

参数说明类型默认值
url图片的URLString-
urlFull放大后的图片URLStringurl
scale放大倍数Number2
viewerStyle观察区域的样式Object-
magnifierStyle放大镜的样式Object-

Slots

名称说明
loading图片加载时的内容

Keywords

vue

FAQs

Package last updated on 26 Mar 2020

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