mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +08:00
feat: 新增图片组件模板
This commit is contained in:
parent
b61215d540
commit
e0b0d5747b
@ -59,7 +59,7 @@ export const useChartDataFetch = (
|
||||
})
|
||||
} else {
|
||||
// 若遵守规范使用 datase 作为数据 key,则省自动赋值数据
|
||||
targetComponent.option.dataset = res.data
|
||||
targetComponent.option.dataset && (targetComponent.option.dataset = res.data)
|
||||
}
|
||||
if (updateCallback) {
|
||||
updateCallback(res.data)
|
||||
|
@ -3,7 +3,6 @@ import { BarCommonConfig } from './index'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
import dataJson from './data.json'
|
||||
import { GlobalThemeJsonType } from '@/settings/chartThemes/index'
|
||||
|
||||
export const includes = ['legend', 'xAxis', 'yAxis']
|
||||
|
||||
|
14
src/packages/components/Informations/Mores/Image/config.ts
Normal file
14
src/packages/components/Informations/Mores/Image/config.ts
Normal 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)
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
词云
|
||||
图片
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
import type { App } from 'vue'
|
||||
import { ChartList } from '@/packages/components/Charts/index'
|
||||
import { DecorateList } from '@/packages/components/Decorates/index'
|
||||
import { InformationList } from '@/packages/components/Informations/index'
|
||||
|
Loading…
Reference in New Issue
Block a user