Skip to content

Commit

Permalink
方式修改
Browse files Browse the repository at this point in the history
  • Loading branch information
openfe-openfe committed Sep 10, 2019
1 parent 8eca0ad commit 29bd6d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@
## 代码演示如何使用

npm install vue-better-slider --save
1.main.js引入样式文件

### 1.main.js引入样式文件
```js
import 'vue-better-slider/style.css'

```
2.导入并注册组件,注册组件
### 2.导入并注册组件,注册组件
```js
import {IcSlider,IcSliderItem} from 'vue-better-slider'
components: {
IcSlider,
IcSliderItem
}
```
3.template模板
### 3.template模板
```html
<ic-slider :autoplay="3000">
<ic-slider-item v-for="(items,index) in images">
Expand Down

0 comments on commit 29bd6d6

Please sign in to comment.