feat: เพิ่ม type MenuItem

This commit is contained in:
Net 2024-06-24 17:27:31 +07:00
parent 23bf4ba514
commit 0eb7ecc977
2 changed files with 12 additions and 17 deletions

View file

@ -1,19 +1,4 @@
import { ref } from "vue";
import type { MenuItem } from "./type";
export const menuList = ref([
{
icon: "mdi-home-variant-outline",
activeIcon: "mdi-home-variant",
label: "หน้าแรก",
path: "/",
},
{
icon: "mdi-file-outline",
activeIcon: "mdi-file",
label: "คู่มือการใช้งาน",
children: [] as {
label: string;
path: string;
}[],
},
]);
export const menuList = ref<MenuItem[]>([]);

View file

@ -0,0 +1,10 @@
export interface MenuItem {
icon: string;
activeIcon: string;
label: string;
path?: string;
children?: {
label: string;
path: string;
}[];
}