From 3a0194e05bf9b748adab00d05994c8c30baeb479 Mon Sep 17 00:00:00 2001
From: yijiusmile <253281376@qq.com>
Date: 星期六, 06 二月 2021 19:34:45 +0800
Subject: [PATCH] 翻页插件增加刷新功能
---
src/components/Pagination/index.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue
index c6659fc..4f19f42 100644
--- a/src/components/Pagination/index.vue
+++ b/src/components/Pagination/index.vue
@@ -10,7 +10,9 @@
v-bind="$attrs"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
- />
+ >
+ <el-button class="refresh-button" icon="el-icon-refresh" title="刷新" @click="handleSizeChange" />
+ </el-pagination>
</div>
</template>
@@ -40,7 +42,7 @@
},
layout: {
type: String,
- default: 'total, sizes, prev, pager, next, jumper'
+ default: 'total, sizes, prev, pager, next, jumper, slot'
},
background: {
type: Boolean,
@@ -73,6 +75,9 @@
}
}
},
+ mounted() {
+
+ },
methods: {
handleSizeChange(val) {
this.$emit('pagination', { page: this.currentPage, limit: val })
--
Gitblit v1.8.0