@cainiaofe/cn-ui-m
Version:
21 lines (20 loc) • 592 B
TypeScript
import * as React from 'react';
import type { CnEllipsisProps } from './types';
interface CnEllipsisState {
isOverflow: boolean;
}
export declare class CnEllipsis extends React.Component<CnEllipsisProps, CnEllipsisState> {
static displayName: string;
static defaultProps: {
ellipsisPosition: string;
endCharCount: number;
hasTooltip: boolean;
};
private textRef;
constructor(props: CnEllipsisProps);
componentDidMount(): void;
onMouseEnter: () => void;
saveTextRef: (ref: any) => void;
render(): React.JSX.Element;
}
export {};