当前位置:网站首页>V-viewer use
V-viewer use
2022-07-27 00:22:00 【_ Virgo programmer's daily life】
v-viewer Is an enlarged preview of the picture , He can zoom in and out with the mouse wheel , Full screen is also possible , Previous, next , Mouse drag .
1. Install first
npm install v-viewer --save
2.main.js introduce
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
Vue.use(Viewer)
notes : If you don't want to display buttons and picture names , You can main.js
Vue.use(Viewer, {
defaultOptions: {
button: false,
navbar: false,
title: false,
toolbar: true,
}
})
3. Use
<viewer :images="photo">
//photo Be sure to an array , Otherwise, the report will be wrong , stay data Address of the picture written in
<img
v-for="(src,index) in photo"
:src="src"
:key="index"
:onerror="errorImg"
>
</viewer>

边栏推荐
- 爬虫中Request属性
- Error generating yolov5.wts file
- Topological sorting (learning notes) introduction + judge whether there is a ring
- 08 design of intelligent agricultural environmental monitoring system based on ZigBee
- Deep learning of parameter adjustment skills
- MySQL transaction, phantom reading, current reading, snapshot reading related notes
- 9_逻辑回归(Logistic Regression)
- Deeplabcut uses 1
- C and pointer Chapter 18 runtime environment 18.2 interface between C and assembly language
- 94. Middle order traversal of binary tree
猜你喜欢

Nacos installation and pit stepping

Sliding window problem summary

Downloading and processing of sentinel-2

今日份20220719折腾deeplabcut

Codeforces C1. Simple Polygon Embedding

Leetcode - linked list

RESNET paper interpretation and code implementation (pytorch)

第3章 跨域问题

The difference between SQL join and related subinquiry

4. Talk about the famous Zhang Zhengyou calibration method
随机推荐
Three tier architecture simulation
卷积神经网络——LeNet(pytorch实现)
Codeforces C1. Simple Polygon Embedding
Paging plug-in -- PageHelper
机器人学台大林教授课程笔记
Dynamic memory management
Topological sorting (learning notes) introduction + judge whether there is a ring
01 knapsack problem 416. Segmentation and equal sum subset -494. Goal and
Downloading and processing of sentinel-2
Complete backpack and 01 Backpack
Signal and system learning zero input response
Modulo (remainder) operation in the range of real numbers: how to find the remainder of negative numbers
Recbole use 1
ResNet论文解读及代码实现(pytorch)
Tencent cloud lightweight application server purchase method steps!
Apple TV HD with the first generation Siri remote is listed as obsolete
AlexNet(Pytorch实现)
10_ Name Case - Calculation attribute
Training team lpoj round10 e Jumping Frog
Dynamic SQL