ant-design / ant-design-pro

👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
https://pro.ant.design
MIT License
36.34k stars 8.14k forks source link

🐛 [BUG]新建项目运行lint在src/pages/TableList/index.tsx:119:7处有报错 #11285

Open BarryBooder opened 2 months ago

BarryBooder commented 2 months ago

🐛 bug 描述

新建项目初次运行 lint 会在 src/pages/TableList/index.tsx:119:7 处有 ts 报错:Object literal may only specify known properties, and 'tip' does not exist in type 'ProColumns',经过查看,ProColumns上确实没有 tip 属性,而是 tooltip,如下图所示。(类型文件地址:node_modules/@ant-design/pro-table/es/typing.d.ts)

📷 复现步骤 | Recurrence steps

通过 cli 正常创建一个 umi4 项目,运行 lint

🏞 期望结果 | Expected results

初始化的项目没有 ts 报错

© 版本信息

🚑 其他信息

Snipaste_2024-07-11_21-38-41