config.ts 745 B

1234567891011121314151617181920212223
  1. import { PublicConfigClass } from '@/packages/public'
  2. import { CapsuleChartConfig } from './index'
  3. import { CreateComponentType } from '@/packages/index.d'
  4. import { chartInitConfig } from '@/settings/designSetting'
  5. import cloneDeep from 'lodash/cloneDeep'
  6. import dataJson from './data.json'
  7. export const option = {
  8. dataset:dataJson,
  9. colors: ['#e062ae', '#fb7293', '#e690d1', '#32c5e9', '#96bfff'],
  10. unit: '',
  11. itemHeight:10,
  12. showValue: true
  13. }
  14. export default class Config extends PublicConfigClass implements CreateComponentType {
  15. public key: string = CapsuleChartConfig.key
  16. public attr = { ...chartInitConfig,w: 300, h: 200 ,zIndex: -1}
  17. public chartConfig = cloneDeep(CapsuleChartConfig)
  18. public option = cloneDeep(option)
  19. }