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": { "dependencies": {
"@element-plus/icons-vue": "^1.0.0", "@element-plus/icons-vue": "^1.0.0",
"@wangeditor/editor": "^0.15.7", "@wangeditor/editor": "^5.0.0",
"@wangeditor/editor-for-vue": "^5.1.8-9", "@wangeditor/editor-for-vue": "^5.1.10",
"axios": "^0.24.0", "axios": "^0.24.0",
"better-scroll": "^2.4.2", "better-scroll": "^2.4.2",
"echarts": "^5.2.2", "echarts": "^5.2.2",

View File

@@ -16,7 +16,8 @@
}, },
"allowSyntheticDefaultImports": true, // 默认导入 "allowSyntheticDefaultImports": true, // 默认导入
"skipLibCheck": true, // 不对第三方依赖类型检查 element-plus 生产打包报错 "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"] "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
} }