|
@@ -1,5 +1,4 @@
|
|
|
import FloatingVue from 'floating-vue'
|
|
import FloatingVue from 'floating-vue'
|
|
|
-
|
|
|
|
|
import Message from 'vue-m-message'
|
|
import Message from 'vue-m-message'
|
|
|
import App from './App.vue'
|
|
import App from './App.vue'
|
|
|
|
|
|
|
@@ -7,7 +6,7 @@ import router from './router'
|
|
|
import pinia from './store'
|
|
import pinia from './store'
|
|
|
|
|
|
|
|
import ui from './ui-provider'
|
|
import ui from './ui-provider'
|
|
|
-
|
|
|
|
|
|
|
+import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
|
import '@/utils/system.copyright'
|
|
import '@/utils/system.copyright'
|
|
|
import 'floating-vue/dist/style.css'
|
|
import 'floating-vue/dist/style.css'
|
|
|
import 'vue-m-message/dist/style.css'
|
|
import 'vue-m-message/dist/style.css'
|
|
@@ -29,6 +28,11 @@ import 'virtual:uno.css'
|
|
|
import '@/assets/styles/globals.css'
|
|
import '@/assets/styles/globals.css'
|
|
|
|
|
|
|
|
const app = createApp(App)
|
|
const app = createApp(App)
|
|
|
|
|
+for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
|
|
+ app.component(key, component)
|
|
|
|
|
+}
|
|
|
|
|
+// 添加 Element Plus
|
|
|
|
|
+
|
|
|
app.use(FloatingVue, {
|
|
app.use(FloatingVue, {
|
|
|
distance: 12,
|
|
distance: 12,
|
|
|
})
|
|
})
|