Skip to content

Commit

Permalink
更新readme
Browse files Browse the repository at this point in the history
  • Loading branch information
openfe-openfe committed Sep 10, 2019
1 parent 47f42dc commit 8f6cd45
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@
## 代码演示如何使用

npm install vue-better-slider --save
1.main.js引入样式文件
import 'vue-better-slider/style.css'

1.导入并注册组件,注册组件
2.导入并注册组件,注册组件
```js
import {IcSlider,IcSliderItem} from 'vue-better-slider'
components: {
Slider,
IcSlider,
IcSliderItem
}
```
2.template模板
3.template模板
```html
<ic-slider :autoplay="3000">
<ic-slider-item v-for="(items,index) in images">
Expand Down
2 changes: 1 addition & 1 deletion static/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-better-slider",
"version": "1.0.10",
"version": "1.1.1",
"main": "index.js",
"scripts": {},
"author": "songhao",
Expand Down
2 changes: 1 addition & 1 deletion vue-better-slider/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vue-better-slider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-better-slider",
"version": "1.0.9",
"version": "1.1.0",
"main": "index.js",
"scripts": {},
"author": "songhao",
Expand Down

0 comments on commit 8f6cd45

Please sign in to comment.