22 lines
589 B
TypeScript
22 lines
589 B
TypeScript
export type cardItem = {
|
|
id: string,
|
|
name: string,
|
|
description: string,
|
|
component?: any,
|
|
}
|
|
|
|
|
|
export const cards: cardItem[] = [
|
|
{
|
|
id: "systemInfo",
|
|
name: "系统信息卡片",
|
|
description: "显示系统信息的卡片",
|
|
component: defineAsyncComponent(() => import("../components/Cards/SystemInfoCard.vue"))
|
|
}, {
|
|
id: "onlineUsers",
|
|
name: "在线用户卡片",
|
|
description: "显示在线用户的卡片",
|
|
component: defineAsyncComponent(() => import("../components/Cards/OnlineUsersCard.vue"))
|
|
}
|
|
]
|