F2 icon indicating copy to clipboard operation
F2 copied to clipboard

BUG:5.x 增加ToolTip后,无法显示ToolTip内容

Open zejunking opened this issue 2 years ago • 2 comments
trafficstars

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

image

Environment Info
f2 5.0.21
System -
Browser 最新版Chrome

zejunking avatar Apr 26 '23 09:04 zejunking

image 试了一下可以的,麻烦给一下复现地址呢

tangying1027 avatar Oct 24 '23 05:10 tangying1027

image 试了一下可以的,麻烦给一下复现地址呢

您好,我也用的这个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

LLmoskk avatar Jun 09 '24 06:06 LLmoskk