mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
* [bugfix] Checkbox border render error in weixin browser * [bugfix] TreeSelect dependency path error * [bugfix] Swipe should clear autoplay timer when destroyed
1000 B
1000 B
NavBar
Install
import { NavBar } from 'vant';
Vue.component(NavBar.name, NavBar);
Usage
Basic Usage
:::demo Basic Usage
<van-nav-bar
title="Title"
left-text="Back"
right-text="Button"
left-arrow
/>
:::
Advanced Usage
:::demo Advanced Usage
<van-nav-bar title="Title" left-text="Back" left-arrow>
<van-icon name="search" slot="right" />
</van-nav-bar>
:::
API
Attribute | Description | Type | Default | Accepted Values |
---|---|---|---|---|
title | Title | String |
'' |
- |
left-text | Left Text | String |
'' |
- |
right-text | Right Text | String |
'' |
- |
left-arrow | Whether to show left arrow | Boolean |
false |
- |
fixed | Whether to fixed top | Boolean |
false |
- |
Slot
name | Description |
---|---|
title | Custom title |
left | Custom left side content |
right | Custom right side content |