Statistic.d.ts 1.1 KB

1234567891011121314151617181920212223242526
  1. import * as React from 'react';
  2. import type { HTMLAriaDataAttributes } from '../_util/aria-data-attrs';
  3. import type { FormatConfig, valueType } from './utils';
  4. export interface StatisticRef {
  5. nativeElement: HTMLDivElement;
  6. }
  7. interface StatisticReactProps extends FormatConfig {
  8. prefixCls?: string;
  9. className?: string;
  10. rootClassName?: string;
  11. style?: React.CSSProperties;
  12. value?: valueType;
  13. valueStyle?: React.CSSProperties;
  14. valueRender?: (node: React.ReactNode) => React.ReactNode;
  15. title?: React.ReactNode;
  16. prefix?: React.ReactNode;
  17. suffix?: React.ReactNode;
  18. loading?: boolean;
  19. onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
  20. onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
  21. }
  22. export type StatisticProps = HTMLAriaDataAttributes & StatisticReactProps;
  23. declare const Statistic: React.ForwardRefExoticComponent<React.AriaAttributes & {
  24. [key: `data-${string}`]: unknown;
  25. } & Pick<React.HTMLAttributes<HTMLDivElement>, "role"> & StatisticReactProps & React.RefAttributes<StatisticRef>>;
  26. export default Statistic;