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.

27 lines
989 B

5 months ago
  1. import * as ElementPlusIconsVue from '@element-plus/icons-vue' // 引入 ElementPlusIconsVue
  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 pinia from 'stores/index'
  9. import { createApp } from 'vue'
  10. import App from './app.vue'
  11. import router from './router'
  12. import 'element-plus/dist/index.css'
  13. import 'assets/styles/main.scss'
  14. const app = createApp(App)
  15. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  16. app.component(key, component)
  17. }
  18. app.use(pinia)
  19. app.component('FtTable', FtTable)
  20. app.component('FtButton', FtButton)
  21. app.component('FtDialog', FtDialog)
  22. app.component('FtStream', FtStream)
  23. app
  24. .use(router)
  25. .use(ElementPlus, { locale, zIndex: 3000 })
  26. .mount('#app')