F2
F2 copied to clipboard
BUG:5.x 增加ToolTip后,无法显示ToolTip内容
trafficstars
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce

| Environment | Info |
|---|---|
| f2 | 5.0.21 |
| System | - |
| Browser | 最新版Chrome |
试了一下可以的,麻烦给一下复现地址呢
试了一下可以的,麻烦给一下复现地址呢
您好,我也用的这个demo,想请教一下如何可以在tooltip里写出这个格式 2021-11-12 能源:128 金属: 85 农副产品:107
我搜寻其他issue看到可以使用 这个形式
customText={(record: { origin: any }) => {
const { origin } = record;
return (
<text
// eslint-disable-next-line react/no-unknown-property
attrs={{
fill: '#fff',
text: `${origin.date} ${origin.type} ${origin.value}`,
}}
/>
);
}}
但是我写出来的变成了,所以想请教下如何把日期带到tooltip里面在这个示例demo中 2021-11-12 能源:128 2021-11-12 金属: 85 2021-11-12 农副产品:107
试了一下可以的,麻烦给一下复现地址呢