Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
openfe-openfe committed Sep 19, 2017
1 parent 137c593 commit 37ff235
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@
为vue提供的一个轮播图组件

## 代码演示如何使用

npm install vue-better-slider
npm install better-scroll --save
npm install vue-better-slider --save

在需要的项目文件中导入改组件 import Slider from 'vue-better-slider'

具体代码引用
先注册改组件之后,template模板使用例子如下
```javascript
1.注册组件
```js
components: {
Slider
}
```
2.模板
```js

<slider>
<div >
Expand All @@ -25,6 +30,7 @@ npm install vue-better-slider
## 说明

1. 改组件是根据better-scroll滑动组件封装改成

2. 实现功能有:轮播 自动播放 dots 循环播放,适合手机端,图片高度自适应

![](https://github.com/songhaoreact/vue-better-slider/blob/master/demo1.gif)
Expand Down

0 comments on commit 37ff235

Please sign in to comment.