/**
 * Props 接受父组件的传值
 * @prop {Object} customStyle - 自定义样式
 * @prop {String} type - 图表类型
 * @prop {Object} toolbox - 工具栏
 * @prop {Object} tooltip - 提示框组件
 * @prop {Object} xAxis - x轴组件
 * @prop {Object} yAxis - y轴组件
 * @prop {Array} series - 图表数据
 * @author Matrix
 * @date: 2022-04-20
 */
const props = {
  customStyle: {
    type: Object,
    required: false,
    default: () => ({
      width: '100%',
      height: '100%'
    })
  },
  type: {
    type: String,
    required: true
  },
  toolbox: {
    type: Object,
    required: false,
    default: () => ({})
  },
  tooltip: {
    type: Object,
    required: false,
    default: () => ({})
  },
  legend: {
    left: 'auto',
    top: 'auto',
    right: 'auto',
    bottom: 'auto'
  },
  xAxis: {
    type: Object,
    required: false,
    default: () => ({})
  },
  yAxis: {
    type: Object,
    required: false,
    default: () => ({})
  },
  series: {
    type: Array,
    required: false,
    default: () => []
  }
}

export default props
