dfs-page-config 0.0.77 → 0.0.79

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.
@@ -21114,7 +21114,7 @@ function OO(r, a) {
21114
21114
  r[l].children && OO(r[l].children, a), r[l].key === a && (Pv = r[l]);
21115
21115
  }
21116
21116
  function Ol(r, a, l) {
21117
- const c = [];
21117
+ const c = {};
21118
21118
  return l.forEach((d) => {
21119
21119
  const f = ir(r, a, d);
21120
21120
  c[d] = f;
@@ -21125,13 +21125,14 @@ function sY(r, a) {
21125
21125
  a.options = r[a.url];
21126
21126
  else {
21127
21127
  let l = a.method == "POST" ? "data" : "params";
21128
+ const c = typeof a.params == "function" ? a.params() : a.params;
21128
21129
  Cs({
21129
21130
  url: r._BASE_URL + a.url,
21130
- [l]: a.params || {},
21131
+ [l]: c || {},
21131
21132
  method: a.method || "GET"
21132
- }).then((c) => {
21133
- const d = c.items || c.list || c.detail || c;
21134
- a.options = d, a.noCache || (r[a.url] = d);
21133
+ }).then((d) => {
21134
+ const f = d.items || d.list || d.detail || d;
21135
+ a.options = f, a.noCache || (r[a.url] = f);
21135
21136
  });
21136
21137
  }
21137
21138
  }
@@ -21389,7 +21390,7 @@ const mY = _e({
21389
21390
  }
21390
21391
  function l({ option: c, row: d }) {
21391
21392
  if (c.showDialogBefore) {
21392
- let h = [];
21393
+ let h = {};
21393
21394
  if (c.relation && (h = Ol(sa, r.params.pageKey, c.relation)), c.showDialogBefore(h, d) === !1)
21394
21395
  return;
21395
21396
  }
@@ -23743,7 +23744,7 @@ const Aq = /* @__PURE__ */ SE(UO), Nq = _e({
23743
23744
  c.submit = v, c.reset = h, d.elementGroup = B(() => c.elementGroup.filter((b) => b.isShow === void 0 || typeof b.isShow == "function" && b.isShow(d.formData)));
23744
23745
  function f() {
23745
23746
  d.elementGroup.forEach((b) => {
23746
- (b.type === "Select" || b.type === "Cascader") && b.url && sY(a.state, b);
23747
+ (b.type === "Select" || b.type === "Cascader" || b.type === "radioGroup") && b.url && sY(a.state, b);
23747
23748
  });
23748
23749
  }
23749
23750
  function h() {
@@ -23768,7 +23769,7 @@ const Aq = /* @__PURE__ */ SE(UO), Nq = _e({
23768
23769
  }
23769
23770
  function g() {
23770
23771
  if (c.submitBefore) {
23771
- let b = [];
23772
+ let b = {};
23772
23773
  if (c.relation && (b = Ol(a, r.pageKey, c.relation)), c.submitBefore({ relation: b, formData: c.formData, row: c.row }) === !1)
23773
23774
  return !1;
23774
23775
  }
@@ -23921,14 +23922,15 @@ function Iq(r, a, l, c, d, f) {
23921
23922
  }, {
23922
23923
  default: de(() => [
23923
23924
  (I(!0), X(Ye, null, pt(M.options, (ee) => (I(), fe(_, {
23924
- key: ee.value,
23925
- label: ee.value
23925
+ key: ee[M.itemValue || "value"],
23926
+ label: ee[M.itemValue || "value"],
23927
+ style: dt(M.itemStyle)
23926
23928
  }, {
23927
23929
  default: de(() => [
23928
- Ut(He(ee.label), 1)
23930
+ Ut(He(ee[M.itemName || "label"]), 1)
23929
23931
  ]),
23930
23932
  _: 2
23931
- }, 1032, ["label"]))), 128))
23933
+ }, 1032, ["label", "style"]))), 128))
23932
23934
  ]),
23933
23935
  _: 2
23934
23936
  }, 1032, ["modelValue", "onUpdate:modelValue"])) : ve("", !0),
@@ -24045,7 +24047,7 @@ function Iq(r, a, l, c, d, f) {
24045
24047
  _: 3
24046
24048
  }, 8, ["locale"]);
24047
24049
  }
24048
- const Mq = /* @__PURE__ */ co(Nq, [["render", Iq], ["__scopeId", "data-v-c149859e"]]), Lq = _e({
24050
+ const Mq = /* @__PURE__ */ co(Nq, [["render", Iq], ["__scopeId", "data-v-aaf89811"]]), Lq = _e({
24049
24051
  props: {
24050
24052
  url: String,
24051
24053
  text: {
@@ -24214,7 +24216,7 @@ const zO = /* @__PURE__ */ co(Lq, [["render", xq]]), Gq = _e({
24214
24216
  }
24215
24217
  function C(_) {
24216
24218
  if (_.showDialogBefore) {
24217
- let S = [];
24219
+ let S = {};
24218
24220
  if (_.relation && (S = Ol(a, r.pageKey, _.relation)), _.showDialogBefore(S) === !1)
24219
24221
  return;
24220
24222
  }
@@ -24286,7 +24288,7 @@ function Vq(r, a, l, c, d, f) {
24286
24288
  Be(r.$slots, "default", {}, void 0, !0)
24287
24289
  ], 4);
24288
24290
  }
24289
- const Hq = /* @__PURE__ */ co(Gq, [["render", Vq], ["__scopeId", "data-v-15f89e99"]]), kq = _e({
24291
+ const Hq = /* @__PURE__ */ co(Gq, [["render", Vq], ["__scopeId", "data-v-b5b3b5ce"]]), kq = _e({
24290
24292
  props: {
24291
24293
  gridApi: {
24292
24294
  type: Object,