mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-24 18:30:17 +08:00
24 lines
745 B
TypeScript
24 lines
745 B
TypeScript
import { PublicConfigClass } from '@/packages/public'
|
|
import { CapsuleChartConfig } from './index'
|
|
import { CreateComponentType } from '@/packages/index.d'
|
|
import { chartInitConfig } from '@/settings/designSetting'
|
|
|
|
import cloneDeep from 'lodash/cloneDeep'
|
|
import dataJson from './data.json'
|
|
|
|
|
|
export const option = {
|
|
dataSet:dataJson,
|
|
colors: ['#e062ae', '#fb7293', '#e690d1', '#32c5e9', '#96bfff'],
|
|
unit: '',
|
|
itemHeight:10,
|
|
showValue: true
|
|
}
|
|
|
|
export default class Config extends PublicConfigClass implements CreateComponentType {
|
|
public key: string = CapsuleChartConfig.key
|
|
public attr = { ...chartInitConfig,w: 300, h: 200 ,zIndex: -1}
|
|
public chartConfig = cloneDeep(CapsuleChartConfig)
|
|
public option = cloneDeep(option)
|
|
}
|