Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chenyangcun/wepy-com-navbar

微信小程序 wepyjs NavBar组件
https://github.com/chenyangcun/wepy-com-navbar

Last synced: 2 months ago
JSON representation

微信小程序 wepyjs NavBar组件

Awesome Lists containing this project

README

        

# 微信小程序 wepyjs NavBar组件
![NavBar](https://raw.githubusercontent.com/chenyangcun/images/master/navbar/navbar.jpg)

## 说明
基于wepy框架开发微信小程序NavBar控件

## 使用

### 安装组件
```
npm install wepy-com-navbar --save
```

### 使用例子
```




TAB1


TAB2


TAB3

import wepy from 'wepy'
import NavBar from 'wepy-com-navbar'

export default class Index extends wepy.page {
config = {
navigationBarTitleText: 'NavBar测试',
enablePullDownRefresh: false
}

data = {
currentTab: 0,
tabs: ['TAB1', 'TAB2', 'TAB3']
}
methods = {
bindChange(e) {
this.currentTab = e.detail.current
}
}

components = {
navBar: NavBar
}
}

```