图像金字塔实现图像缩放_一个简单的VueJS组件,用于图像放大/产品缩放

图像金字塔实现图像缩放

Vue放大镜 (vue-magnifier)

Vue Magnifier is free component for basic image zoom practices. You can use it as follows:

Vue放大镜是基本图像缩放实践的免费组件。 您可以按以下方式使用它:

<vue-magnifier src="default-image-source" src-large="large-image-source"></vue-magnifier>

To customize the look and feel of the component, just edit the vue component file, or the provided standalone vue-magnifier.scss or the vue-magnifier.css file.

从CDN独立加载 (Load standalone from CDN)

<script src="https://cdn.jsdelivr.net/gh/zeknoss/[email protected]/dist/js/vue-magnifier.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/zeknoss/[email protected]/dist/css/vue-magnifier.css" media="screen" />

从本地独立加载 (Load standalone from local)

<script src="some/path/to/js/vue-magnifier.js"></script>
<link rel="stylesheet" type="text/css" href="some/path/to/css/vue-magnifier.css" media="screen" />

构建设置 (Build Setup)

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run all tests
npm test

翻译自: https://vuejsexamples.com/a-simple-vuejs-component-for-image-magnifying-product-zooming/

图像金字塔实现图像缩放

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值