mes_style.js 2.55 KB
Newer Older
何虹's avatar
何虹 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
export default {
  queryBiTheme: {
    background: 'red'
  },
  'showHandle': false,
  handleWidth: 80,
  selection: false,
  showIndex: true,
  isShowTools: true,
  exportExcelName: '表',
  toolItems_$: [{
    label: '导出本页',
    isHide: false,
    click: '$exportCurrPageData',
    disabled: false
  }, {
    label: '导出全部',
    isHide: false,
    click: '$exportAllPageData',
    disabled: false
  }, {
    label: '表格列设置',
    isHide: false,
    click: '$tableColumnSet',
    disabled: false
  }
  ],
  'built_border': true,
  // 详情样式
  cellDetailStyle: {
    headerRowStyle: {},
    rowStyle: {}
  },
  // 表格样式
  tableStyle: {
    'color': '',
    'font-size': '12px',
    'border': '',
    'font-family': 'Avenir,Helvetica,Arial,sans-serif'
  },
  // 表头行样式
  headerRowStyle: {
    'width': '',
    'height': '',
    'line-height': '',
    'font-family': 'Avenir,Helvetica,Arial,sans-serif',
    'font-size': '12px',
    'text-align': 'center',
    'color': '#495060',
    'background': '#f8f8f8',
    'border': '',
    'border-top': '',
    'border-bottom': '',
    'border-left': '',
    'border-right': '',
    'padding': '10px 0',
    'margin': ''
  },
  // 表头单元格样式
  headerCellStyle: {
    commonStyle: {
      'background': '#f8f8f8',
      'text-align': 'left'
    },
    data: [
      {
        property: '',
        style: {
        }
      }
    ]
  },
  // 行样式
  rowStyle: {
    commonStyle: {
      'padding': '0',
      color: '#606266',
      'font-size': '12px',
      'font-family': 'Avenir,Helvetica,Arial,sans-serif'
    },
    data: [
      {
        rowIndex: 0,
        style: {}
      }
    ]
  },
  // 列样式
  columnStyle: {
    commonStyle: {
      'font-family': 'Avenir,Helvetica,Arial,sans-serif'
    },
    data: [
      {
        property: '',
        style: {}
      }
    ]
  },
  // 表体单元格样式
  cellStyle: {
    commonStyle: {
      'border-color': '',
      'text-align': 'left',
      'padding': '5px 0',
      // 'background-color': '#FFF',
      'font-family': 'Avenir,Helvetica,Arial,sans-serif'
    },
    data: [
      {
        rowIndex: 0,
        property: '',
        style: {}
      }
    ]
  },
  'hover': {
    'hoverBackground': 'rgba(146, 189, 232, .3)',
    'leaveBackground': '#fff'
  },
  'gutter': {
    'background': '#393a96',
    'border': '',
    'borderTop': '',
    'borderBottom': '',
    'borderLeft': '',
    'borderRight': ''
  },
  'maxHeight': 'none',
  'border': false,
  'showTooltip': true,
  'hideHeader': false,
  'hsConfig': {
    'default_type': 1
  }
}