index.d.ts 490 B

1234567891011121314151617181920212223242526272829
  1. import * as React from "react";
  2. // g2已经更新到3.0
  3. // 不带的写了
  4. export interface Axis {
  5. title: any;
  6. line: any;
  7. gridAlign: any;
  8. labels: any;
  9. tickLine: any;
  10. grid: any;
  11. }
  12. export interface MiniAreaProps {
  13. color?: string;
  14. height: number;
  15. borderColor?: string;
  16. line?: boolean;
  17. animate?: boolean;
  18. xAxis?: Axis;
  19. yAxis?: Axis;
  20. data: Array<{
  21. x: number;
  22. y: number;
  23. }>;
  24. }
  25. export default class MiniArea extends React.Component<MiniAreaProps, any> {}