index.d.ts 424 Bytes
Newer Older
jim's avatar
jim committed
1
import * as React from 'react';
jim's avatar
jim committed
2
export interface IEllipsisProps {
3 4 5
  tooltip?: boolean;
  length?: number;
  lines?: number;
jim's avatar
jim committed
6
  style?: React.CSSProperties;
jim's avatar
jim committed
7
  className?: string;
twisger's avatar
twisger committed
8
  fullWidthRecognition?: boolean;
9 10
}

11 12 13
export function getStrFullLength(str: string): number;
export function cutStrByFullLength(str: string, maxLength: number): number;

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