Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个行代码:
<TreeNode title={"abc"} ...>
问题:当我将鼠标悬停在该元素上时,它显示的默认工具提示文本是标题,在我的示例中是“abc”。
=> 预期:我想在工具提示中自定义我的文本,而不是默认值。
你好我是这样解决的
<TreeNode value="parent 1-0" title={ <Tooltip placement="right" title={"abc"}> <div style={{width: "100%"}}>abc</div> </Tooltip> }/>