mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 优化组件渲染方式
This commit is contained in:
Vendored
+14
-2
@@ -4,11 +4,23 @@ import { Component } from '@/router/types'
|
||||
export type ConfigType = {
|
||||
key: string
|
||||
title: string
|
||||
category: string
|
||||
node: Component
|
||||
image: string
|
||||
[T: string]: unknown
|
||||
}
|
||||
|
||||
export type PackagesType = {
|
||||
Charts: ConfigType[]
|
||||
|
||||
export enum PackagesCategoryEnum {
|
||||
CHARTS = 'CHARTS',
|
||||
TABLES = 'TABLES',
|
||||
TEXTS = 'TEXTS',
|
||||
DECORATES = 'DECORATES'
|
||||
}
|
||||
|
||||
export type PackagesType = {
|
||||
[PackagesCategoryEnum.CHARTS]: ConfigType[]
|
||||
[PackagesCategoryEnum.TEXTS]: ConfigType[]
|
||||
[PackagesCategoryEnum.TABLES]: ConfigType[]
|
||||
[PackagesCategoryEnum.DECORATES]: ConfigType[]
|
||||
}
|
||||
Reference in New Issue
Block a user