重大变更: - 升级 UI 组件库从 wot-design-uni@1.14.0 到 @wot-ui/ui@2.0.8 - 新增 dayjs@1.11.13 作为独立依赖 组件迁移: - wd-message-box → wd-dialog (3个文件) - wd-status-tip → wd-empty (10个文件) - wd-col-picker → wd-cascader (3个文件) API 变更: - useMessage → useDialog (12个文件) - 所有导入路径从 wot-design-uni 更新为 @wot-ui/ui - dayjs 改为独立导入 配置更新: - vite.config.ts: 自定义 WotUIResolver 替代 WotResolver - tsconfig.json: 更新类型声明路径 - components.d.ts: 更新所有组件类型路径 影响范围: - 修改文件: 33个 - 布局文件: 2个 - 页面文件: 21个 - 组件文件: 1个 - 配置文件: 4个 - 类型文件: 2个 Breaking Changes: - Dialog 的 closeOnClickModal 默认值从 true 改为 false - Prompt 返回值从 res 改为 res.value - Empty 的 image 属性改为 icon - Cascader 的 columns 建议改为 options(向后兼容)
29 lines
976 B
JSON
29 lines
976 B
JSON
{
|
||
"compilerOptions": {
|
||
"module": "esnext",
|
||
"moduleResolution": "node",
|
||
"target": "esnext",
|
||
"allowJs": true,
|
||
"skipLibCheck": true,
|
||
"strict": true,
|
||
|
||
"sourceMap": true,
|
||
"baseUrl": ".",
|
||
"paths": {
|
||
"@/*": ["./src/*"]
|
||
},
|
||
"lib": ["esnext", "dom"],
|
||
"types": ["@dcloudio/types", "@uni-helper/uni-types", "@wot-ui/ui/global"]
|
||
},
|
||
"vueCompilerOptions": {
|
||
// 调整 Volar(Vue 语言服务工具)解析行为,用于为 uni-app 组件提供 TypeScript 类型
|
||
"plugins": ["@uni-helper/uni-types/volar-plugin"],
|
||
// 禁用原生组件严格类型检查(uni-app 原生组件与 Volar 的兼容性问题)
|
||
"nativeTags": ["block", "component", "template", "slot"],
|
||
// 忽略 slot props 隐式 any 类型错误(递归组件 slot 转发的已知限制)
|
||
"strictTemplates": false
|
||
},
|
||
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
||
"exclude": ["node_modules", "dist"]
|
||
}
|