config.ts 781 B

1234567891011121314151617181920212223242526
  1. import { PublicConfigClass } from '@/packages/public'
  2. import { CreateComponentType } from '@/packages/index.d'
  3. import { TableScrollBoardConfig } from './index'
  4. import cloneDeep from 'lodash/cloneDeep'
  5. import dataJson from './data.json'
  6. export const option = {
  7. header: ['列1', '列2', '列3'],
  8. dataset: dataJson,
  9. index: true,
  10. columnWidth: [30, 100, 100],
  11. align: ['center', 'right', 'right', 'right'],
  12. rowNum: 5,
  13. waitTime: 2,
  14. headerHeight: 35,
  15. carousel: 'single',
  16. headerBGC: '#00BAFF',
  17. oddRowBGC: '#003B51',
  18. evenRowBGC: '#0A2732'
  19. }
  20. export default class Config extends PublicConfigClass implements CreateComponentType {
  21. public key = TableScrollBoardConfig.key
  22. public chartConfig = cloneDeep(TableScrollBoardConfig)
  23. public option = cloneDeep(option)
  24. }