Menu 导航菜单 #
基本使用 #
- 123
- 123
- 123
基本使用
<template>
<h-menu :defaultIndex="'a'">
<h-menu-item index="a">123</h-menu-item>
<h-menu-item index="b">123</h-menu-item>
<h-menu-item index="c">123</h-menu-item>
</h-menu>
</template>
<script lang="ts" setup>
</script>
<style scoped lang="scss">
</style>
<template>
<h-menu :defaultIndex="'a'">
<h-menu-item index="a">123</h-menu-item>
<h-menu-item index="b">123</h-menu-item>
<h-menu-item index="c">123</h-menu-item>
</h-menu>
</template>
<script lang="ts" setup>
</script>
<style scoped lang="scss">
</style>
组件 API #
Attributes 属性 #
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
Methods 方法 #
| 方法名 | 说明 | 参数 | 返回值 |
|---|---|---|---|
Events 事件 #
| 事件名 | 说明 | 参数 | 返回值 |
|---|---|---|---|
Slots 插槽 #
| 插槽名 | 说明 | 参数 |
|---|---|---|
hare-ui