@skyfox2000/webui 1.4.12 → 1.4.13

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.4.12",
3
+ "version": "1.4.13",
4
4
  "description": "后台前端通用组件定义",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -180,6 +180,14 @@ onMounted(async () => {
180
180
  pagination.value.total = gridCtrl.total.value ?? 0;
181
181
  }
182
182
  } else if (gridCtrl.autoload !== false) {
183
+ if (gridCtrl.page) {
184
+ if (gridCtrl.gridUrl?.url === gridCtrl.page.urls.list) {
185
+ gridCtrl.remotePage = false;
186
+ }
187
+ if (gridCtrl.gridUrl?.url === gridCtrl.page.urls.find) {
188
+ gridCtrl.remotePage = true;
189
+ }
190
+ }
183
191
  if (gridCtrl.remotePage) {
184
192
  dataList.value = (await gridQueryFind(gridCtrl)).rows;
185
193
  } else {
@@ -96,7 +96,6 @@ export const mergeColumns = (newColumns: TableColumn[], oldColumns?: TableColumn
96
96
  * @returns
97
97
  */
98
98
  export const gridQueryList = <T>(gridCtrl: GridControl<T>): Promise<T[]> => {
99
- gridCtrl.remotePage = false;
100
99
  return gridQueryFind(gridCtrl).then((result) => {
101
100
  return result.rows as T[];
102
101
  });