@cainiaofe/cn-ui-m
Version:
21 lines (20 loc) • 570 B
TypeScript
import type { CnPopoverProps } from "../../cn-popover";
import type { BasicComponentProps } from "../../../types";
export interface CnEllipsisProps extends BasicComponentProps {
/**
* 用于决定省略号出现的位置
*/
ellipsisPosition?: 'middle' | 'end';
/**
* 在 ellipsisPosition="middle" 生效,决定出现在末尾的字符串的数量
*/
endCharCount?: number;
/**
* 是否有 tooltip
*/
hasTooltip?: boolean;
/**
* tooltip 属性覆盖
*/
cnTooltipProps?: Partial<CnPopoverProps>;
}