From add483d13841cf472a9adb5c0cc72454f501fb7c Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 30 四月 2024 16:49:54 +0800 Subject: [PATCH] 新增搜索框 --- 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