From f16acb06ab278cdcb1d39a29680634010638326d Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 08 五月 2024 17:35:48 +0800 Subject: [PATCH] 1. 完成表格模块的功能迁移; 2. 完成表格、折线图、地图标记三者点击联动 --- src/main.js | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index f53ca8e..d6c2bf4 100644 --- a/src/main.js +++ b/src/main.js @@ -7,6 +7,19 @@ import App from './App.vue'; import router from './router'; +/* import the fontawesome core */ +import { library } from '@fortawesome/fontawesome-svg-core'; +/* import font awesome icon component */ +import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; +/* import specific icons */ +// import { all } from '@awesome.me/kit-KIT_CODE/icons'; +import { fas } from '@fortawesome/free-solid-svg-icons'; +// import { faTwitter, faFontAwesome } from '@fortawesome/free-brands-svg-icons' +// import { faTwitter, faFontAwesome } from '@fortawesome/free-regular-svg-icons' + +/* add icons to the library */ +library.add(fas); + const app = createApp(App); // elementUI Icon 娉ㄥ唽 @@ -14,6 +27,7 @@ app.component(key, component); } +app.component('font-awesome-icon', FontAwesomeIcon); app.use(createPinia()); app.use(router); -- Gitblit v1.9.3