index.d.ts 612 Bytes
Newer Older
jim's avatar
jim committed
1
import * as React from 'react';
2 3 4 5 6 7 8
import { TooltipProps } from 'antd/lib/tooltip';

export interface IEllipsisTooltipProps extends TooltipProps {
  title?: undefined;
  overlayStyle?: undefined;
}

jim's avatar
jim committed
9
export interface IEllipsisProps {
10
  tooltip?: boolean | IEllipsisTooltipProps;
11 12
  length?: number;
  lines?: number;
jim's avatar
jim committed
13
  style?: React.CSSProperties;
jim's avatar
jim committed
14
  className?: string;
twisger's avatar
twisger committed
15
  fullWidthRecognition?: boolean;
16 17
}

18
export function getStrFullLength(str: string): number;
信鑫-King's avatar
信鑫-King committed
19
export function cutStrByFullLength(str: string, maxLength: number): string;
20

jim's avatar
jim committed
21
export default class Ellipsis extends React.Component<IEllipsisProps, any> {}