zhuangyunsheng há 1 ano atrás
pai
commit
ceab0f2d91
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      src/components/Pagination/index.vue

+ 3 - 3
src/components/Pagination/index.vue

@@ -9,16 +9,16 @@ const props = defineProps({
     layout: { type: String, default: "total, sizes, prev, pager, next" },
 	pageNo: { type: Number, default: 1 },
 	pageSize: { type: Number, default: 10 },
-    pageSizes: { type: Array, default: () => [10, 20, 30, 40, 50] }, // [20, 30, 100]
+    pageSizes: { type: Array, default: () => [10, 20, 30, 40, 50] } // [20, 30, 100]
 });
 
 const currentPage = ref(props.pageNo);
 const pageSizeChange = e => {
     $emit("update:pageSize", e);
-    $emit("paginationChange");
+    $emit("paginationChange", "edit");
 };
 const paginationChange = e => {
     $emit("update:pageNo", e);
-    $emit("paginationChange");
+    $emit("paginationChange", "edit");
 };
 </script>