15 lines
386 B
TypeScript
15 lines
386 B
TypeScript
import type { Component } from "vue";
|
|
import { h } from "vue";
|
|
import { NIcon } from "naive-ui";
|
|
import { HomeOutline } from "@vicons/ionicons5";
|
|
|
|
function renderIcon(icon: Component) {
|
|
return () => h(NIcon, null, { default: () => h(icon) });
|
|
}
|
|
|
|
export type PageKey = "home";
|
|
|
|
export const navOptions = [
|
|
{ label: "首页", key: "home" as const, icon: renderIcon(HomeOutline) },
|
|
];
|