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 e370680 commit 31ac922
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@

npm install vue-better-slider --save

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

1.注册组件
1.导入并注册组件,注册组件
```js
import {Slider} from 'vue-better-slider'
components: {
Slider
}
```
2.模板
2.template模板
```js

<slider>
<div >
<a href="">
Expand All @@ -26,7 +24,8 @@ components: {
</div>
</slider>
```
demo
## 组件演示demo

```js
git clone https://github.com/songhaoreact/vue-better-slider.git
cd vue-better-slier
Expand Down

0 comments on commit 31ac922

Please sign in to comment.