main.ts 569 B

1234567891011121314151617181920212223242526272829
  1. import { createApp } from 'vue'
  2. import App from './App.vue'
  3. import setupPlugins from '@/plugins'
  4. import 'amfe-flexible/index.js'
  5. // 本地SVG图标
  6. import 'virtual:svg-icons-register'
  7. // 样式
  8. import 'element-plus/theme-chalk/dark/css-vars.css'
  9. import '@/styles/index.scss'
  10. import 'uno.css'
  11. import 'animate.css'
  12. import mitt from 'mitt'
  13. const Mitt = mitt()
  14. const app = createApp(App)
  15. declare module 'vue' {
  16. export interface ComponentCustomProperties {
  17. $Bus: typeof Mitt
  18. }
  19. }
  20. app.config.globalProperties.$Bus = Mitt
  21. app.use(setupPlugins)
  22. app.mount('#app')