index.d.ts 603 Bytes
Newer Older
陈小聪's avatar
陈小聪 committed
1
import React from 'react';
2 3
import { TooltipProps } from 'antd/lib/tooltip';

陈小聪's avatar
陈小聪 committed
4
export interface EllipsisTooltipProps extends TooltipProps {
5 6 7 8
  title?: undefined;
  overlayStyle?: undefined;
}

陈小聪's avatar
陈小聪 committed
9 10
export interface EllipsisProps {
  tooltip?: boolean | EllipsisTooltipProps;
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

陈小聪's avatar
陈小聪 committed
21
export default class Ellipsis extends React.Component<EllipsisProps, any> {}