zhengkaixin %!s(int64=4) %!d(string=hai) anos
pai
achega
7df3414cb3
Modificáronse 1 ficheiros con 21 adicións e 0 borrados
  1. 21 0
      src/projects/business/main.js

+ 21 - 0
src/projects/business/main.js

@@ -21,6 +21,27 @@ if (location.hostname === 'localhost') {
 Vue.config.productionTip = false
 
 //图片预览
+import VueDirectiveImagePreviewer from 'vue-directive-image-previewer'
+import 'vue-directive-image-previewer/dist/assets/style.css'
+Vue.use(VueDirectiveImagePreviewer, {
+	background: {
+		color: '#000'
+	},
+	// transition
+	animate: {
+		duration: 600,
+		delay: 500
+	},
+	// loading (not supported)
+	loading: {
+		image: ''
+	},
+	// cursor(css)
+	cursor: 'pointer',
+	clickMethod: 'doubleClick'
+})
+
+
 import Viewer from 'v-viewer'
 import 'viewerjs/dist/viewer.css'
 Vue.use(Viewer)