dlzn-ui 2.0.57 → 2.0.59

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.
Files changed (158) hide show
  1. package/assets/{provider-DIrGVGOU.css → provider-B7Qp92IB.css} +1 -1
  2. package/chunks/{AssignUser-DtER_ejJ.mjs → AssignUser-bMazhfbV.mjs} +3 -3
  3. package/chunks/{BasicInfo-BUMKRgQJ.mjs → BasicInfo-gyjQU2uO.mjs} +1 -1
  4. package/chunks/{ColumnInfo-Db_V0RdZ.mjs → ColumnInfo-CFYZ5hWe.mjs} +2 -2
  5. package/chunks/{Common-C50CJzOp.mjs → Common-DBSYg1d6.mjs} +1 -1
  6. package/chunks/{Day-Ca12so8o.mjs → Day-ChCPxAyN.mjs} +1 -1
  7. package/chunks/{DictTypeDetail-48OfCZLN.mjs → DictTypeDetail-ndBNKRnJ.mjs} +2 -2
  8. package/chunks/{GenInfo-yGFmqWPU.mjs → GenInfo-Cu9r0CWu.mjs} +1 -1
  9. package/chunks/{Hour-DsNBBlc4.mjs → Hour-DliOctKJ.mjs} +1 -1
  10. package/chunks/{Import-DuiyoZya.mjs → Import-Bzr5ifWR.mjs} +2 -2
  11. package/chunks/{Index-Bwa9roLv.mjs → Index-BTzAo7cI.mjs} +1 -1
  12. package/chunks/{Index-3OTZvoEG.mjs → Index-BlMeGYHt.mjs} +1 -1
  13. package/chunks/{Index-Z6v1V3J6.mjs → Index-DkdDlFEM.mjs} +1 -1
  14. package/chunks/{Index-oBN7hDRt.mjs → Index-MqUf5ZDu.mjs} +1 -1
  15. package/chunks/{IndexItem-DNEqAAjM.mjs → IndexItem-A_Ovo4M5.mjs} +1 -1
  16. package/chunks/{Log-CNy8LPBX.mjs → Log-BDGXwssd.mjs} +2 -2
  17. package/chunks/{LoginBg-R2KrvisY.mjs → LoginBg-DKefXcPd.mjs} +1 -1
  18. package/chunks/{Minute-DsOjDKJw.mjs → Minute-COzGc3ad.mjs} +1 -1
  19. package/chunks/{Month-tFXTN8o3.mjs → Month-Dx81Eaal.mjs} +1 -1
  20. package/chunks/{Preview-Bjjy5QvH.mjs → Preview-ChIMapuV.mjs} +1 -1
  21. package/chunks/{Second-BDd95Jav.mjs → Second-BWbEhs38.mjs} +1 -1
  22. package/chunks/{SelectDept-BSOcrk6_.mjs → SelectDept-DbVJHioK.mjs} +1 -1
  23. package/chunks/{SelectMenu-G_Toehs6.mjs → SelectMenu-C7L1sfLX.mjs} +1 -1
  24. package/chunks/{SelectUser-CIOnHIpt.mjs → SelectUser-C43-AOq3.mjs} +2 -2
  25. package/chunks/{UserInfo-CLKPzdpf.mjs → UserInfo-BhTJ0uFN.mjs} +1 -1
  26. package/chunks/{app-C2GscqOQ.mjs → app-Ch2PbR-W.mjs} +1 -1
  27. package/chunks/{custom-page-list-BEwJFbop.mjs → custom-page-list-C_Ls1OqQ.mjs} +4 -4
  28. package/chunks/{custom-page-table-97Xi_m_P.mjs → custom-page-table-DD3RNBZW.mjs} +2 -2
  29. package/chunks/job-DcKHJj9d.mjs +297 -0
  30. package/chunks/{overview-DXgHrRkH.mjs → overview-CtHQkWg4.mjs} +1 -1
  31. package/chunks/{page-list-9ShvLAqK.mjs → page-list-BwtbLllw.mjs} +3 -3
  32. package/chunks/{page-query-Bo30X-Np.mjs → page-query-21MkVjW-.mjs} +1 -1
  33. package/chunks/{page-table-HHguazH_.mjs → page-table-CNXoo8NE.mjs} +3 -3
  34. package/chunks/{pagination-BJfw8dU3.mjs → pagination-D9t3wPwB.mjs} +1 -1
  35. package/chunks/{provider-CH9EHEA4.mjs → provider-BPshoiNR.mjs} +373 -359
  36. package/chunks/{table-8T5HDisC.mjs → table-CZTzoYO4.mjs} +1 -1
  37. package/components/app/index.mjs +1 -1
  38. package/components/app/src/app.mjs +1 -1
  39. package/components/button/index.mjs +1 -1
  40. package/components/button/src/button.mjs +1 -1
  41. package/components/checkbox-group/index.mjs +1 -1
  42. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  43. package/components/cron/index.mjs +1 -1
  44. package/components/cron/src/Common.mjs +1 -1
  45. package/components/cron/src/Day.mjs +1 -1
  46. package/components/cron/src/Hour.mjs +1 -1
  47. package/components/cron/src/Minute.mjs +1 -1
  48. package/components/cron/src/Month.mjs +1 -1
  49. package/components/cron/src/Picker.mjs +6 -6
  50. package/components/cron/src/Second.mjs +1 -1
  51. package/components/cron/src/cron.mjs +1 -1
  52. package/components/custom-page-list/index.mjs +1 -1
  53. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  54. package/components/custom-page-table/index.mjs +1 -1
  55. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  56. package/components/form/index.mjs +1 -1
  57. package/components/form/src/form.mjs +1 -1
  58. package/components/index.mjs +9 -9
  59. package/components/overview/index.mjs +1 -1
  60. package/components/overview/src/DicLabel/Index.mjs +1 -1
  61. package/components/overview/src/IndexItem.mjs +1 -1
  62. package/components/overview/src/overview.mjs +1 -1
  63. package/components/page-list/index.mjs +1 -1
  64. package/components/page-list/src/page-list.d.ts +1 -3
  65. package/components/page-list/src/page-list.mjs +1 -1
  66. package/components/page-query/index.mjs +1 -1
  67. package/components/page-query/src/page-query.mjs +1 -1
  68. package/components/page-table/index.mjs +1 -1
  69. package/components/page-table/src/page-table.mjs +1 -1
  70. package/components/pagination/index.mjs +1 -1
  71. package/components/pagination/src/pagination.mjs +1 -1
  72. package/components/provider/index.mjs +1 -1
  73. package/components/provider/src/Provider.mjs +1 -1
  74. package/components/radio-group/index.mjs +1 -1
  75. package/components/radio-group/src/radio-group.mjs +1 -1
  76. package/components/select/index.mjs +1 -1
  77. package/components/select/src/select.mjs +1 -1
  78. package/components/select-sys-user/index.mjs +1 -1
  79. package/components/select-sys-user/src/Picker.mjs +2 -2
  80. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  81. package/components/table/index.mjs +1 -1
  82. package/components/table/src/table.mjs +1 -1
  83. package/components/tree/index.mjs +1 -1
  84. package/components/tree/src/tree.mjs +1 -1
  85. package/components/tree-select/index.mjs +1 -1
  86. package/components/tree-select/src/tree-select.mjs +1 -1
  87. package/components/upload/index.mjs +1 -1
  88. package/components/upload/src/upload.d.ts +1 -3
  89. package/components/upload/src/upload.mjs +1 -1
  90. package/hooks/useDicOptions/index.mjs +1 -1
  91. package/hooks/useSysUser/index.mjs +1 -1
  92. package/index.html +1 -1
  93. package/layout/Entry.mjs +1 -1
  94. package/layout/Home.mjs +1 -1
  95. package/layout/Home1.mjs +2 -2
  96. package/layout/Login.mjs +2 -2
  97. package/layout/NotFound.mjs +1 -1
  98. package/layout/modules/Aside.mjs +1 -1
  99. package/layout/modules/Breadcrumb.mjs +1 -1
  100. package/layout/modules/Header.mjs +1 -1
  101. package/layout/modules/LoginBg.mjs +1 -1
  102. package/layout/profile/Index.mjs +2 -2
  103. package/layout/profile/ResetPwd.mjs +1 -1
  104. package/layout/profile/UserInfo.mjs +1 -1
  105. package/main.mjs +2 -2
  106. package/package.json +1 -1
  107. package/plugins/autoImport/$alova/index.mjs +1 -1
  108. package/plugins/autoImport/$confirm/index.mjs +1 -1
  109. package/plugins/autoImport/$dialog/index.mjs +1 -1
  110. package/plugins/autoImport/$drawer/index.mjs +1 -1
  111. package/plugins/captcha/captcha.mjs +1 -1
  112. package/plugins/captcha/index.mjs +1 -1
  113. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  114. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  115. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  116. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  117. package/plugins/tableRenders/cell/index.mjs +3 -3
  118. package/router/index.mjs +1 -1
  119. package/store/modules/common.mjs +1 -1
  120. package/store/modules/login.mjs +1 -1
  121. package/store/modules/recentRouters.mjs +1 -1
  122. package/store/modules/router.mjs +1 -1
  123. package/store/modules/user.mjs +1 -1
  124. package/views/index.mjs +1 -0
  125. package/views/monitor/cache/index.mjs +2 -2
  126. package/views/monitor/cacheList/index.mjs +2 -2
  127. package/views/monitor/job/index.mjs +12 -0
  128. package/views/monitor/job/index.vue.d.ts +3 -0
  129. package/views/monitor/logininfor/index.mjs +2 -2
  130. package/views/monitor/online/index.mjs +2 -2
  131. package/views/monitor/operlog/index.mjs +2 -2
  132. package/views/monitor/server/index.mjs +2 -2
  133. package/views/system/config/index.mjs +2 -2
  134. package/views/system/dept/index.mjs +2 -2
  135. package/views/system/dept/utils.mjs +1 -1
  136. package/views/system/dict/index.mjs +3 -3
  137. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  138. package/views/system/menu/index.mjs +2 -2
  139. package/views/system/menu/utils.mjs +1 -1
  140. package/views/system/notice/index.mjs +2 -2
  141. package/views/system/post/index.mjs +2 -2
  142. package/views/system/role/index.mjs +5 -5
  143. package/views/system/role/modules/AssignUser.mjs +1 -1
  144. package/views/system/role/modules/SelectDept.mjs +1 -1
  145. package/views/system/role/modules/SelectMenu.mjs +1 -1
  146. package/views/system/role/modules/SelectUser.mjs +1 -1
  147. package/views/system/user/index.mjs +142 -116
  148. package/views/system/user/index.vue.d.ts +5 -1
  149. package/views/tool/gen/editTable/index.mjs +4 -4
  150. package/views/tool/gen/editTable/modules/BasicInfo.mjs +1 -1
  151. package/views/tool/gen/editTable/modules/ColumnInfo.mjs +1 -1
  152. package/views/tool/gen/editTable/modules/GenInfo.mjs +1 -1
  153. package/views/tool/gen/index.mjs +4 -4
  154. package/views/tool/gen/modules/Import.mjs +1 -1
  155. package/views/tool/gen/modules/Preview.mjs +1 -1
  156. package/views/tool/job/index.mjs +2 -297
  157. package/views/tool/job/modules/Log.mjs +1 -1
  158. package/README.md +0 -137
@@ -1,4 +1,4 @@
1
- import '../assets/css-Ctf0Amkf.css';import '../assets/provider-DIrGVGOU.css';/* empty css */
1
+ import '../assets/css-Ctf0Amkf.css';import '../assets/provider-B7Qp92IB.css';/* empty css */
2
2
  import { t as e } from "./icon-DcFIQ_yG.mjs";
3
3
  import "../components/icon/index.mjs";
4
4
  import { t } from "./popconfirm-Bc93K9mT.mjs";
@@ -15,45 +15,45 @@ import { sanitizeHtml as d, saveAs as f } from "../utils/tool.mjs";
15
15
  import p from "../hooks/useLabel/index.mjs";
16
16
  import m from "../plugins/autoImport/$msg/index.mjs";
17
17
  import h from "../layout/index.mjs";
18
- import { t as ee } from "./scrollbar-CoERe4kE.mjs";
18
+ import { t as g } from "./scrollbar-CoERe4kE.mjs";
19
19
  import "../components/scrollbar/index.mjs";
20
- import g from "../hooks/useMQ/index.mjs";
21
- import _ from "../hooks/usePrimaryColor/index.mjs";
22
- import v from "../store/modules/excludeKPname.mjs";
23
- import { t as te } from "./gradient-text-BAIl_tKw.mjs";
24
- import { t as y } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
20
+ import _ from "../hooks/useMQ/index.mjs";
21
+ import v from "../hooks/usePrimaryColor/index.mjs";
22
+ import y from "../store/modules/excludeKPname.mjs";
23
+ import { t as ee } from "./gradient-text-BAIl_tKw.mjs";
24
+ import { t as b } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
25
25
  import "../components/gradient-text/index.mjs";
26
- import { t as ne } from "./image-cancjWRE.mjs";
26
+ import { t as te } from "./image-cancjWRE.mjs";
27
27
  import "../components/image/index.mjs";
28
- import re from "../views/index.mjs";
29
- import { t as ie } from "./MenuNode-BVu_0JxZ.mjs";
30
- import ae from "../hooks/useContextMenu/index.mjs";
31
- import oe, { useClearList as se } from "../hooks/useList/index.mjs";
32
- import { t as ce } from "./color-picker-BVropPi4.mjs";
28
+ import ne from "../views/index.mjs";
29
+ import { t as re } from "./MenuNode-BVu_0JxZ.mjs";
30
+ import ie from "../hooks/useContextMenu/index.mjs";
31
+ import ae, { useClearList as oe } from "../hooks/useList/index.mjs";
32
+ import { t as se } from "./color-picker-BVropPi4.mjs";
33
33
  import "../components/color-picker/index.mjs";
34
- import { n as le, t as ue } from "./input-UQjpNb61.mjs";
34
+ import { n as ce, t as le } from "./input-UQjpNb61.mjs";
35
35
  import "../components/input/index.mjs";
36
- import { t as de } from "./date-picker-BaOpewZr.mjs";
36
+ import { t as ue } from "./date-picker-BaOpewZr.mjs";
37
37
  import "../components/date-picker/index.mjs";
38
- import { t as fe } from "./input-number-7Y1iWPPV.mjs";
38
+ import { t as de } from "./input-number-7Y1iWPPV.mjs";
39
39
  import "../components/input-number/index.mjs";
40
- import { t as pe } from "./range-input-PIfE-AxB.mjs";
40
+ import { t as fe } from "./range-input-PIfE-AxB.mjs";
41
41
  import "../components/range-input/index.mjs";
42
- import { n as me, t as he } from "./tag-input-BuAFWI1F.mjs";
42
+ import { n as pe, t as me } from "./tag-input-BuAFWI1F.mjs";
43
43
  import "../components/tag-input/index.mjs";
44
- import { t as ge } from "./slider-DSeKLd2m.mjs";
44
+ import { t as he } from "./slider-DSeKLd2m.mjs";
45
45
  import "../components/slider/index.mjs";
46
- import { t as _e } from "./switch-DNPmkfa_.mjs";
46
+ import { t as ge } from "./switch-DNPmkfa_.mjs";
47
47
  import "../components/switch/index.mjs";
48
- import { t as ve } from "./textarea-CYirMH7f.mjs";
48
+ import { t as _e } from "./textarea-CYirMH7f.mjs";
49
49
  import "../components/textarea/index.mjs";
50
- import { Fragment as ye, KeepAlive as be, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as xe, createSlots as Se, createTextVNode as w, createVNode as T, defineAsyncComponent as Ce, defineComponent as E, getCurrentInstance as D, guardReactiveProps as we, h as O, inject as Te, markRaw as Ee, mergeDefaults as k, mergeProps as A, nextTick as j, normalizeClass as De, normalizeProps as M, onMounted as Oe, openBlock as N, provide as ke, reactive as Ae, ref as P, renderList as F, renderSlot as je, resolveComponent as Me, resolveDynamicComponent as I, shallowRef as Ne, toDisplayString as L, unref as R, useAttrs as Pe, useSlots as Fe, useTemplateRef as Ie, watch as z, withCtx as B, withModifiers as Le } from "vue";
51
- import { Breadcrumb as Re, BreadcrumbItem as ze, Button as Be, CheckboxGroup as Ve, ConfigProvider as He, Content as Ue, DialogPlugin as We, Drawer as Ge, DrawerPlugin as Ke, Dropdown as qe, Form as Je, FormItem as Ye, HeadMenu as Xe, Header as Ze, InputAdornment as Qe, Layout as $e, Menu as et, MenuItem as tt, RadioGroup as nt, Select as rt, Tree as it, TreeSelect as at, Upload as ot } from "tdesign-vue-next";
52
- import { ElConfigProvider as st } from "element-plus";
53
- import { useElementSize as ct, useElementVisibility as lt, useFavicon as ut, useFocus as dt, useMutationObserver as ft, useResizeObserver as pt } from "@vueuse/core";
54
- import { cloneDeep as mt, isPlainObject as ht } from "lodash-es";
55
- import { defineStore as V } from "pinia";
56
- import { createRouter as gt, createWebHistory as _t, useRoute as H, useRouter as U } from "vue-router";
50
+ import { Fragment as ve, KeepAlive as ye, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as be, createSlots as xe, createTextVNode as T, createVNode as E, defineAsyncComponent as Se, defineComponent as D, getCurrentInstance as O, guardReactiveProps as Ce, h as k, inject as we, markRaw as Te, mergeDefaults as A, mergeProps as j, nextTick as M, normalizeClass as Ee, normalizeProps as N, onMounted as De, openBlock as P, provide as Oe, reactive as ke, ref as F, renderList as I, renderSlot as Ae, resolveComponent as je, resolveDynamicComponent as L, shallowRef as Me, toDisplayString as R, unref as z, useAttrs as Ne, useSlots as Pe, useTemplateRef as Fe, watch as B, withCtx as V, withModifiers as Ie } from "vue";
51
+ import { Breadcrumb as Le, BreadcrumbItem as Re, Button as ze, CheckboxGroup as Be, ConfigProvider as Ve, Content as He, DialogPlugin as Ue, Drawer as We, DrawerPlugin as Ge, Dropdown as Ke, Form as qe, FormItem as Je, HeadMenu as Ye, Header as Xe, InputAdornment as Ze, Layout as Qe, Menu as $e, MenuItem as et, RadioGroup as tt, Select as nt, Tree as rt, TreeSelect as it, Upload as at } from "tdesign-vue-next";
52
+ import { ElConfigProvider as ot } from "element-plus";
53
+ import { useElementSize as st, useElementVisibility as ct, useFavicon as lt, useFocus as ut, useMutationObserver as dt, useResizeObserver as ft } from "@vueuse/core";
54
+ import { cloneDeep as pt, isPlainObject as mt } from "lodash-es";
55
+ import { defineStore as H } from "pinia";
56
+ import { createRouter as ht, createWebHistory as gt, useRoute as U, useRouter as _t } from "vue-router";
57
57
  import vt from "virtual:dlzn-ui/app-params";
58
58
  import { createAlova as yt } from "alova";
59
59
  import bt from "alova/fetch";
@@ -249,7 +249,7 @@ var Ct = {
249
249
  }, Tt = {
250
250
  autoLabelWidth: !0,
251
251
  colon: !0,
252
- data: () => Ae({}),
252
+ data: () => ke({}),
253
253
  disabled: !1,
254
254
  labelAlign: "top",
255
255
  layout: "inline",
@@ -263,11 +263,11 @@ var Ct = {
263
263
  return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
264
264
  }(Et || {}), Dt = /* @__PURE__ */ new Set();
265
265
  function Ot(e, t, n) {
266
- let i = b(() => typeof t.body == "function" ? t.body(O) : t.body), a = P(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: o, stop: s } = lt(a, {
266
+ let i = x(() => typeof t.body == "function" ? t.body(k) : t.body), a = F(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: o, stop: s } = ct(a, {
267
267
  controls: !0,
268
268
  initialValue: !0
269
269
  }), c = {
270
- closeBtn: () => O($, {
270
+ closeBtn: () => k($, {
271
271
  icon: "mdi:close",
272
272
  shape: "circle",
273
273
  size: "small",
@@ -284,7 +284,7 @@ function Ot(e, t, n) {
284
284
  placement: "center",
285
285
  width: "fit-content",
286
286
  ...t ?? {},
287
- body: () => O(In, {}, { default: () => i.value })
287
+ body: () => k(Ln, {}, { default: () => i.value })
288
288
  }, l, u = {
289
289
  ...c,
290
290
  onClosed: () => {
@@ -293,7 +293,7 @@ function Ot(e, t, n) {
293
293
  };
294
294
  delete u.closeWhenCloseAll;
295
295
  let d = r();
296
- return l = e === void 0 ? We(u, n ?? d) : We[e](u, n ?? d), c.closeWhenCloseAll && Dt.add(l), l;
296
+ return l = e === void 0 ? Ue(u, n ?? d) : Ue[e](u, n ?? d), c.closeWhenCloseAll && Dt.add(l), l;
297
297
  }
298
298
  var kt = function(...e) {
299
299
  return Ot(void 0, ...e);
@@ -316,7 +316,7 @@ var W = (e, t) => {
316
316
  a.hide(), r();
317
317
  },
318
318
  theme: "warning"
319
- } : Ae({
319
+ } : ke({
320
320
  ...n,
321
321
  onClose: (t) => {
322
322
  let { trigger: n } = t;
@@ -354,18 +354,18 @@ function At() {
354
354
  useToken: !1
355
355
  } });
356
356
  }
357
- var G = V("common", () => {
358
- let e = P(!0), t = P(250), n = P({
357
+ var G = H("common", () => {
358
+ let e = F(!0), t = F(250), n = F({
359
359
  appName: "",
360
360
  color: "",
361
361
  logo: "",
362
362
  version: ""
363
363
  });
364
- z(() => n.value.appName, (e) => {
364
+ B(() => n.value.appName, (e) => {
365
365
  e && (document.title = e);
366
- }), z(() => n.value.color, (e) => {
367
- e && (_().value = e);
368
- }), ut(b(() => n.value.logo || "/favicon.ico"));
366
+ }), B(() => n.value.color, (e) => {
367
+ e && (v().value = e);
368
+ }), lt(x(() => n.value.logo || "/favicon.ico"));
369
369
  function r() {
370
370
  At().then((e) => {
371
371
  n.value = e;
@@ -378,7 +378,7 @@ var G = V("common", () => {
378
378
  }, console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
379
379
  });
380
380
  }
381
- let i = P(!0), a = null;
381
+ let i = F(!0), a = null;
382
382
  function o() {
383
383
  a !== null && (clearTimeout(a), a = null), i.value = !1, a = setTimeout(() => {
384
384
  i.value = !0;
@@ -392,13 +392,13 @@ var G = V("common", () => {
392
392
  isRequestSleep: i,
393
393
  requestActive: o
394
394
  };
395
- }, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K = V("recentRouters", () => {
396
- let e = P([]), t = H(), n = U();
395
+ }, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K = H("recentRouters", () => {
396
+ let e = F([]), t = U(), n = _t();
397
397
  function r() {
398
398
  e.value = e.value.filter((e) => n.hasRoute(e.name));
399
399
  }
400
400
  function i(t, n) {
401
- let r = mt(n), i = e.value.findIndex((e) => e.name === r.name || Y(e.name).meta.title === Y(r.name).meta.title);
401
+ let r = pt(n), i = e.value.findIndex((e) => e.name === r.name || Y(e.name).meta.title === Y(r.name).meta.title);
402
402
  if (delete r.query._fromLeftTree, i === -1) {
403
403
  let n = e.value.findIndex((e) => e.name === t);
404
404
  n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
@@ -495,7 +495,7 @@ function Lt(e) {
495
495
  }
496
496
  function Rt(e) {
497
497
  if (typeof e.component == "function" || typeof e.component == "string") {
498
- let t = e.component, n = typeof t == "string" ? re[Lt(t)] : t;
498
+ let t = e.component, n = typeof t == "string" ? ne[Lt(t)] : t;
499
499
  if (n === void 0) {
500
500
  let e = `路由组件${Lt(t)}不存在`;
501
501
  return console.error(e), h["./NotFound.vue"];
@@ -507,12 +507,16 @@ function Rt(e) {
507
507
  }
508
508
  return e.component;
509
509
  }
510
- var zt = V("router", () => {
511
- let e = P([]), t = U(), n = Q();
510
+ var zt = H("router", () => {
511
+ let e = F([]), t = _t(), n = Q();
512
512
  async function r() {
513
513
  let r = await jt();
514
- It.length = 0, e.value = Ee(Ft(Pt(Nt(r)))), n.isAdmin && Object.keys(re).forEach((e) => {
515
- if (!It.includes(e)) {
514
+ It.length = 0, e.value = Te(Ft(Pt(Nt(r)))), n.isAdmin && Object.keys(ne).forEach((e) => {
515
+ if (!It.includes(e) && ![
516
+ "./tool",
517
+ "./system",
518
+ "./monitor"
519
+ ].some((t) => e.startsWith(t))) {
516
520
  let t = `${e} 页面对应的路由不存在`;
517
521
  console.error(t);
518
522
  }
@@ -530,46 +534,46 @@ var zt = V("router", () => {
530
534
  getRouters: r,
531
535
  routersRaw: e
532
536
  };
533
- }), Bt = { class: "ml-2! flex items-center" }, Vt = /*#__PURE__*/ y(/* @__PURE__ */ E({
537
+ }), Bt = { class: "ml-2! flex items-center" }, Vt = /*#__PURE__*/ b(/* @__PURE__ */ D({
534
538
  __name: "Aside",
535
539
  setup(e) {
536
- let t = H(), n = G(), r = b(() => n.appInfo.appName), i = zt(), a = P([]);
537
- z(() => t.name, () => {
540
+ let t = U(), n = G(), r = x(() => n.appInfo.appName), i = zt(), a = F([]);
541
+ B(() => t.name, () => {
538
542
  t.matched.map((e) => e.name).forEach((e) => {
539
543
  a.value.includes(e) || a.value.push(e);
540
544
  });
541
545
  }, { immediate: !0 });
542
- let o = b(() => {
546
+ let o = x(() => {
543
547
  let { hidden: e, parentName: n } = t.meta;
544
548
  return n !== "" && e === !0 ? n : t.name;
545
- }), s = b(() => n.appInfo.logo || vt.asideTopLogoUrl);
546
- return (e, t) => (N(), x(R(et), {
549
+ }), s = x(() => n.appInfo.logo || vt.asideTopLogoUrl);
550
+ return (e, t) => (P(), S(z($e), {
547
551
  expanded: a.value,
548
552
  "onUpdate:expanded": t[0] ||= (e) => a.value = e,
549
553
  class: "w-full!",
550
554
  value: o.value
551
555
  }, {
552
- logo: B(() => [xe("div", Bt, [T(R(ne), {
556
+ logo: V(() => [be("div", Bt, [E(z(te), {
553
557
  class: "logo",
554
558
  src: s.value,
555
559
  style: {
556
560
  width: "28px",
557
561
  height: "28px"
558
562
  }
559
- }, null, 8, ["src"]), T(R(te), {
563
+ }, null, 8, ["src"]), E(z(ee), {
560
564
  "animation-speed": 8,
561
565
  "class-name": "ml-2 text-xl !font-bold",
562
566
  "show-border": !1,
563
567
  text: r.value
564
568
  }, null, 8, ["text"])])]),
565
- default: B(() => [T(ie, { model: R(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
569
+ default: V(() => [E(re, { model: z(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
566
570
  _: 1
567
571
  }, 8, ["expanded", "value"]));
568
572
  }
569
- }), [["__scopeId", "data-v-36275803"]]), Ht = /* @__PURE__ */ E({
573
+ }), [["__scopeId", "data-v-36275803"]]), Ht = /* @__PURE__ */ D({
570
574
  __name: "Breadcrumb",
571
575
  setup(e, { expose: t }) {
572
- let n = H(), r = U(), i = K(), a = b(() => {
576
+ let n = U(), r = _t(), i = K(), a = x(() => {
573
577
  let e = n.matched.map((e) => ({
574
578
  name: e.name,
575
579
  title: e.meta.title
@@ -582,20 +586,20 @@ var zt = V("router", () => {
582
586
  function o(e) {
583
587
  r.push(i.recentRouters.find((t) => t.name === e));
584
588
  }
585
- return t({ items: a }), (e, t) => a.value.length > 0 ? (N(), x(R(Re), {
589
+ return t({ items: a }), (e, t) => a.value.length > 0 ? (P(), S(z(Le), {
586
590
  key: 0,
587
591
  class: "absolute top-px z-10 py-1!"
588
592
  }, {
589
- default: B(() => [(N(!0), C(ye, null, F(a.value, (e) => (N(), x(R(ze), {
593
+ default: V(() => [(P(!0), w(ve, null, I(a.value, (e) => (P(), S(z(Re), {
590
594
  key: e.name,
591
595
  disabled: e.disabled,
592
596
  onClick: (t) => o(e.name)
593
597
  }, {
594
- default: B(() => [w(L(e.title), 1)]),
598
+ default: V(() => [T(R(e.title), 1)]),
595
599
  _: 2
596
600
  }, 1032, ["disabled", "onClick"]))), 128))]),
597
601
  _: 1
598
- })) : S("v-if", !0);
602
+ })) : C("v-if", !0);
599
603
  }
600
604
  }), Ut = /* @__PURE__ */ new Map();
601
605
  function Wt(e) {
@@ -630,7 +634,7 @@ function Jt(e) {
630
634
  }
631
635
  function Yt(e) {
632
636
  let t;
633
- return q.has(e) ? t = q.get(e) : (t = P(null), q.set(e, t), Kt(e).then((e) => {
637
+ return q.has(e) ? t = q.get(e) : (t = F(null), q.set(e, t), Kt(e).then((e) => {
634
638
  t.value = e;
635
639
  })), t;
636
640
  }
@@ -648,16 +652,16 @@ function Zt() {
648
652
  useSuccessMsg: !0
649
653
  } });
650
654
  }
651
- var Qt = V("login", () => {
652
- let e = P(""), t = H(), n = U();
655
+ var Qt = H("login", () => {
656
+ let e = F(""), t = U(), n = _t();
653
657
  async function r(t) {
654
658
  let n = await Xt(t);
655
659
  e.value = n.token, await Q().getUserInfo();
656
660
  }
657
661
  function i() {
658
- e.value = "", v().clear(), zt().clear(), Q().clear(), hn(), qt(), se();
662
+ e.value = "", y().clear(), zt().clear(), Q().clear(), gn(), qt(), oe();
659
663
  }
660
- z(() => t.name, () => {
664
+ B(() => t.name, () => {
661
665
  t.name === "Login" && i();
662
666
  });
663
667
  async function a() {
@@ -668,10 +672,10 @@ var Qt = V("login", () => {
668
672
  logout: a,
669
673
  token: e
670
674
  };
671
- }, { persist: { pick: ["token"] } }), $t = { class: "flex items-center justify-between" }, en = /*#__PURE__*/ y(/* @__PURE__ */ E({
675
+ }, { persist: { pick: ["token"] } }), $t = { class: "flex items-center justify-between" }, en = /*#__PURE__*/ b(/* @__PURE__ */ D({
672
676
  __name: "Header",
673
677
  setup(t) {
674
- let n = H(), r = U(), i = Q(), a = G(), o = K();
678
+ let n = U(), r = _t(), i = Q(), a = G(), o = K();
675
679
  function s(e) {
676
680
  r.push(o.recentRouters.find((t) => t.name === e));
677
681
  }
@@ -681,7 +685,7 @@ var Qt = V("login", () => {
681
685
  let l = async (e) => {
682
686
  let { value: t } = e;
683
687
  t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await W("确定要退出登录吗?"), Qt().logout());
684
- }, u = g.isMd;
688
+ }, u = _.isMd;
685
689
  function d(e, t) {
686
690
  let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
687
691
  o.recentRouters.length > 1 && i.push({
@@ -702,36 +706,36 @@ var Qt = V("login", () => {
702
706
  onClick: () => {
703
707
  l > s && r.push(u), o.recentRouters = o.recentRouters.slice(0, s + 1);
704
708
  }
705
- }), ae(e, i);
709
+ }), ie(e, i);
706
710
  }
707
- return (t, r) => (N(), x(R(Ze), { class: "border-b border-b-(--td-border-level-2-color)" }, {
708
- default: B(() => [T(R(Xe), {
711
+ return (t, r) => (P(), S(z(Xe), { class: "border-b border-b-(--td-border-level-2-color)" }, {
712
+ default: V(() => [E(z(Ye), {
709
713
  "expand-type": "popup",
710
- value: R(n).name,
714
+ value: z(n).name,
711
715
  onChange: s
712
716
  }, {
713
- logo: B(() => [T(R($), {
717
+ logo: V(() => [E(z($), {
714
718
  class: "ml-0! shrink-0",
715
719
  shape: "circle",
716
720
  size: "large",
717
721
  variant: "text",
718
- onClick: r[0] ||= (e) => R(a).drawerOpen = !R(a).drawerOpen
722
+ onClick: r[0] ||= (e) => z(a).drawerOpen = !z(a).drawerOpen
719
723
  }, {
720
- default: B(() => [T(R(e), { icon: "lineicons:menu-hamburger-1" })]),
724
+ default: V(() => [E(z(e), { icon: "lineicons:menu-hamburger-1" })]),
721
725
  _: 1
722
726
  })]),
723
- operations: B(() => [T(R(qe), {
727
+ operations: V(() => [E(z(Ke), {
724
728
  options: [{
725
729
  content: "个人中心",
726
730
  value: "profile",
727
- prefixIcon: () => O(R(e), {
731
+ prefixIcon: () => k(z(e), {
728
732
  icon: "material-symbols:account-circle",
729
733
  size: "16"
730
734
  })
731
735
  }, {
732
736
  content: "退出登录",
733
737
  value: "logout",
734
- prefixIcon: () => O(R(e), {
738
+ prefixIcon: () => k(z(e), {
735
739
  icon: "material-symbols:logout",
736
740
  size: "16"
737
741
  })
@@ -740,46 +744,46 @@ var Qt = V("login", () => {
740
744
  trigger: "click",
741
745
  onClick: l
742
746
  }, {
743
- default: B(() => [R(u) ? (N(), x(R($), {
747
+ default: V(() => [z(u) ? (P(), S(z($), {
744
748
  key: 0,
745
749
  shape: "square",
746
750
  variant: "text"
747
751
  }, {
748
- icon: B(() => [T(R(e), { icon: "material-symbols:account-circle" })]),
752
+ icon: V(() => [E(z(e), { icon: "material-symbols:account-circle" })]),
749
753
  _: 1
750
- })) : (N(), x(R($), {
754
+ })) : (P(), S(z($), {
751
755
  key: 1,
752
756
  variant: "text"
753
757
  }, {
754
- icon: B(() => [T(R(e), { icon: "material-symbols:account-circle" })]),
755
- suffix: B(() => [T(R(e), {
758
+ icon: V(() => [E(z(e), { icon: "material-symbols:account-circle" })]),
759
+ suffix: V(() => [E(z(e), {
756
760
  icon: "icon-park-outline:down",
757
761
  size: "18"
758
762
  })]),
759
- default: B(() => [w(" " + L(R(i).userInfo.userName) + " ", 1)]),
763
+ default: V(() => [T(" " + R(z(i).userInfo.userName) + " ", 1)]),
760
764
  _: 1
761
765
  }))]),
762
766
  _: 1
763
767
  }, 8, ["options"])]),
764
- default: B(() => [(N(!0), C(ye, null, F(R(o).recentRouters, (t) => (N(), x(R(tt), {
768
+ default: V(() => [(P(!0), w(ve, null, I(z(o).recentRouters, (t) => (P(), S(z(et), {
765
769
  key: t.name,
766
770
  value: t.name,
767
771
  onContextmenu: (e) => d(e, t.name)
768
772
  }, {
769
- default: B(() => [xe("div", $t, [xe("span", null, L(R(Y)(t.name).meta.title), 1), R(o).recentRouters.length > 1 ? (N(), x(R($), {
773
+ default: V(() => [be("div", $t, [be("span", null, R(z(Y)(t.name).meta.title), 1), z(o).recentRouters.length > 1 ? (P(), S(z($), {
770
774
  key: 0,
771
775
  class: "ml-1!",
772
776
  shape: "square",
773
777
  size: "small",
774
778
  variant: "text",
775
- onClick: Le((e) => c(t.name), ["stop"])
779
+ onClick: Ie((e) => c(t.name), ["stop"])
776
780
  }, {
777
- icon: B(() => [T(R(e), {
781
+ icon: V(() => [E(z(e), {
778
782
  icon: "material-symbols:close",
779
783
  style: { "font-size": "12px !important" }
780
784
  })]),
781
785
  _: 1
782
- }, 8, ["onClick"])) : S("v-if", !0)])]),
786
+ }, 8, ["onClick"])) : C("v-if", !0)])]),
783
787
  _: 2
784
788
  }, 1032, ["value", "onContextmenu"]))), 128))]),
785
789
  _: 1
@@ -787,40 +791,40 @@ var Qt = V("login", () => {
787
791
  _: 1
788
792
  }));
789
793
  }
790
- }), [["__scopeId", "data-v-516f6ba1"]]), tn = /*#__PURE__*/ y(/* @__PURE__ */ E({
794
+ }), [["__scopeId", "data-v-516f6ba1"]]), tn = /*#__PURE__*/ b(/* @__PURE__ */ D({
791
795
  __name: "Entry",
792
796
  setup(e) {
793
- let t = H(), n = G(), r = K(), i = v(), a = b(() => r.recentRouters.filter((e) => Y(e.name).meta.noCache === !1).map((e) => e.name)), o = Ie("breadcrumb"), s = b(() => (o.value?.items.length ?? 0) > 0), c = b(() => g.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), l = g.isMd, u = Ie("contentRef"), { height: d } = ct(u);
797
+ let t = U(), n = G(), r = K(), i = y(), a = x(() => r.recentRouters.filter((e) => Y(e.name).meta.noCache === !1).map((e) => e.name)), o = Fe("breadcrumb"), s = x(() => (o.value?.items.length ?? 0) > 0), c = x(() => _.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), l = _.isMd, u = Fe("contentRef"), { height: d } = st(u);
794
798
  function f({ size: e }) {
795
799
  n.drawerSize = e;
796
800
  }
797
- let p = b(() => t.meta.fullScreen);
801
+ let p = x(() => t.meta.fullScreen);
798
802
  return (e, t) => {
799
- let r = Me("RouterView");
800
- return p.value ? (N(), x(r, { key: 0 }, {
801
- default: B(({ Component: e }) => [(N(), x(I(e)))]),
803
+ let r = je("RouterView");
804
+ return p.value ? (P(), S(r, { key: 0 }, {
805
+ default: V(({ Component: e }) => [(P(), S(L(e)))]),
802
806
  _: 1
803
- })) : (N(), x(R($e), {
807
+ })) : (P(), S(z(Qe), {
804
808
  key: 1,
805
809
  class: "h-full"
806
810
  }, {
807
- default: B(() => [
808
- T(en),
809
- T(R(Ge), {
810
- visible: R(n).drawerOpen,
811
- "onUpdate:visible": t[0] ||= (e) => R(n).drawerOpen = e,
811
+ default: V(() => [
812
+ E(en),
813
+ E(z(We), {
814
+ visible: z(n).drawerOpen,
815
+ "onUpdate:visible": t[0] ||= (e) => z(n).drawerOpen = e,
812
816
  footer: !1,
813
- mode: R(l) ? "overlay" : "push",
817
+ mode: z(l) ? "overlay" : "push",
814
818
  placement: "left",
815
- "show-overlay": R(l),
816
- size: R(l) ? "200px" : `${R(n).drawerSize}px`,
819
+ "show-overlay": z(l),
820
+ size: z(l) ? "200px" : `${z(n).drawerSize}px`,
817
821
  "size-draggable": {
818
822
  max: 450,
819
823
  min: 180
820
824
  },
821
825
  onSizeDragEnd: f
822
826
  }, {
823
- default: B(() => [T(Vt, { class: "no_drawer_body_padding" })]),
827
+ default: V(() => [E(Vt, { class: "no_drawer_body_padding" })]),
824
828
  _: 1
825
829
  }, 8, [
826
830
  "visible",
@@ -828,27 +832,27 @@ var Qt = V("login", () => {
828
832
  "show-overlay",
829
833
  "size"
830
834
  ]),
831
- T(R(Ue), {
835
+ E(z(He), {
832
836
  ref_key: "contentRef",
833
837
  ref: u,
834
838
  class: "overflow-hidden"
835
839
  }, {
836
- default: B(() => [T(R(ee), {
840
+ default: V(() => [E(z(g), {
837
841
  always: "",
838
- "view-class": De(["relative flex flex-col", {
842
+ "view-class": Ee(["relative flex flex-col", {
839
843
  ...c.value,
840
844
  "pt-8": s.value
841
845
  }]),
842
846
  "view-style": {
843
847
  minWidth: "1200px",
844
- minHeight: `${Math.max(R(d), 438)}px`
848
+ minHeight: `${Math.max(z(d), 438)}px`
845
849
  }
846
850
  }, {
847
- default: B(() => [T(Ht, { ref: "breadcrumb" }, null, 512), T(r, null, {
848
- default: B(({ Component: e }) => [(N(), x(be, {
849
- exclude: R(i).excludeKPname,
851
+ default: V(() => [E(Ht, { ref: "breadcrumb" }, null, 512), E(r, null, {
852
+ default: V(({ Component: e }) => [(P(), S(ye, {
853
+ exclude: z(i).excludeKPname,
850
854
  include: a.value
851
- }, [(N(), x(I(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
855
+ }, [(P(), S(L(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
852
856
  _: 1
853
857
  })]),
854
858
  _: 1
@@ -862,7 +866,7 @@ var Qt = V("login", () => {
862
866
  }
863
867
  }), [["__scopeId", "data-v-de5cbc76"]]), nn = /* @__PURE__ */ new Set();
864
868
  function rn(e, t) {
865
- let n = b(() => typeof e.body == "function" ? e.body(O) : e.body), i = {
869
+ let n = x(() => typeof e.body == "function" ? e.body(k) : e.body), i = {
866
870
  attach: "#app",
867
871
  closeOnEscKeydown: !1,
868
872
  closeOnOverlayClick: !1,
@@ -872,14 +876,14 @@ function rn(e, t) {
872
876
  lazy: !0,
873
877
  sizeDraggable: !0,
874
878
  ...e ?? {},
875
- body: () => O(In, {}, { default: () => n.value })
879
+ body: () => k(Ln, {}, { default: () => n.value })
876
880
  }, a, o = {
877
881
  ...i,
878
882
  onClose: (e) => {
879
883
  i.onClose?.(e), nn.delete(a);
880
884
  }
881
885
  };
882
- return delete o.closeWhenCloseAll, a = Ke(o, t ?? r()), i.closeWhenCloseAll && nn.add(a), a;
886
+ return delete o.closeWhenCloseAll, a = Ge(o, t ?? r()), i.closeWhenCloseAll && nn.add(a), a;
883
887
  }
884
888
  var an = function(...e) {
885
889
  return rn(...e);
@@ -924,8 +928,8 @@ function on() {
924
928
  path: "/"
925
929
  };
926
930
  }
927
- var J = gt({
928
- history: _t(VITE_BASE_URL),
931
+ var J = ht({
932
+ history: gt(VITE_BASE_URL),
929
933
  routes: [
930
934
  on(),
931
935
  {
@@ -972,7 +976,7 @@ var J = gt({
972
976
  strict: !0
973
977
  });
974
978
  J.beforeEach(async (e) => {
975
- if (e.query._fromLeftTree === "true" && v().add(e.name), !["Login", "Register"].includes(e.name)) return Qt().token === "" ? { name: "Login" } : zt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), J.resolve({
979
+ if (e.query._fromLeftTree === "true" && y().add(e.name), !["Login", "Register"].includes(e.name)) return Qt().token === "" ? { name: "Login" } : zt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), J.resolve({
976
980
  path: e.path,
977
981
  query: e.query
978
982
  }));
@@ -992,7 +996,7 @@ J.beforeEach(async (e) => {
992
996
  query: e.query
993
997
  });
994
998
  }
995
- v().remove(i);
999
+ y().remove(i);
996
1000
  });
997
1001
  function Y(e) {
998
1002
  if (J.hasRoute(e)) return J.getRoutes().find((t) => t.name === e);
@@ -1009,6 +1013,14 @@ function ln(e, t = !0) {
1009
1013
  function un(e, t = !0) {
1010
1014
  return new URLSearchParams(ln(e, t)).toString();
1011
1015
  }
1016
+ function dn(e) {
1017
+ let { data: t, response: r, useDownload: i } = e;
1018
+ if (typeof i == "string") f(t, i);
1019
+ else {
1020
+ let e = new URLSearchParams((r.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
1021
+ e ? f(t, e) : n.error("返回的 response header 没有文件名");
1022
+ }
1023
+ }
1012
1024
  var X = yt({
1013
1025
  baseURL: VITE_BASE_URL,
1014
1026
  beforeRequest(e) {
@@ -1028,13 +1040,13 @@ var X = yt({
1028
1040
  useResponseText: !1,
1029
1041
  useSuccessMsg: !1,
1030
1042
  useSysFailMsg: !0,
1031
- useToken: !0,
1043
+ useToken: !e.url.startsWith("http"),
1032
1044
  ...e.meta ?? {}
1033
1045
  };
1034
1046
  let r = Qt(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = e.meta;
1035
1047
  l || G().requestActive(), f && (r.token ? e.config.headers.Authorization = r.token : e.abort()), u !== !1 && i.show(u === !0 ? void 0 : u);
1036
1048
  let p = e.config.params;
1037
- if (typeof p != "string" && (e.config.params = un(p, o)), a && ht(e.data)) {
1049
+ if (typeof p != "string" && (e.config.params = un(p, o)), a && mt(e.data)) {
1038
1050
  let t = {}, n = e.data;
1039
1051
  Object.keys(n).forEach((e) => {
1040
1052
  c(n[e]) || (t[e] = n[e]);
@@ -1065,35 +1077,32 @@ var X = yt({
1065
1077
  },
1066
1078
  onSuccess: async (e, t) => {
1067
1079
  if (typeof e == "string") return e;
1068
- let { useDataResult: r, useDownload: i, useFailMsg: a, useResponseBlob: o, useResponseText: s, useSuccessMsg: c, useSysFailMsg: l, useToken: u } = t.meta, { headers: p, ok: h, status: ee } = e;
1069
- if (h === !1) {
1080
+ let { useDataResult: r, useDownload: i, useFailMsg: a, useResponseBlob: o, useResponseText: s, useSuccessMsg: c, useSysFailMsg: l, useToken: u } = t.meta, { headers: f, ok: p, status: h } = e;
1081
+ if (p === !1) {
1070
1082
  if (l) {
1071
1083
  let e = {
1072
1084
  403: "当前操作没有权限",
1073
1085
  404: "访问资源不存在",
1074
1086
  500: "服务不可用,请稍后再试或联系管理员!"
1075
- }[ee] ?? cn;
1087
+ }[h] ?? cn;
1076
1088
  m.error(e);
1077
1089
  }
1078
1090
  return Promise.reject(e);
1079
1091
  }
1080
- if (o && !p.get("content-type")?.includes("application/json")) {
1092
+ if (o && !f.get("content-type")?.includes("application/json")) {
1081
1093
  let t;
1082
1094
  try {
1083
1095
  t = await e.blob();
1084
1096
  } catch (e) {
1085
1097
  return n.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
1086
1098
  }
1087
- if (i !== !1) {
1088
- if (typeof i == "string") f(t, i);
1089
- else {
1090
- let r = new URLSearchParams((e.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
1091
- r ? f(t, r) : n.error("返回的 response header 没有文件名");
1092
- }
1093
- }
1094
- return t;
1099
+ return i !== !1 && dn({
1100
+ data: t,
1101
+ response: e,
1102
+ useDownload: i
1103
+ }), t;
1095
1104
  }
1096
- if (s && !p.get("content-type")?.includes("application/json")) {
1105
+ if (s && !f.get("content-type")?.includes("application/json")) {
1097
1106
  let t;
1098
1107
  try {
1099
1108
  t = await e.text();
@@ -1109,25 +1118,29 @@ var X = yt({
1109
1118
  return n.error("返回的 response 不能被json() 方法所解析"), Promise.reject(e);
1110
1119
  }
1111
1120
  if (g?.code !== void 0) {
1112
- let { code: e, data: t, msg: n } = g;
1113
- if (e >= 400) {
1114
- if (e === 600) {
1115
- if (d(n).then((e) => {
1121
+ let { code: t, data: s, msg: l } = g;
1122
+ if (t >= 400) {
1123
+ if (t === 600) {
1124
+ if (d(l).then((e) => {
1116
1125
  W({
1117
- body: () => O("div", { innerHTML: e }),
1126
+ body: () => k("div", { innerHTML: e }),
1118
1127
  cancelBtn: null
1119
1128
  });
1120
1129
  }), !o) return g;
1121
- } else e === 401 && u ? J.push({ name: "Login" }) : a !== !1 && m.error(a === !0 ? n : a);
1130
+ } else t === 401 && u ? J.push({ name: "Login" }) : a !== !1 && m.error(a === !0 ? l : a);
1122
1131
  return Promise.reject(g);
1123
1132
  }
1124
1133
  {
1125
- let i = vt.alovaResCodeSuccessCb?.({
1126
- code: e,
1127
- data: t,
1128
- msg: n
1134
+ let a = vt.alovaResCodeSuccessCb?.({
1135
+ code: t,
1136
+ data: s,
1137
+ msg: l
1129
1138
  });
1130
- return i === void 0 ? (c && m(n), r ? t === void 0 ? g : t : g) : i;
1139
+ return a === void 0 ? (i !== !1 && (typeof i == "string" ? dn({
1140
+ data: s,
1141
+ response: e,
1142
+ useDownload: i
1143
+ }) : n.error("下载失败,返回的不是一个有效的地址")), c && m(l), r ? s === void 0 ? g : s : g) : a;
1131
1144
  }
1132
1145
  }
1133
1146
  return g;
@@ -1136,8 +1149,8 @@ var X = yt({
1136
1149
  shareRequest: !1,
1137
1150
  statesHook: xt,
1138
1151
  timeout: sn
1139
- }), dn = /* @__PURE__ */ new Map();
1140
- function fn(e) {
1152
+ }), fn = /* @__PURE__ */ new Map();
1153
+ function pn(e) {
1141
1154
  let t = X.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
1142
1155
  cssClass: e.cssClass,
1143
1156
  dictType: e.dictType,
@@ -1146,42 +1159,42 @@ function fn(e) {
1146
1159
  value: e.dictValue
1147
1160
  })));
1148
1161
  e.forEach((e) => {
1149
- dn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
1162
+ fn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
1150
1163
  });
1151
1164
  }
1152
- var pn = [];
1153
- function mn(e) {
1154
- return pn.includes(e) || pn.push(e), new Promise((t) => {
1165
+ var mn = [];
1166
+ function hn(e) {
1167
+ return mn.includes(e) || mn.push(e), new Promise((t) => {
1155
1168
  setTimeout(() => {
1156
- let n = pn.filter((e) => !dn.has(e));
1157
- n.length > 0 && fn(n), pn.length = 0, dn.get(e).then((e) => {
1169
+ let n = mn.filter((e) => !fn.has(e));
1170
+ n.length > 0 && pn(n), mn.length = 0, fn.get(e).then((e) => {
1158
1171
  t(e);
1159
1172
  });
1160
1173
  });
1161
1174
  });
1162
1175
  }
1163
1176
  var Z = /* @__PURE__ */ new Map();
1164
- function hn() {
1165
- pn.length = 0, dn.clear(), Z.clear();
1177
+ function gn() {
1178
+ mn.length = 0, fn.clear(), Z.clear();
1166
1179
  }
1167
- function gn(e, t) {
1168
- let n = _n(e);
1180
+ function _n(e, t) {
1181
+ let n = vn(e);
1169
1182
  return t === void 0 ? p(n) : p(n, t);
1170
1183
  }
1171
- function _n(e, t) {
1184
+ function vn(e, t) {
1172
1185
  let n;
1173
- return Z.has(e) ? n = Z.get(e) : (n = P([]), Z.set(e, n), mn(e).then((e) => {
1186
+ return Z.has(e) ? n = Z.get(e) : (n = F([]), Z.set(e, n), hn(e).then((e) => {
1174
1187
  n.value = e;
1175
- })), b(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
1188
+ })), x(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
1176
1189
  }
1177
- function vn(e) {
1178
- dn.delete(e), Z.has(e) && mn(e).then((t) => {
1190
+ function yn(e) {
1191
+ fn.delete(e), Z.has(e) && hn(e).then((t) => {
1179
1192
  Z.get(e).value = t;
1180
1193
  });
1181
1194
  }
1182
1195
  //#endregion
1183
1196
  //#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
1184
- var yn = /* @__PURE__ */ E({
1197
+ var bn = /* @__PURE__ */ D({
1185
1198
  inheritAttrs: !1,
1186
1199
  name: "TCheckboxGroup",
1187
1200
  __name: "checkbox-group",
@@ -1208,17 +1221,17 @@ var yn = /* @__PURE__ */ E({
1208
1221
  },
1209
1222
  emits: ["update:modelValue"],
1210
1223
  setup(e, { emit: t }) {
1211
- let r = e, i = t, a = D();
1224
+ let r = e, i = t, a = O();
1212
1225
  function o(e) {
1213
1226
  a.exposed = e ?? {};
1214
1227
  }
1215
- let s = b(() => {
1228
+ let s = x(() => {
1216
1229
  let e;
1217
- return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e = _n(r.dicCode).value) : e = typeof r.options == "string" ? oe(r.options).value : r.options, r.showCheckAll && (e === void 0 ? n.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
1230
+ return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e = vn(r.dicCode).value) : e = typeof r.options == "string" ? ae(r.options).value : r.options, r.showCheckAll && (e === void 0 ? n.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
1218
1231
  checkAll: !0,
1219
1232
  label: "全选"
1220
1233
  })), e;
1221
- }), u = b(() => {
1234
+ }), u = x(() => {
1222
1235
  if (!Array.isArray(r.modelValue)) n.error("TCheckboxGroup: modelValue must be an array");
1223
1236
  else if (s.value !== void 0) {
1224
1237
  let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
@@ -1226,13 +1239,13 @@ var yn = /* @__PURE__ */ E({
1226
1239
  if (t) return r.modelValue.map((e) => l(e) ? Number(e) : e);
1227
1240
  }
1228
1241
  return r.modelValue;
1229
- }), d = b(() => {
1242
+ }), d = x(() => {
1230
1243
  let e = { ...r };
1231
1244
  return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
1232
1245
  e[t] === void 0 && delete e[t];
1233
1246
  }), e;
1234
1247
  });
1235
- return (e, t) => (N(), x(I(O(R(Ve), A(e.$attrs, {
1248
+ return (e, t) => (P(), S(L(k(z(Be), j(e.$attrs, {
1236
1249
  ...d.value,
1237
1250
  options: s.value,
1238
1251
  modelValue: u.value,
@@ -1242,10 +1255,10 @@ var yn = /* @__PURE__ */ E({
1242
1255
  ref: o
1243
1256
  }), e.$slots))));
1244
1257
  }
1245
- }), bn = /* @__PURE__ */ E({
1258
+ }), xn = /* @__PURE__ */ D({
1246
1259
  inheritAttrs: !1,
1247
1260
  __name: "cron",
1248
- props: /*@__PURE__*/ k({
1261
+ props: /*@__PURE__*/ A({
1249
1262
  modelValue: {},
1250
1263
  adornment: {},
1251
1264
  align: {},
@@ -1290,19 +1303,19 @@ var yn = /* @__PURE__ */ E({
1290
1303
  onPaste: { type: Function },
1291
1304
  onValidate: { type: Function },
1292
1305
  onWheel: { type: Function }
1293
- }, le),
1306
+ }, ce),
1294
1307
  emits: ["update:modelValue"],
1295
1308
  setup(e, { emit: t }) {
1296
- let n = e, r = t, i = Te("isFormDisabled", b(() => !1)), a = Te("isFormReadonly", b(() => !1)), o = b(() => {
1309
+ let n = e, r = t, i = we("isFormDisabled", x(() => !1)), a = we("isFormReadonly", x(() => !1)), o = x(() => {
1297
1310
  let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
1298
1311
  return {
1299
1312
  ...n,
1300
- adornment: { append: () => O($, {
1313
+ adornment: { append: () => k($, {
1301
1314
  default: "cron",
1302
1315
  onClick: () => {
1303
- let i = P(null);
1316
+ let i = F(null);
1304
1317
  W({
1305
- body: () => O(Ce(() => import("../components/cron/src/Picker.mjs")), {
1318
+ body: () => k(Se(() => import("../components/cron/src/Picker.mjs")), {
1306
1319
  disabled: e,
1307
1320
  modelValue: n.modelValue,
1308
1321
  onVnodeMounted: (e) => {
@@ -1324,20 +1337,20 @@ var yn = /* @__PURE__ */ E({
1324
1337
  variant: "text"
1325
1338
  }) }
1326
1339
  };
1327
- }), s = Pe(), c = D();
1340
+ }), s = Ne(), c = O();
1328
1341
  function l(e) {
1329
1342
  c.exposed = e ?? {};
1330
1343
  }
1331
- let u = b(() => A(s, {
1344
+ let u = x(() => j(s, {
1332
1345
  ...o.value,
1333
1346
  onChange: (...e) => {
1334
1347
  r("update:modelValue", e[0]), n.onChange?.(...e);
1335
1348
  },
1336
1349
  ref: l
1337
1350
  }));
1338
- return (e, t) => (N(), x(R(ue), M(we(u.value)), null, 16));
1351
+ return (e, t) => (P(), S(z(le), N(Ce(u.value)), null, 16));
1339
1352
  }
1340
- }), xn = /* @__PURE__ */ E({
1353
+ }), Sn = /* @__PURE__ */ D({
1341
1354
  inheritAttrs: !1,
1342
1355
  name: "TRadioGroup",
1343
1356
  __name: "radio-group",
@@ -1367,16 +1380,16 @@ var yn = /* @__PURE__ */ E({
1367
1380
  },
1368
1381
  emits: ["update:modelValue"],
1369
1382
  setup(e, { emit: t }) {
1370
- let r = e, i = t, a = D();
1383
+ let r = e, i = t, a = O();
1371
1384
  function o(e) {
1372
1385
  a.exposed = e ?? {};
1373
1386
  }
1374
- let s = b(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"), _n(r.dicCode).value) : typeof r.options == "string" ? oe(r.options).value : r.options), d = b(() => {
1387
+ let s = x(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"), vn(r.dicCode).value) : typeof r.options == "string" ? ae(r.options).value : r.options), d = x(() => {
1375
1388
  let e = { ...r };
1376
1389
  return delete e.dicCode, Object.keys(e).forEach((t) => {
1377
1390
  e[t] === void 0 && delete e[t];
1378
1391
  }), e;
1379
- }), f = b(() => {
1392
+ }), f = x(() => {
1380
1393
  if (s.value !== void 0 && !c(r.modelValue)) {
1381
1394
  let e = s.value.every((e) => typeof (e.value ?? e) == "string"), t = s.value.every((e) => typeof (e.value ?? e) == "number");
1382
1395
  if (e) return u(r.modelValue);
@@ -1384,18 +1397,18 @@ var yn = /* @__PURE__ */ E({
1384
1397
  }
1385
1398
  return r.modelValue;
1386
1399
  });
1387
- return (e, t) => (N(), x(I(O(R(nt), A(e.$attrs, {
1400
+ return (e, t) => (P(), S(L(k(z(tt), j(e.$attrs, {
1388
1401
  ...d.value,
1389
1402
  options: s.value,
1390
1403
  modelValue: f.value,
1391
1404
  onChange: (...e) => {
1392
- let [t, ...n] = e, a = R(c)(t) ? "" : t;
1405
+ let [t, ...n] = e, a = z(c)(t) ? "" : t;
1393
1406
  i("update:modelValue", a), r.onChange?.(a, ...n);
1394
1407
  },
1395
1408
  ref: o
1396
1409
  }), e.$slots))));
1397
1410
  }
1398
- }), Sn = {
1411
+ }), Cn = {
1399
1412
  clearable: !0,
1400
1413
  disabled: void 0,
1401
1414
  filterable: void 0,
@@ -1416,11 +1429,11 @@ var yn = /* @__PURE__ */ E({
1416
1429
  }),
1417
1430
  showArrow: !0,
1418
1431
  showCheckAll: !1
1419
- }, Cn = /* @__PURE__ */ E({
1432
+ }, wn = /* @__PURE__ */ D({
1420
1433
  inheritAttrs: !1,
1421
1434
  name: "TSelect",
1422
1435
  __name: "select",
1423
- props: /*@__PURE__*/ k({
1436
+ props: /*@__PURE__*/ A({
1424
1437
  adornment: {},
1425
1438
  dicCode: {},
1426
1439
  modelValue: {},
@@ -1480,19 +1493,19 @@ var yn = /* @__PURE__ */ E({
1480
1493
  onPopupVisibleChange: { type: Function },
1481
1494
  onRemove: { type: Function },
1482
1495
  onSearch: { type: Function }
1483
- }, Sn),
1496
+ }, Cn),
1484
1497
  setup(e) {
1485
- let t = e, r = D();
1498
+ let t = e, r = O();
1486
1499
  function i(e) {
1487
1500
  r.exposed = e ?? {};
1488
1501
  }
1489
- let a = b(() => {
1502
+ let a = x(() => {
1490
1503
  let e;
1491
- return t.dicCode === void 0 ? e = typeof t.options == "string" ? oe(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e = _n(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? n.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
1504
+ return t.dicCode === void 0 ? e = typeof t.options == "string" ? ae(t.options).value : t.options : (t.options && n.error("TSelect: dicCode and options cannot be used together"), e = vn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? n.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
1492
1505
  checkAll: !0,
1493
1506
  [t.keys?.label ?? "label"]: "全选"
1494
1507
  }) : n.error("TSelect: showCheckAll is supported only for multiple select")), e;
1495
- }), o = b(() => {
1508
+ }), o = x(() => {
1496
1509
  if (a.value !== void 0) {
1497
1510
  let e = a.value.flatMap((e) => e.children ?? [e]), n = t.keys?.value ?? "value", r = e.every((e) => typeof e[n] == "string"), i = e.every((e) => typeof e[n] == "number");
1498
1511
  if (t.multiple) {
@@ -1504,7 +1517,7 @@ var yn = /* @__PURE__ */ E({
1504
1517
  else if (i) return l(t.modelValue) ? Number(t.modelValue) : t.modelValue;
1505
1518
  }
1506
1519
  return t.modelValue;
1507
- }), s = b(() => {
1520
+ }), s = x(() => {
1508
1521
  let e = {
1509
1522
  ...t,
1510
1523
  filterable: t.filterable ?? a.value.length > 8
@@ -1512,15 +1525,15 @@ var yn = /* @__PURE__ */ E({
1512
1525
  return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
1513
1526
  e[t] === void 0 && delete e[t];
1514
1527
  }), e;
1515
- }), d = P(0);
1516
- Oe(() => {
1517
- pt(r.exposed.$el, () => {
1528
+ }), d = F(0);
1529
+ De(() => {
1530
+ ft(r.exposed.$el, () => {
1518
1531
  d.value = r.exposed.$el.offsetWidth;
1519
1532
  }, { box: "border-box" });
1520
1533
  });
1521
- let f = b(() => {
1534
+ let f = x(() => {
1522
1535
  if (s.value.scroll?.type === "virtual" && a.value.length > (s.value.scroll?.threshold ?? 150)) return "300px";
1523
- }), p = b(() => ({
1536
+ }), p = x(() => ({
1524
1537
  ...s.value,
1525
1538
  modelValue: o.value,
1526
1539
  onChange: (...e) => {
@@ -1538,16 +1551,16 @@ var yn = /* @__PURE__ */ E({
1538
1551
  })
1539
1552
  },
1540
1553
  ref: i
1541
- })), m = Qe;
1542
- return (t, n) => e.adornment ? (N(), x(I(O(R(m), t.$attrs, {
1554
+ })), m = Ze;
1555
+ return (t, n) => e.adornment ? (P(), S(L(k(z(m), t.$attrs, {
1543
1556
  ...e.adornment,
1544
- default: () => O(R(rt), p.value, t.$slots)
1545
- })), { key: 0 })) : (N(), x(I(O(R(rt), A(t.$attrs, p.value), t.$slots)), { key: 1 }));
1557
+ default: () => k(z(nt), p.value, t.$slots)
1558
+ })), { key: 0 })) : (P(), S(L(k(z(nt), j(t.$attrs, p.value), t.$slots)), { key: 1 }));
1546
1559
  }
1547
- }), wn = /* @__PURE__ */ E({
1560
+ }), Tn = /* @__PURE__ */ D({
1548
1561
  inheritAttrs: !1,
1549
1562
  __name: "select-sys-user",
1550
- props: /*@__PURE__*/ k({
1563
+ props: /*@__PURE__*/ A({
1551
1564
  modelValue: {},
1552
1565
  adornment: {},
1553
1566
  autoWidth: { type: Boolean },
@@ -1586,19 +1599,19 @@ var yn = /* @__PURE__ */ E({
1586
1599
  onMouseleave: { type: Function },
1587
1600
  onPaste: { type: Function },
1588
1601
  onRemove: { type: Function }
1589
- }, me),
1602
+ }, pe),
1590
1603
  emits: ["update:modelValue"],
1591
1604
  setup(e, { emit: t }) {
1592
- let n = e, r = t, i = Te("isFormDisabled", b(() => !1)), a = Te("isFormReadonly", b(() => !1)), o = b(() => {
1605
+ let n = e, r = t, i = we("isFormDisabled", x(() => !1)), a = we("isFormReadonly", x(() => !1)), o = x(() => {
1593
1606
  let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
1594
1607
  return {
1595
1608
  ...n,
1596
- adornment: e || t ? void 0 : { append: () => O($, {
1609
+ adornment: e || t ? void 0 : { append: () => k($, {
1597
1610
  default: "选择用户",
1598
1611
  onClick: () => {
1599
- let e = P(null);
1612
+ let e = F(null);
1600
1613
  W({
1601
- body: () => O(Ce(() => import("../components/select-sys-user/src/Picker.mjs")), {
1614
+ body: () => k(Se(() => import("../components/select-sys-user/src/Picker.mjs")), {
1602
1615
  max: n.max,
1603
1616
  modelValue: n.modelValue,
1604
1617
  onVnodeMounted: (t) => {
@@ -1619,11 +1632,11 @@ var yn = /* @__PURE__ */ E({
1619
1632
  variant: "text"
1620
1633
  }) }
1621
1634
  };
1622
- }), s = Pe(), c = D();
1635
+ }), s = Ne(), c = O();
1623
1636
  function l(e) {
1624
1637
  c.exposed = e ?? {};
1625
1638
  }
1626
- let u = b(() => A(s, {
1639
+ let u = x(() => j(s, {
1627
1640
  ...o.value,
1628
1641
  inputProps: {
1629
1642
  readonly: !0,
@@ -1635,19 +1648,19 @@ var yn = /* @__PURE__ */ E({
1635
1648
  placeholder: "请选择用户",
1636
1649
  ref: l
1637
1650
  }));
1638
- return (e, t) => (N(), x(R(he), M(we(u.value)), {
1639
- tag: B(({ value: e }) => [w(L(R(Yt)(e).value?.userName), 1)]),
1651
+ return (e, t) => (P(), S(z(me), N(Ce(u.value)), {
1652
+ tag: V(({ value: e }) => [T(R(z(Yt)(e).value?.userName), 1)]),
1640
1653
  _: 1
1641
1654
  }, 16));
1642
1655
  }
1643
- }), Tn = {
1656
+ }), En = {
1644
1657
  checkable: !1,
1645
1658
  disabled: void 0,
1646
1659
  expandOnClickNode: void 0,
1647
1660
  hover: !0,
1648
1661
  icon: () => (e, t) => {
1649
1662
  let n = "";
1650
- return t.getChildren && t.getChildren(!1) && (t.expanded ? (n = "cuida:caret-down-outline", t.loading && (n = "line-md:loading-twotone-loop")) : n = "cuida:caret-right-outline"), n === "" ? null : O($, {
1663
+ return t.getChildren && t.getChildren(!1) && (t.expanded ? (n = "cuida:caret-down-outline", t.loading && (n = "line-md:loading-twotone-loop")) : n = "cuida:caret-right-outline"), n === "" ? null : k($, {
1651
1664
  icon: n,
1652
1665
  shape: "circle",
1653
1666
  size: "small",
@@ -1659,11 +1672,11 @@ var yn = /* @__PURE__ */ E({
1659
1672
  line: !0,
1660
1673
  transition: !0,
1661
1674
  valueMode: "all"
1662
- }, En = /* @__PURE__ */ E({
1675
+ }, Dn = /* @__PURE__ */ D({
1663
1676
  inheritAttrs: !1,
1664
1677
  name: "TTree",
1665
1678
  __name: "tree",
1666
- props: /*@__PURE__*/ k({
1679
+ props: /*@__PURE__*/ A({
1667
1680
  icon: { type: [Function, Boolean] },
1668
1681
  "onUpdate:actived": { type: Function },
1669
1682
  "onUpdate:expanded": { type: Function },
@@ -1716,23 +1729,23 @@ var yn = /* @__PURE__ */ E({
1716
1729
  onLoad: { type: Function },
1717
1730
  onScroll: { type: Function },
1718
1731
  treeStore: {}
1719
- }, Tn),
1732
+ }, En),
1720
1733
  setup(e, { expose: t }) {
1721
- let n = e, r = Fe(), i = b(() => {
1734
+ let n = e, r = Pe(), i = x(() => {
1722
1735
  let e = { ...n };
1723
1736
  return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
1724
1737
  e[t] === void 0 && delete e[t];
1725
1738
  }), e;
1726
- }), a = D();
1739
+ }), a = O();
1727
1740
  function o(e) {
1728
1741
  a.exposed = e ?? {};
1729
1742
  }
1730
- return t({}), (e, t) => (N(), x(I(O(R(it), A(e.$attrs, {
1743
+ return t({}), (e, t) => (P(), S(L(k(z(rt), j(e.$attrs, {
1731
1744
  ...i.value,
1732
1745
  ref: o
1733
1746
  }), e.$slots))));
1734
1747
  }
1735
- }), Dn = /* @__PURE__ */ E({
1748
+ }), On = /* @__PURE__ */ D({
1736
1749
  inheritAttrs: !1,
1737
1750
  name: "TTreeSelect",
1738
1751
  __name: "tree-select",
@@ -1799,30 +1812,30 @@ var yn = /* @__PURE__ */ E({
1799
1812
  onSearch: {}
1800
1813
  },
1801
1814
  setup(e) {
1802
- let t = e, n = b(() => typeof t.data == "string" ? oe(t.data).value : t.data), r = b(() => {
1815
+ let t = e, n = x(() => typeof t.data == "string" ? ae(t.data).value : t.data), r = x(() => {
1803
1816
  let e = { ...t };
1804
1817
  return e.selectInputProps = {
1805
1818
  minCollapsedNum: 2,
1806
1819
  ...e.selectInputProps ?? {}
1807
1820
  }, e.treeProps = {
1808
- ...Tn,
1821
+ ...En,
1809
1822
  checkable: !!t.multiple,
1810
1823
  expandOnClickNode: !!t.multiple,
1811
- icon: Tn.icon(),
1824
+ icon: En.icon(),
1812
1825
  ...e.treeProps ?? {}
1813
1826
  }, Object.keys(e).forEach((t) => {
1814
1827
  e[t] === void 0 && delete e[t];
1815
1828
  }), e;
1816
- }), i = D();
1829
+ }), i = O();
1817
1830
  function a(e) {
1818
1831
  i.exposed = e ?? {};
1819
1832
  }
1820
- let o = P(0);
1821
- return Oe(() => {
1822
- pt(i.exposed.$el, () => {
1833
+ let o = F(0);
1834
+ return De(() => {
1835
+ ft(i.exposed.$el, () => {
1823
1836
  o.value = i.exposed.$el.offsetWidth;
1824
1837
  }, { box: "border-box" });
1825
- }), (e, t) => (N(), x(I(O(R(at), A(e.$attrs, {
1838
+ }), (e, t) => (P(), S(L(k(z(it), j(e.$attrs, {
1826
1839
  ...r.value,
1827
1840
  data: n.value,
1828
1841
  ref: a,
@@ -1836,10 +1849,10 @@ var yn = /* @__PURE__ */ E({
1836
1849
  }
1837
1850
  }), e.$slots))));
1838
1851
  }
1839
- }), On = ".xlsx,.xls", kn = { class: "flex items-center" }, An = {
1852
+ }), kn = ".xlsx,.xls", An = { class: "flex items-center" }, jn = {
1840
1853
  key: 1,
1841
1854
  class: "ml-3 text-xs text-(--td-text-color-placeholder)"
1842
- }, jn = /*#__PURE__*/ y(/* @__PURE__ */ E({
1855
+ }, Mn = /*#__PURE__*/ b(/* @__PURE__ */ D({
1843
1856
  inheritAttrs: !1,
1844
1857
  name: "TUpload",
1845
1858
  __name: "upload",
@@ -1848,7 +1861,7 @@ var yn = /* @__PURE__ */ E({
1848
1861
  "onUpdate:modelValue": {},
1849
1862
  requestMethod: {},
1850
1863
  abridgeName: {},
1851
- accept: { default: On },
1864
+ accept: { default: kn },
1852
1865
  allowUploadDuplicateFile: { type: Boolean },
1853
1866
  autoUpload: { type: Boolean },
1854
1867
  beforeAllFilesUpload: {},
@@ -1908,7 +1921,7 @@ var yn = /* @__PURE__ */ E({
1908
1921
  onWaitingUploadFilesChange: {}
1909
1922
  },
1910
1923
  setup(e, { expose: t }) {
1911
- let n = e, r = b(() => {
1924
+ let n = e, r = x(() => {
1912
1925
  if (n.requestMethod !== void 0) return (e) => new Promise((t) => {
1913
1926
  typeof n.requestMethod == "function" ? n.requestMethod(e).then((e) => {
1914
1927
  t({
@@ -1941,48 +1954,48 @@ var yn = /* @__PURE__ */ E({
1941
1954
  function i() {
1942
1955
  typeof n.downloadTemplate == "string" ? f(n.downloadTemplate) : n.downloadTemplate.send();
1943
1956
  }
1944
- let a = b(() => {
1957
+ let a = x(() => {
1945
1958
  let e = { ...n };
1946
1959
  return ["image", "image-flow"].includes(e.theme) && (e.accept = e.accept === ".xlsx,.xls" ? "image/*" : e.accept), Object.keys(e).forEach((t) => {
1947
1960
  e[t] === void 0 && delete e[t];
1948
1961
  }), delete e.downloadTemplate, e.theme === "file" && delete e.tips, e;
1949
- }), o = D();
1962
+ }), o = O();
1950
1963
  function s(e) {
1951
1964
  o.exposed = e ?? {};
1952
1965
  }
1953
- return t({}), (t, o) => (N(), x(I(O(R(ot), A(t.$attrs, {
1966
+ return t({}), (t, o) => (P(), S(L(k(z(at), j(t.$attrs, {
1954
1967
  ...a.value,
1955
1968
  requestMethod: r.value,
1956
1969
  ref: s
1957
- }, { class: a.value.theme }))), null, Se({ _: 2 }, [F(Object.keys(t.$slots), (e) => ({
1970
+ }, { class: a.value.theme }))), null, xe({ _: 2 }, [I(Object.keys(t.$slots), (e) => ({
1958
1971
  name: e,
1959
- fn: B((n) => [je(t.$slots, e, M(we(n)), void 0, !0)])
1972
+ fn: V((n) => [Ae(t.$slots, e, N(Ce(n)), void 0, !0)])
1960
1973
  })), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
1961
1974
  name: "trigger",
1962
- fn: B(({ files: t }) => [xe("div", kn, [
1963
- T(R($), { theme: "primary" }, {
1964
- default: B(() => [w(L(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
1975
+ fn: V(({ files: t }) => [be("div", An, [
1976
+ E(z($), { theme: "primary" }, {
1977
+ default: V(() => [T(R(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
1965
1978
  _: 2
1966
1979
  }, 1024),
1967
- e.downloadTemplate ? (N(), x(R($), {
1980
+ e.downloadTemplate ? (P(), S(z($), {
1968
1981
  key: 0,
1969
1982
  theme: "primary",
1970
1983
  variant: "outline",
1971
- onClick: Le(i, ["stop"])
1984
+ onClick: Ie(i, ["stop"])
1972
1985
  }, {
1973
- default: B(() => [...o[0] ||= [w("下载模板", -1)]]),
1986
+ default: V(() => [...o[0] ||= [T("下载模板", -1)]]),
1974
1987
  _: 1
1975
- })) : S("v-if", !0),
1976
- n.tips ? (N(), C("span", An, L(n.tips), 1)) : S("v-if", !0)
1988
+ })) : C("v-if", !0),
1989
+ n.tips ? (P(), w("span", jn, R(n.tips), 1)) : C("v-if", !0)
1977
1990
  ])]),
1978
1991
  key: "0"
1979
1992
  } : void 0]), 1024));
1980
1993
  }
1981
- }), [["__scopeId", "data-v-51889a3b"]]), Mn = /*#__PURE__*/ y(/* @__PURE__ */ E({
1994
+ }), [["__scopeId", "data-v-51889a3b"]]), Nn = /*#__PURE__*/ b(/* @__PURE__ */ D({
1982
1995
  inheritAttrs: !1,
1983
1996
  name: "TForm",
1984
1997
  __name: "form",
1985
- props: /*@__PURE__*/ k({
1998
+ props: /*@__PURE__*/ A({
1986
1999
  autoLabelWidth: { type: Boolean },
1987
2000
  data: {},
1988
2001
  items: {},
@@ -2008,7 +2021,7 @@ var yn = /* @__PURE__ */ E({
2008
2021
  onValidate: { type: Function }
2009
2022
  }, Tt),
2010
2023
  setup(e, { expose: t }) {
2011
- let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = vt, s = D(), l = P(null), u = b(() => r.items.map((e) => {
2024
+ let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = vt, s = O(), l = F(null), u = x(() => r.items.map((e) => {
2012
2025
  if (typeof e.__others == "function") {
2013
2026
  let t = {
2014
2027
  ...e,
@@ -2048,36 +2061,36 @@ var yn = /* @__PURE__ */ E({
2048
2061
  }
2049
2062
  });
2050
2063
  }
2051
- z(u, d, {
2064
+ B(u, d, {
2052
2065
  deep: 2,
2053
2066
  immediate: !0
2054
- }), z(() => r.data, () => {
2067
+ }), B(() => r.data, () => {
2055
2068
  n.error("TForm: data is changed");
2056
2069
  });
2057
2070
  let f = /* @__PURE__ */ new Map(), p = {
2058
2071
  TCheckbox: a,
2059
- TCheckboxGroup: yn,
2060
- TColorPicker: ce,
2061
- TCron: bn,
2062
- TDatePicker: de,
2063
- TInput: ue,
2064
- TInputNumber: fe,
2065
- TRadioGroup: xn,
2066
- TRangeInput: pe,
2067
- TSelect: Cn,
2068
- TSelectSysUser: wn,
2069
- TSlider: ge,
2070
- TSwitch: _e,
2071
- TTagInput: he,
2072
- TTextarea: ve,
2073
- TTree: En,
2074
- TTreeSelect: Dn,
2075
- TUpload: jn
2072
+ TCheckboxGroup: bn,
2073
+ TColorPicker: se,
2074
+ TCron: xn,
2075
+ TDatePicker: ue,
2076
+ TInput: le,
2077
+ TInputNumber: de,
2078
+ TRadioGroup: Sn,
2079
+ TRangeInput: fe,
2080
+ TSelect: wn,
2081
+ TSelectSysUser: Tn,
2082
+ TSlider: he,
2083
+ TSwitch: ge,
2084
+ TTagInput: me,
2085
+ TTextarea: _e,
2086
+ TTree: Dn,
2087
+ TTreeSelect: On,
2088
+ TUpload: Mn
2076
2089
  };
2077
2090
  function h(e) {
2078
- return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e, Ce(o.get(e))), f.get(e)) : p[e] : ue;
2091
+ return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e, Se(o.get(e))), f.get(e)) : p[e] : le;
2079
2092
  }
2080
- function ee(e) {
2093
+ function g(e) {
2081
2094
  let t = {};
2082
2095
  for (let n in e) !n.startsWith("_") && ![
2083
2096
  "component",
@@ -2086,7 +2099,7 @@ var yn = /* @__PURE__ */ E({
2086
2099
  ].includes(n) && (t[n] = e[n]);
2087
2100
  return t;
2088
2101
  }
2089
- function g(e) {
2102
+ function _(e) {
2090
2103
  let t = {};
2091
2104
  for (let n in e) n.startsWith("_") && (t[n.slice(1)] = e[n]);
2092
2105
  let n = [
@@ -2105,7 +2118,7 @@ var yn = /* @__PURE__ */ E({
2105
2118
  whitespace: !0
2106
2119
  }), t;
2107
2120
  }
2108
- let _ = b(() => {
2121
+ let v = x(() => {
2109
2122
  let e = { ...r };
2110
2123
  if (e.rules !== void 0) {
2111
2124
  let t = {};
@@ -2123,20 +2136,20 @@ var yn = /* @__PURE__ */ E({
2123
2136
  return delete e.items, delete e.msgErrorWhenValidate, delete e.autoLabelWidth, Object.keys(e).forEach((t) => {
2124
2137
  e[t] === void 0 && delete e[t];
2125
2138
  }), e;
2126
- }), v = () => {
2139
+ }), y = () => {
2127
2140
  let e = { ...r.data };
2128
2141
  return u.value.forEach((t) => {
2129
2142
  t.show === !1 && delete e[t.model];
2130
2143
  }), e;
2131
2144
  };
2132
- function te(e) {
2145
+ function ee(e) {
2133
2146
  if (e !== null) {
2134
2147
  let t = e;
2135
2148
  if (!t.validate._alreadyReplace) {
2136
2149
  let e = t.validate;
2137
2150
  t.validate = (...t) => new Promise((n, i) => {
2138
2151
  e(...t).then((e) => {
2139
- e === !0 ? n(v()) : (r.msgErrorWhenValidate && Object.keys(e).forEach((t) => {
2152
+ e === !0 ? n(y()) : (r.msgErrorWhenValidate && Object.keys(e).forEach((t) => {
2140
2153
  e[t].forEach((e) => {
2141
2154
  e.result === !1 && m.error(e.message);
2142
2155
  });
@@ -2148,18 +2161,18 @@ var yn = /* @__PURE__ */ E({
2148
2161
  let e = t.validateOnly;
2149
2162
  t.validateOnly = (...t) => new Promise((n, r) => {
2150
2163
  e(...t).then((e) => {
2151
- e === !0 ? n(v()) : r(e);
2164
+ e === !0 ? n(y()) : r(e);
2152
2165
  });
2153
2166
  }), t.validateOnly._alreadyReplace = !0;
2154
2167
  }
2155
2168
  if (!t.clearValidate._alreadyReplace) {
2156
2169
  let e = t.clearValidate;
2157
2170
  t.clearValidate = (...t) => {
2158
- j(() => {
2159
- j(() => {
2160
- j(() => {
2161
- j(() => {
2162
- j(() => {
2171
+ M(() => {
2172
+ M(() => {
2173
+ M(() => {
2174
+ M(() => {
2175
+ M(() => {
2163
2176
  e(...t);
2164
2177
  });
2165
2178
  });
@@ -2168,7 +2181,7 @@ var yn = /* @__PURE__ */ E({
2168
2181
  });
2169
2182
  }, t.clearValidate._alreadyReplace = !0;
2170
2183
  }
2171
- t.getFormData = v, t.setFormData = (e, t) => {
2184
+ t.getFormData = y, t.setFormData = (e, t) => {
2172
2185
  let { ignoreKeys: n = [], isNotFalsy: i = !0, numberToStringKeys: a = [], override: o = {}, splitToArrKeys: s = [] } = t ?? {};
2173
2186
  Object.keys(r.data).forEach((t) => {
2174
2187
  n.includes(t) || (s.includes(t) ? r.data[t] = typeof e[t] == "string" ? e[t].split(",").filter(Boolean) : [] : i && c(e[t]) || (r.data[t] = e[t]), a.includes(t) && typeof r.data[t] == "number" && (r.data[t] = String(r.data[t])));
@@ -2178,21 +2191,21 @@ var yn = /* @__PURE__ */ E({
2178
2191
  let t = e ?? {};
2179
2192
  l.value = t, s.exposed = t;
2180
2193
  }
2181
- let y = Ne();
2182
- Oe(() => {
2183
- y.value = s.exposed.$el.getElementsByClassName("t-form__label"), ne(), ft(s.exposed.$el, () => {
2184
- ne();
2194
+ let b = Me();
2195
+ De(() => {
2196
+ b.value = s.exposed.$el.getElementsByClassName("t-form__label"), te(), dt(s.exposed.$el, () => {
2197
+ te();
2185
2198
  }, {
2186
2199
  attributeFilter: ["class"],
2187
2200
  characterData: !0,
2188
2201
  childList: !0,
2189
2202
  subtree: !0
2190
- }), pt(s.exposed.$el, () => {
2191
- ne();
2203
+ }), ft(s.exposed.$el, () => {
2204
+ te();
2192
2205
  });
2193
2206
  });
2194
- function ne() {
2195
- let e = [...y.value];
2207
+ function te() {
2208
+ let e = [...b.value];
2196
2209
  if (e.forEach((e) => {
2197
2210
  e.style.minWidth = "auto";
2198
2211
  }), r.labelAlign === "top" || !r.autoLabelWidth) return;
@@ -2203,29 +2216,29 @@ var yn = /* @__PURE__ */ E({
2203
2216
  e.style.minWidth = `${t}px`;
2204
2217
  });
2205
2218
  }
2206
- return ke("formData", r.data), ke("formExposed", l), ke("isFormDisabled", b(() => r.disabled)), ke("isFormReadonly", b(() => r.readonly)), t({}), (t, n) => (N(), C(ye, null, [S(" eslint-disable vue/no-mutating-props "), (N(), x(I(R(Je)), A(A(t.$attrs, {
2207
- ..._.value,
2208
- ref: te
2219
+ return Oe("formData", r.data), Oe("formExposed", l), Oe("isFormDisabled", x(() => r.disabled)), Oe("isFormReadonly", x(() => r.readonly)), t({}), (t, n) => (P(), w(ve, null, [C(" eslint-disable vue/no-mutating-props "), (P(), S(L(z(qe)), j(j(t.$attrs, {
2220
+ ...v.value,
2221
+ ref: ee
2209
2222
  }), { "label-width": "fit-content" }), {
2210
- default: B(() => [(N(!0), C(ye, null, F(u.value.filter((e) => e.show !== !1), (n) => (N(), x(R(Ye), A({ key: n.model ?? n.slot }, { ref_for: !0 }, A({ ...g(n) }, { class: { no_label_item: R(c)(n._label) } }), { name: n.model }), {
2211
- default: B(() => [n.slot ? je(t.$slots, n.slot, {}, void 0, !0, 0) : (N(), x(I(h(n.component)), A({
2223
+ default: V(() => [(P(!0), w(ve, null, I(u.value.filter((e) => e.show !== !1), (n) => (P(), S(z(Je), j({ key: n.model ?? n.slot }, { ref_for: !0 }, j({ ..._(n) }, { class: { no_label_item: z(c)(n._label) } }), { name: n.model }), {
2224
+ default: V(() => [n.slot ? Ae(t.$slots, n.slot, {}, void 0, !0, 0) : (P(), S(L(h(n.component)), j({
2212
2225
  key: 1,
2213
2226
  modelValue: e.data[n.model],
2214
2227
  "onUpdate:modelValue": (t) => e.data[n.model] = t
2215
- }, { ref_for: !0 }, ee(n)), null, 16, ["modelValue", "onUpdate:modelValue"]))]),
2228
+ }, { ref_for: !0 }, g(n)), null, 16, ["modelValue", "onUpdate:modelValue"]))]),
2216
2229
  _: 2
2217
2230
  }, 1040, ["name"]))), 128))]),
2218
2231
  _: 3
2219
2232
  }, 16))], 2112));
2220
2233
  }
2221
- }), [["__scopeId", "data-v-d3f924b4"]]), Nn = /* @__PURE__ */ E({
2234
+ }), [["__scopeId", "data-v-d3f924b4"]]), Pn = /* @__PURE__ */ D({
2222
2235
  __name: "ResetPwd",
2223
2236
  props: { showFooter: {
2224
2237
  type: Boolean,
2225
2238
  default: !0
2226
2239
  } },
2227
2240
  setup(e, { expose: t }) {
2228
- let n = H(), r = [
2241
+ let n = U(), r = [
2229
2242
  {
2230
2243
  _label: "旧密码",
2231
2244
  _required: !0,
@@ -2256,7 +2269,7 @@ var yn = /* @__PURE__ */ E({
2256
2269
  type: "password"
2257
2270
  },
2258
2271
  ...e.showFooter ? [{ slot: "footer" }] : []
2259
- ], i = Ie("form");
2272
+ ], i = Fe("form");
2260
2273
  function a() {
2261
2274
  K().close(n.name);
2262
2275
  }
@@ -2273,21 +2286,21 @@ var yn = /* @__PURE__ */ E({
2273
2286
  }
2274
2287
  }), Qt().logout();
2275
2288
  }
2276
- return t({ handleSubmit: c }), (e, t) => (N(), x(R(Mn), {
2289
+ return t({ handleSubmit: c }), (e, t) => (P(), S(z(Nn), {
2277
2290
  ref: "form",
2278
2291
  items: r,
2279
2292
  "label-align": "right",
2280
2293
  layout: "vertical"
2281
2294
  }, {
2282
- footer: B(() => [T(R($), { onClick: c }, {
2283
- default: B(() => [...t[0] ||= [w("保存", -1)]]),
2295
+ footer: V(() => [E(z($), { onClick: c }, {
2296
+ default: V(() => [...t[0] ||= [T("保存", -1)]]),
2284
2297
  _: 1
2285
- }), T(R($), {
2298
+ }), E(z($), {
2286
2299
  class: "ml-4!",
2287
2300
  theme: "default",
2288
2301
  onClick: a
2289
2302
  }, {
2290
- default: B(() => [...t[1] ||= [w("关闭", -1)]]),
2303
+ default: V(() => [...t[1] ||= [T("关闭", -1)]]),
2291
2304
  _: 1
2292
2305
  })]),
2293
2306
  _: 1
@@ -2296,34 +2309,34 @@ var yn = /* @__PURE__ */ E({
2296
2309
  });
2297
2310
  //#endregion
2298
2311
  //#region ../../packages/dlzn-ui/store/modules/user.ts
2299
- function Pn() {
2312
+ function Fn() {
2300
2313
  return X.Get("getInfo", { meta: {
2301
2314
  useFailMsg: "获取用户信息失败",
2302
2315
  useLoading: "正在获取用户信息..."
2303
2316
  } });
2304
2317
  }
2305
- var Fn = {
2318
+ var In = {
2306
2319
  admin: !1,
2307
2320
  dept: { deptName: "" },
2308
2321
  needChangePwd: 0,
2309
2322
  nickName: "",
2310
2323
  userId: "",
2311
2324
  userName: ""
2312
- }, Q = V("user", () => {
2313
- let e = P(mt(Fn)), t = P([]), n = P([]);
2325
+ }, Q = H("user", () => {
2326
+ let e = F(pt(In)), t = F([]), n = F([]);
2314
2327
  function r() {
2315
- e.value = mt(Fn), t.value = [], n.value = [];
2328
+ e.value = pt(In), t.value = [], n.value = [];
2316
2329
  }
2317
- let i = b(() => e.value.admin), a = P("");
2330
+ let i = x(() => e.value.admin), a = F("");
2318
2331
  async function o(r = !0) {
2319
- let i = await Pn();
2332
+ let i = await Fn();
2320
2333
  e.value = i.user, a.value !== e.value.userId && K().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await zt().getRouters();
2321
2334
  }
2322
- z(() => e.value.needChangePwd, (e) => {
2323
- e === 1 && VITE_FORCE_PWD_CHANGE && j(() => {
2324
- let e = P(null);
2335
+ B(() => e.value.needChangePwd, (e) => {
2336
+ e === 1 && VITE_FORCE_PWD_CHANGE && M(() => {
2337
+ let e = F(null);
2325
2338
  W({
2326
- body: () => O(Nn, {
2339
+ body: () => k(Pn, {
2327
2340
  labelAlign: "top",
2328
2341
  ref: e,
2329
2342
  showFooter: !1
@@ -2354,11 +2367,11 @@ var Fn = {
2354
2367
  roles: n,
2355
2368
  userInfo: e
2356
2369
  };
2357
- }, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ y(/* @__PURE__ */ E({
2370
+ }, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ b(/* @__PURE__ */ D({
2358
2371
  inheritAttrs: !1,
2359
2372
  name: "TButton",
2360
2373
  __name: "button",
2361
- props: /*@__PURE__*/ k({
2374
+ props: /*@__PURE__*/ A({
2362
2375
  autoIcon: { type: Boolean },
2363
2376
  autoLoading: { type: Boolean },
2364
2377
  autoTheme: { type: Boolean },
@@ -2397,7 +2410,7 @@ var Fn = {
2397
2410
  ] }
2398
2411
  }, wt),
2399
2412
  setup(n) {
2400
- let r = n, a = P("");
2413
+ let r = n, a = F("");
2401
2414
  function o() {
2402
2415
  if (!r.autoTheme || a.value.trim() === "") return {};
2403
2416
  let e = /* @__PURE__ */ new Map([
@@ -2419,17 +2432,17 @@ var Fn = {
2419
2432
  }
2420
2433
  return t;
2421
2434
  }
2422
- let s = P(!1), c = i.isLoading, l = P(null), { focused: u } = dt(l), d, f;
2423
- z(c, (e) => {
2435
+ let s = F(!1), c = i.isLoading, l = F(null), { focused: u } = ut(l), d, f;
2436
+ B(c, (e) => {
2424
2437
  e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
2425
2438
  s.value = u.value, clearTimeout(d), d = void 0;
2426
2439
  }, 150)) : d === void 0 ? f = setTimeout(() => {
2427
2440
  s.value = !1;
2428
2441
  }, 150) : (clearTimeout(d), d = void 0, s.value = !1);
2429
- }, { immediate: !0 }), z(u, (e) => {
2442
+ }, { immediate: !0 }), B(u, (e) => {
2430
2443
  e && c.value && (s.value = !0);
2431
2444
  });
2432
- let p = b(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = b(() => {
2445
+ let p = x(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = x(() => {
2433
2446
  let e = {
2434
2447
  ...r,
2435
2448
  ...o(),
@@ -2438,15 +2451,15 @@ var Fn = {
2438
2451
  return Object.keys(e).forEach((t) => {
2439
2452
  e[t] === void 0 && delete e[t];
2440
2453
  }), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
2441
- }), h = D();
2442
- function ee(e) {
2454
+ }), h = O();
2455
+ function g(e) {
2443
2456
  let t = e ?? {};
2444
2457
  h.exposed = t, l.value = t.$el;
2445
2458
  }
2446
- function g() {
2459
+ function _() {
2447
2460
  a.value = l.value?.textContent ?? "";
2448
2461
  }
2449
- let _ = b(() => {
2462
+ let v = x(() => {
2450
2463
  if (!r.autoIcon || a.value.trim() === "") return;
2451
2464
  let e = {
2452
2465
  "mdi:plus": [
@@ -2503,17 +2516,18 @@ var Fn = {
2503
2516
  "bi:journal-text": ["日志"],
2504
2517
  "material-symbols:security": ["权限"],
2505
2518
  "ri:wechat-channels-line": ["视频号"],
2506
- "clarity:copy-line": ["复制"]
2519
+ "clarity:copy-line": ["复制"],
2520
+ "gravity-ui:handset-arrow-in": ["应答"]
2507
2521
  }, t;
2508
2522
  for (let [n, r] of Object.entries(e)) if (r.some((e) => a.value.includes(e))) {
2509
2523
  t = n;
2510
2524
  break;
2511
2525
  }
2512
2526
  if (t !== void 0) return t;
2513
- }), v = Pe(), te = b(() => A(v, {
2527
+ }), y = Ne(), ee = x(() => j(y, {
2514
2528
  ...m.value,
2515
- ref: ee
2516
- }, { class: "flex-shrink-0" })), y = b(() => {
2529
+ ref: g
2530
+ }, { class: "flex-shrink-0" })), b = x(() => {
2517
2531
  if (r.popconfirm) return {
2518
2532
  ...r.popconfirm,
2519
2533
  onVisibleChange: (...e) => {
@@ -2521,33 +2535,33 @@ var Fn = {
2521
2535
  }
2522
2536
  };
2523
2537
  });
2524
- return (r, i) => R(Q)().checkPermissions(n.permission) ? (N(), C(ye, { key: 0 }, [y.value ? (N(), x(R(t), M(A({ key: 0 }, y.value)), {
2525
- default: B(() => [(N(), x(I(O(R(Be), te.value)), {
2526
- onVnodeMounted: g,
2527
- onVnodeUpdated: g
2528
- }, Se({ _: 2 }, [n.icon || _.value ? {
2538
+ return (r, i) => z(Q)().checkPermissions(n.permission) ? (P(), w(ve, { key: 0 }, [b.value ? (P(), S(z(t), N(j({ key: 0 }, b.value)), {
2539
+ default: V(() => [(P(), S(L(k(z(ze), ee.value)), {
2540
+ onVnodeMounted: _,
2541
+ onVnodeUpdated: _
2542
+ }, xe({ _: 2 }, [n.icon || v.value ? {
2529
2543
  name: "icon",
2530
- fn: B(() => [T(R(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
2544
+ fn: V(() => [E(z(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
2531
2545
  key: "0"
2532
- } : void 0, F(Object.keys(r.$slots), (e) => ({
2546
+ } : void 0, I(Object.keys(r.$slots), (e) => ({
2533
2547
  name: e,
2534
- fn: B((t) => [je(r.$slots, e, M(we(t)), void 0, !0)])
2548
+ fn: V((t) => [Ae(r.$slots, e, N(Ce(t)), void 0, !0)])
2535
2549
  }))]), 1536))]),
2536
2550
  _: 3
2537
- }, 16)) : (N(), x(I(O(R(Be), te.value)), {
2551
+ }, 16)) : (P(), S(L(k(z(ze), ee.value)), {
2538
2552
  key: 1,
2539
- onVnodeMounted: g,
2540
- onVnodeUpdated: g
2541
- }, Se({ _: 2 }, [n.icon || _.value ? {
2553
+ onVnodeMounted: _,
2554
+ onVnodeUpdated: _
2555
+ }, xe({ _: 2 }, [n.icon || v.value ? {
2542
2556
  name: "icon",
2543
- fn: B(() => [T(R(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
2557
+ fn: V(() => [E(z(e), { icon: n.icon || v.value }, null, 8, ["icon"])]),
2544
2558
  key: "0"
2545
- } : void 0, F(Object.keys(r.$slots), (e) => ({
2559
+ } : void 0, I(Object.keys(r.$slots), (e) => ({
2546
2560
  name: e,
2547
- fn: B((t) => [je(r.$slots, e, M(we(t)), void 0, !0)])
2548
- }))]), 1536))], 64)) : S("v-if", !0);
2561
+ fn: V((t) => [Ae(r.$slots, e, N(Ce(t)), void 0, !0)])
2562
+ }))]), 1536))], 64)) : C("v-if", !0);
2549
2563
  }
2550
- }), [["__scopeId", "data-v-891fff89"]]), In = /* @__PURE__ */ E({
2564
+ }), [["__scopeId", "data-v-3e5dd427"]]), Ln = /* @__PURE__ */ D({
2551
2565
  name: "TProvider",
2552
2566
  __name: "Provider",
2553
2567
  setup(e) {
@@ -2569,14 +2583,14 @@ var Fn = {
2569
2583
  variant: "text"
2570
2584
  })
2571
2585
  } };
2572
- return (e, n) => (N(), x(R(st), {
2586
+ return (e, n) => (P(), S(z(ot), {
2573
2587
  "empty-values": [""],
2574
- locale: R(Ct),
2588
+ locale: z(Ct),
2575
2589
  "value-on-clear": "",
2576
2590
  "z-index": 5500
2577
2591
  }, {
2578
- default: B(() => [T(R(He), { "global-config": t }, {
2579
- default: B(() => [je(e.$slots, "default")]),
2592
+ default: V(() => [E(z(Ve), { "global-config": t }, {
2593
+ default: V(() => [Ae(e.$slots, "default")]),
2580
2594
  _: 3
2581
2595
  })]),
2582
2596
  _: 3
@@ -2584,4 +2598,4 @@ var Fn = {
2584
2598
  }
2585
2599
  });
2586
2600
  //#endregion
2587
- export { en as A, G as B, ln as C, J as D, on as E, Ht as F, kt as H, Vt as I, jt as L, qt as M, Jt as N, an as O, Yt as P, zt as R, X as S, Y as T, Tt as U, W as V, wt as W, yn as _, Nn as a, _n as b, On as c, Tn as d, wn as f, bn as g, xn as h, Q as i, Qt as j, tn as k, Dn as l, Sn as m, $ as n, Mn as o, Cn as p, Pn as r, jn as s, In as t, En as u, hn as v, un as w, vn as x, gn as y, K as z };
2601
+ export { en as A, G as B, ln as C, J as D, on as E, Ht as F, kt as H, Vt as I, jt as L, qt as M, Jt as N, an as O, Yt as P, zt as R, X as S, Y as T, Tt as U, W as V, wt as W, bn as _, Pn as a, vn as b, kn as c, En as d, Tn as f, xn as g, Sn as h, Q as i, Qt as j, tn as k, On as l, Cn as m, $ as n, Nn as o, wn as p, Fn as r, Mn as s, Ln as t, Dn as u, gn as v, un as w, yn as x, _n as y, K as z };