Skip to content

Commit

Permalink
fix: typography fixContent is rendered by the render function
Browse files Browse the repository at this point in the history
  • Loading branch information
cc-hearts committed Jun 22, 2024
1 parent 35d5185 commit 86ecef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/typography/Base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ const Base = defineComponent({
findDOMNode(contentRef.value),
{ rows, suffix },
props.content,
renderOperations(true),
() => renderOperations(true),
ELLIPSIS_STR,
);

Expand Down
4 changes: 2 additions & 2 deletions components/typography/util.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default (
originElement: HTMLElement,
option: Option,
content: string,
fixedContent: VNodeTypes[],
fixedContentRender: () => VNodeTypes[],
ellipsisStr: string,
): {
content: VNodeTypes;
Expand Down Expand Up @@ -91,7 +91,7 @@ export default (
{content}
{suffix}
</span>
<span style={wrapperStyle}>{fixedContent}</span>
<span style={wrapperStyle}>{fixedContentRender()}</span>
</div>
);
},
Expand Down

0 comments on commit 86ecef3

Please sign in to comment.