feat: 按 NqiTools 的方案生成登录页和侧栏
This commit is contained in:
@@ -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) },
|
||||
];
|
||||
Reference in New Issue
Block a user