@juzhenfe/page-model 3.17.8 → 3.17.9

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/dist/index.es.js CHANGED
@@ -9043,10 +9043,8 @@ var SummaryTypeEnum = /* @__PURE__ */ ((SummaryTypeEnum2) => {
9043
9043
  return SummaryTypeEnum2;
9044
9044
  })(SummaryTypeEnum || {});
9045
9045
  function useUserSummary(tableManager) {
9046
- let isHijacked = false;
9047
9046
  let summaryResult = reactive([]);
9048
9047
  let currentTableColumns = [];
9049
- let isFirstQuery = true;
9050
9048
  let lastSummaryColumns = [];
9051
9049
  const getSummaryEls = () => {
9052
9050
  return tableManager.currentRenderTableEls.filter((a) => a.showSummary != null && a.showSummary !== "").filter((a) => a.prop).map((a) => {
@@ -9085,21 +9083,14 @@ function useUserSummary(tableManager) {
9085
9083
  const summaryEls = getSummaryEls();
9086
9084
  const isServerSummary = tableManager.table.useServerSummary && typeof tableManager.table.serverSummaryFn === "function";
9087
9085
  if (isServerSummary) {
9088
- if (!isHijacked) {
9089
- const config = tableManager.manager.config;
9090
- let _beforeGetRequest = config.beforeGetRequest;
9091
- config.beforeGetRequest = async function(reqParams) {
9092
- if (typeof _beforeGetRequest === "function") {
9093
- _beforeGetRequest.call(tableManager.manager, reqParams);
9094
- }
9095
- if (isFirstQuery) {
9096
- isFirstQuery = false;
9097
- } else {
9098
- getSummaryData();
9099
- }
9100
- };
9101
- isHijacked = true;
9102
- }
9086
+ const config = tableManager.manager.config;
9087
+ let _beforeGetRequest = config.beforeGetRequest;
9088
+ config.beforeGetRequest = function(reqParams) {
9089
+ if (typeof _beforeGetRequest === "function") {
9090
+ _beforeGetRequest.call(tableManager.manager, reqParams);
9091
+ }
9092
+ getSummaryData();
9093
+ };
9103
9094
  }
9104
9095
  tableManager.tableProps.summaryMethod = function({
9105
9096
  columns,
@@ -14896,7 +14887,7 @@ const defineEditableTable = function(config) {
14896
14887
  };
14897
14888
  var iconfont = "";
14898
14889
  const name = "@juzhenfe/page-model";
14899
- const version = "3.17.8";
14890
+ const version = "3.17.9";
14900
14891
  const types = "dist/main.d.ts";
14901
14892
  const main = "dist/index.umd.js";
14902
14893
  const keywords = [