Varo Pro
All components, Registry Blocks, and Agent UI.
¥299/ year
- Dual runtime
- Owned source
- Priority updates
All components, Registry Blocks, and Agent UI.
<script setup lang="ts">
import { VFixedNav } from '@varo-ui/h5'
import { ref } from 'vue'
const visible = ref(true)
const navList = [
{ text: 'Home', icon: '⌂' },
{ text: 'Inbox', icon: '✉', num: 2 },
{ text: 'Help', icon: '?' }
]
</script>
<template>
<VFixedNav v-model:visible="visible" :nav-list="navList" active-text="Nav" />
</template>| Prop | Type | Default | Description |
|---|---|---|---|
visible | boolean | undefined | Expanded state |
defaultVisible | boolean | false | Default uncontrolled expanded state |
navList | FixedNavItem[] | [] | Navigation items |
position | 'left' | 'right' | 'right' | Floating position |
activeText | string | '导航' | Trigger text |
| Event | Payload | Description |
|---|---|---|
update:visible | boolean | Expanded state changed |
visibleChange | boolean | Expanded state changed |
select | (item, index) | Navigation item selected |