feat(types): 适配升级vue-tsc 3.2.6类型报错问题#1478
feat(types): 适配升级vue-tsc 3.2.6类型报错问题#1478SuperTylerX wants to merge 1 commit intoMoonofweisheng:masterfrom
Conversation
|
@SuperTylerX is attempting to deploy a commit to the weisheng's projects Team on Vercel. A member of the Team first needs to authorize it. |
✅ Deploy Preview for wot-design-uni ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
总览此PR包含三项改动:更新 变更清单
相关 PR
建议审查人
代码审查工作量估算🎯 2 (Simple) | ⏱️ ~12 分钟 诗
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can generate walkthrough in a markdown collapsible section to save space.Enable the |
🤔 这个 PR 的性质是?(至少选择一个)
🔗 相关 Issue
暂无直接关联 Issue。
本次修复来源于本地 type-check 报错排查与修正。
💡 需求背景和解决方案
需求背景:
执行 type-check 时出现 4 个 TypeScript 错误,涉及 ActionSheet 和 Slider 两个组件。
错误集中在模板中索引类型推断不匹配,以及事件参数隐式 any。
解决方案:
ActionSheet 中将面板点击传参的 colIndex 显式转换为 number,保证与函数参数类型一致。
Slider 中将模板内联箭头事件写法改为直接使用 $event 传参,消除事件参数隐式 any 报错。
修复后再次执行 type-check,错误已全部清除。
API 和用法:
无对外 API 变更。
仅修复类型定义和模板类型推断问题,不影响现有功能行为。
☑️ 请求合并前的自查清单
Summary by CodeRabbit
发行说明
错误修复
任务