Menu 菜单
基础用法
html
<script setup>
const menus = [
{
key: 'home',
label: 'Home',
icon: 'os-icon-home',
title: 'Home Title',
children: [
//...
]
}
//...
]
const active = 'home'
const layout = 'horizontal' // horizontal | vertical
</script>
<os-menu
:data="menus"
:active='active'
:layout="layout">
</os-menu>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21