export const cfgItem = [{
  label: 'x',
  name: 'x',
  value: 0,
  placeholder: '例如：10',
  type: []
}, {
  label: 'y',
  name: 'y',
  value: 0,
  placeholder: '例如：10',
  type: []
}, {
  label: 'clazz',
  name: 'clazz',
  value: '',
  placeholder: '例如：cz-title',
  type: []
},{
  label: '请求参数',
  name: 'params',
  value: '',
  placeholder: '例如：{id: 2}',
  type: []
},{
  label: '请求方式',
  name: 'method',
  value: 'get',
  placeholder: '例如：get',
  type: [{
    id: 'get',
    name: 'get'
  }, {
    id: 'post',
    name: 'post'
  }, {
    id: 'put',
    name: 'put'
  }, {
    id: 'delete',
    name: 'delete'
  }]
},{
  label: '请求地址',
  name: 'url',
  value: ``, // /business/dpCity/projectChange/0571
  placeholder: '例如：',
  type: []
}, {
  label: '宽度',
  name: 'width',
  placeholder: '例如：181px',
  value: '400px',
  type: []
}, {
  label: '高度',
  name: 'height',
  placeholder: '例如：181px',
  value: '400px',
  type: []
}, {
  label: '数据',
  name: 'data',
  placeholder: `例如：[{ cityName: '缅甸', totalScore: 150 }]`,
  value: [{ cityName: '杭州', totalScore: 110 }, { cityName: '嘉兴', totalScore: 90 }, { cityName: '绍兴', totalScore: 64 },
  { cityName: '宁波', totalScore: 56 }, { cityName: '衢州', totalScore: 42 }, { cityName: '湖州', totalScore: 34 },
  { cityName: '金华', totalScore: 27 }, { cityName: '丽水', totalScore: 18 }, { cityName: '温州', totalScore: 6 }, { cityName: '台州', totalScore: 2 }],
  type: []
}, {
  label: '城市名属性',
  name: 'cityProperty',
  placeholder: '例如：cityName',
  value: 'cityName',
  type: []
}, {
  label: '值属性',
  name: 'valueProperty',
  placeholder: '例如：totalScore',
  value: 'totalScore',
  type: []
}, {
  label: '目的地',
  name: 'destName',
  placeholder: '例如：鄞州',
  value: '鄞州',
  type: []
}, {
  label: '线条颜色',
  name: 'lineColor',
  placeholder: `例如：['#ff3333', '#ffa500', '#ffff00', '#0aff00', '#00ffff']`,
  value: ['#ff3333', '#ffa500', '#ffff00', '#0aff00', '#00ffff'],
  type: []
}, {
  label: '值分隔',
  name: 'piecesValue',
  placeholder: `例如：[0, 200, 400, 600, 800]`,
  value: [0, 200, 400, 600, 800],
  type: []
}, {
  label: '图例展示',
  name: 'legendShow',
  placeholder: `例如：是/否`,
  value: '是',
  type: []
}, {
  label: '图例标题',
  name: 'legendTitle',
  placeholder: `例如：流入流出量（万）`,
  value: '流入流出量（万）',
  type: []
}, {
  label: '地图类型',
  name: 'mapType',
  placeholder: `例如：浙江省`,
  value: 'zhejiang',
  type: [{id: 'world', name: '世界'},{id: 'qg', name: '全国'},{id: 'zhejiang', name: '浙江省'}]
}]

export default  {
  x: 0,
  y: 0,
  clazz : '',
  params : {},
  url: ``,
  method: 'get',
  width: '400px',
  height: '400px',
  data: 
  // [{ cityName: '江苏', totalScore: 86 }, { cityName: '山西', totalScore: 70 }, { cityName: '河北', totalScore: 68 },
  // { cityName: '辽宁', totalScore: 59 }, { cityName: '吉林', totalScore: 52 }, { cityName: '安徽', totalScore: 40 },
  // { cityName: '福建', totalScore: 32 }, { cityName: '江西', totalScore: 28 }, { cityName: '山东', totalScore: 16 }, { cityName: '湖北', totalScore: 9 }],
  [{ cityName: '杭州', totalScore: 190 }, { cityName: '嘉兴', totalScore: 367 }, { cityName: '绍兴', totalScore: 461 },
  { cityName: '宁波', totalScore: 352 }, { cityName: '衢州', totalScore: 232 }, { cityName: '湖州', totalScore: 728 },
  { cityName: '金华', totalScore: 921 }, { cityName: '丽水', totalScore: 1123 }, { cityName: '温州', totalScore: 138 }, { cityName: '台州', totalScore: 244 }],
  // [{ cityName: '韩国', totalScore: 90 }, { cityName: '俄罗斯', totalScore: 64 }, { cityName: '加拿大', totalScore: 57 },
  //   { cityName: '美国', totalScore: 51 }, { cityName: '马来西亚', totalScore: 31 }, { cityName: '新加坡', totalScore: 25 }, { cityName: '缅甸', totalScore: 20 }, { cityName: '德国', totalScore: 12 }, { cityName: '日本', totalScore: 4 }, { cityName: '越南', totalScore: 3 }],
  cityProperty: 'cityName',
  valueProperty: 'totalScore',
  destName: '鄞州',
  lineColor: ['#ff3333', '#ffa500', '#ffff00', '#0aff00', '#00ffff'],
  piecesValue: [0, 200, 400, 600, 800],
  legendShow: '是',
  legendTitle: '流入流出量（万）',
  mapType: 'zhejiang'
}