Skip to content
On this page

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>

Released under the MIT License.