showMobile.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import Vue from 'vue'
  2. import '../mixins'
  3. import App from './showMobile.vue'
  4. import store from '../Store'
  5. import preview from 'vue-photo-preview'
  6. import 'vue-photo-preview/dist/skin.css'
  7. import Videojs from 'video.js'
  8. import 'video.js/dist/video-js.css'
  9. import Toast from "vue-toastification";
  10. import "vue-toastification/dist/index.css";
  11. const options = {
  12. transition: 'Vue-Toastification__bounce',
  13. maxToasts: 3,
  14. newestOnTop: true,
  15. position: 'top-right',
  16. timeout: 2000,
  17. closeOnClick: true,
  18. pauseOnFocusLoss: true,
  19. pauseOnHover: false,
  20. draggable: true,
  21. draggablePercent: 0.7,
  22. showCloseButtonOnHover: false,
  23. hideProgressBar: true,
  24. closeButton: 'button',
  25. icon: true,
  26. rtl: false
  27. };
  28. Vue.use(Toast, options);
  29. Vue.use(preview,{
  30. toolbar: 0,
  31. title:0,
  32. navbar:false,
  33. showHideOpacity:true,
  34. arrowEl:true,
  35. bgOpacity:0.8,
  36. pinchToClose:false,
  37. closeOnVerticalDrag:false
  38. })
  39. Vue.prototype.$video = Videojs
  40. Vue.config.productionTip = false
  41. new Vue({
  42. store,
  43. render: h => h(App)
  44. }).$mount('#app')