feat: 新增图片组件模板

This commit is contained in:
奔跑的面条 2022-04-27 17:45:40 +08:00
parent b61215d540
commit e0b0d5747b
5 changed files with 16 additions and 4 deletions

View File

@ -59,7 +59,7 @@ export const useChartDataFetch = (
}) })
} else { } else {
// 若遵守规范使用 datase 作为数据 key则省自动赋值数据 // 若遵守规范使用 datase 作为数据 key则省自动赋值数据
targetComponent.option.dataset = res.data targetComponent.option.dataset && (targetComponent.option.dataset = res.data)
} }
if (updateCallback) { if (updateCallback) {
updateCallback(res.data) updateCallback(res.data)

View File

@ -3,7 +3,6 @@ import { BarCommonConfig } from './index'
import { CreateComponentType } from '@/packages/index.d' import { CreateComponentType } from '@/packages/index.d'
import cloneDeep from 'lodash/cloneDeep' import cloneDeep from 'lodash/cloneDeep'
import dataJson from './data.json' import dataJson from './data.json'
import { GlobalThemeJsonType } from '@/settings/chartThemes/index'
export const includes = ['legend', 'xAxis', 'yAxis'] export const includes = ['legend', 'xAxis', 'yAxis']

View File

@ -0,0 +1,14 @@
import { publicConfig } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { ImageConfig } from './index'
import cloneDeep from 'lodash/cloneDeep'
export const option = {
}
export default class Config extends publicConfig implements CreateComponentType
{
public key = ImageConfig.key
public chartConfig = cloneDeep(ImageConfig)
public option = cloneDeep(option)
}

View File

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
词云 图片
</div> </div>
</template> </template>

View File

@ -1,4 +1,3 @@
import type { App } from 'vue'
import { ChartList } from '@/packages/components/Charts/index' import { ChartList } from '@/packages/components/Charts/index'
import { DecorateList } from '@/packages/components/Decorates/index' import { DecorateList } from '@/packages/components/Decorates/index'
import { InformationList } from '@/packages/components/Informations/index' import { InformationList } from '@/packages/components/Informations/index'