import { PropType } from 'vue';

export interface BasicProps {
  width: string;
  height: string;
}
export type dataItemType = {
  date: string;
  amount: string | number;
};
export type echartData = {
  xdata: string[];
  downOrder: number[];
  incrementOrder: number[];
  partOrder: number[];
  nameList?:string[];
  kjList?:number[];
  kkList?:number[];
  ssList?:number[];
  ssobjList?:number[];
  echartTypr?:string;
};
export const basicProps = {
  width: {
    type: String as PropType<string>,
    default: '100%',
  },
  height: {
    type: String as PropType<string>,
    default: '280px',
  },
  viewStatics: {
    type: Array as PropType<Array<dataItemType>>,
    default: [],
  },
  shareStatics: {
    type: Array as PropType<Array<dataItemType>>,
    default: [],
  },
  bulletChatAmounts: {
    type: Array as PropType<Array<dataItemType>>,
    default: [],
  },
  userAmount: {
    type: Array as PropType<Array<dataItemType>>,
    default: [],
  },
  echartData: {
    type: Object as PropType<echartData>,
    default: {},
  },
};
