1.0.3 • Published 3 years ago

future-tab v1.0.3

Weekly downloads
11
License
MIT
Repository
github
Last release
3 years ago

Future-tab

A mobile touch-swappable component

一个用于移动端的可触摸滑动的Vue组件

Installation

npm i future-tab -S

or

yarn add future-tab

Usage

import Vue from 'vue'
import FutureTab from 'future-tab'

Vue.use(FutureTab)
// 之后便可在全局使用了

Example

items: {
        contents:
        [
          {
            title: {name: '首页', customStyle: {textAlign: 'left'}},
            subTitle: {name: '子标题', customStyle: {textAlign: 'left'}},
            customStyle: {textAlign: 'left'}
          },
          {
            title: {name: '首页1', customStyle: {textAlign: 'left'}},
            subTitle: {name: '子标题1', customStyle: {textAlign: 'left'}},
            customStyle: {textAlign: 'left'}
          },
          {
            title: {name: '首页', customStyle: {textAlign: 'left'}},
            subTitle: {name: '子标题', customStyle: {textAlign: 'left'}},
            customStyle: {textAlign: 'left'}
          },
          {
            title: {name: '首页1', customStyle: {textAlign: 'left'}},
            subTitle: {name: '子标题1', customStyle: {textAlign: 'left'}},
            customStyle: {textAlign: 'left'}
          }
        ],
        customStyle: {flexGrow: 0, width: '85px', backgroundColor: '#fff', borderRadius: '5px', textAlign: 'left', padding: '5px 20px', height: '50px'}
      },
      options: {
        activeColor: '#1d98bd',
        fixBottom: false
      },
      bottomItems: {
        contents: [
          {title: {name: '首页', icon: 'iconfont icon-Homehomepagemenu', customStyle: {}}},
          {title: {name: '消息', icon: 'iconfont icon-message', customStyle: {}}},
          {title: {name: '发现', icon: 'iconfont icon-search', customStyle: {}}},
          {title: {name: '我的', icon: 'iconfont icon-me', customStyle: {}}}
        ],
        customStyle: {flexGrow: 1}
      },
```


## Build Setup

```bash
# install dependencies
npm install
# or
yarn

# serve with hot reload at localhost:8080
npm run dev
# or
yarn dev

```

## License
MIT
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago