yijiusmile
2021-02-06 3a0194e05bf9b748adab00d05994c8c30baeb479
翻页插件增加刷新功能
1个文件已修改
9 ■■■■ 已修改文件
src/components/Pagination/index.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 })