index.d.ts 566 Bytes
Newer Older
陈小聪's avatar
陈小聪 committed
1
import React from 'react';
jim's avatar
jim committed
2
export interface IPieProps {
3 4
  animate?: boolean;
  color?: string;
5
  colors?: string[];
6 7
  height: number;
  hasLegend?: boolean;
niko's avatar
niko committed
8
  padding?: [number, number, number, number];
9 10
  percent?: number;
  data?: Array<{
jim's avatar
jim committed
11
    x: string | string;
12 13
    y: number;
  }>;
14
  total?: React.ReactNode | number | (() => React.ReactNode | number);
陈帅's avatar
陈帅 committed
15
  title?: React.ReactNode;
16
  tooltip?: boolean;
niko's avatar
niko committed
17
  valueFormat?: (value: string) => string | React.ReactNode;
陈帅's avatar
陈帅 committed
18
  subTitle?: React.ReactNode;
19 20
}

jim's avatar
jim committed
21
export default class Pie extends React.Component<IPieProps, any> {}