zhengkaixin 4 anni fa
parent
commit
7df3414cb3
1 ha cambiato i file con 21 aggiunte e 0 eliminazioni
  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)