You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

3 months ago
3 months ago
3 months ago
3 months ago
  1. import * as ElementPlusIconsVue from '@element-plus/icons-vue'
  2. import FtButton from 'components/common/FTButton/index.vue'
  3. import FtDialog from 'components/common/FTDialog/index.vue'
  4. import FtStream from 'components/common/FTStream/index.vue'
  5. import FtTable from 'components/common/FTTable/index.vue'
  6. import ElementPlus from 'element-plus'
  7. import locale from 'element-plus/es/locale/lang/zh-cn'
  8. import ImagesViewerVue3 from 'images-viewer-vue3'
  9. import pinia from 'stores/index'
  10. import { createApp } from 'vue'
  11. import App from './app.vue'
  12. import router from './router'
  13. import 'element-plus/dist/index.css'
  14. import 'assets/styles/main.scss'
  15. const app = createApp(App)
  16. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  17. app.component(key, component)
  18. }
  19. app.use(pinia)
  20. app.use(ImagesViewerVue3, {
  21. zIndex: 999, // Default 999
  22. language: 'zh-cn', // Default language 'zh'
  23. scaleRatio: 1, // Default 1
  24. rotateRatio: 90, // Default 90 degrees
  25. isEnableDrag: true, // Enabled by default
  26. isEnableWheel: true, // Enabled by default
  27. playSpeed: 2000, // playSpeed Default 2000 ms
  28. isDownLoad: true, // Enabled by default
  29. isHiddenSiderNav: false, // Enabled by default
  30. isHiddenSearch: false, // Disable by default
  31. })
  32. app.component('FtTable', FtTable)
  33. app.component('FtButton', FtButton)
  34. app.component('FtDialog', FtDialog)
  35. app.component('FtStream', FtStream)
  36. app
  37. .use(router)
  38. .use(ElementPlus, { locale, zIndex: 3000 })
  39. .mount('#app')