feat: 完成登录与栅格下载桌面端
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import type { Component } from "vue";
|
||||
import { h } from "vue";
|
||||
import { NIcon } from "naive-ui";
|
||||
import { CloudDownloadOutline, ListOutline } from "@vicons/ionicons5";
|
||||
|
||||
function renderIcon(icon: Component) {
|
||||
return () => h(NIcon, null, { default: () => h(icon) });
|
||||
}
|
||||
|
||||
export type PageKey = "grid" | "tasks";
|
||||
|
||||
export const navGroups = [
|
||||
{
|
||||
type: "group" as const,
|
||||
label: "下载",
|
||||
key: "download",
|
||||
children: [
|
||||
{ label: "栅格下载", key: "grid" as const, icon: renderIcon(CloudDownloadOutline) },
|
||||
{ label: "下载管理", key: "tasks" as const, icon: renderIcon(ListOutline) },
|
||||
],
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user