dfs-page-config 0.0.62 → 0.0.64

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.
@@ -18432,7 +18432,9 @@ function P8(s, a, u, p, d, f) {
18432
18432
  modelValue: s.formData[M.prop],
18433
18433
  "onUpdate:modelValue": (Z) => s.formData[M.prop] = Z,
18434
18434
  onChange: (Z) => M.change && M.change(s.formData[M.prop], M),
18435
- disabled: M.disabled
18435
+ disabled: M.disabled,
18436
+ "collapse-tags": M.collapseTags,
18437
+ "collapse-tags-tooltip": M.collapseTagsTooltip
18436
18438
  }, {
18437
18439
  default: ce(() => [
18438
18440
  (N(!0), X(Xe, null, ht(M.options, (Z) => (N(), ve(w, {
@@ -18443,7 +18445,7 @@ function P8(s, a, u, p, d, f) {
18443
18445
  }, null, 8, ["label", "value", "disabled"]))), 128))
18444
18446
  ]),
18445
18447
  _: 2
18446
- }, 1032, ["clearable", "filterable", "placeholder", "multiple", "modelValue", "onUpdate:modelValue", "onChange", "disabled"])) : ge("", !0),
18448
+ }, 1032, ["clearable", "filterable", "placeholder", "multiple", "modelValue", "onUpdate:modelValue", "onChange", "disabled", "collapse-tags", "collapse-tags-tooltip"])) : ge("", !0),
18447
18449
  M.type === "Cascader" ? (N(), ve(S, {
18448
18450
  key: 5,
18449
18451
  clearable: "",
@@ -18580,7 +18582,7 @@ function P8(s, a, u, p, d, f) {
18580
18582
  _: 3
18581
18583
  }, 8, ["locale"]);
18582
18584
  }
18583
- const T8 = /* @__PURE__ */ co(R8, [["render", P8], ["__scopeId", "data-v-de900131"]]), D8 = Ee({
18585
+ const T8 = /* @__PURE__ */ co(R8, [["render", P8], ["__scopeId", "data-v-d22a6210"]]), D8 = Ee({
18584
18586
  props: {
18585
18587
  url: String,
18586
18588
  text: {
@@ -18895,7 +18897,7 @@ const N8 = /* @__PURE__ */ co(I8, [["render", F8], ["__scopeId", "data-v-283eaa6
18895
18897
  };
18896
18898
  }
18897
18899
  });
18898
- const L8 = (s) => (Rw("data-v-44417a6d"), s = s(), Ow(), s), x8 = /* @__PURE__ */ L8(() => /* @__PURE__ */ se("p", { class: "header-checked-header" }, " 自定义显示字段 ", -1)), G8 = { class: "header-checked-body" }, V8 = { class: "header-checked-footer" };
18900
+ const L8 = (s) => (Rw("data-v-1c6d2565"), s = s(), Ow(), s), x8 = /* @__PURE__ */ L8(() => /* @__PURE__ */ se("p", { class: "header-checked-header" }, " 自定义显示字段 ", -1)), G8 = { class: "header-checked-body" }, V8 = { class: "header-checked-footer" };
18899
18901
  function H8(s, a, u, p, d, f) {
18900
18902
  const v = Qf, m = Or;
18901
18903
  return St((N(), X("div", {
@@ -18943,7 +18945,7 @@ function H8(s, a, u, p, d, f) {
18943
18945
  [pn, s.show]
18944
18946
  ]);
18945
18947
  }
18946
- const Cb = /* @__PURE__ */ co(M8, [["render", H8], ["__scopeId", "data-v-44417a6d"]]);
18948
+ const Cb = /* @__PURE__ */ co(M8, [["render", H8], ["__scopeId", "data-v-1c6d2565"]]);
18947
18949
  var wb = {};
18948
18950
  /**
18949
18951
  * vue-class-component v8.0.0-rc.1
@@ -51044,10 +51046,13 @@ const h5 = Ee({
51044
51046
  autoGroupColumnDef: {}
51045
51047
  },
51046
51048
  pageInfo: d.pageInfo,
51047
- rowData: k(() => (d.data.result.length && setTimeout(() => {
51048
- m.showTable = !0;
51049
- }, 300), d.data.result)),
51050
- totalNum: k(() => Number(d.data.totalNum)),
51049
+ rowData: k(() => {
51050
+ const G = d.data.result || [];
51051
+ return G.length && setTimeout(() => {
51052
+ m.showTable = !0;
51053
+ }, 300), G;
51054
+ }),
51055
+ totalNum: k(() => Number(d.data.totalNum || 0)),
51051
51056
  storageColumnsKey: k(() => (
51052
51057
  // (route.name as string) +
51053
51058
  (d.status || "") + (d.key || "")
@@ -51367,7 +51372,7 @@ const Ob = /* @__PURE__ */ co(w5, [["render", _5]]), E5 = (s) => {
51367
51372
  },
51368
51373
  // 储存table数据
51369
51374
  updateRowData(s, a) {
51370
- a.res ? (a.tableComp.data.result = a.res.result || [], a.tableComp.data.totalNum = a.res.totalNum || 0) : (a.tableComp.data = [], a.tableComp.data.totalNum = 0), a.tableComp.selectedRows = [];
51375
+ a.tableComp.data.result = a.res.result, a.tableComp.data.totalNum = a.res.totalNum, a.tableComp.selectedRows = [];
51371
51376
  }
51372
51377
  },
51373
51378
  actions: {
@@ -51395,7 +51400,7 @@ const Ob = /* @__PURE__ */ co(w5, [["render", _5]]), E5 = (s) => {
51395
51400
  [C]: m || {},
51396
51401
  method: a.method || "POST"
51397
51402
  }).then((w) => {
51398
- w = O5(w), a.searchAfter && a.searchAfter(w), s.commit("updateRowData", { tableComp: a, res: w });
51403
+ w = O5(w, a), a.searchAfter && a.searchAfter(w), s.commit("updateRowData", { tableComp: a, res: w });
51399
51404
  }).finally(() => {
51400
51405
  });
51401
51406
  }
@@ -51450,11 +51455,16 @@ function R5(s) {
51450
51455
  let a = s.formData || {};
51451
51456
  return a = { ...a, ...s.pageInfo }, s.exportDataSearchParams = a, a;
51452
51457
  }
51453
- function O5(s) {
51454
- if (!s)
51455
- return;
51456
- let a = {};
51457
- return a.totalNum = s.totalNum || s.total || 0, a.result = s.result || s.items || s.records || s, a.result.length || (a.result = []), a;
51458
+ function O5(s, a) {
51459
+ if (console.log(a.data), !s)
51460
+ return {
51461
+ totalNum: 0,
51462
+ result: []
51463
+ };
51464
+ let u = {}, p = "result", d = "totalNum";
51465
+ return a.data && Object.keys(a.data).forEach((f) => {
51466
+ typeof a.data[f] == "number" ? d = f : p = f;
51467
+ }), console.log(p, d), u.result = s[p] || [], u.totalNum = s[d] || 0, u;
51458
51468
  }
51459
51469
  const P5 = Ee({
51460
51470
  setup() {