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 19 20
export function getStrFullLength(str: string): number;
export function cutStrByFullLength(str: string, maxLength: number): number;

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