Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified list/empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion list/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<slot name="pullleave-msg" v-if="!isRefreshing && intop">松手刷新数据</slot>
<slot name="refresh-msg" v-if="isRefreshing"><i class="vmui-list-loading-icon"></i>正在刷新数据</slot>
</div>

<div>
<slot name="content"></slot>
</div>
<div class="vmui-list-header">
<slot name="header"></slot>
</div>
Expand Down
68 changes: 68 additions & 0 deletions touchslide/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
touchslide
==============
指定工具栏
```html
<toolbarslide :loop="true" :auto="false" :use-shade="false" :imgs="imgs" ></toolbarslide>
```
## props说明

| 选项 | 默认值 | 必填 | 说明 |
|----------|----------|----------|----------|
| loop | false| N | 是否循环|
| auto | false| N | 是否自动轮播|
| imgs | []| y | 要轮播的图盘 |
| need-tag| false | N | 图片上的小圆点 |
| need-total| false | N | 显示总张数和当前滚动到第几张 |

## 事件
| nowpage| | y | 返回当前轮播的页数,滚动完一次调用一次 |

##imgs格式
```js
imgs:[{src:"http://dfs.anhouse.com/view/1897dfc83c70666db36abc29c022b528917c304b/900x675.jpg"},
{src:"http://dfs.anhouse.com/view/f59c670ecf0c6d477c0d37b96f34957344e2d669/900x675.jpg"},
{src:"http://dfs.anhouse.com/view/75ccadb6df249dda8b5cc5a4dbf6e43afbd7bac3/900x675.jpg"},
{src:"http://dfs.anhouse.com/view/5c22c606e464a0875d795142bac6103b48446c73/900x675.jpg"},]
```

、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、


```html
<toastslide :loop="true" :auto="false" :use-shade="true" :imgs="imgs" v-if="canvisible" @isvisible="changeVisible" ></toastslide>

```

## props说明

| 选项 | 默认值 | 必填 | 说明 |
|----------|----------|----------|----------|
| loop | false| N | 是否循环|
| auto | false| N | 是否自动轮播|
| use-shade | /| N | 是否需要阴影背景|
| imgs | []| y | 要轮播的图盘 |
| init-index | 0| n | 默认滚动到第init-index张图片 |



## 事件
| 选项 | 默认值 | 必填 | 说明 |
|----------|----------|----------|----------|
| isvisible | | Y | 点击弹框空白处回调方法,主要用来控制控件是否显示 |
| visibility | true | N | 一般用来控制控件是否显示,组件要用, |
| getpage | | y | 返回当前轮播的页数, 滚动完一次调用一次|

## js 说明

```js
imgs:[
{src:"http://dfs.anhouse.com/view/1897dfc83c70666db36abc29c022b528917c304b/900x675.jpg"},
{src:"http://dfs.anhouse.com/view/f59c670ecf0c6d477c0d37b96f34957344e2d669/900x675.jpg"},
{src:"http://dfs.anhouse.com/view/75ccadb6df249dda8b5cc5a4dbf6e43afbd7bac3/900x675.jpg"},
{src:"http://dfs.anhouse.com/view/5c22c606e464a0875d795142bac6103b48446c73/900x675.jpg"},
]

changeVisible(index){
console.log(index)
}
```
Loading