mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 新增chart组件数据内容
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import barCommon from './index.vue'
|
||||
import barImg from '@/assets/images/chart/bar_y.png'
|
||||
import { ConfigType } from '@/packages/index.d'
|
||||
|
||||
// 柱状图
|
||||
export const barCommonConfig: ConfigType = {
|
||||
key: 'Bar',
|
||||
title: '基础',
|
||||
node: barCommon,
|
||||
image: barImg
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
柱状图组件渲染
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,3 @@
|
||||
import { barCommonConfig } from './bar/barCommon/index'
|
||||
|
||||
export const BarList = [barCommonConfig]
|
||||
@@ -0,0 +1,11 @@
|
||||
import BorderCommon from './index.vue'
|
||||
import barImg from '@/assets/images/chart/bar_y.png'
|
||||
import { ConfigType } from '@/packages/index.d'
|
||||
|
||||
// 柱状图
|
||||
export const barCommonConfig: ConfigType = {
|
||||
key: 'Border',
|
||||
title: '柱状图',
|
||||
node: BorderCommon,
|
||||
coverGraph: barImg
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
柱状图组件渲染
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,3 @@
|
||||
import { barCommonConfig } from './border/borderCommon/index'
|
||||
|
||||
export const BarList = [barCommonConfig]
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
import { Component } from '@/router/types'
|
||||
|
||||
// import { ConfigType } from '@/packages/index.d'
|
||||
export type ConfigType = {
|
||||
key: string
|
||||
title: string
|
||||
node: Component
|
||||
image: string
|
||||
[T: string]: unknown
|
||||
}
|
||||
|
||||
export type PackagesType = {
|
||||
Charts: ConfigType[]
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { PackagesType } from '@/packages/index.d'
|
||||
import { BarList } from '@/packages/components/Chart/index'
|
||||
|
||||
// 所有图表
|
||||
let packagesList: PackagesType = {
|
||||
Charts: BarList
|
||||
}
|
||||
|
||||
export { packagesList }
|
||||
|
||||
Reference in New Issue
Block a user