Skip to content

Commit

Permalink
preview 优化
Browse files Browse the repository at this point in the history
  • Loading branch information
moohng committed Jul 24, 2020
1 parent 8e47a30 commit 5b71bc6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,16 @@ export default {
</script>
```

## 已完成组件

- `this.$dialog(...)`:弹窗
- `this.$actionsheet(...)`:底部弹出
- `this.$loading(...)`:全屏loading
- `this.$toast(...)`:轻提示
- `this.$preview(...)`:图片预览

## 其他Vue插件

- `v-src`:懒加载
- `v-pulldown`:下拉刷新
- `v-pullup`:加载更多
- `v-src`:懒加载
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moohng/dui",
"version": "1.1.1",
"version": "1.2.0",
"private": false,
"description": "基于 Vue 2 的轻量级组件库",
"author": "Kevin",
Expand Down
6 changes: 4 additions & 2 deletions src/components/preview/preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
<div class="dui-preview__wrap">
<div class="dui-preview__slide bg-img" v-for="(item, index) in options" :key="index" v-src="item"></div>
</div>
<!-- 索引 -->
<div class="dui-preview__index">{{current + 1}}/{{options.length}}</div>
<slot>
<!-- 索引 -->
<div class="dui-preview__index">{{current + 1}}/{{options.length}}</div>
</slot>
</div>
</template>

Expand Down

0 comments on commit 5b71bc6

Please sign in to comment.