@skyfox2000/webui 1.0.5 → 1.0.7

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": "@skyfox2000/webui",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "后台前端通用组件定义",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -103,12 +103,8 @@ const onSearch = () => {
103
103
  },
104
104
  };
105
105
 
106
- // 修改分页
107
- if (props.gridCtrl.gridQuery.Query?.$limit) {
108
- // 包含分页,需要重新设置
109
- props.gridCtrl.pageNo.value = 1;
110
- props.gridCtrl.gridQuery.Query.$limit = [0, props.gridCtrl.pageSize.value];
111
- }
106
+ // 包含分页,需要重新设置
107
+ props.gridCtrl.pageNo.value = 1;
112
108
 
113
109
  props.gridCtrl.reload.value = true;
114
110
  };
@@ -92,6 +92,8 @@ watch(
92
92
  if (newVal) {
93
93
  dataList.value = newVal;
94
94
  pagination.value.total = gridCtrl.total.value ?? 0;
95
+ pagination.value.current = gridCtrl.pageNo.value ?? 1;
96
+ pagination.value.pageSize = gridCtrl.pageSize.value ?? 10;
95
97
  }
96
98
  },
97
99
  { immediate: true },
@@ -103,6 +105,8 @@ watch(
103
105
  if (newVal) {
104
106
  dataList.value = newVal;
105
107
  pagination.value.total = newVal.length;
108
+ pagination.value.current = gridCtrl.pageNo.value ?? 1;
109
+ pagination.value.pageSize = gridCtrl.pageSize.value ?? 10;
106
110
  }
107
111
  },
108
112
  { immediate: true },