fix(tsconfig.json): 通过 compilerOptions.type 指定全局组件类型

This commit is contained in:
郝先瑞 2022-04-12 15:48:30 +08:00
parent ab698fdb1f
commit 65daaf44aa
2 changed files with 4 additions and 3 deletions

View File

@ -8,8 +8,8 @@
},
"dependencies": {
"@element-plus/icons-vue": "^1.0.0",
"@wangeditor/editor": "^0.15.7",
"@wangeditor/editor-for-vue": "^5.1.8-9",
"@wangeditor/editor": "^5.0.0",
"@wangeditor/editor-for-vue": "^5.1.10",
"axios": "^0.24.0",
"better-scroll": "^2.4.2",
"echarts": "^5.2.2",

View File

@ -16,7 +16,8 @@
},
"allowSyntheticDefaultImports": true, //
"skipLibCheck": true, // element-plus
"types": ["vite-plugin-svg-icons/client"]
"types": ["vite-plugin-svg-icons/client","element-plus/global"]
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
}