@xmszm/core 0.0.5 → 0.0.6

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.
package/dist/index.mjs CHANGED
@@ -1,23 +1,23 @@
1
- var ut = Object.defineProperty;
2
- var rt = (e, l, t) => l in e ? ut(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t;
3
- var de = (e, l, t) => rt(e, typeof l != "symbol" ? l + "" : l, t);
4
- import { unref as c, useCssVars as ot, ref as P, watchEffect as Ue, createElementBlock as le, openBlock as B, createVNode as f, createElementVNode as Ae, withCtx as L, Fragment as ae, renderList as he, createBlock as K, createTextVNode as X, toDisplayString as pe, defineComponent as j, getCurrentInstance as ue, computed as Y, watch as ee, onMounted as Le, renderSlot as be, isProxy as it, normalizeStyle as ke, mergeProps as M, isVNode as te, withDirectives as st, resolveDirective as ft, isRef as ct, mergeModels as xe, useModel as Ve, reactive as dt, onUnmounted as yt, createCommentVNode as gt, resolveDynamicComponent as mt, h as ye } from "vue";
5
- import { useThemeVars as ht, NCheckboxGroup as we, NCheckbox as Oe, NEllipsis as ze, NButton as z, NDataTable as pt, NEmpty as bt, NTooltip as xt, NSpace as k, NUpload as We, NSwitch as wt, NDivider as Ot, NProgress as Ct, NUploadDragger as At, NIcon as He, NText as _t, NInputNumber as Dt, NInput as Pe, NRadioGroup as Nt, NRadio as St, NDatePicker as Re, NTimePicker as It, NSelect as Mt, NFormItem as Ft, NForm as Ut, useDialog as _e, createDiscreteApi as Pt, NPopconfirm as Rt, NPopover as qt, NSpin as Et, NImage as $t } from "naive-ui";
6
- import { Funnel as Tt, ArchiveOutline as Bt, RefreshOutline as Yt, SearchOutline as vt, Code as Lt, ChevronDown as kt, ChevronUp as Vt } from "@vicons/ionicons5";
7
- import { useRoute as Ke, useRouter as zt } from "vue-router";
1
+ var st = Object.defineProperty;
2
+ var ft = (e, l, t) => l in e ? st(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t;
3
+ var de = (e, l, t) => ft(e, typeof l != "symbol" ? l + "" : l, t);
4
+ import { unref as c, useCssVars as ct, ref as P, watchEffect as Pe, createElementBlock as le, openBlock as B, createVNode as f, createElementVNode as Ae, withCtx as L, Fragment as ae, renderList as he, createBlock as K, createTextVNode as X, toDisplayString as pe, defineComponent as j, getCurrentInstance as ue, computed as Y, watch as ee, onMounted as ke, renderSlot as be, isProxy as dt, normalizeStyle as Ve, mergeProps as M, isVNode as te, withDirectives as yt, resolveDirective as gt, isRef as mt, mergeModels as xe, useModel as ze, reactive as ht, onUnmounted as pt, createCommentVNode as bt, resolveDynamicComponent as xt, h as ye } from "vue";
5
+ import { useThemeVars as wt, NCheckboxGroup as we, NCheckbox as Oe, NEllipsis as We, NButton as z, NDataTable as Ot, NEmpty as Ct, NTooltip as At, NSpace as k, NUpload as He, NSwitch as _t, NDivider as Dt, NProgress as Nt, NUploadDragger as St, NIcon as Ke, NText as It, NInputNumber as Mt, NInput as Re, NRadioGroup as Ft, NRadio as Ut, NDatePicker as qe, NTimePicker as Pt, NSelect as Rt, NFormItem as qt, NForm as Et, useDialog as _e, createDiscreteApi as $t, NPopconfirm as Tt, NPopover as Bt, NSpin as Yt, NImage as vt } from "naive-ui";
6
+ import { Funnel as Lt, ArchiveOutline as kt, RefreshOutline as Vt, SearchOutline as zt, Code as Wt, ChevronDown as Ht, ChevronUp as Kt } from "@vicons/ionicons5";
7
+ import { useRoute as je, useRouter as jt } from "vue-router";
8
8
  import V from "dayjs";
9
- import { uniqueId as qe } from "lodash-es";
10
- import { initRouteMeta as ln } from "./plugin/vite/initRouteMeta.mjs";
9
+ import { uniqueId as Ee } from "lodash-es";
10
+ import { initRouteMeta as un } from "./plugin/vite/initRouteMeta.mjs";
11
11
  const $ = "name", T = "id";
12
- function je(e, { labelField: l = $, valueField: t = T } = {}) {
12
+ function Ge(e, { labelField: l = $, valueField: t = T } = {}) {
13
13
  return Object.keys(e).reduce((a, u) => {
14
- const i = Wt(e[u], u), n = {
14
+ const i = Gt(e[u], u), n = {
15
15
  ...i
16
16
  };
17
17
  return n[l] = i == null ? void 0 : i[l], n[t] = i == null ? void 0 : i[t], a.concat(n);
18
18
  }, []);
19
19
  }
20
- function Wt(e, l) {
20
+ function Gt(e, l) {
21
21
  const t = {
22
22
  [$]: c(e),
23
23
  [T]: Number.isNaN(Number(l)) ? l : Number(l)
@@ -27,7 +27,7 @@ function Wt(e, l) {
27
27
  [T]: Number.isNaN(Number(l)) ? l : Number(l)
28
28
  } : t;
29
29
  }
30
- const Ee = {
30
+ const $e = {
31
31
  style: {
32
32
  cursor: "pointer"
33
33
  },
@@ -53,7 +53,7 @@ const Ee = {
53
53
  for (const [a, u] of l)
54
54
  t[a] = u;
55
55
  return t;
56
- }, Ht = { class: "filter-box" }, Kt = { class: "filter-footer" }, jt = {
56
+ }, Jt = { class: "filter-box" }, Qt = { class: "filter-footer" }, Xt = {
57
57
  __name: "FilterDialog",
58
58
  props: {
59
59
  type: {
@@ -81,11 +81,11 @@ const Ee = {
81
81
  emits: ["submit"],
82
82
  setup(e, { emit: l }) {
83
83
  var w, b;
84
- ot((O) => ({
84
+ ct((O) => ({
85
85
  v56ebba65: c(u).infoColor
86
86
  }));
87
- const t = e, a = l, u = ht(), i = P([]);
88
- Ue(() => {
87
+ const t = e, a = l, u = wt(), i = P([]);
88
+ Pe(() => {
89
89
  i.value = t.selectItem;
90
90
  });
91
91
  const n = P([]), y = [
@@ -111,7 +111,7 @@ const Ee = {
111
111
  unCheck: () => i.value = t.selectItem
112
112
  }
113
113
  ];
114
- Ue(() => {
114
+ Pe(() => {
115
115
  n.value = y.filter(
116
116
  (O) => t.filterButtonKey.includes(O.key)
117
117
  ), console.log(t.filterButtonKey);
@@ -126,7 +126,7 @@ const Ee = {
126
126
  var N, S, r, _;
127
127
  console.log(O), console.log(m), m.actionType === "uncheck" ? ((S = (N = n.value) == null ? void 0 : N.find((h) => (h == null ? void 0 : h.key) === m.value)) == null || S.unCheck(), s.value = []) : ((_ = (r = n.value) == null ? void 0 : r.find((h) => (h == null ? void 0 : h.key) === m.value)) == null || _.onCheck(), s.value = [m.value]);
128
128
  }
129
- return (O, m) => (B(), le("div", Ht, [
129
+ return (O, m) => (B(), le("div", Jt, [
130
130
  f(c(we), {
131
131
  value: i.value,
132
132
  "onUpdate:value": m[0] || (m[0] = (N) => i.value = N),
@@ -139,7 +139,7 @@ const Ee = {
139
139
  class: "filter-item"
140
140
  }, {
141
141
  default: L(() => [
142
- f(c(ze), { style: { "max-width": "100px" } }, {
142
+ f(c(We), { style: { "max-width": "100px" } }, {
143
143
  default: L(() => [
144
144
  X(pe(N.title), 1)
145
145
  ]),
@@ -151,7 +151,7 @@ const Ee = {
151
151
  ]),
152
152
  _: 1
153
153
  }, 8, ["value"]),
154
- Ae("div", Kt, [
154
+ Ae("div", Qt, [
155
155
  f(c(we), {
156
156
  type: t.type,
157
157
  value: s.value,
@@ -183,7 +183,7 @@ const Ee = {
183
183
  ])
184
184
  ]));
185
185
  }
186
- }, Gt = /* @__PURE__ */ re(jt, [["__scopeId", "data-v-ffb0cfbf"]]), q = {
186
+ }, Zt = /* @__PURE__ */ re(Xt, [["__scopeId", "data-v-ffb0cfbf"]]), q = {
187
187
  // API 基础地址
188
188
  baseURL: "",
189
189
  // 权限检查函数
@@ -197,10 +197,12 @@ const Ee = {
197
197
  // 是否继承外部定义的主题色(默认 true)
198
198
  inheritTheme: !0,
199
199
  // 主题色覆盖(当 inheritTheme 为 false 时使用)
200
- themeOverrides: null
200
+ themeOverrides: null,
201
+ // Dialog 默认配置项
202
+ defaultOption: null
201
203
  }
202
204
  };
203
- function Jt(e = {}) {
205
+ function el(e = {}) {
204
206
  if (e.baseURL !== void 0 && (q.baseURL = e.baseURL), e.hasPermission !== void 0) {
205
207
  if (typeof e.hasPermission != "function")
206
208
  throw new TypeError("hasPermission 必须是一个函数");
@@ -214,35 +216,35 @@ function Jt(e = {}) {
214
216
  if (e.dialog !== void 0) {
215
217
  if (typeof e.dialog != "object")
216
218
  throw new TypeError("dialog 必须是一个对象");
217
- e.dialog.instance !== void 0 && (q.dialog.instance = e.dialog.instance), e.dialog.inheritTheme !== void 0 && (q.dialog.inheritTheme = e.dialog.inheritTheme), e.dialog.themeOverrides !== void 0 && (q.dialog.themeOverrides = e.dialog.themeOverrides);
219
+ e.dialog.instance !== void 0 && (q.dialog.instance = e.dialog.instance), e.dialog.inheritTheme !== void 0 && (q.dialog.inheritTheme = e.dialog.inheritTheme), e.dialog.themeOverrides !== void 0 && (q.dialog.themeOverrides = e.dialog.themeOverrides), e.dialog.defaultOption !== void 0 && (q.dialog.defaultOption = e.dialog.defaultOption);
218
220
  }
219
221
  return q;
220
222
  }
221
- function Tl() {
223
+ function vl() {
222
224
  return { ...q };
223
225
  }
224
- function Qt() {
226
+ function tl() {
225
227
  return q.baseURL;
226
228
  }
227
- function Bl() {
229
+ function Ll() {
228
230
  return q.hasPermission;
229
231
  }
230
- function Xt() {
232
+ function ll() {
231
233
  return q.uploadMethod;
232
234
  }
233
- function Zt() {
235
+ function Je() {
234
236
  return { ...q.dialog };
235
237
  }
236
- function Ge(e) {
238
+ function Qe(e) {
237
239
  q.dialog.instance = e;
238
240
  }
239
- function el() {
241
+ function nl() {
240
242
  return q.dialog.instance;
241
243
  }
242
244
  function Ce(e) {
243
245
  return q.hasPermission ? q.hasPermission(e) : (console.warn("hasPermission 未配置,默认返回 true。请使用 setupConfig 配置权限检查函数。"), !0);
244
246
  }
245
- const tl = {
247
+ const al = {
246
248
  mounted(e, l) {
247
249
  const t = l.value;
248
250
  if (!t)
@@ -261,12 +263,12 @@ const tl = {
261
263
  delete e._originalDisplay;
262
264
  }
263
265
  };
264
- let Je = null;
266
+ let Xe = null;
265
267
  function Z(e) {
266
268
  var l;
267
- e && (Je = e, (l = e._context.directives) != null && l.corePermission || e.directive("corePermission", tl));
269
+ e && (Xe = e, (l = e._context.directives) != null && l.corePermission || e.directive("corePermission", al));
268
270
  }
269
- function Yl() {
271
+ function kl() {
270
272
  var e;
271
273
  try {
272
274
  const l = typeof require < "u" ? require("vue") : null;
@@ -278,10 +280,10 @@ function Yl() {
278
280
  }
279
281
  return !1;
280
282
  }
281
- function ll() {
282
- return Je;
283
+ function ul() {
284
+ return Xe;
283
285
  }
284
- const $e = "filter_key", nl = /* @__PURE__ */ j({
286
+ const Te = "filter_key", rl = /* @__PURE__ */ j({
285
287
  __name: "DataTable",
286
288
  props: {
287
289
  data: {
@@ -339,7 +341,7 @@ const $e = "filter_key", nl = /* @__PURE__ */ j({
339
341
  var x;
340
342
  const a = ue();
341
343
  (x = a == null ? void 0 : a.appContext) != null && x.app && Z(a.appContext.app);
342
- const u = e, i = Ke(), n = t, y = () => {
344
+ const u = e, i = je(), n = t, y = () => {
343
345
  try {
344
346
  return (i == null ? void 0 : i.fullPath) || (i == null ? void 0 : i.path) || "";
345
347
  } catch {
@@ -347,10 +349,10 @@ const $e = "filter_key", nl = /* @__PURE__ */ j({
347
349
  }
348
350
  }, o = Y(() => (console.log("table -data", u.data), u.data));
349
351
  function s(p) {
350
- window.localStorage.setItem($e, JSON.stringify(p));
352
+ window.localStorage.setItem(Te, JSON.stringify(p));
351
353
  }
352
354
  function g() {
353
- return JSON.parse(window.localStorage.getItem($e) || "{}") || {};
355
+ return JSON.parse(window.localStorage.getItem(Te) || "{}") || {};
354
356
  }
355
357
  const w = P(g()), b = P([]), O = P(0);
356
358
  function m(p) {
@@ -359,7 +361,7 @@ const $e = "filter_key", nl = /* @__PURE__ */ j({
359
361
  var U, E;
360
362
  return C != null && C.key ? d[C.key] = ((E = (U = u.summaryColumns) == null ? void 0 : U.call(u, p)) == null ? void 0 : E[C.key]) || {
361
363
  value: null
362
- } : d[qe("table")] = {
364
+ } : d[Ee("table")] = {
363
365
  value: null
364
366
  }, d;
365
367
  }, {});
@@ -392,8 +394,8 @@ const $e = "filter_key", nl = /* @__PURE__ */ j({
392
394
  align: "center",
393
395
  width: 120,
394
396
  ...D,
395
- key: (D == null ? void 0 : D.key) || qe("table"),
396
- ellipsis: D != null && D.ellipsis || u.isEllipsis ? D != null && D.ellipsisProp ? D == null ? void 0 : D.ellipsisProp(Ee) : Ee : !1,
397
+ key: (D == null ? void 0 : D.key) || Ee("table"),
398
+ ellipsis: D != null && D.ellipsis || u.isEllipsis ? D != null && D.ellipsisProp ? D == null ? void 0 : D.ellipsisProp($e) : $e : !1,
397
399
  "ellipsis-component": "ellipsis",
398
400
  title: () => {
399
401
  const v = (D == null ? void 0 : D.label) || (D == null ? void 0 : D.title) || "";
@@ -412,7 +414,7 @@ const $e = "filter_key", nl = /* @__PURE__ */ j({
412
414
  Icon: ie,
413
415
  title: se
414
416
  } = me[v];
415
- return f(xt, null, {
417
+ return f(At, null, {
416
418
  trigger: () => ie,
417
419
  default: () => se
418
420
  });
@@ -428,18 +430,18 @@ const $e = "filter_key", nl = /* @__PURE__ */ j({
428
430
  onClick: () => _()
429
431
  }, {
430
432
  default: () => "筛选字段",
431
- icon: () => f(Tt, null, null)
433
+ icon: () => f(Lt, null, null)
432
434
  });
433
435
  }
434
436
  function _() {
435
437
  const {
436
438
  cancel: p
437
- } = Ze({
439
+ } = tt({
438
440
  title: "筛选字段",
439
441
  read: !0,
440
442
  options: [{
441
443
  key: "filter-dialog",
442
- render: () => f(Gt, {
444
+ render: () => f(Zt, {
443
445
  style: {
444
446
  width: "100%",
445
447
  margin: "0",
@@ -471,7 +473,7 @@ const $e = "filter_key", nl = /* @__PURE__ */ j({
471
473
  }, {
472
474
  field: C == null ? void 0 : C.columnKey,
473
475
  value: (E = me[C == null ? void 0 : C.order]) == null ? void 0 : E.value,
474
- isClick: !it(C)
476
+ isClick: !dt(C)
475
477
  }));
476
478
  }), n("sorted");
477
479
  }
@@ -479,8 +481,8 @@ const $e = "filter_key", nl = /* @__PURE__ */ j({
479
481
  filterHandle: _,
480
482
  filterButton: r,
481
483
  initColumns: S
482
- }), Le(() => {
483
- }), (p, d) => (B(), K(c(pt), {
484
+ }), ke(() => {
485
+ }), (p, d) => (B(), K(c(Ot), {
484
486
  data: o.value,
485
487
  columns: N.value,
486
488
  "scroll-x": O.value,
@@ -501,31 +503,31 @@ const $e = "filter_key", nl = /* @__PURE__ */ j({
501
503
  },
502
504
  "onUpdate:sorter": h
503
505
  }, {
504
- empty: L(() => [be(p.$slots, "empty", {}, () => [f(c(bt), null, {
506
+ empty: L(() => [be(p.$slots, "empty", {}, () => [f(c(Ct), null, {
505
507
  default: L(() => [X(pe(e.emptyText), 1)]),
506
508
  _: 1
507
509
  })], !0)]),
508
510
  _: 3
509
511
  }, 8, ["data", "columns", "scroll-x", "single-column", "summary", "pagination", "virtual-scroll"]));
510
512
  }
511
- }), al = /* @__PURE__ */ re(nl, [["__scopeId", "data-v-057650fc"]]);
512
- function vl(e) {
513
- Jt({ uploadMethod: e });
513
+ }), ol = /* @__PURE__ */ re(rl, [["__scopeId", "data-v-057650fc"]]);
514
+ function Vl(e) {
515
+ el({ uploadMethod: e });
514
516
  }
515
- function ul(...e) {
516
- const l = Xt();
517
+ function il(...e) {
518
+ const l = ll();
517
519
  if (typeof l != "function")
518
520
  throw new TypeError("请先通过 setupConfig({ uploadMethod: fn }) 或 registryUpload(fn) 注册上传实现");
519
521
  return l(...e);
520
522
  }
521
523
  function W(e, l = null) {
522
524
  if (e && !(e != null && e.startsWith("http"))) {
523
- const t = Qt();
525
+ const t = tl();
524
526
  return t ? l ? `${t}${e}?x-oss-process=style/w${l}` : `${t}${e}` : (console.warn('BASE_URL 未配置,返回原始 URL。请使用 setupConfig({ baseURL: "..." }) 配置。'), e);
525
527
  }
526
528
  return e;
527
529
  }
528
- const rl = "/admin/file", ol = {
530
+ const sl = "/admin/file", fl = {
529
531
  __name: "ImagesUpload",
530
532
  props: {
531
533
  value: {
@@ -613,8 +615,8 @@ const rl = "/admin/file", ol = {
613
615
  const O = new FormData();
614
616
  o.status === "pending" && (O.append("file", o.file), t.formData && Object.keys(t.formData).length && Object.keys(t.formData).forEach((m) => {
615
617
  O.append(m, t.formData[m]);
616
- }), ul({
617
- url: rl,
618
+ }), il({
619
+ url: sl,
618
620
  data: O,
619
621
  method: "post",
620
622
  onUploadProgress: ({
@@ -641,7 +643,7 @@ const rl = "/admin/file", ol = {
641
643
  align: "end",
642
644
  "wrap-item": !1
643
645
  }, {
644
- default: L(() => [f(c(We), {
646
+ default: L(() => [f(c(He), {
645
647
  "file-list": u.value,
646
648
  "onUpdate:fileList": s[0] || (s[0] = (g) => u.value = g),
647
649
  accept: ".jpeg,.jpg,.png",
@@ -651,7 +653,7 @@ const rl = "/admin/file", ol = {
651
653
  "show-retry-button": !1,
652
654
  "show-remove-button": !t.read,
653
655
  class: "upload-box",
654
- style: ke({
656
+ style: Ve({
655
657
  ...t.size ? {
656
658
  "--image-w": `${t.size}px`,
657
659
  "--image-h": `${t.size}px`
@@ -669,8 +671,8 @@ const rl = "/admin/file", ol = {
669
671
  _: 1
670
672
  }));
671
673
  }
672
- }, il = /* @__PURE__ */ re(ol, [["__scopeId", "data-v-29718977"]]);
673
- function Te(e = [], l = $, t = T) {
674
+ }, cl = /* @__PURE__ */ re(fl, [["__scopeId", "data-v-29718977"]]);
675
+ function Be(e = [], l = $, t = T) {
674
676
  return c(e).reduce((a, u) => (a[u[t]] = {
675
677
  ...u,
676
678
  [l]: u[l],
@@ -680,13 +682,13 @@ function Te(e = [], l = $, t = T) {
680
682
  function De(e) {
681
683
  return Array.isArray(e) ? e : [e];
682
684
  }
683
- function Be(e, l = "YYYY-MM-DD", t = { emptyText: "" }) {
685
+ function Ye(e, l = "YYYY-MM-DD", t = { emptyText: "" }) {
684
686
  return e ? V(Number.isNaN(Number(e)) ? e : Number(e)).format(l) : (t == null ? void 0 : t.emptyText) || "";
685
687
  }
686
- function sl(e) {
688
+ function dl(e) {
687
689
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !te(e);
688
690
  }
689
- const fl = {
691
+ const yl = {
690
692
  input: ({
691
693
  label: e,
692
694
  key: l,
@@ -699,9 +701,9 @@ const fl = {
699
701
  _isRead: y
700
702
  }) => {
701
703
  const o = c(n), s = c(y);
702
- return i ?? s ? f(ze, a, {
704
+ return i ?? s ? f(We, a, {
703
705
  default: () => [u ? u == null ? void 0 : u(o[l], o) : o[l]]
704
- }) : f(Pe, M({
706
+ }) : f(Re, M({
705
707
  value: o[l],
706
708
  "onUpdate:value": (g) => o[l] = g,
707
709
  clearable: !0,
@@ -724,7 +726,7 @@ const fl = {
724
726
  }) => {
725
727
  var b, O;
726
728
  const s = c(y), g = c(o), w = Array.isArray(a) ? a : typeof a == "function" ? a(s[l]) : [];
727
- return n ?? g ? f("div", null, [i ? i == null ? void 0 : i(s[l], w) : ((O = (b = Te(w, (t == null ? void 0 : t.labelField) || $, (t == null ? void 0 : t.valueField) || T)) == null ? void 0 : b[s[l]]) == null ? void 0 : O[(t == null ? void 0 : t.labelField) || $]) || s[l]]) : f(Mt, M({
729
+ return n ?? g ? f("div", null, [i ? i == null ? void 0 : i(s[l], w) : ((O = (b = Be(w, (t == null ? void 0 : t.labelField) || $, (t == null ? void 0 : t.valueField) || T)) == null ? void 0 : b[s[l]]) == null ? void 0 : O[(t == null ? void 0 : t.labelField) || $]) || s[l]]) : f(Rt, M({
728
730
  value: s[l],
729
731
  "onUpdate:value": (m) => s[l] = m,
730
732
  options: w,
@@ -754,7 +756,7 @@ const fl = {
754
756
  _isRead: o
755
757
  }) => {
756
758
  const s = c(y), g = c(o);
757
- return n ?? g ? f("div", null, [i ? i == null ? void 0 : i(s[l]) : Be(s[l], a)]) : f(Re, M({
759
+ return n ?? g ? f("div", null, [i ? i == null ? void 0 : i(s[l]) : Ye(s[l], a)]) : f(qe, M({
758
760
  "formatted-value": s[l],
759
761
  "onUpdate:formatted-value": (w) => {
760
762
  s[l] = w;
@@ -780,7 +782,7 @@ const fl = {
780
782
  _isRead: y
781
783
  }) => {
782
784
  const o = c(n), s = c(y);
783
- return i ?? s ? f("div", null, [a ? a == null ? void 0 : a(o[l]) : Be(o[l], u)]) : f(It, M({
785
+ return i ?? s ? f("div", null, [a ? a == null ? void 0 : a(o[l]) : Ye(o[l], u)]) : f(Pt, M({
784
786
  "formatted-value": o[l],
785
787
  "onUpdate:value": (g, w) => {
786
788
  console.log("v", w), o[l] = w;
@@ -810,7 +812,7 @@ const fl = {
810
812
  datetimerange: "YYYY-MM-DD HH:mm:ss",
811
813
  daterange: "YYYY-MM-DD"
812
814
  }, s = l != null && l.format ? (w = (g = l == null ? void 0 : l.format) == null ? void 0 : g.replace("yyyy", "YYYY")) == null ? void 0 : w.replace("dd", "DD") : o[(l == null ? void 0 : l.type) || t];
813
- return console.log("formatStr type", t), console.log("formatStr", s), a ?? y ? f("div", null, [Array.isArray(e) ? `${n == null ? void 0 : n[e == null ? void 0 : e[0]]} - ${n == null ? void 0 : n[e == null ? void 0 : e[1]]}` : n == null ? void 0 : n[e]]) : f(Re, M({
815
+ return console.log("formatStr type", t), console.log("formatStr", s), a ?? y ? f("div", null, [Array.isArray(e) ? `${n == null ? void 0 : n[e == null ? void 0 : e[0]]} - ${n == null ? void 0 : n[e == null ? void 0 : e[1]]}` : n == null ? void 0 : n[e]]) : f(qe, M({
814
816
  "formatted-value": Array.isArray(e) ? n != null && n[e == null ? void 0 : e[0]] && (n != null && n[e == null ? void 0 : e[1]]) ? [V(n == null ? void 0 : n[e == null ? void 0 : e[0]]).format(s), V(n == null ? void 0 : n[e == null ? void 0 : e[1]]).format(s)] : null : (n == null ? void 0 : n[e]) || null,
815
817
  "onUpdate:formatted-value": (b) => {
816
818
  console.log(b), b && ![o.datetime, o.datetimerange].includes(s) && (b = b.map((O, m) => V(O, s)[m ? "endOf" : "startOf"]("day").format(s))), Array.isArray(e) ? (n[e == null ? void 0 : e[0]] = b == null ? void 0 : b[0], n[e == null ? void 0 : e[1]] = b == null ? void 0 : b[1]) : n[e] = b;
@@ -837,7 +839,7 @@ const fl = {
837
839
  }) => {
838
840
  var w, b;
839
841
  const s = c(i), g = c(n);
840
- return u ?? g ? f("div", null, [(b = (w = Te(Array.isArray(l) ? l : [], (t == null ? void 0 : t.labelField) || y || $, (t == null ? void 0 : t.valueField) || o || T)) == null ? void 0 : w[s[e]]) == null ? void 0 : b[(t == null ? void 0 : t.labelField) || y || $]]) : f(Nt, M({
842
+ return u ?? g ? f("div", null, [(b = (w = Be(Array.isArray(l) ? l : [], (t == null ? void 0 : t.labelField) || y || $, (t == null ? void 0 : t.valueField) || o || T)) == null ? void 0 : w[s[e]]) == null ? void 0 : b[(t == null ? void 0 : t.labelField) || y || $]]) : f(Ft, M({
841
843
  style: {
842
844
  width: "100%"
843
845
  },
@@ -850,7 +852,7 @@ const fl = {
850
852
  }, (t == null ? void 0 : t.radioProps) || {}), {
851
853
  default: () => {
852
854
  var O;
853
- return [(O = Array.isArray(l) ? l : []) == null ? void 0 : O.map((m) => f(St, {
855
+ return [(O = Array.isArray(l) ? l : []) == null ? void 0 : O.map((m) => f(Ut, {
854
856
  key: m.value,
855
857
  value: m == null ? void 0 : m[(t == null ? void 0 : t.valueField) || o || T],
856
858
  class: "items-center"
@@ -871,7 +873,7 @@ const fl = {
871
873
  _isRead: i
872
874
  }) => {
873
875
  const n = c(u), y = c(i);
874
- return a ?? y ? f("div", null, [n[l]]) : f(Pe, M({
876
+ return a ?? y ? f("div", null, [n[l]]) : f(Re, M({
875
877
  value: n[l],
876
878
  "onUpdate:value": (o) => n[l] = o,
877
879
  clearable: !0,
@@ -892,7 +894,7 @@ const fl = {
892
894
  _isRead: i
893
895
  }) => {
894
896
  const n = c(u), y = c(i);
895
- return a ?? y ? f("div", null, [n[l]]) : f(Dt, M({
897
+ return a ?? y ? f("div", null, [n[l]]) : f(Mt, M({
896
898
  value: typeof n[l] == "string" && n[l] ? Number(n[l]) : n[l],
897
899
  "onUpdate:value": (o) => {
898
900
  n[l] = o;
@@ -913,22 +915,22 @@ const fl = {
913
915
  _value: t
914
916
  }) => {
915
917
  const a = c(t);
916
- return f(We, M({
918
+ return f(He, M({
917
919
  multiple: !0,
918
920
  max: 1,
919
921
  accept: ".xls,.xlsx",
920
922
  "file-list": a[e],
921
923
  "onUpdate:file-list": (u) => a[e] = u
922
924
  }, l), {
923
- default: () => [f(At, null, {
925
+ default: () => [f(St, null, {
924
926
  default: () => [f("div", {
925
927
  style: "margin-bottom: 12px"
926
- }, [f(He, {
928
+ }, [f(Ke, {
927
929
  size: "48",
928
930
  depth: 3
929
931
  }, {
930
- default: () => [f(Bt, null, null)]
931
- })]), f(_t, {
932
+ default: () => [f(kt, null, null)]
933
+ })]), f(It, {
932
934
  style: "font-size: 16px"
933
935
  }, {
934
936
  default: () => [X("点击或者拖动文件到该区域来上传")]
@@ -960,7 +962,7 @@ const fl = {
960
962
  loading: i == null ? void 0 : i.loading,
961
963
  ...t
962
964
  };
963
- return f(al, w, null);
965
+ return f(ol, w, null);
964
966
  },
965
967
  progress: ({
966
968
  key: e,
@@ -969,11 +971,11 @@ const fl = {
969
971
  _value: t
970
972
  }) => {
971
973
  const a = c(t);
972
- return f(Ct, M({
974
+ return f(Nt, M({
973
975
  percentage: a[e]
974
976
  }, l), null);
975
977
  },
976
- line: () => f(Ot, null, null),
978
+ line: () => f(Dt, null, null),
977
979
  image: ({
978
980
  key: e,
979
981
  props: l,
@@ -983,7 +985,7 @@ const fl = {
983
985
  _value: u
984
986
  }) => {
985
987
  const i = c(u), n = c(a);
986
- return f(il, M({
988
+ return f(cl, M({
987
989
  value: i[e],
988
990
  "onUpdate:value": (y) => i[e] = y,
989
991
  max: 1
@@ -1003,7 +1005,7 @@ const fl = {
1003
1005
  type: "info"
1004
1006
  }, l, {
1005
1007
  onClick: () => l != null && l.onClick ? l == null ? void 0 : l.onClick(u) : e == null ? void 0 : e(u)
1006
- }), sl(t) ? t : {
1008
+ }), dl(t) ? t : {
1007
1009
  default: () => [t]
1008
1010
  });
1009
1011
  },
@@ -1016,7 +1018,7 @@ const fl = {
1016
1018
  _value: u
1017
1019
  }) => {
1018
1020
  const i = c(u), n = c(a);
1019
- return t ?? n ? f("div", null, [i[e] ? "是" : "否"]) : f(wt, M({
1021
+ return t ?? n ? f("div", null, [i[e] ? "是" : "否"]) : f(_t, M({
1020
1022
  value: i[e],
1021
1023
  "onUpdate:value": (y) => i[e] = y
1022
1024
  }, l), {
@@ -1069,7 +1071,7 @@ const fl = {
1069
1071
  }) => (c(a), f("div", null, [X("FilterSelect 组件需要外部提供")]))
1070
1072
  };
1071
1073
  let J = {};
1072
- class cl {
1074
+ class gl {
1073
1075
  constructor() {
1074
1076
  de(this, "defaultMap", null);
1075
1077
  de(this, "extendOptions", null);
@@ -1116,20 +1118,20 @@ class cl {
1116
1118
  });
1117
1119
  }
1118
1120
  initSetup(l) {
1119
- this.defaultMap && this.clear(), this.defaultMap = /* @__PURE__ */ new Map(), this.initOptions(fl), l && l(), this.initOptions(J);
1121
+ this.defaultMap && this.clear(), this.defaultMap = /* @__PURE__ */ new Map(), this.initOptions(yl), l && l(), this.initOptions(J);
1120
1122
  }
1121
1123
  init(l) {
1122
1124
  this.initSetup(l);
1123
1125
  }
1124
1126
  }
1125
- const oe = new cl(), Ll = (e) => oe.init(e), Qe = (e = []) => oe.getOptions(e);
1126
- function kl() {
1127
+ const oe = new gl(), zl = (e) => oe.init(e), Ze = (e = []) => oe.getOptions(e);
1128
+ function Wl() {
1127
1129
  return oe.getAllOptions();
1128
1130
  }
1129
- function Vl(e, l) {
1131
+ function Hl(e, l) {
1130
1132
  return oe.setupExtendOptions(e, l);
1131
1133
  }
1132
- const dl = ["xlink:href", "fill"], yl = /* @__PURE__ */ j({
1134
+ const ml = ["xlink:href", "fill"], hl = /* @__PURE__ */ j({
1133
1135
  __name: "SvgIcon",
1134
1136
  props: {
1135
1137
  name: {
@@ -1150,14 +1152,14 @@ const dl = ["xlink:href", "fill"], yl = /* @__PURE__ */ j({
1150
1152
  Ae("use", {
1151
1153
  "xlink:href": t.value,
1152
1154
  fill: e.color
1153
- }, null, 8, dl)
1155
+ }, null, 8, ml)
1154
1156
  ], 16));
1155
1157
  }
1156
- }), gl = /* @__PURE__ */ re(yl, [["__scopeId", "data-v-9dbe5f10"]]);
1157
- function ml(e) {
1158
+ }), pl = /* @__PURE__ */ re(hl, [["__scopeId", "data-v-9dbe5f10"]]);
1159
+ function bl(e) {
1158
1160
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !te(e);
1159
1161
  }
1160
- const hl = /* @__PURE__ */ j((e, {
1162
+ const xl = /* @__PURE__ */ j((e, {
1161
1163
  emit: l
1162
1164
  }) => {
1163
1165
  var S;
@@ -1165,7 +1167,7 @@ const hl = /* @__PURE__ */ j((e, {
1165
1167
  if ((S = t == null ? void 0 : t.appContext) != null && S.app)
1166
1168
  Z(t.appContext.app);
1167
1169
  else {
1168
- const r = ll();
1170
+ const r = ul();
1169
1171
  r && Z(r);
1170
1172
  }
1171
1173
  const a = P(e.value || {}), u = Y(() => e.read || !1);
@@ -1182,7 +1184,7 @@ const hl = /* @__PURE__ */ j((e, {
1182
1184
  return console.log(x), x.length && x.forEach((p) => _.push((p == null ? void 0 : p.way) ?? "input")), _;
1183
1185
  }, []);
1184
1186
  }
1185
- const o = Y(() => [...new Set(y(e.option || []))]), s = Qe(o.value);
1187
+ const o = Y(() => [...new Set(y(e.option || []))]), s = Ze(o.value);
1186
1188
  console.log(e.option), console.log("defaultOption", s, o.value), ee(() => a.value, (r) => {
1187
1189
  l("update:value", r);
1188
1190
  }, {
@@ -1206,7 +1208,7 @@ const hl = /* @__PURE__ */ j((e, {
1206
1208
  setValue: w
1207
1209
  })) : p = r, typeof p == "object" && !Array.isArray(p) ? Object.keys(p).forEach((d) => {
1208
1210
  const C = p[d];
1209
- ct(C) ? h[d] = c(C) : h[d] = C;
1211
+ mt(C) ? h[d] = c(C) : h[d] = C;
1210
1212
  }) : h = p, h;
1211
1213
  } catch {
1212
1214
  return {};
@@ -1250,14 +1252,14 @@ const hl = /* @__PURE__ */ j((e, {
1250
1252
  }))) : null;
1251
1253
  }
1252
1254
  function m(r) {
1253
- return c(r.enum) && (r.options = je(c(r.enum))), r;
1255
+ return c(r.enum) && (r.options = Ge(c(r.enum))), r;
1254
1256
  }
1255
1257
  function N({
1256
1258
  item: r,
1257
1259
  index: _
1258
1260
  }) {
1259
1261
  var h, x, p, d, C, U;
1260
- return r.formItemProps = g(r == null ? void 0 : r.formItemProps), r.formItemProps || (r.formItemProps = {}), !((h = r.formItemProps) != null && h.labelWidth) && ((x = e.formProps) != null && x.labelWidth) && (r.formItemProps.labelWidth = (p = e.formProps) == null ? void 0 : p.labelWidth), st(f(Ft, M({
1262
+ return r.formItemProps = g(r == null ? void 0 : r.formItemProps), r.formItemProps || (r.formItemProps = {}), !((h = r.formItemProps) != null && h.labelWidth) && ((x = e.formProps) != null && x.labelWidth) && (r.formItemProps.labelWidth = (p = e.formProps) == null ? void 0 : p.labelWidth), yt(f(qt, M({
1261
1263
  key: _,
1262
1264
  showLabel: !(r != null && r.noLabel)
1263
1265
  }, r == null ? void 0 : r.formItemProps, {
@@ -1276,17 +1278,17 @@ const hl = /* @__PURE__ */ j((e, {
1276
1278
  var E, R;
1277
1279
  return f("div", {
1278
1280
  class: r != null && r.labelClass || r != null && r.labelSuffix ? ` ${r == null ? void 0 : r.labelClass} flex items-center gap-col-9px` : ""
1279
- }, [r != null && r.labelSuffix ? typeof (r == null ? void 0 : r.labelSuffix) == "string" ? f(He, {
1281
+ }, [r != null && r.labelSuffix ? typeof (r == null ? void 0 : r.labelSuffix) == "string" ? f(Ke, {
1280
1282
  class: "wh-20px c-inherit",
1281
1283
  ...r == null ? void 0 : r.labelSuffixProps
1282
1284
  }, {
1283
- default: () => [f(gl, {
1285
+ default: () => [f(pl, {
1284
1286
  name: r == null ? void 0 : r.labelSuffix
1285
1287
  }, null)]
1286
1288
  }) : (E = r == null ? void 0 : r.labelSuffix) == null ? void 0 : E.call(r) : f(ae, null, null), `${c(typeof (r == null ? void 0 : r[e.labelField || "label"]) == "function" ? (R = r == null ? void 0 : r[e.labelField || "label"]) == null ? void 0 : R.call(r) : r == null ? void 0 : r[e.labelField || "label"]) || ""} ${u.value || r.read, " "}
1287
1289
  `]);
1288
1290
  }
1289
- }), [[ft("corePermission"), r == null ? void 0 : r.permission]]);
1291
+ }), [[gt("corePermission"), r == null ? void 0 : r.permission]]);
1290
1292
  }
1291
1293
  return () => {
1292
1294
  let r;
@@ -1299,7 +1301,7 @@ const hl = /* @__PURE__ */ j((e, {
1299
1301
  alignContent: "baseline",
1300
1302
  ...e.style
1301
1303
  }
1302
- }, ml(r = n.value.map(({
1304
+ }, bl(r = n.value.map(({
1303
1305
  isRender: _ = !0,
1304
1306
  ...h
1305
1307
  }, x) => (typeof c(_) != "boolean" ? _ != null && _(c(a)) : c(_)) ? h != null && h.render ? h == null ? void 0 : h.render(c(a), x, {
@@ -1348,11 +1350,11 @@ const hl = /* @__PURE__ */ j((e, {
1348
1350
  }
1349
1351
  },
1350
1352
  emits: ["update:value"]
1351
- }), pl = {
1353
+ }), wl = {
1352
1354
  showIcon: !1,
1353
1355
  autoFocus: !1
1354
1356
  };
1355
- function bl({
1357
+ function Ol({
1356
1358
  options: e = [],
1357
1359
  model: l,
1358
1360
  labelField: t = "label",
@@ -1389,7 +1391,7 @@ function bl({
1389
1391
  }, {})) || {}
1390
1392
  );
1391
1393
  }
1392
- const Xe = /* @__PURE__ */ j({
1394
+ const et = /* @__PURE__ */ j({
1393
1395
  __name: "DataForm",
1394
1396
  props: /* @__PURE__ */ xe({
1395
1397
  value: {},
@@ -1414,8 +1416,8 @@ const Xe = /* @__PURE__ */ j({
1414
1416
  var o;
1415
1417
  const t = ue();
1416
1418
  (o = t == null ? void 0 : t.appContext) != null && o.app && Z(t.appContext.app);
1417
- const a = e, u = Y(() => a.options), i = P(), n = Ve(e, "value"), y = Y(() => c(
1418
- u.value ? bl({
1419
+ const a = e, u = Y(() => a.options), i = P(), n = ze(e, "value"), y = Y(() => c(
1420
+ u.value ? Ol({
1419
1421
  options: u.value,
1420
1422
  model: n,
1421
1423
  labelField: a.labelField,
@@ -1440,7 +1442,7 @@ const Xe = /* @__PURE__ */ j({
1440
1442
  s && s(c(n)), g(c(n));
1441
1443
  });
1442
1444
  })
1443
- }), (s, g) => (B(), K(c(Ut), M({
1445
+ }), (s, g) => (B(), K(c(Et), M({
1444
1446
  ref_key: "formRef",
1445
1447
  ref: i,
1446
1448
  model: n.value,
@@ -1452,14 +1454,14 @@ const Xe = /* @__PURE__ */ j({
1452
1454
  style: { minHeight: a.isNo ? "unset" : null }
1453
1455
  }, a.formProps), {
1454
1456
  default: L(() => [
1455
- f(c(hl), {
1457
+ f(c(xl), {
1456
1458
  value: n.value,
1457
1459
  "onUpdate:value": g[0] || (g[0] = (w) => n.value = w),
1458
1460
  "form-ref": i.value,
1459
1461
  option: a.options,
1460
1462
  "label-field": a.labelField,
1461
1463
  read: a.read,
1462
- style: ke(a.contentStyle),
1464
+ style: Ve(a.contentStyle),
1463
1465
  "form-props": a.formProps
1464
1466
  }, null, 8, ["value", "form-ref", "option", "label-field", "read", "style", "form-props"])
1465
1467
  ]),
@@ -1467,11 +1469,11 @@ const Xe = /* @__PURE__ */ j({
1467
1469
  }, 16, ["model", "rules", "class", "style"]));
1468
1470
  }
1469
1471
  });
1470
- function xl(e) {
1472
+ function Cl(e) {
1471
1473
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !te(e);
1472
1474
  }
1473
1475
  let H = null, ge = null;
1474
- function wl() {
1476
+ function Al() {
1475
1477
  if (H) return H;
1476
1478
  if (typeof $dialog < "u" && $dialog)
1477
1479
  return H = $dialog, H;
@@ -1484,14 +1486,14 @@ function wl() {
1484
1486
  if (!ge) {
1485
1487
  const {
1486
1488
  dialog: e
1487
- } = Pt(["dialog"]);
1489
+ } = $t(["dialog"]);
1488
1490
  ge = {
1489
1491
  dialog: e
1490
1492
  };
1491
1493
  }
1492
1494
  return H = ge.dialog, H;
1493
1495
  }
1494
- function Ze({
1496
+ function tt({
1495
1497
  title: e = "",
1496
1498
  noTitle: l = !1,
1497
1499
  titleFull: t = null,
@@ -1518,8 +1520,8 @@ function Ze({
1518
1520
  isRead: !1,
1519
1521
  valueData: {}
1520
1522
  }, r = null) {
1521
- var Ne;
1522
- const _ = wl(), h = {
1523
+ var Ne, Se;
1524
+ const _ = Al(), h = {
1523
1525
  none: {
1524
1526
  sub: "",
1525
1527
  read: !1
@@ -1557,7 +1559,7 @@ function Ze({
1557
1559
  read: !1
1558
1560
  },
1559
1561
  ...i
1560
- }, x = P(), p = dt([]), d = P({
1562
+ }, x = P(), p = ht([]), d = P({
1561
1563
  ...w
1562
1564
  }), C = {
1563
1565
  justify: "end",
@@ -1621,9 +1623,9 @@ function Ze({
1621
1623
  ...C == null ? void 0 : C.style,
1622
1624
  ...(S == null ? void 0 : S.style) || {}
1623
1625
  }
1624
- }), xl(I = (Array.isArray(m) ? m : E).map((A, fe) => {
1625
- var Se;
1626
- return A != null && A.render ? (Se = A == null ? void 0 : A.render) == null ? void 0 : Se.call(A) : f(z, M({
1626
+ }), Cl(I = (Array.isArray(m) ? m : E).map((A, fe) => {
1627
+ var Ie;
1628
+ return A != null && A.render ? (Ie = A == null ? void 0 : A.render) == null ? void 0 : Ie.call(A) : f(z, M({
1627
1629
  type: "primary",
1628
1630
  ghost: A.mode === "cancel"
1629
1631
  }, (A == null ? void 0 : A.props) || {}, (S == null ? void 0 : S.buttonProps) || {}, {
@@ -1633,25 +1635,25 @@ function Ze({
1633
1635
  },
1634
1636
  loading: p[fe],
1635
1637
  onClick: async () => {
1636
- var Ie, Me;
1638
+ var Me, Fe;
1637
1639
  if (A.mode === "cancel")
1638
- (Ie = D.value) == null || Ie.destroy();
1640
+ (Me = D.value) == null || Me.destroy();
1639
1641
  else {
1640
- const ce = () => p[fe] = !0, Fe = () => p[fe] = !1;
1642
+ const ce = () => p[fe] = !0, Ue = () => p[fe] = !1;
1641
1643
  A != null && A.loading && ce();
1642
1644
  try {
1643
- console.log("model", c(d)), A != null && A.valid && await G(), console.log(A == null ? void 0 : A.valid), (A != null && A.valid || A != null && A.loading) && ce(), await ((Me = A == null ? void 0 : A.onClick) == null ? void 0 : Me.call(A, {
1645
+ console.log("model", c(d)), A != null && A.valid && await G(), console.log(A == null ? void 0 : A.valid), (A != null && A.valid || A != null && A.loading) && ce(), await ((Fe = A == null ? void 0 : A.onClick) == null ? void 0 : Fe.call(A, {
1644
1646
  model: c(d),
1645
1647
  comfirm: v,
1646
1648
  cancel: F,
1647
1649
  validate: G,
1648
1650
  showLoading: ce,
1649
- hideLoading: Fe
1651
+ hideLoading: Ue
1650
1652
  }));
1651
- } catch (at) {
1652
- console.log(at);
1653
+ } catch (it) {
1654
+ console.log(it);
1653
1655
  } finally {
1654
- (A != null && A.valid || A != null && A.loading) && Fe();
1656
+ (A != null && A.valid || A != null && A.loading) && Ue();
1655
1657
  }
1656
1658
  }
1657
1659
  }
@@ -1661,16 +1663,19 @@ function Ze({
1661
1663
  })) ? I : {
1662
1664
  default: () => [I]
1663
1665
  });
1664
- }, se = _.create({
1666
+ }, se = ((Ne = Je()) == null ? void 0 : Ne.defaultOption) || {}, rt = {
1667
+ ...wl,
1668
+ ...se
1669
+ }, ot = _.create({
1665
1670
  type: "info",
1666
- ...pl,
1671
+ ...rt,
1667
1672
  ...l ? {} : {
1668
- title: R || (((Ne = h[u]) == null ? void 0 : Ne.sub) ?? "") + e
1673
+ title: R || (((Se = h[u]) == null ? void 0 : Se.sub) ?? "") + e
1669
1674
  },
1670
1675
  style: {
1671
1676
  width: "500px"
1672
1677
  },
1673
- content: () => f(Xe, {
1678
+ content: () => f(et, {
1674
1679
  ref: (I) => {
1675
1680
  x.value = I;
1676
1681
  },
@@ -1689,7 +1694,7 @@ function Ze({
1689
1694
  ...r,
1690
1695
  class: `core-dialog ${b ?? O ? "core-dialog-read" : ""} ${(r == null ? void 0 : r.class) || ""}`
1691
1696
  });
1692
- return D.value = se, {
1697
+ return D.value = ot, {
1693
1698
  cancel: F,
1694
1699
  setValue: (I, A) => A ? d.value[A] = I : d.value = {
1695
1700
  ...d.value,
@@ -1699,13 +1704,13 @@ function Ze({
1699
1704
  modeEnum: h
1700
1705
  };
1701
1706
  }
1702
- function zl() {
1707
+ function Kl() {
1703
1708
  const e = _e();
1704
- return Ge(e), (l, t) => Ze(l, t);
1709
+ return Qe(e), (l, t) => tt(l, t);
1705
1710
  }
1706
- const Ol = {
1711
+ const _l = {
1707
1712
  class: "flex-1"
1708
- }, Cl = /* @__PURE__ */ j({
1713
+ }, Dl = /* @__PURE__ */ j({
1709
1714
  __name: "CommonQuery",
1710
1715
  props: /* @__PURE__ */ xe({
1711
1716
  query: {
@@ -1787,7 +1792,7 @@ const Ol = {
1787
1792
  function o() {
1788
1793
  y();
1789
1794
  }
1790
- const s = P(!1), g = Ve(e, "query"), w = {
1795
+ const s = P(!1), g = ze(e, "query"), w = {
1791
1796
  style: {
1792
1797
  width: "33%"
1793
1798
  }
@@ -1795,14 +1800,14 @@ const Ol = {
1795
1800
  var h;
1796
1801
  return (h = i.options) == null ? void 0 : h.map((x) => (x == null ? void 0 : x.way) || "input");
1797
1802
  });
1798
- Qe(b.value);
1803
+ Ze(b.value);
1799
1804
  const O = Y(() => {
1800
1805
  var h;
1801
1806
  try {
1802
1807
  const x = [];
1803
1808
  for (let p = 0; p < (((h = i.options) == null ? void 0 : h.length) || 0); p++) {
1804
1809
  const d = i.options[p];
1805
- if (d != null && d.enum && !(d != null && d.options) && (d.options = je(d.enum)), d != null && d.props || (d.props = {
1810
+ if (d != null && d.enum && !(d != null && d.options) && (d.options = Ge(d.enum)), d != null && d.props || (d.props = {
1806
1811
  size: i.size
1807
1812
  }), !(d != null && d.formItemProps))
1808
1813
  d.formItemProps = {
@@ -1844,7 +1849,7 @@ const Ol = {
1844
1849
  onClick: () => o()
1845
1850
  }, m), {
1846
1851
  default: () => "搜索",
1847
- icon: () => f(vt, null, null)
1852
+ icon: () => f(zt, null, null)
1848
1853
  }),
1849
1854
  reset: () => f(z, M({
1850
1855
  type: "default",
@@ -1853,7 +1858,7 @@ const Ol = {
1853
1858
  }
1854
1859
  }, m), {
1855
1860
  default: () => "重置",
1856
- icon: () => f(Yt, null, null)
1861
+ icon: () => f(Vt, null, null)
1857
1862
  })
1858
1863
  };
1859
1864
  function S() {
@@ -1866,9 +1871,9 @@ const Ol = {
1866
1871
  function r(h) {
1867
1872
  h.key === "Enter" && o();
1868
1873
  }
1869
- return Le(() => {
1874
+ return ke(() => {
1870
1875
  document.addEventListener("keydown", r);
1871
- }), yt(() => {
1876
+ }), pt(() => {
1872
1877
  document.removeEventListener("keydown", r);
1873
1878
  }), (h, x) => (B(), K(c(k), {
1874
1879
  "wrap-item": !1,
@@ -1876,21 +1881,21 @@ const Ol = {
1876
1881
  align: "center",
1877
1882
  wrap: !1
1878
1883
  }, {
1879
- default: L(() => [Ae("div", Ol, [f(Xe, {
1884
+ default: L(() => [Ae("div", _l, [f(et, {
1880
1885
  value: g.value,
1881
1886
  "onUpdate:value": x[0] || (x[0] = (p) => g.value = p),
1882
1887
  options: O.value,
1883
1888
  "form-props": {
1884
1889
  showFeedback: !1
1885
1890
  }
1886
- }, null, 8, ["value", "options"])]), i.noButton ? gt("", !0) : (B(), K(c(k), {
1891
+ }, null, 8, ["value", "options"])]), i.noButton ? bt("", !0) : (B(), K(c(k), {
1887
1892
  key: 0,
1888
1893
  align: "center",
1889
1894
  wrap: !1
1890
1895
  }, {
1891
1896
  default: L(() => [be(h.$slots, "left-btn", {}, void 0, !0), (B(!0), le(ae, null, he(i.btn, (p, d) => {
1892
1897
  var C;
1893
- return B(), K(mt((C = N == null ? void 0 : N[p]) == null ? void 0 : C.call(N)), {
1898
+ return B(), K(xt((C = N == null ? void 0 : N[p]) == null ? void 0 : C.call(N)), {
1894
1899
  key: d
1895
1900
  });
1896
1901
  }), 128)), be(h.$slots, "right-btn", {}, void 0, !0)]),
@@ -1899,7 +1904,7 @@ const Ol = {
1899
1904
  _: 3
1900
1905
  }));
1901
1906
  }
1902
- }), Wl = /* @__PURE__ */ re(Cl, [["__scopeId", "data-v-e03318bb"]]), et = /* @__PURE__ */ j(({
1907
+ }), jl = /* @__PURE__ */ re(Dl, [["__scopeId", "data-v-e03318bb"]]), lt = /* @__PURE__ */ j(({
1903
1908
  action: e,
1904
1909
  row: l,
1905
1910
  index: t
@@ -1943,7 +1948,7 @@ const Ol = {
1943
1948
  default: 0
1944
1949
  }
1945
1950
  }
1946
- }), tt = /* @__PURE__ */ j(({
1951
+ }), nt = /* @__PURE__ */ j(({
1947
1952
  onClick: e,
1948
1953
  row: l,
1949
1954
  index: t,
@@ -1952,7 +1957,7 @@ const Ol = {
1952
1957
  slots: u
1953
1958
  }) => {
1954
1959
  const i = P(!1);
1955
- return () => f(Rt, {
1960
+ return () => f(Tt, {
1956
1961
  "positive-button-props": {
1957
1962
  type: "warning",
1958
1963
  loading: i.value
@@ -1993,10 +1998,10 @@ const Ol = {
1993
1998
  }
1994
1999
  }
1995
2000
  });
1996
- function Ye(e) {
2001
+ function ve(e) {
1997
2002
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !te(e);
1998
2003
  }
1999
- const Al = /* @__PURE__ */ j((e) => {
2004
+ const Nl = /* @__PURE__ */ j((e) => {
2000
2005
  const l = e.options.length, t = P(!1), a = Y(() => e.options.slice(0, t.value ? l : e.max)), u = Y(() => e.options.slice(e.max));
2001
2006
  function i(n) {
2002
2007
  return n == null ? void 0 : n.map(({
@@ -2006,7 +2011,7 @@ const Al = /* @__PURE__ */ j((e) => {
2006
2011
  disabled: g = !1,
2007
2012
  type: w = "primary",
2008
2013
  ...b
2009
- }, O) => (typeof y == "function" ? y(e.data) : y) ? s === "pop" ? f(tt, {
2014
+ }, O) => (typeof y == "function" ? y(e.data) : y) ? s === "pop" ? f(nt, {
2010
2015
  onClick: o,
2011
2016
  row: e.data,
2012
2017
  index: e.index,
@@ -2020,7 +2025,7 @@ const Al = /* @__PURE__ */ j((e) => {
2020
2025
  }, b), {
2021
2026
  default: () => [typeof (b == null ? void 0 : b.label) == "function" ? b == null ? void 0 : b.label(e.data) : b == null ? void 0 : b.label]
2022
2027
  })]
2023
- }) : f(et, {
2028
+ }) : f(lt, {
2024
2029
  row: e.data,
2025
2030
  action: {
2026
2031
  ...b,
@@ -2045,9 +2050,9 @@ const Al = /* @__PURE__ */ j((e) => {
2045
2050
  default: () => [f(k, {
2046
2051
  "wrap-item": !1,
2047
2052
  align: "center"
2048
- }, Ye(n = i(a.value)) ? n : {
2053
+ }, ve(n = i(a.value)) ? n : {
2049
2054
  default: () => [n]
2050
- }), f(qt, {
2055
+ }), f(Bt, {
2051
2056
  trigger: "click"
2052
2057
  }, {
2053
2058
  trigger: () => f(z, {
@@ -2065,7 +2070,7 @@ const Al = /* @__PURE__ */ j((e) => {
2065
2070
  width: "250px",
2066
2071
  padding: "5px"
2067
2072
  }
2068
- }, Ye(y = i(u.value)) ? y : {
2073
+ }, ve(y = i(u.value)) ? y : {
2069
2074
  default: () => [y]
2070
2075
  });
2071
2076
  }
@@ -2093,9 +2098,9 @@ const Al = /* @__PURE__ */ j((e) => {
2093
2098
  }
2094
2099
  }
2095
2100
  });
2096
- function _l() {
2101
+ function Sl() {
2097
2102
  var l;
2098
- const e = el();
2103
+ const e = nl();
2099
2104
  if (e)
2100
2105
  return e;
2101
2106
  try {
@@ -2107,7 +2112,7 @@ function _l() {
2107
2112
  return null;
2108
2113
  }
2109
2114
  function Q(e = {}, l = null) {
2110
- const t = Zt();
2115
+ const t = Je();
2111
2116
  return !t.inheritTheme && t.themeOverrides ? {
2112
2117
  ...e,
2113
2118
  themeOverrides: {
@@ -2116,13 +2121,13 @@ function Q(e = {}, l = null) {
2116
2121
  }
2117
2122
  } : e;
2118
2123
  }
2119
- function Hl(e, l = {}) {
2124
+ function Gl(e, l = {}) {
2120
2125
  if (!e)
2121
2126
  throw new Error("dialogInstance 是必需的。请在组件中使用 useDialog() 获取实例,然后传递给此函数。");
2122
2127
  const t = Q(l, e);
2123
2128
  return e.create(t);
2124
2129
  }
2125
- function Kl(e) {
2130
+ function Jl(e) {
2126
2131
  if (!e)
2127
2132
  throw new Error("dialogInstance 是必需的。请在组件中使用 useDialog() 获取实例。");
2128
2133
  return {
@@ -2148,11 +2153,11 @@ function Kl(e) {
2148
2153
  }
2149
2154
  };
2150
2155
  }
2151
- function Dl(e) {
2156
+ function Il(e) {
2152
2157
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !te(e);
2153
2158
  }
2154
2159
  const ne = (e, l) => e ? JSON.stringify(e) : String(l);
2155
- function jl(e, l = null, t) {
2160
+ function Ql(e, l = null, t) {
2156
2161
  const a = {
2157
2162
  max: 4,
2158
2163
  width: 80
@@ -2177,7 +2182,7 @@ function jl(e, l = null, t) {
2177
2182
  width: n,
2178
2183
  ...l,
2179
2184
  render(o, s) {
2180
- const g = u ? f(Al, {
2185
+ const g = u ? f(Nl, {
2181
2186
  data: o,
2182
2187
  index: s,
2183
2188
  max: u.max,
@@ -2189,7 +2194,7 @@ function jl(e, l = null, t) {
2189
2194
  disabled: m = !1,
2190
2195
  type: N = "primary",
2191
2196
  ...S
2192
- }, r) => (typeof w == "function" ? w(o) : w) ? O === "pop" ? f(tt, {
2197
+ }, r) => (typeof w == "function" ? w(o) : w) ? O === "pop" ? f(nt, {
2193
2198
  onClick: b,
2194
2199
  row: o,
2195
2200
  index: s,
@@ -2203,7 +2208,7 @@ function jl(e, l = null, t) {
2203
2208
  }, S), {
2204
2209
  default: () => [typeof (S == null ? void 0 : S.label) == "function" ? S == null ? void 0 : S.label(o) : S == null ? void 0 : S.label]
2205
2210
  })]
2206
- }) : f(et, {
2211
+ }) : f(lt, {
2207
2212
  row: o,
2208
2213
  action: {
2209
2214
  ...S,
@@ -2219,14 +2224,14 @@ function jl(e, l = null, t) {
2219
2224
  "wrap-item": !1,
2220
2225
  size: 18,
2221
2226
  key: ne(o, s)
2222
- }, Dl(g) ? g : {
2227
+ }, Il(g) ? g : {
2223
2228
  default: () => [g]
2224
2229
  });
2225
2230
  }
2226
2231
  } : void 0;
2227
2232
  }
2228
- async function Nl(e, l = null) {
2229
- const t = _l();
2233
+ async function Ml(e, l = null) {
2234
+ const t = Sl();
2230
2235
  if (!t)
2231
2236
  throw new Error("无法获取 dialog 实例。请使用 useQRCode hook 或在组件中通过 setupConfig 注册 dialog 实例。");
2232
2237
  const a = P(null), u = P(!1), i = Q({
@@ -2238,12 +2243,12 @@ async function Nl(e, l = null) {
2238
2243
  },
2239
2244
  content: () => f("div", {
2240
2245
  class: "qr-box"
2241
- }, [u.value ? f(Et, {
2246
+ }, [u.value ? f(Yt, {
2242
2247
  class: "qr-spin",
2243
2248
  show: !0
2244
2249
  }, null) : "", f("div", {
2245
2250
  class: "qr-img"
2246
- }, [f($t, {
2251
+ }, [f(vt, {
2247
2252
  src: a.value,
2248
2253
  style: {
2249
2254
  width: "100%"
@@ -2254,58 +2259,58 @@ async function Nl(e, l = null) {
2254
2259
  }, t);
2255
2260
  return t.info(i), l && (u.value = !0, a.value = await l(), u.value = !1), !0;
2256
2261
  }
2257
- function Gl() {
2262
+ function Xl() {
2258
2263
  const e = _e();
2259
- return Ge(e), (l, t) => Nl(l, t);
2264
+ return Qe(e), (l, t) => Ml(l, t);
2260
2265
  }
2261
- function Sl(e) {
2266
+ function Fl(e) {
2262
2267
  var l, t;
2263
2268
  if ((l = e == null ? void 0 : e.children) != null && l.length) {
2264
2269
  const a = [];
2265
2270
  e.children.forEach((u) => {
2266
2271
  var n, y, o, s;
2267
- Sl(u);
2272
+ Fl(u);
2268
2273
  let i = [];
2269
- typeof ((n = u == null ? void 0 : u.meta) == null ? void 0 : n.permission) == "string" ? i = [u.meta.permission] : Array.isArray((y = u.meta) == null ? void 0 : y.permission) ? i.push(...u.meta.permission) : typeof ((o = u.meta) == null ? void 0 : o.permission) == "object" ? i.push(...Il(lt(u.meta.permission))) : (s = u == null ? void 0 : u.meta) != null && s.permission || (i = null), u.meta.permission = i, a.push(...new Set(i));
2274
+ typeof ((n = u == null ? void 0 : u.meta) == null ? void 0 : n.permission) == "string" ? i = [u.meta.permission] : Array.isArray((y = u.meta) == null ? void 0 : y.permission) ? i.push(...u.meta.permission) : typeof ((o = u.meta) == null ? void 0 : o.permission) == "object" ? i.push(...Ul(at(u.meta.permission))) : (s = u == null ? void 0 : u.meta) != null && s.permission || (i = null), u.meta.permission = i, a.push(...new Set(i));
2270
2275
  }), (t = e == null ? void 0 : e.meta) != null && t.permission ? e.meta.permission = [...new Set(e.meta.permission.concat(a))] : e.meta.permission = a;
2271
2276
  }
2272
2277
  return e;
2273
2278
  }
2274
- function Il(...e) {
2279
+ function Ul(...e) {
2275
2280
  const l = e == null ? void 0 : e.map((t) => Array.isArray(t) ? t : t == null ? void 0 : t.ALL);
2276
2281
  return [].concat(...l);
2277
2282
  }
2278
- function lt(e) {
2279
- return e ? Object.keys(e).reduce((l, t) => (typeof e[t] != "string" ? l.concat(lt(e[t])) : l.push(e[t]), l), []) : [];
2283
+ function at(e) {
2284
+ return e ? Object.keys(e).reduce((l, t) => (typeof e[t] != "string" ? l.concat(at(e[t])) : l.push(e[t]), l), []) : [];
2280
2285
  }
2281
- function Jl(...e) {
2286
+ function Zl(...e) {
2282
2287
  return {
2283
- ...nt("auth", e)
2288
+ ...ut("auth", e)
2284
2289
  };
2285
2290
  }
2286
- function Ql(...e) {
2291
+ function en(...e) {
2287
2292
  return {
2288
- ...nt("api", e)
2293
+ ...ut("api", e)
2289
2294
  };
2290
2295
  }
2291
- function Xl(e, l = {}) {
2296
+ function tn(e, l = {}) {
2292
2297
  const t = Object.keys(l);
2293
2298
  return t.length && t.forEach((a) => {
2294
2299
  const u = new RegExp(`${a}`, "g");
2295
2300
  e = e == null ? void 0 : e.replace(u, l[a]);
2296
2301
  }), e;
2297
2302
  }
2298
- function nt(e, l) {
2303
+ function ut(e, l) {
2299
2304
  var n;
2300
- const t = Ke(), a = zt(), u = ve(((n = t == null ? void 0 : t.meta) == null ? void 0 : n[e]) ?? {}), i = De(l[0]);
2305
+ const t = je(), a = jt(), u = Le(((n = t == null ? void 0 : t.meta) == null ? void 0 : n[e]) ?? {}), i = De(l[0]);
2301
2306
  return i != null && i.length && a.getRoutes().filter((o) => i.includes(o.name)).forEach((o) => {
2302
2307
  var s;
2303
- (s = o.meta) != null && s[e] && (u[o.name] = ve(o.meta[e]));
2308
+ (s = o.meta) != null && s[e] && (u[o.name] = Le(o.meta[e]));
2304
2309
  }), {
2305
2310
  ...u
2306
2311
  };
2307
2312
  }
2308
- function ve(e = {}) {
2313
+ function Le(e = {}) {
2309
2314
  return Object.keys(e).reduce((l, t) => {
2310
2315
  const a = e[t];
2311
2316
  return typeof a == "object" ? l[t] = a == null ? void 0 : a.key : typeof a == "string" && (l[t] = String(a)), l;
@@ -2315,7 +2320,7 @@ const me = {
2315
2320
  ascend: {
2316
2321
  title: "升序",
2317
2322
  value: !0,
2318
- Icon: ye(Vt),
2323
+ Icon: ye(Kt),
2319
2324
  fn: (e, l) => {
2320
2325
  e.desc = !0, e.sortFieldName = l;
2321
2326
  }
@@ -2323,7 +2328,7 @@ const me = {
2323
2328
  descend: {
2324
2329
  title: "降序",
2325
2330
  value: !1,
2326
- Icon: ye(kt),
2331
+ Icon: ye(Ht),
2327
2332
  fn: (e) => {
2328
2333
  e.sortFieldName = "", e.desc = !0;
2329
2334
  }
@@ -2331,7 +2336,7 @@ const me = {
2331
2336
  false: {
2332
2337
  title: "默认",
2333
2338
  value: null,
2334
- Icon: ye(Lt, {
2339
+ Icon: ye(Wt, {
2335
2340
  style: "transform:rotateZ(90deg)"
2336
2341
  }),
2337
2342
  fn: (e) => {
@@ -2339,60 +2344,60 @@ const me = {
2339
2344
  }
2340
2345
  }
2341
2346
  };
2342
- function Ml(e, l = {}) {
2347
+ function Pl(e, l = {}) {
2343
2348
  Z(e);
2344
2349
  }
2345
- const Zl = {
2346
- install: Ml
2350
+ const ln = {
2351
+ install: Pl
2347
2352
  };
2348
2353
  export {
2349
- Te as ArrayToObject,
2350
- Wl as CommonQuery,
2351
- Zl as CorePlugin,
2352
- Xe as DataForm,
2353
- al as DataTable,
2354
- je as ObjectToArray,
2355
- et as OprButton,
2356
- hl as Options,
2357
- tt as Pop,
2358
- Yl as autoRegisterDirectives,
2359
- Sl as cellectChildenPermission,
2354
+ Be as ArrayToObject,
2355
+ jl as CommonQuery,
2356
+ ln as CorePlugin,
2357
+ et as DataForm,
2358
+ ol as DataTable,
2359
+ Ge as ObjectToArray,
2360
+ lt as OprButton,
2361
+ xl as Options,
2362
+ nt as Pop,
2363
+ kl as autoRegisterDirectives,
2364
+ Fl as cellectChildenPermission,
2360
2365
  Ce as checkPermission,
2361
- Ze as commonDialogMethod,
2362
- jl as createActionColumnJsx,
2363
- Hl as createDialog,
2364
- Kl as createDialogMethods,
2366
+ tt as commonDialogMethod,
2367
+ Ql as createActionColumnJsx,
2368
+ Gl as createDialog,
2369
+ Jl as createDialogMethods,
2365
2370
  Q as createDialogOptions,
2366
- Nl as createQRCode,
2367
- ul as customUpload,
2368
- Ee as ellipsis,
2369
- kl as getAllOptions,
2370
- Qt as getBaseURL,
2371
- Tl as getConfig,
2372
- Zt as getDialogConfig,
2373
- el as getDialogInstance,
2371
+ Ml as createQRCode,
2372
+ il as customUpload,
2373
+ $e as ellipsis,
2374
+ Wl as getAllOptions,
2375
+ tl as getBaseURL,
2376
+ vl as getConfig,
2377
+ Je as getDialogConfig,
2378
+ nl as getDialogInstance,
2374
2379
  W as getFileUrl,
2375
- ll as getGlobalApp,
2376
- Bl as getHasPermission,
2377
- Qe as getOptions,
2378
- Xt as getUploadMethod,
2380
+ ul as getGlobalApp,
2381
+ Ll as getHasPermission,
2382
+ Ze as getOptions,
2383
+ ll as getUploadMethod,
2379
2384
  $ as globalLabelField,
2380
2385
  T as globalValueField,
2381
- Xl as handleParams,
2382
- ln as initRouteMeta,
2383
- bl as initRules,
2384
- Ml as install,
2386
+ tn as handleParams,
2387
+ un as initRouteMeta,
2388
+ Ol as initRules,
2389
+ Pl as install,
2385
2390
  me as orderEnum,
2386
- tl as permissionDirective,
2387
- Ge as registerDialogInstance,
2391
+ al as permissionDirective,
2392
+ Qe as registerDialogInstance,
2388
2393
  Z as registerDirectives,
2389
- vl as registryUpload,
2390
- Jt as setupConfig,
2391
- Ll as setupInitOptions,
2392
- Vl as setupOptions,
2394
+ Vl as registryUpload,
2395
+ el as setupConfig,
2396
+ zl as setupInitOptions,
2397
+ Hl as setupOptions,
2393
2398
  De as toArray,
2394
- Ql as useApiConfig,
2395
- Jl as useAuthPermission,
2396
- zl as useCommonDialog,
2397
- Gl as useQRCode
2399
+ en as useApiConfig,
2400
+ Zl as useAuthPermission,
2401
+ Kl as useCommonDialog,
2402
+ Xl as useQRCode
2398
2403
  };