Ellipsis.d.ts 630 B

123456789101112131415161718
  1. import * as React from 'react';
  2. export interface EllipsisProps {
  3. enableMeasure?: boolean;
  4. text?: React.ReactNode;
  5. width: number;
  6. rows: number;
  7. children: (cutChildren: React.ReactNode[],
  8. /** Tell current `text` is exceed the `rows` which can be ellipsis */
  9. canEllipsis: boolean) => React.ReactNode;
  10. onEllipsis: (isEllipsis: boolean) => void;
  11. expanded: boolean;
  12. /**
  13. * Mark for misc update. Which will not affect ellipsis content length.
  14. * e.g. tooltip content update.
  15. */
  16. miscDeps: any[];
  17. }
  18. export default function EllipsisMeasure(props: EllipsisProps): React.JSX.Element;