vue3-curd 1.0.13 → 1.0.15

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.
@@ -144,8 +144,8 @@ const Va = { class: "image-slot" }, _a = { key: 1 }, $a = /* @__PURE__ */ fe({
144
144
  setup(e) {
145
145
  const t = e, a = I(""), l = Z(() => a.value ? a.value.split(",")[0] : void 0), c = Z(() => {
146
146
  if (!a.value) return;
147
- const p = a.value.split(","), g = [];
148
- return p.forEach((h) => g.push(h)), g;
147
+ const p = a.value.split(","), y = [];
148
+ return p.forEach((h) => y.push(h)), y;
149
149
  }), n = Z(() => {
150
150
  const p = t.width;
151
151
  return typeof p == "string" ? p : `${p}px`;
@@ -155,10 +155,10 @@ const Va = { class: "image-slot" }, _a = { key: 1 }, $a = /* @__PURE__ */ fe({
155
155
  return typeof p == "string" ? p : `${p}px`;
156
156
  }), _e(() => t.modelValue, async (p) => {
157
157
  if (p) {
158
- let g;
159
- Array.isArray(p) ? g = p : g = (await qe(p)).data, a.value = g.map((h) => h.url).join(",");
158
+ let y;
159
+ Array.isArray(p) ? y = p : y = (await qe(p)).data, a.value = y.map((h) => h.url).join(",");
160
160
  } else a.value = "";
161
- }, { immediate: !0, deep: !0 }), (p, g) => {
161
+ }, { immediate: !0, deep: !0 }), (p, y) => {
162
162
  const h = xe, V = Be;
163
163
  return s(), T("div", null, [
164
164
  o(l) ? (s(), f(V, {
@@ -220,9 +220,9 @@ const Va = { class: "image-slot" }, _a = { key: 1 }, $a = /* @__PURE__ */ fe({
220
220
  () => typeof t.height == "string" ? t.height : `${t.height}px`
221
221
  );
222
222
  return (c, n) => {
223
- const p = xe, g = Be, h = Fe;
223
+ const p = xe, y = Be, h = Fe;
224
224
  return s(), T("span", null, [
225
- [".jpg", ".png", ".jpeg"].indexOf(e.data.fileSuffix) > -1 ? (s(), f(g, {
225
+ [".jpg", ".png", ".jpeg"].indexOf(e.data.fileSuffix) > -1 ? (s(), f(y, {
226
226
  key: 0,
227
227
  src: e.data.url,
228
228
  fit: "cover",
@@ -334,9 +334,9 @@ function Pa(e) {
334
334
  }
335
335
  function Tl(e, t = "order") {
336
336
  return [...e].sort((a, l) => {
337
- const c = (g, h) => {
337
+ const c = (y, h) => {
338
338
  const V = h.split(".");
339
- let i = g;
339
+ let i = y;
340
340
  for (const M of V)
341
341
  i = i == null ? void 0 : i[M];
342
342
  return i ?? 100;
@@ -368,7 +368,7 @@ function Ya(e, t, a, l) {
368
368
  t && t[0] && t[1] && (e[a] = `${t[0]},${t[1]}`, l == null || l.addDateRange(e, t, a));
369
369
  }
370
370
  function Ba(e) {
371
- const { proxy: t } = ye(), a = I([]), l = I(!1), c = I([]), n = I({}), p = I(), g = I({
371
+ const { proxy: t } = ye(), a = I([]), l = I(!1), c = I([]), n = I({}), p = I(), y = I({
372
372
  ...Xe,
373
373
  pageSize: e.initialPageSize ?? Xe.pageSize
374
374
  }), h = I(Ta), V = I(Ae.FULL), i = async () => {
@@ -382,8 +382,8 @@ function Ba(e) {
382
382
  const b = await M(null), U = await e.listApi(b);
383
383
  e.afterQuery && await e.afterQuery(U);
384
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;
385
+ e.treeProps && (O = t == null ? void 0 : t.handleTree(U.data, e.rowKey)), a.value = O, y.value.total = U.total;
386
+ const W = U.total / y.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);
@@ -396,14 +396,14 @@ function Ba(e) {
396
396
  if (e.beforeQuery) {
397
397
  const U = await e.beforeQuery({});
398
398
  b = {
399
- ...g.value,
399
+ ...y.value,
400
400
  ...b,
401
401
  ...n.value,
402
402
  ...U
403
403
  };
404
404
  } else
405
405
  b = {
406
- ...g.value,
406
+ ...y.value,
407
407
  ...b,
408
408
  ...n.value
409
409
  };
@@ -411,25 +411,25 @@ function Ba(e) {
411
411
  }, C = (E) => {
412
412
  E && (n.value = Ye(E)), i();
413
413
  }, j = (E) => {
414
- g.value.pageNum = E, console.log("切換分頁pageNum", E), i();
414
+ y.value.pageNum !== E && (y.value.pageNum = E, i());
415
415
  }, P = (E) => {
416
- g.value.pageSize = E, console.log("切換分頁pageSize", E), i();
416
+ y.value.pageSize !== E && (y.value.pageSize = E, i());
417
417
  }, H = (E) => {
418
- E.order && (g.value.orderByColumn = E.prop, g.value.isAsc = E.order), i();
418
+ E.order && (y.value.orderByColumn = E.prop, y.value.isAsc = E.order), i();
419
419
  }, J = (E) => {
420
420
  c.value = E, e.selectionChange && e.selectionChange(E);
421
421
  }, ee = () => {
422
422
  const E = e.queryParams || {};
423
- E.orderByColumn && (g.value.orderByColumn = E.orderByColumn, p.value = {
423
+ E.orderByColumn && (y.value.orderByColumn = E.orderByColumn, p.value = {
424
424
  prop: E.orderByColumn,
425
425
  order: E.isAsc === "asc" ? "ascending" : "descending"
426
- }), E.isAsc && (g.value.isAsc = E.isAsc);
426
+ }), E.isAsc && (y.value.isAsc = E.isAsc);
427
427
  };
428
428
  return {
429
429
  listData: a,
430
430
  loading: l,
431
431
  multipleSelection: c,
432
- pageOptions: g,
432
+ pageOptions: y,
433
433
  listSize: h,
434
434
  pagingLayout: V,
435
435
  defaultSort: p,
@@ -449,11 +449,11 @@ function El() {
449
449
  const { proxy: e } = ye(), t = async (n) => {
450
450
  for (const p of n)
451
451
  if (p.type === "dictTag") {
452
- const g = await (e == null ? void 0 : e.useOneDict(p.dictType));
453
- p.data = Oe(g);
452
+ const y = await (e == null ? void 0 : e.useOneDict(p.dictType));
453
+ p.data = Oe(y);
454
454
  } else if (p.type === "commonDictTag") {
455
- const g = await (e == null ? void 0 : e.useOneCommonDict(p.dictType));
456
- p.data = Oe(g);
455
+ const y = await (e == null ? void 0 : e.useOneCommonDict(p.dictType));
456
+ p.data = Oe(y);
457
457
  }
458
458
  }, a = async (n) => {
459
459
  if (!n.search) return;
@@ -472,8 +472,8 @@ function El() {
472
472
  break;
473
473
  }
474
474
  }, l = async (n) => {
475
- var g;
476
- if (!((g = n.search) != null && g.api)) return;
475
+ var y;
476
+ if (!((y = n.search) != null && y.api)) return;
477
477
  const p = {
478
478
  pageNum: 1,
479
479
  pageSize: 1e3,
@@ -490,13 +490,13 @@ function El() {
490
490
  var p;
491
491
  if ((p = n.search) != null && p.api)
492
492
  try {
493
- const g = await n.search.api({ pageNum: 1, pageSize: 1e3 });
494
- if (n.search.data = g.data || g.rows || g, n.search.data && Array.isArray(n.search.data)) {
493
+ const y = await n.search.api({ pageNum: 1, pageSize: 1e3 });
494
+ if (n.search.data = y.data || y.rows || y, n.search.data && Array.isArray(n.search.data)) {
495
495
  const V = (n.search.props || { value: "id", label: "label", children: "children" }).value || "id";
496
496
  n.search.defaultExpandedKeys = n.search.data.map((i) => i[V]);
497
497
  }
498
- } catch (g) {
499
- console.error(`Failed to load tree API data for ${n.prop}:`, g);
498
+ } catch (y) {
499
+ console.error(`Failed to load tree API data for ${n.prop}:`, y);
500
500
  }
501
501
  };
502
502
  return {
@@ -522,7 +522,7 @@ const xa = {
522
522
  },
523
523
  emits: ["actionEvent", "selectionChange", "rowClick"],
524
524
  setup(e, { expose: t, emit: a }) {
525
- const { proxy: l } = ye(), c = a, n = e, p = Z(() => n.dataSource.maxHeight ?? n.maxHeight), g = I(), {
525
+ const { proxy: l } = ye(), c = a, n = e, p = Z(() => n.dataSource.maxHeight ?? n.maxHeight), y = I(), {
526
526
  listData: h,
527
527
  loading: V,
528
528
  multipleSelection: i,
@@ -584,7 +584,7 @@ const xa = {
584
584
  var N, le;
585
585
  if (!n.dataSource.showSelection || !((N = n.dataSource.checkedRowKeys) != null && N.length)) return;
586
586
  await Ie();
587
- const _ = g.value;
587
+ const _ = y.value;
588
588
  if (_ != null && _.toggleRowSelection)
589
589
  for (const te of h.value) {
590
590
  const ae = $(te);
@@ -596,7 +596,7 @@ const xa = {
596
596
  var N, le;
597
597
  if (!n.dataSource.showSelection || !((N = n.dataSource.disabledCheckedRowKeys) != null && N.length)) return;
598
598
  await Ie();
599
- const _ = g.value;
599
+ const _ = y.value;
600
600
  if (_ != null && _.toggleRowSelection)
601
601
  for (const te of h.value) {
602
602
  const ae = $(te);
@@ -604,15 +604,15 @@ const xa = {
604
604
  const ge = String(ae);
605
605
  (le = n.dataSource.disabledCheckedRowKeys) != null && le.includes(ge) && _.toggleRowSelection(te, !0);
606
606
  }
607
- }, y = async () => {
607
+ }, g = 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: U }), (_, N) => {
610
+ return He(() => g()), t({ refreshTable: H, getSelection: u, initData: g, 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, {
614
614
  ref_key: "curdTableRef",
615
- ref: g,
615
+ ref: y,
616
616
  data: o(h),
617
617
  "row-key": n.dataSource.rowKey,
618
618
  "element-loading-text": _.$t("數據加載中..."),
@@ -883,7 +883,7 @@ const xa = {
883
883
  },
884
884
  emits: ["update:modelValue"],
885
885
  setup(e, { emit: t }) {
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(
886
+ const a = e, { proxy: l } = ye(), c = t, n = I(0), p = I([]), y = We(), h = I(y + "/resource/oss/upload"), V = I(Ke()), i = I([]), M = Z(
887
887
  () => a.showTip && (a.fileType || a.fileSize)
888
888
  ), C = I();
889
889
  _e(() => a.modelValue, async (U) => {
@@ -1037,7 +1037,7 @@ const xa = {
1037
1037
  oa(($) => ({
1038
1038
  "9d14746a": a.height
1039
1039
  }));
1040
- const a = e, { proxy: l } = ye(), c = t, n = I(0), p = I([]), g = I(""), h = I(!1), V = We(), i = I(V + "/resource/oss/upload"), M = I(Ke()), C = I([]), j = Z(() => a.isShowTip && (a.fileType || a.fileSize || a.imageSize)), P = I(), H = Z(() => a.fileType.map(($) => `.${$}`).join(","));
1040
+ const a = e, { proxy: l } = ye(), c = t, n = I(0), p = I([]), y = I(""), h = I(!1), V = We(), i = I(V + "/resource/oss/upload"), M = I(Ke()), C = I([]), j = Z(() => a.isShowTip && (a.fileType || a.fileSize || a.imageSize)), P = I(), H = Z(() => a.fileType.map(($) => `.${$}`).join(","));
1041
1041
  _e(
1042
1042
  () => a.modelValue,
1043
1043
  async ($) => {
@@ -1085,7 +1085,7 @@ const xa = {
1085
1085
  }, U = () => {
1086
1086
  l == null || l.$modal.msgError("上傳圖片失敗"), l == null || l.$modal.closeLoading();
1087
1087
  }, O = ($) => {
1088
- g.value = $.url, h.value = !0;
1088
+ y.value = $.url, h.value = !0;
1089
1089
  }, W = ($, d) => {
1090
1090
  let D = "";
1091
1091
  d = d || ",";
@@ -1156,7 +1156,7 @@ const xa = {
1156
1156
  }, {
1157
1157
  default: v(() => [
1158
1158
  re("img", {
1159
- src: o(g),
1159
+ src: o(y),
1160
1160
  style: { display: "block", "max-width": "100%", margin: "0 auto" }
1161
1161
  }, null, 8, lt)
1162
1162
  ]),
@@ -1216,7 +1216,7 @@ const xa = {
1216
1216
  props: ["modelValue", "placeholder", "disabled", "type", "rows", "showWordLimit", "maxlength"],
1217
1217
  emits: ["update:modelValue", "focus"],
1218
1218
  setup(e, { expose: t, emit: a }) {
1219
- const l = a, c = e, n = I([{ name: "繁體", id: "zhHk", selected: !0, text: "" }, { name: "簡體", id: "zhCn", selected: !1, text: "" }, { name: "英文", id: "enUs", selected: !1, text: "" }]), p = I(!1), g = I(!1), h = (P, H) => {
1219
+ const l = a, c = e, n = I([{ name: "繁體", id: "zhHk", selected: !0, text: "" }, { name: "簡體", id: "zhCn", selected: !1, text: "" }, { name: "英文", id: "enUs", selected: !1, text: "" }]), p = I(!1), y = I(!1), h = (P, H) => {
1220
1220
  P.text = H, P.id == "zhHk" && l("update:modelValue", H);
1221
1221
  }, V = async (P) => {
1222
1222
  P.id == "zhHk" && await i();
@@ -1243,7 +1243,7 @@ const xa = {
1243
1243
  return _e(() => c.modelValue, (P) => {
1244
1244
  if (P) {
1245
1245
  const H = n.value.filter((J) => J.selected)[0];
1246
- H.text = P, g.value || i(), g.value = !0;
1246
+ H.text = P, y.value || i(), y.value = !0;
1247
1247
  }
1248
1248
  }, {
1249
1249
  immediate: !0,
@@ -1343,7 +1343,7 @@ const xa = {
1343
1343
  },
1344
1344
  placeholder: "请输入内容",
1345
1345
  readOnly: t.readOnly
1346
- }), g = Z(() => {
1346
+ }), y = Z(() => {
1347
1347
  const C = {};
1348
1348
  return t.minHeight && (C.minHeight = `${t.minHeight}px`), t.height && (C.height = `${t.height}px`), C;
1349
1349
  }), h = I("");
@@ -1395,7 +1395,7 @@ const xa = {
1395
1395
  "onUpdate:content": j[0] || (j[0] = (H) => Se(h) ? h.value = H : null),
1396
1396
  "content-type": "html",
1397
1397
  options: o(p),
1398
- style: he(o(g)),
1398
+ style: he(o(y)),
1399
1399
  onTextChange: j[1] || (j[1] = (H) => C.$emit("update:modelValue", o(h)))
1400
1400
  }, null, 8, ["content", "options", "style"])
1401
1401
  ])
@@ -1419,8 +1419,8 @@ function ut(e, t) {
1419
1419
  a: l.getDay()
1420
1420
  };
1421
1421
  return a.replace(/{(y|m|d|h|i|s|a)+}/g, (n, p) => {
1422
- let g = c[p];
1423
- return p === "a" ? ["日", "一", "二", "三", "四", "五", "六"][g] : (n.length > 0 && g < 10 && (g = "0" + g), g || 0);
1422
+ let y = c[p];
1423
+ return p === "a" ? ["日", "一", "二", "三", "四", "五", "六"][y] : (n.length > 0 && y < 10 && (y = "0" + y), y || 0);
1424
1424
  });
1425
1425
  }
1426
1426
  const dt = (e, t, a) => {
@@ -1440,10 +1440,10 @@ const dt = (e, t, a) => {
1440
1440
  Array.isArray(t) && (t = t.join(","));
1441
1441
  const l = [], c = a === void 0 ? "," : a, n = t.split(c);
1442
1442
  return Object.keys(t.split(c)).some((p) => {
1443
- let g = !1;
1443
+ let y = !1;
1444
1444
  Object.keys(e).some((h) => {
1445
- e[h].value == "" + n[p] && (l.push(e[h].label + c), g = !0);
1446
- }), g || l.push(n[p] + c);
1445
+ e[h].value == "" + n[p] && (l.push(e[h].label + c), y = !0);
1446
+ }), y || l.push(n[p] + c);
1447
1447
  }), l.join("").substring(0, l.join("").length - 1);
1448
1448
  }, ft = (e, t, a, l) => {
1449
1449
  const c = {
@@ -1451,13 +1451,13 @@ const dt = (e, t, a) => {
1451
1451
  parentId: a || "parentId",
1452
1452
  childrenList: l || "children"
1453
1453
  }, n = {}, p = [];
1454
- for (const g of e) {
1455
- const h = g[c.id];
1456
- n[h] = g, g[c.childrenList] || (g[c.childrenList] = []);
1454
+ for (const y of e) {
1455
+ const h = y[c.id];
1456
+ n[h] = y, y[c.childrenList] || (y[c.childrenList] = []);
1457
1457
  }
1458
- for (const g of e) {
1459
- const h = g[c.parentId], V = n[h];
1460
- V ? V[c.childrenList].push(g) : p.push(g);
1458
+ for (const y of e) {
1459
+ const h = y[c.parentId], V = n[h];
1460
+ V ? V[c.childrenList].push(y) : p.push(y);
1461
1461
  }
1462
1462
  return p;
1463
1463
  }, ht = (e) => {
@@ -1468,8 +1468,8 @@ const dt = (e, t, a) => {
1468
1468
  if (typeof l == "object") {
1469
1469
  for (const n of Object.keys(l))
1470
1470
  if (l[n] !== null && l[n] !== "" && typeof l[n] < "u") {
1471
- const p = a + "[" + n + "]", g = encodeURIComponent(p) + "=";
1472
- t += g + encodeURIComponent(l[n]) + "&";
1471
+ const p = a + "[" + n + "]", y = encodeURIComponent(p) + "=";
1472
+ t += y + encodeURIComponent(l[n]) + "&";
1473
1473
  }
1474
1474
  } else
1475
1475
  t += c + encodeURIComponent(l) + "&";
@@ -1587,7 +1587,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1587
1587
  },
1588
1588
  emits: ["close", "actionEvent"],
1589
1589
  setup(e, { emit: t }) {
1590
- const { t: a } = wl(), { proxy: l } = ye(), c = e, n = I(!1), p = I(), g = t, h = I(), V = I(Cl), { formData: i, initFormData: M, prepareSaveData: C } = yt(
1590
+ const { t: a } = wl(), { proxy: l } = ye(), c = e, n = I(!1), p = I(), y = t, h = I(), V = I(Cl), { formData: i, initFormData: M, prepareSaveData: C } = yt(
1591
1591
  c.dataSource,
1592
1592
  c.editData
1593
1593
  ), j = Z(() => {
@@ -1626,7 +1626,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1626
1626
  }
1627
1627
  }, E = (b = !1) => {
1628
1628
  var U;
1629
- (U = h.value) == null || U.resetFields(), g("close", b);
1629
+ (U = h.value) == null || U.resetFields(), y("close", b);
1630
1630
  };
1631
1631
  return _e(() => c.modelValue, (b) => {
1632
1632
  b && (J(), M(c.editData)), n.value = b;
@@ -1692,7 +1692,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1692
1692
  r.form.type === "number" ? (s(), f(O, {
1693
1693
  key: 0,
1694
1694
  modelValue: o(i)[r.form.prop || r.prop],
1695
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1695
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1696
1696
  style: { width: "100%" },
1697
1697
  min: r.form.min,
1698
1698
  max: r.form.max,
@@ -1702,15 +1702,15 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1702
1702
  multiple: r.form.multiple,
1703
1703
  style: { width: "100%" },
1704
1704
  modelValue: o(i)[r.form.prop || r.prop],
1705
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1705
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1706
1706
  placeholder: b.$t("請選擇") + b.$t(r.label),
1707
1707
  filterable: r.form.filterable ?? !0
1708
1708
  }, {
1709
1709
  default: v(() => [
1710
- (s(!0), T(Y, null, Q(r.form.data, (y) => (s(), f(W, {
1711
- key: y[r.form.value] || y.value,
1712
- label: y[r.form.label] || y.label,
1713
- value: y[r.form.value] || y.value
1710
+ (s(!0), T(Y, null, Q(r.form.data, (g) => (s(), f(W, {
1711
+ key: g[r.form.value] || g.value,
1712
+ label: g[r.form.label] || g.label,
1713
+ value: g[r.form.value] || g.value
1714
1714
  }, null, 8, ["label", "value"]))), 128))
1715
1715
  ]),
1716
1716
  _: 2
@@ -1719,15 +1719,15 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1719
1719
  multiple: r.form.multiple,
1720
1720
  style: { width: "100%" },
1721
1721
  modelValue: o(i)[r.form.prop || r.prop],
1722
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1722
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1723
1723
  placeholder: b.$t("請選擇") + b.$t(r.label),
1724
1724
  filterable: r.form.filterable ?? !0
1725
1725
  }, {
1726
1726
  default: v(() => [
1727
- (s(!0), T(Y, null, Q(r.form.data, (y) => (s(), f(W, {
1728
- key: y[r.form.value] || y.value,
1729
- label: y[r.form.label] || y.label,
1730
- value: y[r.form.value] || y.value
1727
+ (s(!0), T(Y, null, Q(r.form.data, (g) => (s(), f(W, {
1728
+ key: g[r.form.value] || g.value,
1729
+ label: g[r.form.label] || g.label,
1730
+ value: g[r.form.value] || g.value
1731
1731
  }, null, 8, ["label", "value"]))), 128))
1732
1732
  ]),
1733
1733
  _: 2
@@ -1736,15 +1736,15 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1736
1736
  multiple: r.form.multiple,
1737
1737
  style: { width: "100%" },
1738
1738
  modelValue: o(i)[r.form.prop || r.prop],
1739
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1739
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1740
1740
  placeholder: b.$t("請選擇") + b.$t(r.label),
1741
1741
  filterable: r.form.filterable ?? !0
1742
1742
  }, {
1743
1743
  default: v(() => [
1744
- (s(!0), T(Y, null, Q(r.form.data, (y) => (s(), f(W, {
1745
- key: y.value,
1746
- label: y.label,
1747
- value: y.value
1744
+ (s(!0), T(Y, null, Q(r.form.data, (g) => (s(), f(W, {
1745
+ key: g.value,
1746
+ label: g.label,
1747
+ value: g.value
1748
1748
  }, null, 8, ["label", "value"]))), 128))
1749
1749
  ]),
1750
1750
  _: 2
@@ -1753,15 +1753,15 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1753
1753
  multiple: r.form.multiple,
1754
1754
  style: { width: "100%" },
1755
1755
  modelValue: o(i)[r.form.prop || r.prop],
1756
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1756
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1757
1757
  placeholder: b.$t("請選擇") + b.$t(r.label),
1758
1758
  filterable: r.form.filterable ?? !0
1759
1759
  }, {
1760
1760
  default: v(() => [
1761
- (s(!0), T(Y, null, Q(r.form.data, (y) => (s(), f(W, {
1762
- key: y[r.form.value],
1763
- label: y[r.form.label],
1764
- value: y[r.form.value]
1761
+ (s(!0), T(Y, null, Q(r.form.data, (g) => (s(), f(W, {
1762
+ key: g[r.form.value],
1763
+ label: g[r.form.label],
1764
+ value: g[r.form.value]
1765
1765
  }, null, 8, ["label", "value"]))), 128))
1766
1766
  ]),
1767
1767
  _: 2
@@ -1770,7 +1770,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1770
1770
  format: "YYYY-MM-DD",
1771
1771
  "value-format": "YYYY-MM-DD",
1772
1772
  modelValue: o(i)[r.form.prop || r.prop],
1773
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1773
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1774
1774
  type: "date",
1775
1775
  placeholder: b.$t("請選擇日期"),
1776
1776
  style: { width: "100%" }
@@ -1779,14 +1779,14 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1779
1779
  format: "YYYY-MM-DD HH:mm:ss",
1780
1780
  "value-format": "YYYY-MM-DD HH:mm:ss",
1781
1781
  modelValue: o(i)[r.form.prop || r.prop],
1782
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1782
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1783
1783
  type: "datetime",
1784
1784
  placeholder: b.$t("請選擇日期時間"),
1785
1785
  style: { width: "100%" }
1786
1786
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : r.form.type === "daterange" ? (s(), f(d, {
1787
1787
  key: 7,
1788
1788
  modelValue: o(i)[r.form.prop || r.prop],
1789
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1789
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1790
1790
  type: "daterange",
1791
1791
  format: "YYYY-MM-DD",
1792
1792
  "value-format": "YYYY-MM-DD",
@@ -1797,7 +1797,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1797
1797
  }, null, 8, ["modelValue", "onUpdate:modelValue", "range-separator", "start-placeholder", "end-placeholder"])) : r.form.type === "timerange" ? (s(), f(d, {
1798
1798
  key: 8,
1799
1799
  modelValue: o(i)[r.form.prop || r.prop],
1800
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1800
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1801
1801
  type: "datetimerange",
1802
1802
  format: "YYYY-MM-DD HH:mm",
1803
1803
  "value-format": "YYYY-MM-DD HH:mm:ss",
@@ -1809,32 +1809,32 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1809
1809
  key: 9,
1810
1810
  limit: r.form.limit || 1,
1811
1811
  modelValue: o(i)[r.form.prop || r.prop],
1812
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
1812
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g
1813
1813
  }, null, 8, ["limit", "modelValue", "onUpdate:modelValue"])) : r.form.type === "file" ? (s(), f(A, {
1814
1814
  key: 10,
1815
1815
  limit: r.form.limit || 1,
1816
1816
  modelValue: o(i)[r.form.prop || r.prop],
1817
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1817
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1818
1818
  fileType: r.form.fileType,
1819
1819
  fileSize: r.form.fileSize
1820
1820
  }, null, 8, ["limit", "modelValue", "onUpdate:modelValue", "fileType", "fileSize"])) : r.form.type === "password" ? (s(), f(F, {
1821
1821
  key: 11,
1822
1822
  "auto-complete": "new-password",
1823
1823
  modelValue: o(i)[r.form.prop || r.prop],
1824
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1824
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1825
1825
  type: "password",
1826
1826
  placeholder: b.$t("請輸入") + b.$t(r.label)
1827
1827
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : r.form.type === "checkboxGroup" ? (s(), f(se, {
1828
1828
  key: 12,
1829
1829
  class: "checkbox-group",
1830
1830
  modelValue: o(i)[r.form.prop || r.prop],
1831
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
1831
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g
1832
1832
  }, {
1833
1833
  default: v(() => [
1834
- (s(!0), T(Y, null, Q(r.form.list, (y) => (s(), f(G, {
1835
- key: y[r.form.value],
1836
- label: y[r.form.label],
1837
- value: y[r.form.value]
1834
+ (s(!0), T(Y, null, Q(r.form.list, (g) => (s(), f(G, {
1835
+ key: g[r.form.value],
1836
+ label: g[r.form.label],
1837
+ value: g[r.form.value]
1838
1838
  }, null, 8, ["label", "value"]))), 128))
1839
1839
  ]),
1840
1840
  _: 2
@@ -1842,16 +1842,16 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1842
1842
  key: 13,
1843
1843
  class: "checkbox-group",
1844
1844
  modelValue: o(i)[r.form.prop || r.prop],
1845
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
1845
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g
1846
1846
  }, {
1847
1847
  default: v(() => [
1848
- (s(!0), T(Y, null, Q(r.form.data, (y) => (s(), f(G, {
1849
- label: y.value,
1850
- key: y.value,
1851
- value: y.value
1848
+ (s(!0), T(Y, null, Q(r.form.data, (g) => (s(), f(G, {
1849
+ label: g.value,
1850
+ key: g.value,
1851
+ value: g.value
1852
1852
  }, {
1853
1853
  default: v(() => [
1854
- z(R(y.label), 1)
1854
+ z(R(g.label), 1)
1855
1855
  ]),
1856
1856
  _: 2
1857
1857
  }, 1032, ["label", "value"]))), 128))
@@ -1860,21 +1860,21 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1860
1860
  }, 1032, ["modelValue", "onUpdate:modelValue"])) : r.form.type === "switch" ? (s(), f(w, {
1861
1861
  key: 14,
1862
1862
  modelValue: o(i)[r.form.prop || r.prop],
1863
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1863
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1864
1864
  "active-value": r.form.activeValue || "0",
1865
1865
  "inactive-value": r.form.inactiveValue || "1"
1866
1866
  }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value"])) : r.form.type === "radioDict" ? (s(), f(q, {
1867
1867
  key: 15,
1868
1868
  modelValue: o(i)[r.form.prop || r.prop],
1869
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
1869
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g
1870
1870
  }, {
1871
1871
  default: v(() => [
1872
- (s(!0), T(Y, null, Q(r.form.data, (y) => (s(), f(L, {
1873
- key: y.value,
1874
- value: y.value
1872
+ (s(!0), T(Y, null, Q(r.form.data, (g) => (s(), f(L, {
1873
+ key: g.value,
1874
+ value: g.value
1875
1875
  }, {
1876
1876
  default: v(() => [
1877
- z(R(y.label), 1)
1877
+ z(R(g.label), 1)
1878
1878
  ]),
1879
1879
  _: 2
1880
1880
  }, 1032, ["value"]))), 128))
@@ -1883,7 +1883,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1883
1883
  }, 1032, ["modelValue", "onUpdate:modelValue"])) : r.form.type === "treeSelectApi" ? (s(), f(B, {
1884
1884
  key: 16,
1885
1885
  modelValue: o(i)[r.form.prop || r.prop],
1886
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1886
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1887
1887
  data: r.form.data,
1888
1888
  props: r.form.props,
1889
1889
  "value-key": r.form.valueKey,
@@ -1894,15 +1894,15 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1894
1894
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "props", "value-key", "default-expanded-keys", "filterable", "placeholder"])) : r.form.type === "radioCommonDict" ? (s(), f(q, {
1895
1895
  key: 17,
1896
1896
  modelValue: o(i)[r.form.prop || r.prop],
1897
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
1897
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g
1898
1898
  }, {
1899
1899
  default: v(() => [
1900
- (s(!0), T(Y, null, Q(r.form.data, (y) => (s(), f(L, {
1901
- key: y.value,
1902
- label: y.value
1900
+ (s(!0), T(Y, null, Q(r.form.data, (g) => (s(), f(L, {
1901
+ key: g.value,
1902
+ label: g.value
1903
1903
  }, {
1904
1904
  default: v(() => [
1905
- z(R(y.label), 1)
1905
+ z(R(g.label), 1)
1906
1906
  ]),
1907
1907
  _: 2
1908
1908
  }, 1032, ["label"]))), 128))
@@ -1911,15 +1911,15 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1911
1911
  }, 1032, ["modelValue", "onUpdate:modelValue"])) : r.form.type === "radioLocalDict" ? (s(), f(q, {
1912
1912
  key: 18,
1913
1913
  modelValue: o(i)[r.form.prop || r.prop],
1914
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
1914
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g
1915
1915
  }, {
1916
1916
  default: v(() => [
1917
- (s(!0), T(Y, null, Q(o(V)[r.form.dictType], (y) => (s(), f(L, {
1918
- key: y.value,
1919
- label: y.value
1917
+ (s(!0), T(Y, null, Q(o(V)[r.form.dictType], (g) => (s(), f(L, {
1918
+ key: g.value,
1919
+ label: g.value
1920
1920
  }, {
1921
1921
  default: v(() => [
1922
- z(R(y.label), 1)
1922
+ z(R(g.label), 1)
1923
1923
  ]),
1924
1924
  _: 2
1925
1925
  }, 1032, ["label"]))), 128))
@@ -1929,23 +1929,23 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1929
1929
  key: 19,
1930
1930
  label: b.$t(r.label),
1931
1931
  modelValue: o(i)[r.form.prop || r.prop],
1932
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
1932
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g
1933
1933
  }, null, 8, ["label", "modelValue", "onUpdate:modelValue"])) : r.form.type === "color" ? (s(), T("div", gt, [
1934
1934
  K(ne, {
1935
1935
  modelValue: o(i)[r.form.prop || r.prop],
1936
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
1936
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g
1937
1937
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
1938
1938
  re("span", bt, R(b.$t("需点击选择器中的确定按钮")), 1)
1939
1939
  ])) : r.form.type === "inputNumber" ? (s(), f(O, {
1940
1940
  key: 21,
1941
1941
  min: r.form.min || 0,
1942
1942
  modelValue: o(i)[r.form.prop || r.prop],
1943
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1943
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1944
1944
  step: 1
1945
1945
  }, null, 8, ["min", "modelValue", "onUpdate:modelValue"])) : r.form.type === "richtext" ? (s(), f(Pl, {
1946
1946
  key: 22,
1947
1947
  modelValue: o(i)[r.form.prop || r.prop],
1948
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1948
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1949
1949
  height: r.form.max || 320,
1950
1950
  "min-height": r.form.min || 220
1951
1951
  }, null, 8, ["modelValue", "onUpdate:modelValue", "height", "min-height"])) : (s(), T(Y, { key: 23 }, [
@@ -1955,7 +1955,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1955
1955
  ref: p,
1956
1956
  key: o(i)[b.dataSource.rowKey],
1957
1957
  modelValue: o(i)[r.form.prop || r.prop],
1958
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1958
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1959
1959
  disabled: r.form.disabled || !1,
1960
1960
  type: r.form.type,
1961
1961
  placeholder: b.$t("請輸入") + b.$t(r.label),
@@ -1965,7 +1965,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
1965
1965
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "type", "placeholder", "rows", "show-word-limit", "maxlength"])) : (s(), f(F, {
1966
1966
  key: 1,
1967
1967
  modelValue: o(i)[r.form.prop || r.prop],
1968
- "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1968
+ "onUpdate:modelValue": (g) => o(i)[r.form.prop || r.prop] = g,
1969
1969
  disabled: r.form.disabled || !1,
1970
1970
  type: r.form.type,
1971
1971
  placeholder: b.$t("請輸入") + b.$t(r.label),
@@ -2021,16 +2021,16 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2021
2021
  },
2022
2022
  emits: ["actionEvent"],
2023
2023
  setup(e, { expose: t, emit: a }) {
2024
- const { t: l } = wl(), { proxy: c } = ye(), n = a, p = e, g = Z(() => {
2024
+ const { t: l } = wl(), { proxy: c } = ye(), n = a, p = e, y = Z(() => {
2025
2025
  const d = p.dataSource.actions;
2026
2026
  return d == null ? [] : d.filter((A) => A.position === "top" || A.action === "create" || A.action === "back").map((A) => {
2027
2027
  const F = { ...A };
2028
2028
  return F.action === "create" ? (F.cssType = "primary", F.icon = "Plus") : F.action === "back" && (F.icon = "ArrowLeft"), F;
2029
2029
  });
2030
- }), h = Z(() => g.value.find((d) => d.action === "create") ?? null), V = Z(() => {
2030
+ }), h = Z(() => y.value.find((d) => d.action === "create") ?? null), V = Z(() => {
2031
2031
  var d;
2032
2032
  return ((d = p.dataSource.actions) == null ? void 0 : d.find((D) => D.action === "delete")) ?? null;
2033
- }), i = Z(() => g.value.filter((d) => d.action !== "create")), M = (d) => {
2033
+ }), i = Z(() => y.value.filter((d) => d.action !== "create")), M = (d) => {
2034
2034
  n("actionEvent", d);
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)
@@ -2574,7 +2574,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2574
2574
  ]),
2575
2575
  _: 1
2576
2576
  }, 8, ["model", "label-width"])
2577
- ])) : o(g).length > 0 ? (s(), T("div", wt, [
2577
+ ])) : o(y).length > 0 ? (s(), T("div", wt, [
2578
2578
  o(h) ? ie((s(), f(B, {
2579
2579
  key: 0,
2580
2580
  type: o(h).cssType,
@@ -2646,13 +2646,13 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2646
2646
  setup(e, { expose: t, emit: a }) {
2647
2647
  const { proxy: l } = ye(), c = a, n = e, p = Z(
2648
2648
  () => n.dataSource.maxHeight != null ? void 0 : n.maxHeight
2649
- ), g = I(!1), h = I({}), V = I({}), i = I(), M = I(), C = I(0), j = Z(() => {
2649
+ ), y = I(!1), h = I({}), V = I({}), i = I(), M = I(), C = I(0), j = Z(() => {
2650
2650
  const w = (n.dataSource.columns || []).map((L) => L.slot).filter((L) => !!L);
2651
2651
  return Array.from(new Set(w));
2652
2652
  }), P = (w) => {
2653
2653
  C.value = Array.isArray(w) ? w.length : 0;
2654
2654
  }, H = (w = !1) => {
2655
- g.value = !1, h.value = {}, w === !0 && J();
2655
+ y.value = !1, h.value = {}, w === !0 && J();
2656
2656
  }, J = () => {
2657
2657
  var w;
2658
2658
  return (w = i.value) == null ? void 0 : w.refreshTable();
@@ -2681,7 +2681,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2681
2681
  }[w.action];
2682
2682
  B ? B() : c("actionEvent", w, L);
2683
2683
  }, U = async (w, L) => {
2684
- n.dataSource.beforeUpdate && await n.dataSource.beforeUpdate(L) === !1 || (h.value = L, V.value = w, g.value = !0);
2684
+ n.dataSource.beforeUpdate && await n.dataSource.beforeUpdate(L) === !1 || (h.value = L, V.value = w, y.value = !0);
2685
2685
  }, O = async (w, L) => {
2686
2686
  var q, B, ne;
2687
2687
  try {
@@ -2718,7 +2718,7 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2718
2718
  }
2719
2719
  L.length && (await ((ue = (ne = n.dataSource).deleteApi) == null ? void 0 : ue.call(ne, L)), l == null || l.$modal.msgSuccess("刪除成功"), (me = i.value) == null || me.refreshTable());
2720
2720
  }, $ = async (w, L) => {
2721
- n.dataSource.beforeCreate && await n.dataSource.beforeCreate(L || {}) === !1 || (h.value = L || {}, V.value = w, g.value = !0);
2721
+ n.dataSource.beforeCreate && await n.dataSource.beforeCreate(L || {}) === !1 || (h.value = L || {}, V.value = w, y.value = !0);
2722
2722
  }, d = async (w = {}) => {
2723
2723
  const L = w && (Object.prototype.hasOwnProperty.call(w, "data") || Object.prototype.hasOwnProperty.call(w, "title") || Object.prototype.hasOwnProperty.call(w, "text") || Object.prototype.hasOwnProperty.call(w, "width") || Object.prototype.hasOwnProperty.call(w, "labelWidth") || Object.prototype.hasOwnProperty.call(w, "labelPosition")), q = L ? w.data || {} : w || {}, B = {
2724
2724
  action: "create",
@@ -2785,8 +2785,8 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2785
2785
  ]), 1032, ["dataSource", "maxHeight"]),
2786
2786
  K(al, {
2787
2787
  onClose: H,
2788
- modelValue: o(g),
2789
- "onUpdate:modelValue": L[0] || (L[0] = (B) => Se(g) ? g.value = B : null),
2788
+ modelValue: o(y),
2789
+ "onUpdate:modelValue": L[0] || (L[0] = (B) => Se(y) ? y.value = B : null),
2790
2790
  dataSource: n.dataSource,
2791
2791
  action: o(V),
2792
2792
  editData: o(h)
@@ -2811,8 +2811,8 @@ const gt = { key: 20 }, bt = { class: "color-picker-tips" }, vt = /* @__PURE__ *
2811
2811
  ]), 1032, ["dataSource", "maxHeight"]),
2812
2812
  K(al, {
2813
2813
  onClose: H,
2814
- modelValue: o(g),
2815
- "onUpdate:modelValue": L[1] || (L[1] = (B) => Se(g) ? g.value = B : null),
2814
+ modelValue: o(y),
2815
+ "onUpdate:modelValue": L[1] || (L[1] = (B) => Se(y) ? y.value = B : null),
2816
2816
  dataSource: n.dataSource,
2817
2817
  action: o(V),
2818
2818
  editData: o(h)
@@ -2857,7 +2857,7 @@ function Et(e, t, a) {
2857
2857
  const p = new Blob([c]);
2858
2858
  ha.saveAs(p, a);
2859
2859
  } else {
2860
- const p = await new Blob([c]).text(), g = JSON.parse(p), h = tl[g.code] || g.msg || tl.default;
2860
+ const p = await new Blob([c]).text(), y = JSON.parse(p), h = tl[y.code] || y.msg || tl.default;
2861
2861
  Ve.error(h);
2862
2862
  }
2863
2863
  l.close();
@@ -2968,8 +2968,8 @@ const ve = kl("dict", () => {
2968
2968
  return !1;
2969
2969
  try {
2970
2970
  return e.value.set(n, p), !0;
2971
- } catch (g) {
2972
- return console.error("Error in setDict:", g), !1;
2971
+ } catch (y) {
2972
+ return console.error("Error in setDict:", y), !1;
2973
2973
  }
2974
2974
  },
2975
2975
  removeDict: (n) => {
@@ -3045,8 +3045,8 @@ function zt(e, { target: t = document.body } = {}) {
3045
3045
  let p = !1;
3046
3046
  try {
3047
3047
  p = document.execCommand("copy");
3048
- } catch (g) {
3049
- console.error(g);
3048
+ } catch (y) {
3049
+ console.error(y);
3050
3050
  }
3051
3051
  return a.remove(), n && (c == null || c.removeAllRanges(), c == null || c.addRange(n)), l && l.focus(), p;
3052
3052
  }