vxe-table 4.20.10 → 4.20.11

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.
@@ -1054,12 +1054,13 @@ export default defineVxeComponent({
1054
1054
  else {
1055
1055
  let tableData = [];
1056
1056
  if (rest) {
1057
+ const listProp = resConfigs.list;
1058
+ const resultProp = resConfigs.result;
1057
1059
  const reParams = { data: rest, $table: $xeTable, $grid: $xeGrid, $gantt: null };
1058
1060
  if (pagerConfig && isEnableConf(pagerOpts)) {
1059
1061
  const totalProp = resConfigs.total;
1060
1062
  const total = (XEUtils.isFunction(totalProp) ? totalProp(reParams) : XEUtils.get(rest, totalProp || 'page.total')) || 0;
1061
1063
  tablePage.total = XEUtils.toNumber(total);
1062
- const resultProp = resConfigs.result;
1063
1064
  tableData = (XEUtils.isFunction(resultProp) ? resultProp(reParams) : XEUtils.get(rest, resultProp || 'result')) || [];
1064
1065
  // 检验当前页码,不能超出当前最大页数
1065
1066
  const pageCount = Math.max(Math.ceil(total / tablePage.pageSize), 1);
@@ -1068,7 +1069,6 @@ export default defineVxeComponent({
1068
1069
  }
1069
1070
  }
1070
1071
  else {
1071
- const listProp = resConfigs.list;
1072
1072
  if (XEUtils.isArray(rest)) {
1073
1073
  tableData = rest;
1074
1074
  }