Skip to content

Commit afba6cf

Browse files
committed
feat: 按需自动导入element-plus组件
1 parent 583cc78 commit afba6cf

File tree

12 files changed

+595
-54
lines changed

12 files changed

+595
-54
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = {
1515
rules: {
1616
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
1717
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
18-
'vue/multi-word-component-names': 'off'
18+
'vue/multi-word-component-names': 'off',
19+
'@typescript-eslint/no-explicit-any': 'off'
1920
}
2021
}

auto-imports.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* eslint-disable */
2+
/* prettier-ignore */
3+
// @ts-nocheck
4+
// Generated by unplugin-auto-import
5+
export {}
6+
declare global {
7+
8+
}

components.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* eslint-disable */
2+
/* prettier-ignore */
3+
// @ts-nocheck
4+
// Generated by unplugin-vue-components
5+
// Read more: https://github.com/vuejs/core/pull/3399
6+
export {}
7+
8+
declare module 'vue' {
9+
export interface GlobalComponents {
10+
ElButton: typeof import('element-plus/es')['ElButton']
11+
RouterLink: typeof import('vue-router')['RouterLink']
12+
RouterView: typeof import('vue-router')['RouterView']
13+
}
14+
}

0 commit comments

Comments
 (0)