mirror of
https://gitee.com/dromara/go-view.git
synced 2026-07-21 06:31:07 +08:00
22 lines
559 B
TypeScript
22 lines
559 B
TypeScript
import { PublicConfigClass } from '@/packages/public'
|
|
import { CreateComponentType } from '@/packages/index.d'
|
|
import { ImageConfig } from './index'
|
|
import cloneDeep from 'lodash/cloneDeep'
|
|
import logo from '@/assets/logo.png'
|
|
|
|
export const option = {
|
|
// 图片路径
|
|
dataset: logo,
|
|
// 适应方式
|
|
fit: 'contain',
|
|
// 圆角
|
|
borderRadius: 10
|
|
}
|
|
|
|
export default class Config extends PublicConfigClass implements CreateComponentType
|
|
{
|
|
public key = ImageConfig.key
|
|
public chartConfig = cloneDeep(ImageConfig)
|
|
public option = cloneDeep(option)
|
|
}
|