Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion packages/x/components/sender/components/Skill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ const Skill: React.FC<SkillProps> = ({
}, [closable, removeSkill]);

const mergeTitle = title || value;
const titleNode = toolTip ? <Tooltip {...toolTip}>{mergeTitle}</Tooltip> : mergeTitle;
const titleNode = toolTip ? (
<Tooltip {...toolTip}>
<span>{mergeTitle}</span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

antd 版本是啥,按道理 Tooltip 会自动处理这种情况。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

当前的main分支跑测试用例的时候出现这个问题

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

当前x的antd是6.1。我看看antd是不是又这个问题

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

现在应该不会有这个问题 之前有这个问题是因为 @ant-design/tools 没升级 本地合并下 main 重新安装依赖跑下就好了

</Tooltip>
) : (
mergeTitle
);

return (
<div className={`${componentCls}-wrapper`} contentEditable={false}>
Expand Down
Loading