Skip to content

Commit

Permalink
v0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdahoo committed Sep 29, 2016
1 parent a25e0ba commit 7f9fa8e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
# Vue Scroller ![version](https://img.shields.io/badge/release-%20v0.3.4%20-green.svg)
# Vue Scroller ![version](https://img.shields.io/badge/release-%20v0.3.5%20-green.svg)

Vue component for smooth scrolling, pull to refresh and infinite loading.

## [Demo](https://wangdahoo.github.io/vue-scroller/)

## Change Logs
- v0.3.5
support mouse events
- v0.3.4
change required property 'delegate-id' to non-required any more.
- v0.3.3
support multi scrollers in one page.

## How To Use
#### 创建vue项目, 并安装插件
#### Step 1: create vue project and install vue-scroller via npm. (we use vue webpack-simple template here)
```bash
$ vue init webpack-simple#1.0 my-project
$ cd my-project
$ npm install
$ npm install vue-scroller
```

#### 在webpack.config.js中添加resolve和loader
#### Step 2: add resolve option and loader in webpack.config.js as below.
```js
module.exports = {
// ...
Expand Down Expand Up @@ -47,7 +49,7 @@ module.exports = {
}
```

#### 粘贴下面代码覆盖 App.vue
#### Step 3: copy codes below to overwrite App.vue
```vue
<template>
<scroller delegate-id="myScroller"
Expand Down Expand Up @@ -164,12 +166,12 @@ module.exports = {
</style>
```

#### 在index.html中添加
#### Step 4: add viewport meta in index.html
```html
<meta name="viewport" content="width=device-width, user-scalable=no">
```

#### 运行
#### Step 5: run the project
```bash
$ npm run dev
```
Expand Down
12 changes: 6 additions & 6 deletions docs/build.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/build.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-scroller",
"version": "0.3.4",
"version": "0.3.5",
"description": "Vue component for smooth scrolling, pull to refresh & infinite loading.",
"main": "src/index.js",
"author": "wangdahoo <157195705@qq.com>",
Expand Down

0 comments on commit 7f9fa8e

Please sign in to comment.