feat: เพิ่ม type MenuItem
This commit is contained in:
parent
23bf4ba514
commit
0eb7ecc977
2 changed files with 12 additions and 17 deletions
|
|
@ -1,19 +1,4 @@
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
import type { MenuItem } from "./type";
|
||||||
|
|
||||||
export const menuList = ref([
|
export const menuList = ref<MenuItem[]>([]);
|
||||||
{
|
|
||||||
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;
|
|
||||||
}[],
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
|
|
|
||||||
10
src/interface/request/main/type.ts
Normal file
10
src/interface/request/main/type.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
export interface MenuItem {
|
||||||
|
icon: string;
|
||||||
|
activeIcon: string;
|
||||||
|
label: string;
|
||||||
|
path?: string;
|
||||||
|
children?: {
|
||||||
|
label: string;
|
||||||
|
path: string;
|
||||||
|
}[];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue