// 样式
// 设置表标题样式
export const titleConfig = {
  font: {
    sz: 20,
    bold: true,
  },
  alignment: {
    horizontal: 'center',
    vertical: 'center',
  },
  // border: {
  //   top: { style: 'thin', color: { rgb: 'FF000000' } },
  //   bottom: { style: 'thin', color: { rgb: 'FF000000' } },
  //   left: { style: 'thin', color: { rgb: 'FF000000' } },
  //   right: { style: 'thin', color: { rgb: 'FF000000' } }
  // }
};
export const boldAndCenterBorderStyle = {
  font: {
    bold: true,
  },
  alignment: {
    horizontal: 'center',
    vertical: 'center',
    wrapText: true,
  },
  border: {
    top: { style: 'thin', color: { rgb: 'FF000000' } },
    bottom: { style: 'thin', color: { rgb: 'FF000000' } },
    left: { style: 'thin', color: { rgb: 'FF000000' } },
    right: { style: 'thin', color: { rgb: 'FF000000' } },
  },
};

export const boldAndCenterStyle = {
  font: {
    bold: true,
  },
  alignment: {
    horizontal: 'center',
    vertical: 'center',
    wrapText: true,
  },
};

export const centerBorderStyle = {
  alignment: {
    horizontal: 'center',
    vertical: 'center',
    wrapText: true,
  },
  border: {
    top: { style: 'thin', color: { rgb: 'FF000000' } },
    bottom: { style: 'thin', color: { rgb: 'FF000000' } },
    left: { style: 'thin', color: { rgb: 'FF000000' } },
    right: { style: 'thin', color: { rgb: 'FF000000' } },
  },
};

export const centerStyle = {
  alignment: {
    horizontal: 'center',
    vertical: 'center',
    wrapText: true,
  },
};

export const widthForSummary = [
  { wpx: 50 },
  { wpx: 50 },
  { wpx: 100 },
  { wpx: 70 },
  { wpx: 70 },
  { wpx: 70 },
  { wpx: 60 },
  { wpx: 60 },
  { wpx: 150 },
  { wpx: 150 },
  { wpx: 300 },
  { wpx: 100 },
  { wpx: 70 },
  { wpx: 70 },
  { wpx: 70 },
  { wpx: 70 },
  { wpx: 70 },
  { wpx: 100 },
  { wpx: 100 },
  { wpx: 100 },
  { wpx: 70 },
  { wpx: 70 },
  { wpx: 120 },
  { wpx: 120 },
  { wpx: 70 },
  { wpx: 150 },
  { wpx: 150 },
  { wpx: 120 },
];

export const widthForSummaryTotal = [{ wpx: 50 }, { wpx: 200 }, { wpx: 100 }, { wpx: 100 }];
