|
@@ -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)
|