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) }, ];