Skip to content

Commit

Permalink
fix: Descriptions labelStyle unsuccessful (#29942)
Browse files Browse the repository at this point in the history
* fix: Descriptions labelStyle unsuccessful

* use hook

* Update components/descriptions/demo/style.md

* fix lint

* fix ts
  • Loading branch information
xrkffgg committed Mar 30, 2021
1 parent 8e885a7 commit 7f15e7f
Show file tree
Hide file tree
Showing 3 changed files with 405 additions and 345 deletions.
3 changes: 2 additions & 1 deletion components/descriptions/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const Cell: React.FC<CellProps> = ({
style={style}
colSpan={span}
>
{notEmpty(label) ? label : content}
{notEmpty(label) && <span style={labelStyle}>{label}</span>}
{notEmpty(content) && <span style={contentStyle}>{content}</span>}
</Component>
);
}
Expand Down

0 comments on commit 7f15e7f

Please sign in to comment.