YY 2 年之前
父节点
当前提交
a5878b36d9
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/components/usual/c-table.vue

+ 4 - 0
src/components/usual/c-table.vue

@@ -289,6 +289,10 @@ export default {
     getPageConfig() {
       return { skip: (this.currentPage - 1) * this.limit, limit: this.limit, currentPage: this.currentPage };
     },
+    setPage({ skip, limit }) {
+      let currentPage = skip / limit + 1;
+      this.currentPage = currentPage;
+    },
   },
 };
 </script>