mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-08-07 22:01:15 +08:00
[Doc] fix NavBar usage
This commit is contained in:
parent
216ce57029
commit
a4f6d3fb55
@ -1,10 +1,12 @@
|
|||||||
## NavBar 导航栏
|
## NavBar 导航栏
|
||||||
|
|
||||||
### 使用指南
|
### 使用指南
|
||||||
``` javascript
|
|
||||||
import { NavBar } from 'vant';
|
|
||||||
|
|
||||||
Vue.use(NavBar);
|
在 index.json 中引入组件
|
||||||
|
```json
|
||||||
|
"usingComponents": {
|
||||||
|
"van-nav-bar": "path/to/vant-weapp/dist/nav-bar/index"
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### 代码演示
|
### 代码演示
|
||||||
|
Loading…
x
Reference in New Issue
Block a user