vue3-curd 1.0.12 → 1.0.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.
@@ -372,34 +372,34 @@ function Ba(e) {
372
372
  ...Xe,
373
373
  pageSize: e.initialPageSize ?? Xe.pageSize
374
374
  }), h = I(Ta), V = I(Ae.FULL), i = async () => {
375
- var U;
375
+ var E;
376
376
  if (!e.listApi) {
377
- e.data ? a.value = Array.isArray(e.data) ? e.data : ((U = e.data) == null ? void 0 : U.value) || [] : a.value = [];
377
+ e.data ? a.value = Array.isArray(e.data) ? e.data : ((E = e.data) == null ? void 0 : E.value) || [] : a.value = [];
378
378
  return;
379
379
  }
380
380
  l.value = !0;
381
381
  try {
382
- const b = await M(null), E = await e.listApi(b);
383
- e.afterQuery && await e.afterQuery(E);
384
- let O = E.rows || E.data;
385
- e.treeProps && (O = t == null ? void 0 : t.handleTree(E.data, e.rowKey)), a.value = O, g.value.total = E.total;
386
- const W = E.total / g.value.pageSize <= 1;
382
+ const b = await M(null), U = await e.listApi(b);
383
+ e.afterQuery && await e.afterQuery(U);
384
+ let O = U.rows || U.data;
385
+ e.treeProps && (O = t == null ? void 0 : t.handleTree(U.data, e.rowKey)), a.value = O, g.value.total = U.total;
386
+ const W = U.total / g.value.pageSize <= 1;
387
387
  V.value = W ? Ae.SIMPLE : Ae.FULL, t == null || t.$forceUpdate();
388
388
  } catch (b) {
389
389
  console.error("Query failed:", b);
390
390
  } finally {
391
391
  l.value = !1;
392
392
  }
393
- }, M = async (U) => {
394
- U && (n.value = Ye(U));
393
+ }, M = async (E) => {
394
+ E && (n.value = Ye(E));
395
395
  let b = e.queryParams || {};
396
396
  if (e.beforeQuery) {
397
- const E = await e.beforeQuery({});
397
+ const U = await e.beforeQuery({});
398
398
  b = {
399
399
  ...g.value,
400
400
  ...b,
401
401
  ...n.value,
402
- ...E
402
+ ...U
403
403
  };
404
404
  } else
405
405
  b = {
@@ -408,22 +408,22 @@ function Ba(e) {
408
408
  ...n.value
409
409
  };
410
410
  return b;
411
- }, C = (U) => {
412
- U && (n.value = Ye(U)), i();
413
- }, j = (U) => {
414
- g.value.pageNum = U, i();
415
- }, P = (U) => {
416
- g.value.pageSize = U, i();
417
- }, H = (U) => {
418
- U.order && (g.value.orderByColumn = U.prop, g.value.isAsc = U.order), i();
419
- }, J = (U) => {
420
- c.value = U, e.selectionChange && e.selectionChange(U);
411
+ }, C = (E) => {
412
+ E && (n.value = Ye(E)), i();
413
+ }, j = (E) => {
414
+ g.value.pageNum = E, console.log("切換分頁pageNum", E), i();
415
+ }, P = (E) => {
416
+ g.value.pageSize = E, console.log("切換分頁pageSize", E), i();
417
+ }, H = (E) => {
418
+ E.order && (g.value.orderByColumn = E.prop, g.value.isAsc = E.order), i();
419
+ }, J = (E) => {
420
+ c.value = E, e.selectionChange && e.selectionChange(E);
421
421
  }, ee = () => {
422
- const U = e.queryParams || {};
423
- U.orderByColumn && (g.value.orderByColumn = U.orderByColumn, p.value = {
424
- prop: U.orderByColumn,
425
- order: U.isAsc === "asc" ? "ascending" : "descending"
426
- }), U.isAsc && (g.value.isAsc = U.isAsc);
422
+ const E = e.queryParams || {};
423
+ E.orderByColumn && (g.value.orderByColumn = E.orderByColumn, p.value = {
424
+ prop: E.orderByColumn,
425
+ order: E.isAsc === "asc" ? "ascending" : "descending"
426
+ }), E.isAsc && (g.value.isAsc = E.isAsc);
427
427
  };
428
428
  return {
429
429
  listData: a,
@@ -534,9 +534,9 @@ const xa = {
534
534
  handlePageChange: J,
535
535
  handleSizeChange: ee,
536
536
  handleSortChange: S,
537
- handleSelectionChange: U,
537
+ handleSelectionChange: E,
538
538
  initData: b,
539
- getQueryParams: E
539
+ getQueryParams: U
540
540
  } = Ba(n.dataSource), { initColumnDicts: O } = El(), W = I(Cl), $ = (_) => _ == null ? void 0 : _[n.dataSource.rowKey], d = Z(() => n.dataSource.actions ? n.dataSource.actions.filter(
541
541
  (_) => _.action !== "create" && _.action !== "back" && (!_.position || _.position === "table")
542
542
  ) : []), D = (_) => {
@@ -576,7 +576,7 @@ const xa = {
576
576
  } else console.error("未配置data屬性");
577
577
  }, ue = (_, N) => Aa(_, N), me = (_) => {
578
578
  const N = Array.isArray(_) ? _ : [];
579
- U(N), c("selectionChange", N);
579
+ E(N), c("selectionChange", N);
580
580
  }, ce = (_, N, le) => {
581
581
  var te, ae;
582
582
  return (ae = (te = n.dataSource).rowClick) == null ? void 0 : ae.call(te, _, N, le);
@@ -607,7 +607,7 @@ const xa = {
607
607
  }, y = async () => {
608
608
  await O(n.dataSource.columns), await b(), await r(), await m();
609
609
  };
610
- return He(() => y()), t({ refreshTable: H, getSelection: u, initData: y, getQueryParams: E }), (_, N) => {
610
+ return He(() => y()), t({ refreshTable: H, getSelection: u, initData: y, getQueryParams: U }), (_, N) => {
611
611
  const le = Kl, te = Be, ae = nl, ge = sl, $e = rl, xl = Vl, Rl = Fe, Ce = De, Ml = Wl, jl = Nl, Hl = Ql, Te = vl("hasPermi"), Fl = ql;
612
612
  return s(), T("div", null, [
613
613
  ie((s(), f(jl, {
@@ -886,40 +886,40 @@ const xa = {
886
886
  const a = e, { proxy: l } = ye(), c = t, n = I(0), p = I([]), g = We(), h = I(g + "/resource/oss/upload"), V = I(Ke()), i = I([]), M = Z(
887
887
  () => a.showTip && (a.fileType || a.fileSize)
888
888
  ), C = I();
889
- _e(() => a.modelValue, async (E) => {
890
- if (E) {
889
+ _e(() => a.modelValue, async (U) => {
890
+ if (U) {
891
891
  if (!a.showFileList) return;
892
892
  let O = 1, W = [];
893
- Array.isArray(E) ? W = E : W = (await qe(E)).data.map((d) => ({ name: d.originalName, url: d.url, ossId: d.ossId })), i.value = W.map(($) => ($ = { name: $.name, url: $.url, ossId: $.ossId }, $.uid = $.uid || (/* @__PURE__ */ new Date()).getTime() + O++, $));
893
+ Array.isArray(U) ? W = U : W = (await qe(U)).data.map((d) => ({ name: d.originalName, url: d.url, ossId: d.ossId })), i.value = W.map(($) => ($ = { name: $.name, url: $.url, ossId: $.ossId }, $.uid = $.uid || (/* @__PURE__ */ new Date()).getTime() + O++, $));
894
894
  } else
895
895
  return i.value = [], [];
896
896
  }, { deep: !0, immediate: !0 });
897
- const j = (E) => {
897
+ const j = (U) => {
898
898
  if (a.fileType.length) {
899
- const O = E.name.split("."), W = O[O.length - 1];
899
+ const O = U.name.split("."), W = O[O.length - 1];
900
900
  if (!(a.fileType.indexOf(W) >= 0))
901
901
  return l == null || l.$modal.msgError(`文件格式不正確, 請上傳${a.fileType.join("/")}格式文件!`), !1;
902
902
  }
903
- return a.fileSize && !(E.size / 1024 / 1024 < a.fileSize) ? (l == null || l.$modal.msgError(`上傳文件大小不超過 ${a.fileSize} MB!`), !1) : (l == null || l.$modal.loading("正在上傳文件,請稍等..."), n.value++, !0);
903
+ return a.fileSize && !(U.size / 1024 / 1024 < a.fileSize) ? (l == null || l.$modal.msgError(`上傳文件大小不超過 ${a.fileSize} MB!`), !1) : (l == null || l.$modal.loading("正在上傳文件,請稍等..."), n.value++, !0);
904
904
  }, P = () => {
905
905
  l == null || l.$modal.msgError(`上傳文件數量不能超過 ${a.limit} 个!`);
906
906
  }, H = () => {
907
907
  l == null || l.$modal.msgError("上傳文件失敗");
908
- }, J = (E, O) => {
908
+ }, J = (U, O) => {
909
909
  var W;
910
- E.code === 200 ? (p.value.push({ name: E.data.fileName, url: E.data.url, ossId: E.data.ossId }), S()) : (n.value--, l == null || l.$modal.closeLoading(), l == null || l.$modal.msgError(E.msg), (W = C.value) == null || W.handleRemove(O), S());
911
- }, ee = (E) => {
912
- const O = i.value[E].ossId;
913
- $l(O), i.value.splice(E, 1), c("update:modelValue", b(i.value));
910
+ U.code === 200 ? (p.value.push({ name: U.data.fileName, url: U.data.url, ossId: U.data.ossId }), S()) : (n.value--, l == null || l.$modal.closeLoading(), l == null || l.$modal.msgError(U.msg), (W = C.value) == null || W.handleRemove(O), S());
911
+ }, ee = (U) => {
912
+ const O = i.value[U].ossId;
913
+ $l(O), i.value.splice(U, 1), c("update:modelValue", b(i.value));
914
914
  }, S = () => {
915
- n.value > 0 && p.value.length === n.value && (i.value = i.value.filter((E) => E.url !== void 0).concat(p.value), p.value = [], n.value = 0, c("update:modelValue", b(i.value)), l == null || l.$modal.closeLoading());
916
- }, U = (E) => E.lastIndexOf("/") > -1 ? E.slice(E.lastIndexOf("/") + 1) : E, b = (E, O) => {
915
+ n.value > 0 && p.value.length === n.value && (i.value = i.value.filter((U) => U.url !== void 0).concat(p.value), p.value = [], n.value = 0, c("update:modelValue", b(i.value)), l == null || l.$modal.closeLoading());
916
+ }, E = (U) => U.lastIndexOf("/") > -1 ? U.slice(U.lastIndexOf("/") + 1) : U, b = (U, O) => {
917
917
  let W = "";
918
- return O = O || ",", E.forEach(($) => {
918
+ return O = O || ",", U.forEach(($) => {
919
919
  $.ossId && (W += $.ossId + O);
920
920
  }), W != "" ? W.substring(0, W.length - 1) : "";
921
921
  };
922
- return (E, O) => {
922
+ return (U, O) => {
923
923
  const W = De, $ = Re, d = Gl;
924
924
  return s(), T("div", Fa, [
925
925
  K($, {
@@ -976,7 +976,7 @@ const xa = {
976
976
  target: "_blank"
977
977
  }, {
978
978
  default: v(() => [
979
- re("span", qa, R(U(D.name)), 1)
979
+ re("span", qa, R(E(D.name)), 1)
980
980
  ]),
981
981
  _: 2
982
982
  }, 1032, ["href"]),
@@ -1073,7 +1073,7 @@ const xa = {
1073
1073
  }, S = ($, d) => {
1074
1074
  var D;
1075
1075
  $.code === 200 ? (p.value.push({ name: $.data.fileName, url: $.data.url, ossId: $.data.ossId }), b()) : (n.value--, l == null || l.$modal.closeLoading(), l == null || l.$modal.msgError($.msg), (D = P.value) == null || D.handleRemove(d), b());
1076
- }, U = ($) => {
1076
+ }, E = ($) => {
1077
1077
  const d = C.value.map((D) => D.name).indexOf($.name);
1078
1078
  if (d > -1 && p.value.length === n.value) {
1079
1079
  const D = C.value[d].ossId;
@@ -1082,7 +1082,7 @@ const xa = {
1082
1082
  return !0;
1083
1083
  }, b = () => {
1084
1084
  n.value > 0 && p.value.length === n.value && (C.value = C.value.filter(($) => $.url !== void 0).concat(p.value), p.value = [], n.value = 0, c("update:modelValue", W(C.value)), l == null || l.$modal.closeLoading());
1085
- }, E = () => {
1085
+ }, U = () => {
1086
1086
  l == null || l.$modal.msgError("上傳圖片失敗"), l == null || l.$modal.closeLoading();
1087
1087
  }, O = ($) => {
1088
1088
  g.value = $.url, h.value = !0;
@@ -1106,9 +1106,9 @@ const xa = {
1106
1106
  "before-upload": J,
1107
1107
  limit: e.limit,
1108
1108
  accept: o(H),
1109
- "on-error": E,
1109
+ "on-error": U,
1110
1110
  "on-exceed": ee,
1111
- "before-remove": U,
1111
+ "before-remove": E,
1112
1112
  "show-file-list": !0,
1113
1113
  headers: o(M),
1114
1114
  "file-list": o(C),
@@ -1256,7 +1256,7 @@ const xa = {
1256
1256
  size: "small",
1257
1257
  key: S.id,
1258
1258
  type: S.selected ? "primary" : "default",
1259
- onClick: (U) => M(S),
1259
+ onClick: (E) => M(S),
1260
1260
  style: { "margin-right": "-8px" }
1261
1261
  }, {
1262
1262
  default: v(() => [
@@ -1268,16 +1268,16 @@ const xa = {
1268
1268
  (s(!0), T(Y, null, Q(o(n), (S) => ie((s(), f(ee, {
1269
1269
  key: S.id,
1270
1270
  modelValue: S.text,
1271
- "onUpdate:modelValue": (U) => S.text = U,
1271
+ "onUpdate:modelValue": (E) => S.text = E,
1272
1272
  type: c.type,
1273
1273
  placeholder: c.placeholder + "(" + S.name + ")",
1274
1274
  disabled: c.disabled,
1275
1275
  rows: c.rows,
1276
1276
  "show-word-limit": c.showWordLimit,
1277
1277
  maxlength: c.maxlength,
1278
- onInput: (U) => h(S, U),
1279
- onBlur: (U) => V(S),
1280
- onFocus: H[0] || (H[0] = (U) => j())
1278
+ onInput: (E) => h(S, E),
1279
+ onBlur: (E) => V(S),
1280
+ onFocus: H[0] || (H[0] = (E) => j())
1281
1281
  }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "placeholder", "disabled", "rows", "show-word-limit", "maxlength", "onInput", "onBlur"])), [
1282
1282
  [na, S.selected]
1283
1283
  ])), 128))
@@ -1549,8 +1549,8 @@ function yt(e, t) {
1549
1549
  break;
1550
1550
  case "daterange":
1551
1551
  case "timerange":
1552
- const S = (J = i.form) == null ? void 0 : J.rangeBeginProp, U = (ee = i.form) == null ? void 0 : ee.rangeEndProp;
1553
- S && U && h[S] && h[U] ? h[C] = [h[S], h[U]] : typeof h[C] == "string" && h[C].includes(",") ? h[C] = h[C].split(",") : (!h[C] || !Array.isArray(h[C])) && (h[C] = h[C] || []);
1552
+ const S = (J = i.form) == null ? void 0 : J.rangeBeginProp, E = (ee = i.form) == null ? void 0 : ee.rangeEndProp;
1553
+ S && E && h[S] && h[E] ? h[C] = [h[S], h[E]] : typeof h[C] == "string" && h[C].includes(",") ? h[C] = h[C].split(",") : (!h[C] || !Array.isArray(h[C])) && (h[C] = h[C] || []);
1554
1554
  break;
1555
1555
  }
1556
1556
  });
@@ -1564,8 +1564,8 @@ function yt(e, t) {
1564
1564
  var j, P, H, J;
1565
1565
  const M = (j = i.form) == null ? void 0 : j.type, C = ((P = i.form) == null ? void 0 : P.prop) || i.prop;
1566
1566
  if ((M === "daterange" || M === "timerange") && Array.isArray(V[C])) {
1567
- const ee = V[C], S = (H = i.form) == null ? void 0 : H.rangeBeginProp, U = (J = i.form) == null ? void 0 : J.rangeEndProp;
1568
- S && U && ee.length >= 2 && (V[S] = ee[0], V[U] = ee[1]);
1567
+ const ee = V[C], S = (H = i.form) == null ? void 0 : H.rangeBeginProp, E = (J = i.form) == null ? void 0 : J.rangeEndProp;
1568
+ S && E && ee.length >= 2 && (V[S] = ee[0], V[E] = ee[1]);
1569
1569
  }
1570
1570
  }), delete V.orderByColumn, delete V.isAsc, e.beforeSave) {
1571
1571
  const i = await e.beforeSave(V);
@@ -1591,24 +1591,24 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1591
1591
  c.dataSource,
1592
1592
  c.editData
1593
1593
  ), j = Z(() => {
1594
- const E = !!c.editData[c.dataSource.rowKey], O = Ia(c.dataSource.columns, E, E);
1594
+ const U = !!c.editData[c.dataSource.rowKey], O = Ia(c.dataSource.columns, U, U);
1595
1595
  return Tl(O, "form.order");
1596
1596
  }), P = Z(() => c.dataSource.formInline || !1), H = (b) => {
1597
1597
  if (Array.isArray(b.defaultExpandedKeys))
1598
1598
  return b.defaultExpandedKeys;
1599
1599
  if (b.autoExpandFirstLevel === !1)
1600
1600
  return [];
1601
- const E = b.data || [], O = b.props || { value: "id" }, W = b.valueKey || O.value || "id";
1602
- return Array.isArray(E) ? E.map(($) => $[W]).filter(($) => $ !== void 0) : [];
1601
+ const U = b.data || [], O = b.props || { value: "id" }, W = b.valueKey || O.value || "id";
1602
+ return Array.isArray(U) ? U.map(($) => $[W]).filter(($) => $ !== void 0) : [];
1603
1603
  }, J = () => Pa(c.dataSource.columns), ee = () => {
1604
1604
  var b;
1605
- (b = h.value) == null || b.validate(async (E) => {
1605
+ (b = h.value) == null || b.validate(async (U) => {
1606
1606
  var O, W, $, d, D;
1607
- if (!E) return !1;
1607
+ if (!U) return !1;
1608
1608
  try {
1609
1609
  const A = { ...c.dataSource.queryParams || {} };
1610
1610
  if (await C(A) === !1) return !1;
1611
- c.editData[c.dataSource.rowKey] ? await ((W = (O = c.dataSource).updateApi) == null ? void 0 : W.call(O, A)) : await ((d = ($ = c.dataSource).addApi) == null ? void 0 : d.call($, A)), await S(), U(!0), l == null || l.$modal.msgSuccess(a("數據存儲成功")), (D = h.value) == null || D.resetFields();
1611
+ c.editData[c.dataSource.rowKey] ? await ((W = (O = c.dataSource).updateApi) == null ? void 0 : W.call(O, A)) : await ((d = ($ = c.dataSource).addApi) == null ? void 0 : d.call($, A)), await S(), E(!0), l == null || l.$modal.msgSuccess(a("數據存儲成功")), (D = h.value) == null || D.resetFields();
1612
1612
  } catch (A) {
1613
1613
  console.error("Save failed:", A);
1614
1614
  }
@@ -1617,26 +1617,26 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1617
1617
  }, S = async () => {
1618
1618
  const b = p.value;
1619
1619
  if (b != null) {
1620
- const E = [];
1620
+ const U = [];
1621
1621
  for (let O = 0; O < b.length; O++) {
1622
1622
  const W = b[O].getTranslate();
1623
- E.push(W);
1623
+ U.push(W);
1624
1624
  }
1625
- await ot(E);
1625
+ await ot(U);
1626
1626
  }
1627
- }, U = (b = !1) => {
1628
- var E;
1629
- (E = h.value) == null || E.resetFields(), g("close", b);
1627
+ }, E = (b = !1) => {
1628
+ var U;
1629
+ (U = h.value) == null || U.resetFields(), g("close", b);
1630
1630
  };
1631
1631
  return _e(() => c.modelValue, (b) => {
1632
1632
  b && (J(), M(c.editData)), n.value = b;
1633
- }), (b, E) => {
1633
+ }), (b, U) => {
1634
1634
  const O = Jl, W = hl, $ = fl, d = ml, D = Al, A = Ul, F = Me, G = nl, se = Xl, w = sl, L = ea, q = Zl, B = yl, ne = la, ue = pl, me = il, ce = dl, pe = ul, u = De, m = cl;
1635
1635
  return s(), f(m, {
1636
1636
  title: c.action.title || c.action.text,
1637
1637
  modelValue: o(n),
1638
- "onUpdate:modelValue": E[1] || (E[1] = (r) => Se(n) ? n.value = r : null),
1639
- onClose: U,
1638
+ "onUpdate:modelValue": U[1] || (U[1] = (r) => Se(n) ? n.value = r : null),
1639
+ onClose: E,
1640
1640
  "destroy-on-close": "",
1641
1641
  "append-to-bod": "",
1642
1642
  width: c.action.width || (o(P) ? 750 : 550),
@@ -1645,7 +1645,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1645
1645
  footer: v(() => [
1646
1646
  re("div", null, [
1647
1647
  K(u, {
1648
- onClick: E[0] || (E[0] = (r) => U(!1))
1648
+ onClick: U[0] || (U[0] = (r) => E(!1))
1649
1649
  }, {
1650
1650
  default: v(() => [
1651
1651
  z(R(b.$t("關閉")), 1)
@@ -2035,11 +2035,11 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2035
2035
  }, C = Z(() => p.dataSource.searchColumnsPerRow ?? 4), j = Z(() => Math.floor(24 / C.value)), P = Z(() => p.dataSource.showSearchCard ?? !0), H = Z(() => {
2036
2036
  if (p.dataSource.searchActionColSpan != null)
2037
2037
  return p.dataSource.searchActionColSpan;
2038
- const d = U.value.length % C.value, A = 24 - (d === 0 ? C.value : d) * j.value;
2038
+ const d = E.value.length % C.value, A = 24 - (d === 0 ? C.value : d) * j.value;
2039
2039
  return A <= 0 ? 24 : A;
2040
- }), J = Z(() => U.value.length % C.value === 0 ? "15px !important" : "0px !important"), { initSearchDicts: ee } = El(), S = I({}), U = I([]), b = () => {
2040
+ }), J = Z(() => E.value.length % C.value === 0 ? "15px !important" : "0px !important"), { initSearchDicts: ee } = El(), S = I({}), E = I([]), b = () => {
2041
2041
  n("actionEvent", { action: "filter" });
2042
- }, E = async () => {
2042
+ }, U = async () => {
2043
2043
  try {
2044
2044
  let d = O();
2045
2045
  if (d = { ...p.dataSource.queryParams || {}, ...d }, p.dataSource.beforeExport && await p.dataSource.beforeExport(d) === !1)
@@ -2052,7 +2052,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2052
2052
  }
2053
2053
  }, O = () => {
2054
2054
  const d = { ...S.value };
2055
- return U.value.forEach((D) => {
2055
+ return E.value.forEach((D) => {
2056
2056
  var A, F;
2057
2057
  if (((A = D.search) == null ? void 0 : A.type) === "daterange" || ((F = D.search) == null ? void 0 : F.type) === "timerange") {
2058
2058
  const G = d[D.search.prop];
@@ -2063,7 +2063,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2063
2063
  await $(), n("actionEvent", { action: "filter" }, {});
2064
2064
  }, $ = async () => {
2065
2065
  const d = p.dataSource.columns.filter((A) => A.search);
2066
- U.value = Tl(
2066
+ E.value = Tl(
2067
2067
  d.map((A, F) => (A.search.order || (A.search.order = F + 100), A)),
2068
2068
  "search.order"
2069
2069
  ), await Ie();
@@ -2079,7 +2079,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2079
2079
  return He(() => $()), t({ initData: $, getQueryParams: O }), (d, D) => {
2080
2080
  var pe;
2081
2081
  const A = ml, F = hl, G = fl, se = yl, w = Me, L = pl, q = il, B = De, ne = dl, ue = ul, me = gl, ce = vl("hasPermi");
2082
- return o(U).length > 0 && o(P) ? (s(), f(me, {
2082
+ return o(E).length > 0 && o(P) ? (s(), f(me, {
2083
2083
  key: 0,
2084
2084
  class: "curd-search-card",
2085
2085
  shadow: "hover",
@@ -2095,7 +2095,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2095
2095
  default: v(() => [
2096
2096
  K(ne, { gutter: 20 }, {
2097
2097
  default: v(() => [
2098
- (s(!0), T(Y, null, Q(o(U), (u) => (s(), f(q, {
2098
+ (s(!0), T(Y, null, Q(o(E), (u) => (s(), f(q, {
2099
2099
  span: o(j),
2100
2100
  key: u.search.prop
2101
2101
  }, {
@@ -2298,7 +2298,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2298
2298
  type: "primary",
2299
2299
  icon: "Download",
2300
2300
  plain: "",
2301
- onClick: E
2301
+ onClick: U
2302
2302
  }, {
2303
2303
  default: v(() => [
2304
2304
  z(R(p.dataSource.exportButtonName || d.$t("導出")), 1)
@@ -2331,7 +2331,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2331
2331
  }, 8, ["model", "label-width"])
2332
2332
  ]),
2333
2333
  _: 1
2334
- }, 8, ["body-style"])) : o(U).length > 0 && !o(P) ? (s(), T("div", kt, [
2334
+ }, 8, ["body-style"])) : o(E).length > 0 && !o(P) ? (s(), T("div", kt, [
2335
2335
  K(ue, {
2336
2336
  model: o(S),
2337
2337
  inline: !0,
@@ -2340,7 +2340,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2340
2340
  default: v(() => [
2341
2341
  K(ne, { gutter: 20 }, {
2342
2342
  default: v(() => [
2343
- (s(!0), T(Y, null, Q(o(U), (u) => (s(), f(q, {
2343
+ (s(!0), T(Y, null, Q(o(E), (u) => (s(), f(q, {
2344
2344
  span: o(j),
2345
2345
  key: u.search.prop
2346
2346
  }, {
@@ -2543,7 +2543,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2543
2543
  type: "primary",
2544
2544
  icon: "Download",
2545
2545
  plain: "",
2546
- onClick: E
2546
+ onClick: U
2547
2547
  }, {
2548
2548
  default: v(() => [
2549
2549
  z(R(d.$t("導出")), 1)
@@ -2609,7 +2609,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2609
2609
  type: "primary",
2610
2610
  icon: "Download",
2611
2611
  plain: "",
2612
- onClick: E
2612
+ onClick: U
2613
2613
  }, {
2614
2614
  default: v(() => [
2615
2615
  z(R(p.dataSource.exportButtonName || "導出"), 1)
@@ -2662,7 +2662,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2662
2662
  }, S = () => {
2663
2663
  var w;
2664
2664
  return (w = M.value) == null ? void 0 : w.initData();
2665
- }, U = async (w, L) => {
2665
+ }, E = async (w, L) => {
2666
2666
  let q = L;
2667
2667
  n.dataSource.beforeAction && (q = await n.dataSource.beforeAction(w, L)), b(w, q);
2668
2668
  }, b = (w, L) => {
@@ -2671,7 +2671,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2671
2671
  return;
2672
2672
  }
2673
2673
  const B = {
2674
- update: () => E(w, L),
2674
+ update: () => U(w, L),
2675
2675
  delete: () => O(w, L),
2676
2676
  batchDelete: () => W(),
2677
2677
  create: () => $(w, L),
@@ -2680,7 +2680,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2680
2680
  back: () => se()
2681
2681
  }[w.action];
2682
2682
  B ? B() : c("actionEvent", w, L);
2683
- }, E = async (w, L) => {
2683
+ }, U = async (w, L) => {
2684
2684
  n.dataSource.beforeUpdate && await n.dataSource.beforeUpdate(L) === !1 || (h.value = L, V.value = w, g.value = !0);
2685
2685
  }, O = async (w, L) => {
2686
2686
  var q, B, ne;
@@ -2760,7 +2760,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2760
2760
  selectedCount: o(C),
2761
2761
  ref_key: "curdSearchRef",
2762
2762
  ref: M,
2763
- onActionEvent: U
2763
+ onActionEvent: E
2764
2764
  }, null, 8, ["dataSource", "selectedCount"]),
2765
2765
  w.showCard ? (s(), f(q, {
2766
2766
  key: 0,
@@ -2771,7 +2771,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2771
2771
  K(el, {
2772
2772
  ref_key: "curdTableRef",
2773
2773
  ref: i,
2774
- onActionEvent: U,
2774
+ onActionEvent: E,
2775
2775
  onSelectionChange: P,
2776
2776
  dataSource: n.dataSource,
2777
2777
  maxHeight: o(p)
@@ -2797,7 +2797,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2797
2797
  K(el, {
2798
2798
  ref_key: "curdTableRef",
2799
2799
  ref: i,
2800
- onActionEvent: U,
2800
+ onActionEvent: E,
2801
2801
  onSelectionChange: P,
2802
2802
  dataSource: n.dataSource,
2803
2803
  maxHeight: o(p)