Skip to content

Commit

Permalink
chore: allow use unplugin icons inside tsx and vue
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Jul 12, 2022
1 parent e0d21aa commit a4ee75a
Show file tree
Hide file tree
Showing 5 changed files with 5,287 additions and 13 deletions.
5 changes: 4 additions & 1 deletion components.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// generated by unplugin-vue-components
// We suggest you to commit this file into source control
// Read more: https://github.com/vuejs/vue-next/pull/3399
// Read more: https://github.com/vuejs/core/pull/3399
import '@vue/runtime-core'

declare module '@vue/runtime-core' {
Expand All @@ -10,6 +10,9 @@ declare module '@vue/runtime-core' {
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
IEpExpand: typeof import('~icons/ep/expand.vue')['default']
IEpFold: typeof import('~icons/ep/fold.vue')['default']
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "vue-boot",
"private": true,
"version": "0.0.1",
"packageManager": "pnpm@7.2.1",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
Expand All @@ -12,8 +13,6 @@
"stylelint": "stylelint \"src/**/*.*\" --fix",
"stylelint-check": "stylelint-config-prettier-check",
"fal": "npm run format && npm run stylelint && npm run lint",
"prepare": "husky install",
"preinstall": "npx npm-limit yarn",
"cz": "cz"
},
"lint-staged": {
Expand Down Expand Up @@ -70,6 +69,7 @@
"unplugin-icons": "^0.14.7",
"unplugin-vue-components": "^0.19.5",
"vite": "^2.9.1",
"vite-plugin-inspect": "^0.5.1",
"vue-tsc": "^0.33.9"
},
"config": {
Expand Down
Loading

0 comments on commit a4ee75a

Please sign in to comment.