Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

picture-zoom-react

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

picture-zoom-react

react zoom

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

react 放大镜组件

这是一款 react 放大镜组件

使用参数

参数类型说明默认值
curIndexnumber默认展示数组中的第一张图片默认0
Zoomnumber设置放大的倍数默认2.5
imgListArray需要放大的图片['url','url']

组件内部说明

如果什么都不设置 则根据.main-img,它是包裹放大镜组件的外层边框,组件初始化会根据 它设置 SourceWidth 和 SourceHeight

使用例子

 <ZoomImg Zoom={2.5} imgList={skuImageDtos}/>    

FAQs

Package last updated on 24 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc