feat: 按 NqiTools 的方案生成登录页和侧栏

This commit is contained in:
2026-10-26 17:06:04 +08:00
parent 419c40b740
commit eaad01d5a8
74 changed files with 21165 additions and 175 deletions
+14
View File
@@ -0,0 +1,14 @@
import type { Component } from "vue";
import { h } from "vue";
import { NIcon } from "naive-ui";
import { PeopleOutline } from "@vicons/ionicons5";
function renderIcon(icon: Component) {
return () => h(NIcon, null, { default: () => h(icon) });
}
export type PageKey = "accounts";
export const navOptions = [
{ label: "使用者", key: "accounts" as const, icon: renderIcon(PeopleOutline) },
];