Skip to content

Commit

Permalink
feat(element-plus): configure element-plus import automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
YDKD committed Jan 25, 2022
1 parent 6ab37f2 commit 320c20b
Show file tree
Hide file tree
Showing 8 changed files with 274 additions and 5 deletions.
6 changes: 6 additions & 0 deletions auto-imports.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Generated by 'unplugin-auto-import'
// We suggest you to commit this file into source control
declare global {

}
export {}
12 changes: 12 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// 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

declare module 'vue' {
export interface GlobalComponents {
ElButton: typeof import('element-plus/es')['ElButton']
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
}
}

export { }
222 changes: 220 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"commit": "cz"
},
"dependencies": {
"element-plus": "^1.3.0-beta.8",
"less": "^4.1.2",
"pinia": "^2.0.9",
"vue": "^3.2.25",
Expand All @@ -35,6 +36,8 @@
"husky": "^7.0.0",
"prettier": "^2.5.1",
"typescript": "^4.5.2",
"unplugin-auto-import": "^0.5.11",
"unplugin-vue-components": "^0.17.14",
"vite": "^2.7.2",
"vue-eslint-parser": "^8.1.0",
"vue-tsc": "^0.29.8"
Expand Down
Loading

0 comments on commit 320c20b

Please sign in to comment.