xiaoxian521
3 years ago
5 changed files with 81 additions and 2 deletions
-
3package.json
-
50pnpm-lock.yaml
-
5src/layout/components/sidebar/sidebarItem.vue
-
8src/main.ts
-
15src/plugins/fontawesome/index.ts
@ -4,6 +4,9 @@ specifiers: |
|||
"@commitlint/cli": 13.1.0 |
|||
"@commitlint/config-conventional": 13.1.0 |
|||
"@element-plus/icons": ^0.0.11 |
|||
"@fortawesome/fontawesome-svg-core": ^1.2.36 |
|||
"@fortawesome/free-solid-svg-icons": ^5.15.4 |
|||
"@fortawesome/vue-fontawesome": ^3.0.0-5 |
|||
"@types/element-resize-detector": 1.1.3 |
|||
"@types/mockjs": 1.0.3 |
|||
"@types/node": 14.14.14 |
|||
@ -70,6 +73,9 @@ specifiers: |
|||
|
|||
dependencies: |
|||
"@element-plus/icons": 0.0.11 |
|||
"@fortawesome/fontawesome-svg-core": 1.2.36 |
|||
"@fortawesome/free-solid-svg-icons": 5.15.4 |
|||
"@fortawesome/vue-fontawesome": 3.0.0-5_a4ef6aa86ab1c63b266771040e7bf2c7 |
|||
"@vueuse/core": 6.7[email protected] |
|||
"@vueuse/motion": 2.0.0-[email protected] |
|||
animate.css: 4.1.1 |
|||
@ -756,6 +762,50 @@ packages: |
|||
- supports-color |
|||
dev: true |
|||
|
|||
/@fortawesome/fontawesome-common-types/0.2.36: |
|||
resolution: |
|||
{ |
|||
integrity: sha512-a/7BiSgobHAgBWeN7N0w+lAhInrGxksn13uK7231n2m8EDPE3BMCl9NZLTGrj9ZXfCmC6LM0QLqXidIizVQ6yg== |
|||
} |
|||
engines: { node: ">=6" } |
|||
requiresBuild: true |
|||
dev: false |
|||
|
|||
/@fortawesome/fontawesome-svg-core/1.2.36: |
|||
resolution: |
|||
{ |
|||
integrity: sha512-YUcsLQKYb6DmaJjIHdDWpBIGCcyE/W+p/LMGvjQem55Mm2XWVAP5kWTMKWLv9lwpCVjpLxPyOMOyUocP1GxrtA== |
|||
} |
|||
engines: { node: ">=6" } |
|||
requiresBuild: true |
|||
dependencies: |
|||
"@fortawesome/fontawesome-common-types": 0.2.36 |
|||
dev: false |
|||
|
|||
/@fortawesome/free-solid-svg-icons/5.15.4: |
|||
resolution: |
|||
{ |
|||
integrity: sha512-JLmQfz6tdtwxoihXLg6lT78BorrFyCf59SAwBM6qV/0zXyVeDygJVb3fk+j5Qat+Yvcxp1buLTY5iDh1ZSAQ8w== |
|||
} |
|||
engines: { node: ">=6" } |
|||
requiresBuild: true |
|||
dependencies: |
|||
"@fortawesome/fontawesome-common-types": 0.2.36 |
|||
dev: false |
|||
|
|||
/@fortawesome/vue-fontawesome/3.0.0-5_a4ef6aa86ab1c63b266771040e7bf2c7: |
|||
resolution: |
|||
{ |
|||
integrity: sha512-aNmBT4bOecrFsZTog1l6AJDQHPP3ocXV+WQ3Ogy8WZCqstB/ahfhH4CPu5i4N9Hw0MBKXqE+LX+NbUxcj8cVTw== |
|||
} |
|||
peerDependencies: |
|||
"@fortawesome/fontawesome-svg-core": ~1 || >=1.3.0-beta1 |
|||
vue: ">= 3.0.0 < 4" |
|||
dependencies: |
|||
"@fortawesome/fontawesome-svg-core": 1.2.36 |
|||
vue: 3.2.21 |
|||
dev: false |
|||
|
|||
/@humanwhocodes/config-array/0.5.0: |
|||
resolution: |
|||
{ |
|||
|
@ -0,0 +1,15 @@ |
|||
/** 兼容fontawesome4和5版本 |
|||
* 4版本: www.fontawesome.com.cn/faicons/ |
|||
* 5版本:https://fontawesome.com/v5.15/icons?d=gallery&p=2&m=free
|
|||
* https://github.com/FortAwesome/vue-fontawesome
|
|||
*/ |
|||
import { App } from "vue"; |
|||
import "font-awesome/css/font-awesome.css"; |
|||
import { library } from "@fortawesome/fontawesome-svg-core"; |
|||
import { faUserSecret } from "@fortawesome/free-solid-svg-icons"; |
|||
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; |
|||
|
|||
export function useFontawesome(app: App) { |
|||
library.add(faUserSecret); |
|||
app.component("font-awesome-icon", FontAwesomeIcon); |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue