mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 编写拖拽信息
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import { ConfigType } from '@/packages/index.d'
|
||||
|
||||
/**
|
||||
* * 获取目标拖拽组件信息
|
||||
* @param drayData
|
||||
*/
|
||||
export const createComponent = (drayData: Exclude<ConfigType, 'node'>) => {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user