index.d.ts 490 Bytes
Newer Older
陈帅's avatar
陈帅 committed
1
import * as React from "react";
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

// g2已经更新到3.0
// 不带的写了

export interface Axis {
  title: any;
  line: any;
  gridAlign: any;
  labels: any;
  tickLine: any;
  grid: any;
}

export interface MiniAreaProps {
  color?: string;
  height: number;
  borderColor?: string;
  line?: boolean;
  animate?: boolean;
  xAxis?: Axis;
  yAxis?: Axis;
  data: Array<{
    x: number;
    y: number;
  }>;
}

export default class MiniArea extends React.Component<MiniAreaProps, any> {}