LoongPanel-Asp/web/config/cards.ts

22 lines
589 B
TypeScript
Raw Normal View History

2024-06-22 10:54:02 +08:00
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"))
}
]