fix: 优化组件渲染方式

This commit is contained in:
MTrun
2022-01-14 22:07:02 +08:00
parent 8bdacd82c7
commit 0f7fbfcce8
35 changed files with 359 additions and 232 deletions
@@ -1,11 +1,12 @@
import BorderCommon from './index.vue'
import barImg from '@/assets/images/chart/bar_y.png'
import image from '@/assets/images/chart/static.png'
import { ConfigType } from '@/packages/index.d'
import { ChatCategoryEnum } from '../../index.d'
// 柱状图
export const barCommonConfig: ConfigType = {
export const borderCommonConfig: ConfigType = {
key: 'Border',
title: '柱状图',
title: '边框',
category: ChatCategoryEnum.Border,
node: BorderCommon,
coverGraph: barImg
image: image
}
@@ -1,6 +1,6 @@
<template>
<div>
柱状图组件渲染
边框
</div>
</template>
@@ -0,0 +1,3 @@
import { borderCommonConfig } from './BorderCommon/index'
export default [borderCommonConfig]
+3
View File
@@ -0,0 +1,3 @@
export enum ChatCategoryEnum {
Border = '边框',
}
+2 -2
View File
@@ -1,3 +1,3 @@
import { barCommonConfig } from './border/borderCommon/index'
import Border from './Border'
export const BarList = [barCommonConfig]
export const DecorateList = [...Border]