Skip to content

Commit

Permalink
refactor: 优化组件属性提示信息
Browse files Browse the repository at this point in the history
  • Loading branch information
Win102021DMMRWQ\Administrator committed Sep 1, 2023
1 parent df56b41 commit 0da79c4
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,18 @@ export default function PropsSetting() {
label: v.description ? (
<div>
{v.key} {v.name}
<Tooltip title={v.description}>
<Tooltip
title={
<>
{v.description
.trim()
.split("\n")
.map((text) => {
return <div key={text} style={{paddingLeft:`${text.split("\t").length}em`}}>{text}</div>;
})}
</>
}
>
<InfoCircleOutlined style={{ marginLeft: "0.5em" }} />
</Tooltip>
</div>
Expand Down

0 comments on commit 0da79c4

Please sign in to comment.