fix(tsconfig.json): 通过 compilerOptions.type 指定全局组件类型
This commit is contained in:
parent
ab698fdb1f
commit
65daaf44aa
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue