🐛[BUG] Table valueType 为dateTime,tooltip展示的值为未转换的值 - TypeScript pro-components
🐛 bug 描述
codesandbox 第82行
📷 复现步骤
🏞 期望结果
💻 复现代码
https://codesandbox.io/s/cha-xun-wu-an-niu-biao-ge-forked-omxhi?file=/App.tsx
© 版本信息
- ProComponents 版本: [e.g. 4.0.0] 2.48.0
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]
🚑 其他信息
Asked Oct 06 '21 20:10
furylee
1 Answer:
https://github.com/ant-design/pro-components/blob/bb12e03f739110d4437473b180ce96006122bc10/packages/table/src/utils/columnRender.tsx#L83 这里可以考虑替换成 ellipsis={item.ellipsis && dom ? { tooltip: dom } : false}
或者使用 renderText 方法手动格式化一下
1
Answered Aug 19 '21 at 08:38
ohhoney1
Read next
- vscode CTRL+F search input field does not show characters TypeScript
- Mine merge error when using Napalm Proxy - Python salt
- renderCustomHeader only applies to first month when using Multiple months - JavaScript react-datepicker
- [Question] Can dolphinscheduler send alert information by http request? How to use it? - Java dolphinscheduler
- tensorflow Fail in configuration due to different CUDA libraries path - Cplusplus
- installation fails - celestite
- update docs - laravel-analytics
- Snapshot tests: Add capability to test handle tracking across summaries - FluidFramework