fix: 修改配置项目

This commit is contained in:
MTrun
2022-01-25 11:09:32 +08:00
parent bb7aa78738
commit 663ef6f2a6
78 changed files with 86 additions and 55 deletions
@@ -0,0 +1,11 @@
import { getUUID } from '@/utils'
export default class Config {
name: string = 'BarCommon'
id: string = getUUID()
attr = { w: 500, h: 300 }
// 图表的
public config = {
global: {}
}
}
@@ -0,0 +1,7 @@
<template>
<div>配置项目</div>
</template>
<script setup lang="ts">
</script>
@@ -0,0 +1,14 @@
import BarCommon from './index.vue'
import image from '@/assets/images/chart/charts/bar_x.png'
import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
export const BarCommonConfig: ConfigType = {
key: 'VBarCommon',
title: '柱状图',
category: ChatCategoryEnum.BAR,
categoryName: ChatCategoryEnumName.BAR,
package: PackagesCategoryEnum.CHARTS,
node: BarCommon,
image: image
}
@@ -0,0 +1,16 @@
<template>
<div>
这里是柱状图组件渲染
</div>
</template>
<script setup lang="ts">
const props = defineProps({
chart: {
type: Object,
require: true
}
})
</script>
<style lang="scss" scoped></style>