Skip to content

Commit

Permalink
[feature]:(BasicTypographyEllipsis) add copyable props
Browse files Browse the repository at this point in the history
  • Loading branch information
LZS911 committed Jan 25, 2024
1 parent 11d71e3 commit 2d0bf0e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ export interface IBasicTypographyEllipsis {
text: string | ReactNode;
route: string;
};
copyable?: boolean;
}

// 外层需要一个 max-width 容器 "例如:.ellipsis-column-width"
const BasicTypographyEllipsis = ({
textCont,
linkData,
tooltipLimitLength,
limitMaxLength
limitMaxLength,
copyable = true
}: IBasicTypographyEllipsis) => {
const { tooltipLimitLengthVal, limitMaxLengthVal } = useMemo(() => {
return {
Expand All @@ -29,7 +31,7 @@ const BasicTypographyEllipsis = ({

return (
<TypographyStyleWrapper
copyable
copyable={copyable}
ellipsis={{
expandable: false,
tooltip: {
Expand Down

0 comments on commit 2d0bf0e

Please sign in to comment.