-
-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add dataIndex type check #1091
feat: add dataIndex type check #1091
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1091 +/- ##
=======================================
Coverage 97.96% 97.96%
=======================================
Files 51 51
Lines 4671 4671
Branches 592 592
=======================================
Hits 4576 4576
Misses 91 91
Partials 4 4 ☔ View full report in Codecov by Sentry. |
第二处解决了,是因为有一处在 master 就漏掉了,没加 RecordType |
@@ -40,7 +40,7 @@ export default function useCellRender<RecordType>( | |||
? dataIndex | |||
: [dataIndex]; | |||
|
|||
const value: React.ReactNode = getValue(record, path); | |||
const value: React.ReactNode = getValue(record, path as any); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里为啥用 as any
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ref: ant-design/ant-design#48023