|
@@ -25,7 +25,8 @@ import RightToolbar from "@/components/RightToolbar"
|
|
|
import * as echarts from "echarts";
|
|
|
import '@/utils/dialog.js'
|
|
|
import { toSuperFixed } from "./api/warehouseBusiness/restructure";
|
|
|
-
|
|
|
+import Viewer from 'v-viewer'
|
|
|
+import 'viewerjs/dist/viewer.css'
|
|
|
// 解决浮点数的问题
|
|
|
import _ from 'lodash';
|
|
|
|
|
@@ -91,7 +92,25 @@ Vue.use(Element, {
|
|
|
})
|
|
|
|
|
|
Vue.config.productionTip = false
|
|
|
-
|
|
|
+Vue.use(Viewer)
|
|
|
+Viewer.setDefaults({
|
|
|
+ Options: {
|
|
|
+ 'inline': true, // 启用 inline 模式
|
|
|
+ 'button': true, // 显示右上角关闭按钮
|
|
|
+ 'navbar': true, // 显示缩略图导航
|
|
|
+ 'title': true, // 显示当前图片的标题
|
|
|
+ 'toolbar': true, // 显示工具栏
|
|
|
+ 'tooltip': true, // 显示缩放百分比
|
|
|
+ 'movable': true, // 图片是否可移动
|
|
|
+ 'zoomable': true, // 图片是否可缩放
|
|
|
+ 'rotatable': true, // 图片是否可旋转
|
|
|
+ 'scalable': true, // 图片是否可翻转
|
|
|
+ 'transition': true, // 使用 CSS3 过度
|
|
|
+ 'fullscreen': true, // 播放时是否全屏
|
|
|
+ 'keyboard': true, // 是否支持键盘
|
|
|
+ 'url': 'data-source' // 设置大图片的 url
|
|
|
+ }
|
|
|
+})
|
|
|
new Vue({
|
|
|
el: '#app',
|
|
|
router,
|