@vue-ui-kit/ant 2.5.7 → 2.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-ui-kit/ant",
3
- "version": "2.5.7",
3
+ "version": "2.5.8",
4
4
  "description": "Vue3 UI Kit based on Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
@@ -108,6 +108,9 @@
108
108
  }
109
109
  : false,
110
110
  );
111
+ const pageSizeOptions = computed(() =>
112
+ (pageConfig.value?.pageSizes ?? [10, 20, 50, 100, 200]).map(String),
113
+ );
111
114
 
112
115
  const fc = computed(() => omit({ labelCol: defaultLabelCol, ...formConfig.value }, ['items']));
113
116
  const loading = reactive({
@@ -686,9 +689,7 @@
686
689
  size="small"
687
690
  :current="pagination.page"
688
691
  :page-size="pagination.size"
689
- :page-size-options="
690
- (pageConfig?.pageSizes ?? [10, 20, 50, 100]).map(String)
691
- "
692
+ :page-size-options="pageSizeOptions"
692
693
  :show-size-changer="pageConfig?.showSizeChanger ?? true"
693
694
  :show-quick-jumper="pageConfig?.showQuickJumper"
694
695
  :show-total="(total: number) => `共${total}条数据`"