fix: 编写拖拽信息

This commit is contained in:
MTrun
2022-01-24 21:12:18 +08:00
parent 0fc4d44ba2
commit 953b8c3486
15 changed files with 117 additions and 32 deletions
@@ -0,0 +1,11 @@
import { getUUID } from '@/utils'
export 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>
@@ -1,13 +1,16 @@
<template>
<div>
柱状图组件渲染
这里是柱状图组件渲染
</div>
</template>
<script setup lang="ts">
const props = defineProps({
chart: {
type: Object,
require: true
}
})
</script>
<style lang="scss" scoped>
</style>
<style lang="scss" scoped></style>
+1
View File
@@ -8,6 +8,7 @@ import { ChartList } from '@/packages/components/Chart/index'
import { DecorateList } from '@/packages/components/Decorate/index'
import { InformationList } from '@/packages/components/Information/index'
import { TableList } from '@/packages/components/Table/index'
import {} from './useCreate'
// 所有图表
let packagesList: PackagesType = {
+9
View File
@@ -0,0 +1,9 @@
import { ConfigType } from '@/packages/index.d'
/**
* * 获取目标拖拽组件信息
* @param drayData
*/
export const createComponent = (drayData: Exclude<ConfigType, 'node'>) => {
}