vue3-curd 1.0.15 → 1.0.17

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(","), y = [];
148
- return p.forEach((h) => y.push(h)), y;
147
+ const p = a.value.split(","), g = [];
148
+ return p.forEach((h) => g.push(h)), g;
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 y;
159
- Array.isArray(p) ? y = p : y = (await qe(p)).data, a.value = y.map((h) => h.url).join(",");
158
+ let g;
159
+ Array.isArray(p) ? g = p : g = (await qe(p)).data, a.value = g.map((h) => h.url).join(",");
160
160
  } else a.value = "";
161
- }, { immediate: !0, deep: !0 }), (p, y) => {
161
+ }, { immediate: !0, deep: !0 }), (p, g) => {
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, y = Be, h = Fe;
223
+ const p = xe, g = Be, h = Fe;
224
224
  return s(), T("span", null, [
225
- [".jpg", ".png", ".jpeg"].indexOf(e.data.fileSuffix) > -1 ? (s(), f(y, {
225
+ [".jpg", ".png", ".jpeg"].indexOf(e.data.fileSuffix) > -1 ? (s(), f(g, {
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 = (y, h) => {
337
+ const c = (g, h) => {
338
338
  const V = h.split(".");
339
- let i = y;
339
+ let i = g;
340
340
  for (const M of V)
341
341
  i = i == null ? void 0 : i[M];
342
342
  return i ?? 100;
@@ -368,68 +368,68 @@ 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(), y = I({
371
+ const { proxy: t } = ye(), a = I([]), l = I(!1), c = I([]), n = I({}), p = I(), g = I({
372
372
  ...Xe,
373
373
  pageSize: e.initialPageSize ?? Xe.pageSize
374
374
  }), h = I(Ta), V = I(Ae.FULL), i = async () => {
375
- var E;
375
+ var U;
376
376
  if (!e.listApi) {
377
- e.data ? a.value = Array.isArray(e.data) ? e.data : ((E = e.data) == null ? void 0 : E.value) || [] : a.value = [];
377
+ e.data ? a.value = Array.isArray(e.data) ? e.data : ((U = e.data) == null ? void 0 : U.value) || [] : a.value = [];
378
378
  return;
379
379
  }
380
380
  l.value = !0;
381
381
  try {
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, y.value.total = U.total;
386
- const W = U.total / y.value.pageSize <= 1;
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;
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 (E) => {
394
- E && (n.value = Ye(E));
393
+ }, M = async (U) => {
394
+ U && (n.value = Ye(U));
395
395
  let b = e.queryParams || {};
396
396
  if (e.beforeQuery) {
397
- const U = await e.beforeQuery({});
397
+ const E = await e.beforeQuery({});
398
398
  b = {
399
- ...y.value,
399
+ ...g.value,
400
400
  ...b,
401
401
  ...n.value,
402
- ...U
402
+ ...E
403
403
  };
404
404
  } else
405
405
  b = {
406
- ...y.value,
406
+ ...g.value,
407
407
  ...b,
408
408
  ...n.value
409
409
  };
410
410
  return b;
411
- }, C = (E) => {
412
- E && (n.value = Ye(E)), i();
413
- }, j = (E) => {
414
- y.value.pageNum !== E && (y.value.pageNum = E, i());
415
- }, P = (E) => {
416
- y.value.pageSize !== E && (y.value.pageSize = E, i());
417
- }, H = (E) => {
418
- E.order && (y.value.orderByColumn = E.prop, y.value.isAsc = E.order), i();
419
- }, J = (E) => {
420
- c.value = E, e.selectionChange && e.selectionChange(E);
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);
421
421
  }, ee = () => {
422
- const E = e.queryParams || {};
423
- E.orderByColumn && (y.value.orderByColumn = E.orderByColumn, p.value = {
424
- prop: E.orderByColumn,
425
- order: E.isAsc === "asc" ? "ascending" : "descending"
426
- }), E.isAsc && (y.value.isAsc = E.isAsc);
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);
427
427
  };
428
428
  return {
429
429
  listData: a,
430
430
  loading: l,
431
431
  multipleSelection: c,
432
- pageOptions: y,
432
+ pageOptions: g,
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 y = await (e == null ? void 0 : e.useOneDict(p.dictType));
453
- p.data = Oe(y);
452
+ const g = await (e == null ? void 0 : e.useOneDict(p.dictType));
453
+ p.data = Oe(g);
454
454
  } else if (p.type === "commonDictTag") {
455
- const y = await (e == null ? void 0 : e.useOneCommonDict(p.dictType));
456
- p.data = Oe(y);
455
+ const g = await (e == null ? void 0 : e.useOneCommonDict(p.dictType));
456
+ p.data = Oe(g);
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 y;
476
- if (!((y = n.search) != null && y.api)) return;
475
+ var g;
476
+ if (!((g = n.search) != null && g.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 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)) {
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)) {
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 (y) {
499
- console.error(`Failed to load tree API data for ${n.prop}:`, y);
498
+ } catch (g) {
499
+ console.error(`Failed to load tree API data for ${n.prop}:`, g);
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), y = I(), {
525
+ const { proxy: l } = ye(), c = a, n = e, p = Z(() => n.dataSource.maxHeight ?? n.maxHeight), g = I(), {
526
526
  listData: h,
527
527
  loading: V,
528
528
  multipleSelection: i,
@@ -534,9 +534,9 @@ const xa = {
534
534
  handlePageChange: J,
535
535
  handleSizeChange: ee,
536
536
  handleSortChange: S,
537
- handleSelectionChange: E,
537
+ handleSelectionChange: U,
538
538
  initData: b,
539
- getQueryParams: U
539
+ getQueryParams: E
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
- E(N), c("selectionChange", N);
579
+ U(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);
@@ -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 _ = y.value;
587
+ const _ = g.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 _ = y.value;
599
+ const _ = g.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
- }, g = async () => {
607
+ }, y = async () => {
608
608
  await O(n.dataSource.columns), await b(), await r(), await m();
609
609
  };
610
- return He(() => g()), t({ refreshTable: H, getSelection: u, initData: g, getQueryParams: U }), (_, N) => {
610
+ return He(() => y()), t({ refreshTable: H, getSelection: u, initData: y, getQueryParams: E }), (_, 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: y,
615
+ ref: g,
616
616
  data: o(h),
617
617
  "row-key": n.dataSource.rowKey,
618
618
  "element-loading-text": _.$t("數據加載中..."),
@@ -883,43 +883,43 @@ 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([]), y = We(), h = I(y + "/resource/oss/upload"), V = I(Ke()), i = I([]), M = Z(
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 (U) => {
890
- if (U) {
889
+ _e(() => a.modelValue, async (E) => {
890
+ if (E) {
891
891
  if (!a.showFileList) return;
892
892
  let O = 1, W = [];
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++, $));
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++, $));
894
894
  } else
895
895
  return i.value = [], [];
896
896
  }, { deep: !0, immediate: !0 });
897
- const j = (U) => {
897
+ const j = (E) => {
898
898
  if (a.fileType.length) {
899
- const O = U.name.split("."), W = O[O.length - 1];
899
+ const O = E.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 && !(U.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 && !(E.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 = (U, O) => {
908
+ }, J = (E, O) => {
909
909
  var W;
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));
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));
914
914
  }, S = () => {
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) => {
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) => {
917
917
  let W = "";
918
- return O = O || ",", U.forEach(($) => {
918
+ return O = O || ",", E.forEach(($) => {
919
919
  $.ossId && (W += $.ossId + O);
920
920
  }), W != "" ? W.substring(0, W.length - 1) : "";
921
921
  };
922
- return (U, O) => {
922
+ return (E, 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(E(D.name)), 1)
979
+ re("span", qa, R(U(D.name)), 1)
980
980
  ]),
981
981
  _: 2
982
982
  }, 1032, ["href"]),
@@ -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([]), 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(","));
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(","));
1041
1041
  _e(
1042
1042
  () => a.modelValue,
1043
1043
  async ($) => {
@@ -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
- }, E = ($) => {
1076
+ }, U = ($) => {
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,10 +1082,10 @@ 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
- }, U = () => {
1085
+ }, E = () => {
1086
1086
  l == null || l.$modal.msgError("上傳圖片失敗"), l == null || l.$modal.closeLoading();
1087
1087
  }, O = ($) => {
1088
- y.value = $.url, h.value = !0;
1088
+ g.value = $.url, h.value = !0;
1089
1089
  }, W = ($, d) => {
1090
1090
  let D = "";
1091
1091
  d = d || ",";
@@ -1106,9 +1106,9 @@ const xa = {
1106
1106
  "before-upload": J,
1107
1107
  limit: e.limit,
1108
1108
  accept: o(H),
1109
- "on-error": U,
1109
+ "on-error": E,
1110
1110
  "on-exceed": ee,
1111
- "before-remove": E,
1111
+ "before-remove": U,
1112
1112
  "show-file-list": !0,
1113
1113
  headers: o(M),
1114
1114
  "file-list": o(C),
@@ -1156,7 +1156,7 @@ const xa = {
1156
1156
  }, {
1157
1157
  default: v(() => [
1158
1158
  re("img", {
1159
- src: o(y),
1159
+ src: o(g),
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), y = 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), g = 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, y.value || i(), y.value = !0;
1246
+ H.text = P, g.value || i(), g.value = !0;
1247
1247
  }
1248
1248
  }, {
1249
1249
  immediate: !0,
@@ -1256,7 +1256,7 @@ const xa = {
1256
1256
  size: "small",
1257
1257
  key: S.id,
1258
1258
  type: S.selected ? "primary" : "default",
1259
- onClick: (E) => M(S),
1259
+ onClick: (U) => 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": (E) => S.text = E,
1271
+ "onUpdate:modelValue": (U) => S.text = U,
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: (E) => h(S, E),
1279
- onBlur: (E) => V(S),
1280
- onFocus: H[0] || (H[0] = (E) => j())
1278
+ onInput: (U) => h(S, U),
1279
+ onBlur: (U) => V(S),
1280
+ onFocus: H[0] || (H[0] = (U) => 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))
@@ -1343,7 +1343,7 @@ const xa = {
1343
1343
  },
1344
1344
  placeholder: "请输入内容",
1345
1345
  readOnly: t.readOnly
1346
- }), y = Z(() => {
1346
+ }), g = 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(y)),
1398
+ style: he(o(g)),
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 y = c[p];
1423
- return p === "a" ? ["日", "一", "二", "三", "四", "五", "六"][y] : (n.length > 0 && y < 10 && (y = "0" + y), y || 0);
1422
+ let g = c[p];
1423
+ return p === "a" ? ["日", "一", "二", "三", "四", "五", "六"][g] : (n.length > 0 && g < 10 && (g = "0" + g), g || 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 y = !1;
1443
+ let g = !1;
1444
1444
  Object.keys(e).some((h) => {
1445
- e[h].value == "" + n[p] && (l.push(e[h].label + c), y = !0);
1446
- }), y || l.push(n[p] + c);
1445
+ e[h].value == "" + n[p] && (l.push(e[h].label + c), g = !0);
1446
+ }), g || 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 y of e) {
1455
- const h = y[c.id];
1456
- n[h] = y, y[c.childrenList] || (y[c.childrenList] = []);
1454
+ for (const g of e) {
1455
+ const h = g[c.id];
1456
+ n[h] = g, g[c.childrenList] || (g[c.childrenList] = []);
1457
1457
  }
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);
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);
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 + "]", y = encodeURIComponent(p) + "=";
1472
- t += y + encodeURIComponent(l[n]) + "&";
1471
+ const p = a + "[" + n + "]", g = encodeURIComponent(p) + "=";
1472
+ t += g + encodeURIComponent(l[n]) + "&";
1473
1473
  }
1474
1474
  } else
1475
1475
  t += c + encodeURIComponent(l) + "&";
@@ -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, 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] || []);
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] || []);
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, E = (J = i.form) == null ? void 0 : J.rangeEndProp;
1568
- S && E && ee.length >= 2 && (V[S] = ee[0], V[E] = ee[1]);
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]);
1569
1569
  }
1570
1570
  }), delete V.orderByColumn, delete V.isAsc, e.beforeSave) {
1571
1571
  const i = await e.beforeSave(V);
@@ -1587,28 +1587,28 @@ 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(), y = 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(), g = 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(() => {
1594
- const U = !!c.editData[c.dataSource.rowKey], O = Ia(c.dataSource.columns, U, U);
1594
+ const E = !!c.editData[c.dataSource.rowKey], O = Ia(c.dataSource.columns, E, E);
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 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) : [];
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) : [];
1603
1603
  }, J = () => Pa(c.dataSource.columns), ee = () => {
1604
1604
  var b;
1605
- (b = h.value) == null || b.validate(async (U) => {
1605
+ (b = h.value) == null || b.validate(async (E) => {
1606
1606
  var O, W, $, d, D;
1607
- if (!U) return !1;
1607
+ if (!E) 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(), E(!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(), U(!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 U = [];
1620
+ const E = [];
1621
1621
  for (let O = 0; O < b.length; O++) {
1622
1622
  const W = b[O].getTranslate();
1623
- U.push(W);
1623
+ E.push(W);
1624
1624
  }
1625
- await ot(U);
1625
+ await ot(E);
1626
1626
  }
1627
- }, E = (b = !1) => {
1628
- var U;
1629
- (U = h.value) == null || U.resetFields(), y("close", b);
1627
+ }, U = (b = !1) => {
1628
+ var E;
1629
+ (E = h.value) == null || E.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, U) => {
1633
+ }), (b, E) => {
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": U[1] || (U[1] = (r) => Se(n) ? n.value = r : null),
1639
- onClose: E,
1638
+ "onUpdate:modelValue": E[1] || (E[1] = (r) => Se(n) ? n.value = r : null),
1639
+ onClose: U,
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: U[0] || (U[0] = (r) => E(!1))
1648
+ onClick: E[0] || (E[0] = (r) => U(!1))
1649
1649
  }, {
1650
1650
  default: v(() => [
1651
1651
  z(R(b.$t("關閉")), 1)
@@ -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": (g) => o(i)[r.form.prop || r.prop] = g,
1695
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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": (g) => o(i)[r.form.prop || r.prop] = g,
1705
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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, (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
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
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": (g) => o(i)[r.form.prop || r.prop] = g,
1722
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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, (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
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
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": (g) => o(i)[r.form.prop || r.prop] = g,
1739
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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, (g) => (s(), f(W, {
1745
- key: g.value,
1746
- label: g.label,
1747
- value: g.value
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
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": (g) => o(i)[r.form.prop || r.prop] = g,
1756
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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, (g) => (s(), f(W, {
1762
- key: g[r.form.value],
1763
- label: g[r.form.label],
1764
- value: g[r.form.value]
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]
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": (g) => o(i)[r.form.prop || r.prop] = g,
1773
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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": (g) => o(i)[r.form.prop || r.prop] = g,
1782
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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": (g) => o(i)[r.form.prop || r.prop] = g,
1789
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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": (g) => o(i)[r.form.prop || r.prop] = g,
1800
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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": (g) => o(i)[r.form.prop || r.prop] = g
1812
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
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": (g) => o(i)[r.form.prop || r.prop] = g,
1817
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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": (g) => o(i)[r.form.prop || r.prop] = g,
1824
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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": (g) => o(i)[r.form.prop || r.prop] = g
1831
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
1832
1832
  }, {
1833
1833
  default: v(() => [
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]
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]
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": (g) => o(i)[r.form.prop || r.prop] = g
1845
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
1846
1846
  }, {
1847
1847
  default: v(() => [
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
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
1852
1852
  }, {
1853
1853
  default: v(() => [
1854
- z(R(g.label), 1)
1854
+ z(R(y.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": (g) => o(i)[r.form.prop || r.prop] = g,
1863
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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": (g) => o(i)[r.form.prop || r.prop] = g
1869
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
1870
1870
  }, {
1871
1871
  default: v(() => [
1872
- (s(!0), T(Y, null, Q(r.form.data, (g) => (s(), f(L, {
1873
- key: g.value,
1874
- value: g.value
1872
+ (s(!0), T(Y, null, Q(r.form.data, (y) => (s(), f(L, {
1873
+ key: y.value,
1874
+ value: y.value
1875
1875
  }, {
1876
1876
  default: v(() => [
1877
- z(R(g.label), 1)
1877
+ z(R(y.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": (g) => o(i)[r.form.prop || r.prop] = g,
1886
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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": (g) => o(i)[r.form.prop || r.prop] = g
1897
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
1898
1898
  }, {
1899
1899
  default: v(() => [
1900
- (s(!0), T(Y, null, Q(r.form.data, (g) => (s(), f(L, {
1901
- key: g.value,
1902
- label: g.value
1900
+ (s(!0), T(Y, null, Q(r.form.data, (y) => (s(), f(L, {
1901
+ key: y.value,
1902
+ label: y.value
1903
1903
  }, {
1904
1904
  default: v(() => [
1905
- z(R(g.label), 1)
1905
+ z(R(y.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": (g) => o(i)[r.form.prop || r.prop] = g
1914
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
1915
1915
  }, {
1916
1916
  default: v(() => [
1917
- (s(!0), T(Y, null, Q(o(V)[r.form.dictType], (g) => (s(), f(L, {
1918
- key: g.value,
1919
- label: g.value
1917
+ (s(!0), T(Y, null, Q(o(V)[r.form.dictType], (y) => (s(), f(L, {
1918
+ key: y.value,
1919
+ label: y.value
1920
1920
  }, {
1921
1921
  default: v(() => [
1922
- z(R(g.label), 1)
1922
+ z(R(y.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": (g) => o(i)[r.form.prop || r.prop] = g
1932
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
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": (g) => o(i)[r.form.prop || r.prop] = g
1936
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y
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": (g) => o(i)[r.form.prop || r.prop] = g,
1943
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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": (g) => o(i)[r.form.prop || r.prop] = g,
1948
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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": (g) => o(i)[r.form.prop || r.prop] = g,
1958
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
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": (g) => o(i)[r.form.prop || r.prop] = g,
1968
+ "onUpdate:modelValue": (y) => o(i)[r.form.prop || r.prop] = y,
1969
1969
  disabled: r.form.disabled || !1,
1970
1970
  type: r.form.type,
1971
1971
  placeholder: b.$t("請輸入") + b.$t(r.label),
@@ -2021,25 +2021,25 @@ 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, y = Z(() => {
2024
+ const { t: l } = wl(), { proxy: c } = ye(), n = a, p = e, g = 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(() => y.value.find((d) => d.action === "create") ?? null), V = Z(() => {
2030
+ }), h = Z(() => g.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(() => y.value.filter((d) => d.action !== "create")), M = (d) => {
2033
+ }), i = Z(() => g.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)
2037
2037
  return p.dataSource.searchActionColSpan;
2038
- const d = E.value.length % C.value, A = 24 - (d === 0 ? C.value : d) * j.value;
2038
+ const d = U.value.length % C.value, A = 24 - (d === 0 ? C.value : d) * j.value;
2039
2039
  return A <= 0 ? 24 : A;
2040
- }), J = Z(() => E.value.length % C.value === 0 ? "15px !important" : "0px !important"), { initSearchDicts: ee } = El(), S = I({}), E = I([]), b = () => {
2040
+ }), J = Z(() => U.value.length % C.value === 0 ? "15px !important" : "0px !important"), { initSearchDicts: ee } = El(), S = I({}), U = I([]), b = () => {
2041
2041
  n("actionEvent", { action: "filter" });
2042
- }, U = async () => {
2042
+ }, E = 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 E.value.forEach((D) => {
2055
+ return U.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
- E.value = Tl(
2066
+ U.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(E).length > 0 && o(P) ? (s(), f(me, {
2082
+ return o(U).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(E), (u) => (s(), f(q, {
2098
+ (s(!0), T(Y, null, Q(o(U), (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: U
2301
+ onClick: E
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(E).length > 0 && !o(P) ? (s(), T("div", kt, [
2334
+ }, 8, ["body-style"])) : o(U).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(E), (u) => (s(), f(q, {
2343
+ (s(!0), T(Y, null, Q(o(U), (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: U
2546
+ onClick: E
2547
2547
  }, {
2548
2548
  default: v(() => [
2549
2549
  z(R(d.$t("導出")), 1)
@@ -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(y).length > 0 ? (s(), T("div", wt, [
2577
+ ])) : o(g).length > 0 ? (s(), T("div", wt, [
2578
2578
  o(h) ? ie((s(), f(B, {
2579
2579
  key: 0,
2580
2580
  type: o(h).cssType,
@@ -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: U
2612
+ onClick: E
2613
2613
  }, {
2614
2614
  default: v(() => [
2615
2615
  z(R(p.dataSource.exportButtonName || "導出"), 1)
@@ -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
- ), y = I(!1), h = I({}), V = I({}), i = I(), M = I(), C = I(0), j = Z(() => {
2649
+ ), g = 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
- y.value = !1, h.value = {}, w === !0 && J();
2655
+ g.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();
@@ -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
- }, E = async (w, L) => {
2665
+ }, U = 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: () => U(w, L),
2674
+ update: () => E(w, L),
2675
2675
  delete: () => O(w, L),
2676
2676
  batchDelete: () => W(),
2677
2677
  create: () => $(w, L),
@@ -2680,8 +2680,8 @@ 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
- }, U = async (w, L) => {
2684
- n.dataSource.beforeUpdate && await n.dataSource.beforeUpdate(L) === !1 || (h.value = L, V.value = w, y.value = !0);
2683
+ }, E = async (w, L) => {
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;
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, y.value = !0);
2721
+ n.dataSource.beforeCreate && await n.dataSource.beforeCreate(L || {}) === !1 || (h.value = L || {}, V.value = w, g.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",
@@ -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: E
2763
+ onActionEvent: U
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: E,
2774
+ onActionEvent: U,
2775
2775
  onSelectionChange: P,
2776
2776
  dataSource: n.dataSource,
2777
2777
  maxHeight: o(p)
@@ -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(y),
2789
- "onUpdate:modelValue": L[0] || (L[0] = (B) => Se(y) ? y.value = B : null),
2788
+ modelValue: o(g),
2789
+ "onUpdate:modelValue": L[0] || (L[0] = (B) => Se(g) ? g.value = B : null),
2790
2790
  dataSource: n.dataSource,
2791
2791
  action: o(V),
2792
2792
  editData: o(h)
@@ -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: E,
2800
+ onActionEvent: U,
2801
2801
  onSelectionChange: P,
2802
2802
  dataSource: n.dataSource,
2803
2803
  maxHeight: o(p)
@@ -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(y),
2815
- "onUpdate:modelValue": L[1] || (L[1] = (B) => Se(y) ? y.value = B : null),
2814
+ modelValue: o(g),
2815
+ "onUpdate:modelValue": L[1] || (L[1] = (B) => Se(g) ? g.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(), y = JSON.parse(p), h = tl[y.code] || y.msg || tl.default;
2860
+ const p = await new Blob([c]).text(), g = JSON.parse(p), h = tl[g.code] || g.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 (y) {
2972
- return console.error("Error in setDict:", y), !1;
2971
+ } catch (g) {
2972
+ return console.error("Error in setDict:", g), !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 (y) {
3049
- console.error(y);
3048
+ } catch (g) {
3049
+ console.error(g);
3050
3050
  }
3051
3051
  return a.remove(), n && (c == null || c.removeAllRanges(), c == null || c.addRange(n)), l && l.focus(), p;
3052
3052
  }