dlzn-ui 2.0.52 → 2.0.54

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 (172) hide show
  1. package/assets/{provider-CwykAGOx.css → provider-BBCGISR5.css} +1 -1
  2. package/chunks/{AssignUser-B11nIqo_.mjs → AssignUser-DFGKVyHA.mjs} +14 -14
  3. package/chunks/{BasicInfo-9WqspD1Z.mjs → BasicInfo-oYAekSwI.mjs} +1 -1
  4. package/chunks/{ColumnInfo-B_lgPqVS.mjs → ColumnInfo-CVSldNXs.mjs} +2 -2
  5. package/chunks/{Common-BVD38hp6.mjs → Common-DDWrIunx.mjs} +1 -1
  6. package/chunks/{Day-CHWBklI0.mjs → Day-Che8kW_B.mjs} +1 -1
  7. package/chunks/{DictTypeDetail-C8SPo0b_.mjs → DictTypeDetail-vPGWHXOl.mjs} +8 -8
  8. package/chunks/{GenInfo-Dxoe_3RM.mjs → GenInfo-BcwpyZSj.mjs} +1 -1
  9. package/chunks/{Hour-NaDEj833.mjs → Hour-BoXdhMMY.mjs} +1 -1
  10. package/chunks/{Import-BZkJuPLC.mjs → Import-BVbnDZt3.mjs} +2 -2
  11. package/chunks/{Index-QeguMHYR.mjs → Index-C1v5EsZk.mjs} +1 -1
  12. package/chunks/{Index-LNJ_79uk.mjs → Index-CnjpeIQL.mjs} +1 -1
  13. package/chunks/{Index-ClKOg-Wu.mjs → Index-CxEYiUa-.mjs} +1 -1
  14. package/chunks/{Index-CQSAs1h6.mjs → Index-xoyD_qOp.mjs} +1 -1
  15. package/chunks/{IndexItem-D7mOSNO6.mjs → IndexItem-BT-IQMY5.mjs} +1 -1
  16. package/chunks/{Log-DSKkWGbI.mjs → Log-DOEaFtk1.mjs} +11 -11
  17. package/chunks/{LoginBg-BharyaPx.mjs → LoginBg-YM4US_NO.mjs} +1 -1
  18. package/chunks/{Minute-CM6f_BSX.mjs → Minute-BJpoCyM8.mjs} +1 -1
  19. package/chunks/{Month-DRWusngF.mjs → Month-UU1z-xQV.mjs} +1 -1
  20. package/chunks/{Preview-hFTldEUR.mjs → Preview-SqQ2UnMr.mjs} +1 -1
  21. package/chunks/{Second-BTRO-iOb.mjs → Second-BOsQlzmK.mjs} +1 -1
  22. package/chunks/{SelectDept-B_9npI--.mjs → SelectDept-DJciskzT.mjs} +1 -1
  23. package/chunks/{SelectMenu-CB0bsNEl.mjs → SelectMenu-7XAtNOza.mjs} +1 -1
  24. package/chunks/{SelectUser-CZ4P-c67.mjs → SelectUser-ChPXL5SD.mjs} +2 -2
  25. package/chunks/{UserInfo-CT_ez2uW.mjs → UserInfo-Bzdeuht7.mjs} +7 -7
  26. package/chunks/{app-DNfYzQDT.mjs → app-CouSbYl9.mjs} +1 -1
  27. package/chunks/auto-complete-WniYblq6.mjs +77 -0
  28. package/chunks/{custom-page-list-v88splrD.mjs → custom-page-list-ijqPjUG8.mjs} +4 -4
  29. package/chunks/{custom-page-table-BheCVTlP.mjs → custom-page-table-CUlGWxoP.mjs} +2 -2
  30. package/chunks/{overview-MLIPTO-D.mjs → overview-ZgCAiVFV.mjs} +1 -1
  31. package/chunks/{page-list-BLDYBbVJ.mjs → page-list-DsgM0XRF.mjs} +3 -3
  32. package/chunks/{page-query-JDsWn-xy.mjs → page-query-D-9Bfc2i.mjs} +1 -1
  33. package/chunks/{page-table-Be4aMLTf.mjs → page-table-BNO8b2RS.mjs} +3 -3
  34. package/chunks/{pagination-Cck2wqel.mjs → pagination-CQP7D64K.mjs} +1 -1
  35. package/chunks/{provider-CDqQoKIA.mjs → provider-Bb25LOJZ.mjs} +483 -470
  36. package/chunks/{table-5y2fT5vf.mjs → table-v44larO2.mjs} +1 -1
  37. package/components/app/index.mjs +1 -1
  38. package/components/app/src/app.mjs +1 -1
  39. package/components/auto-complete/index.d.ts +2 -0
  40. package/components/auto-complete/index.mjs +2 -0
  41. package/components/auto-complete/src/auto-complete.d.ts +12 -0
  42. package/components/auto-complete/src/auto-complete.mjs +2 -0
  43. package/components/auto-complete/src/auto-complete.vue.d.ts +10 -0
  44. package/components/button/index.mjs +1 -1
  45. package/components/button/src/button.mjs +1 -1
  46. package/components/checkbox-group/index.mjs +1 -1
  47. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  48. package/components/cron/index.mjs +1 -1
  49. package/components/cron/src/Common.mjs +1 -1
  50. package/components/cron/src/Day.mjs +1 -1
  51. package/components/cron/src/Hour.mjs +1 -1
  52. package/components/cron/src/Minute.mjs +1 -1
  53. package/components/cron/src/Month.mjs +1 -1
  54. package/components/cron/src/Picker.mjs +6 -6
  55. package/components/cron/src/Second.mjs +1 -1
  56. package/components/cron/src/cron.mjs +1 -1
  57. package/components/custom-page-list/index.mjs +1 -1
  58. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  59. package/components/custom-page-table/index.mjs +1 -1
  60. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  61. package/components/form/index.mjs +1 -1
  62. package/components/form/src/form.mjs +1 -1
  63. package/components/index.mjs +9 -9
  64. package/components/overview/index.mjs +1 -1
  65. package/components/overview/src/DicLabel/Index.mjs +1 -1
  66. package/components/overview/src/IndexItem.mjs +1 -1
  67. package/components/overview/src/overview.mjs +1 -1
  68. package/components/page-list/index.mjs +1 -1
  69. package/components/page-list/src/page-list.d.ts +21 -21
  70. package/components/page-list/src/page-list.mjs +1 -1
  71. package/components/page-query/index.mjs +1 -1
  72. package/components/page-query/src/page-query.mjs +1 -1
  73. package/components/page-table/index.mjs +1 -1
  74. package/components/page-table/src/page-table.mjs +1 -1
  75. package/components/pagination/index.mjs +1 -1
  76. package/components/pagination/src/pagination.mjs +1 -1
  77. package/components/provider/index.mjs +1 -1
  78. package/components/provider/src/Provider.mjs +1 -1
  79. package/components/radio-group/index.mjs +1 -1
  80. package/components/radio-group/src/radio-group.mjs +1 -1
  81. package/components/select/index.mjs +1 -1
  82. package/components/select/src/select.mjs +1 -1
  83. package/components/select-sys-user/index.mjs +1 -1
  84. package/components/select-sys-user/src/Picker.mjs +2 -2
  85. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  86. package/components/table/index.mjs +1 -1
  87. package/components/table/src/table.mjs +1 -1
  88. package/components/tree/index.mjs +1 -1
  89. package/components/tree/src/tree.mjs +1 -1
  90. package/components/tree/src/tree.vue.d.ts +1 -1
  91. package/components/tree-select/index.mjs +1 -1
  92. package/components/tree-select/src/tree-select.mjs +1 -1
  93. package/components/upload/index.mjs +1 -1
  94. package/components/upload/src/upload.mjs +1 -1
  95. package/hooks/useDicOptions/index.mjs +1 -1
  96. package/hooks/useSysUser/index.mjs +1 -1
  97. package/layout/Entry.mjs +1 -1
  98. package/layout/Home.mjs +48 -26
  99. package/layout/Home1.mjs +31 -0
  100. package/layout/Home1.vue.d.ts +3 -0
  101. package/layout/Login.mjs +2 -2
  102. package/layout/NotFound.mjs +1 -1
  103. package/layout/index.mjs +2 -0
  104. package/layout/modules/Aside.mjs +1 -1
  105. package/layout/modules/Breadcrumb.mjs +1 -1
  106. package/layout/modules/Header.mjs +1 -1
  107. package/layout/modules/LoginBg.mjs +1 -1
  108. package/layout/modules/LoginBgBak.mjs +7 -1
  109. package/layout/profile/Index.mjs +2 -2
  110. package/layout/profile/ResetPwd.mjs +1 -1
  111. package/layout/profile/UserInfo.mjs +1 -1
  112. package/layout/vueBits/Grainient.mjs +140 -0
  113. package/layout/vueBits/Grainient.vue.d.ts +52 -0
  114. package/layout/vueBits/LightRays.vue.d.ts +1 -1
  115. package/layout/vueBits/Prism.vue.d.ts +5 -5
  116. package/main.mjs +3 -3
  117. package/package.json +2 -1
  118. package/plugins/autoImport/$alova/index.mjs +1 -1
  119. package/plugins/autoImport/$confirm/index.mjs +1 -1
  120. package/plugins/autoImport/$dialog/index.mjs +1 -1
  121. package/plugins/autoImport/$drawer/index.mjs +1 -1
  122. package/plugins/captcha/captcha.mjs +1 -1
  123. package/plugins/captcha/index.mjs +1 -1
  124. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  125. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  126. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  127. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  128. package/plugins/tableRenders/cell/index.mjs +3 -3
  129. package/proj-template/package.json +37 -0
  130. package/proj-template/pnpm-workspace.yaml +0 -1
  131. package/router/index.mjs +1 -1
  132. package/store/modules/common.mjs +1 -1
  133. package/store/modules/login.mjs +1 -1
  134. package/store/modules/recentRouters.mjs +1 -1
  135. package/store/modules/router.mjs +2 -2
  136. package/store/modules/user.mjs +1 -1
  137. package/utils/index.mjs +3 -3
  138. package/utils/tool.d.ts +2 -0
  139. package/utils/tool.mjs +6 -2
  140. package/utils/tree.d.ts +2 -1
  141. package/utils/tree.mjs +8 -5
  142. package/views/monitor/cache/index.mjs +2 -2
  143. package/views/monitor/cacheList/index.mjs +2 -2
  144. package/views/monitor/logininfor/index.mjs +2 -2
  145. package/views/monitor/online/index.mjs +2 -2
  146. package/views/monitor/operlog/index.mjs +2 -2
  147. package/views/monitor/server/index.mjs +2 -2
  148. package/views/system/config/index.mjs +11 -11
  149. package/views/system/dept/index.mjs +15 -15
  150. package/views/system/dept/utils.mjs +1 -1
  151. package/views/system/dict/index.mjs +16 -16
  152. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  153. package/views/system/menu/index.mjs +19 -19
  154. package/views/system/menu/utils.mjs +1 -1
  155. package/views/system/notice/index.mjs +6 -6
  156. package/views/system/post/index.mjs +6 -6
  157. package/views/system/role/index.mjs +36 -36
  158. package/views/system/role/modules/AssignUser.mjs +1 -1
  159. package/views/system/role/modules/SelectDept.mjs +1 -1
  160. package/views/system/role/modules/SelectMenu.mjs +1 -1
  161. package/views/system/role/modules/SelectUser.mjs +1 -1
  162. package/views/system/user/index.mjs +41 -41
  163. package/views/tool/gen/editTable/index.mjs +13 -13
  164. package/views/tool/gen/editTable/modules/BasicInfo.mjs +1 -1
  165. package/views/tool/gen/editTable/modules/ColumnInfo.mjs +1 -1
  166. package/views/tool/gen/editTable/modules/GenInfo.mjs +1 -1
  167. package/views/tool/gen/index.mjs +15 -15
  168. package/views/tool/gen/modules/Import.mjs +1 -1
  169. package/views/tool/gen/modules/Preview.mjs +1 -1
  170. package/views/tool/job/index.mjs +26 -26
  171. package/views/tool/job/modules/Log.mjs +1 -1
  172. package/proj-template/patches/omi@7.7.13.patch +0 -15
@@ -1,4 +1,4 @@
1
- import '../assets/css-Ctf0Amkf.css';import '../assets/provider-CwykAGOx.css';/* empty css */
1
+ import '../assets/css-Ctf0Amkf.css';import '../assets/provider-BBCGISR5.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";
@@ -11,56 +11,56 @@ import { passwordReg as o, passwordRegMessage as s } from "../constants/regs.mjs
11
11
  import { isFalsy as c, isValidNumberString as l } from "../utils/boolean.mjs";
12
12
  import "./utils-ag05P503.mjs";
13
13
  import { stringDisplay as u } from "../utils/string.mjs";
14
- import { saveAs as d } from "../utils/tool.mjs";
15
- import f from "../hooks/useLabel/index.mjs";
16
- import p from "../plugins/autoImport/$msg/index.mjs";
17
- import m from "../layout/index.mjs";
14
+ import { sanitizeHtml as d, saveAs as f } from "../utils/tool.mjs";
15
+ import p from "../hooks/useLabel/index.mjs";
16
+ import m from "../plugins/autoImport/$msg/index.mjs";
17
+ import h from "../layout/index.mjs";
18
18
  import { t as ee } from "./scrollbar-CoERe4kE.mjs";
19
19
  import "../components/scrollbar/index.mjs";
20
- import h from "../hooks/useMQ/index.mjs";
21
- import g from "../hooks/usePrimaryColor/index.mjs";
22
- import _ from "../store/modules/excludeKPname.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
23
  import { t as te } from "./gradient-text-BAIl_tKw.mjs";
24
- import { t as v } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
24
+ import { t as y } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
25
25
  import "../components/gradient-text/index.mjs";
26
- import { t as y } from "./image-cancjWRE.mjs";
26
+ import { t as ne } from "./image-cancjWRE.mjs";
27
27
  import "../components/image/index.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";
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";
33
33
  import "../components/color-picker/index.mjs";
34
- import { n as ce, t as le } from "./input-UQjpNb61.mjs";
34
+ import { n as le, t as ue } from "./input-UQjpNb61.mjs";
35
35
  import "../components/input/index.mjs";
36
- import { t as ue } from "./date-picker-BaOpewZr.mjs";
36
+ import { t as de } from "./date-picker-BaOpewZr.mjs";
37
37
  import "../components/date-picker/index.mjs";
38
- import { t as de } from "./input-number-7Y1iWPPV.mjs";
38
+ import { t as fe } from "./input-number-7Y1iWPPV.mjs";
39
39
  import "../components/input-number/index.mjs";
40
- import { t as fe } from "./range-input-PIfE-AxB.mjs";
40
+ import { t as pe } from "./range-input-PIfE-AxB.mjs";
41
41
  import "../components/range-input/index.mjs";
42
- import { n as pe, t as me } from "./tag-input-BuAFWI1F.mjs";
42
+ import { n as me, t as he } from "./tag-input-BuAFWI1F.mjs";
43
43
  import "../components/tag-input/index.mjs";
44
- import { t as he } from "./slider-DSeKLd2m.mjs";
44
+ import { t as ge } from "./slider-DSeKLd2m.mjs";
45
45
  import "../components/slider/index.mjs";
46
- import { t as ge } from "./switch-DNPmkfa_.mjs";
46
+ import { t as _e } from "./switch-DNPmkfa_.mjs";
47
47
  import "../components/switch/index.mjs";
48
- import { t as _e } from "./textarea-CYirMH7f.mjs";
48
+ import { t as ve } from "./textarea-CYirMH7f.mjs";
49
49
  import "../components/textarea/index.mjs";
50
- import { Fragment as ve, KeepAlive as ye, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as be, createSlots as xe, createTextVNode as w, createVNode as T, defineAsyncComponent as Se, defineComponent as E, getCurrentInstance as D, guardReactiveProps as O, h as k, inject as Ce, markRaw as we, mergeDefaults as A, mergeProps as j, nextTick as M, normalizeClass as Te, normalizeProps as N, onMounted as Ee, openBlock as P, provide as De, reactive as Oe, ref as F, renderList as I, renderSlot as ke, resolveComponent as Ae, resolveDynamicComponent as L, shallowRef as je, toDisplayString as R, unref as z, useAttrs as Me, useSlots as Ne, useTemplateRef as Pe, watch as B, withCtx as V, withModifiers as Fe } from "vue";
51
- import { Breadcrumb as Ie, BreadcrumbItem as Le, Button as Re, CheckboxGroup as ze, ConfigProvider as Be, Content as Ve, DialogPlugin as He, Drawer as Ue, DrawerPlugin as We, Dropdown as Ge, Form as Ke, FormItem as qe, HeadMenu as Je, Header as Ye, InputAdornment as Xe, Layout as Ze, Menu as Qe, MenuItem as $e, RadioGroup as et, Select as tt, Tree as nt, TreeSelect as rt, Upload as it } from "tdesign-vue-next";
52
- import { ElConfigProvider as at } from "element-plus";
53
- import { useElementSize as ot, useElementVisibility as st, useFavicon as ct, useFocus as lt, useMutationObserver as ut, useResizeObserver as dt } from "@vueuse/core";
54
- import { cloneDeep as ft, isPlainObject as pt } from "lodash-es";
55
- import { defineStore as H } from "pinia";
56
- import { createRouter as mt, createWebHistory as ht, useRoute as U, useRouter as W } from "vue-router";
57
- import gt from "virtual:dlzn-ui/app-params";
58
- import { createAlova as _t } from "alova";
59
- import vt from "alova/fetch";
60
- import yt from "alova/vue";
61
- import bt from "path-browserify";
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";
57
+ import vt from "virtual:dlzn-ui/app-params";
58
+ import { createAlova as yt } from "alova";
59
+ import bt from "alova/fetch";
60
+ import xt from "alova/vue";
61
+ import St from "path-browserify";
62
62
  //#region ../../node_modules/.pnpm/element-plus@2.14.5_vue@3.5.41/node_modules/element-plus/es/locale/lang/zh-cn.mjs
63
- var xt = {
63
+ var Ct = {
64
64
  name: "zh-cn",
65
65
  el: {
66
66
  breadcrumb: { label: "面包屑" },
@@ -241,15 +241,15 @@ var xt = {
241
241
  defaultLabel: "请输入第 {index} 位 OTP 字符"
242
242
  }
243
243
  }
244
- }, St = {
244
+ }, wt = {
245
245
  autoIcon: !0,
246
246
  autoLoading: !0,
247
247
  autoTheme: !0,
248
248
  loading: void 0
249
- }, Ct = {
249
+ }, Tt = {
250
250
  autoLabelWidth: !0,
251
251
  colon: !0,
252
- data: () => Oe({}),
252
+ data: () => Ae({}),
253
253
  disabled: !1,
254
254
  labelAlign: "top",
255
255
  layout: "inline",
@@ -259,10 +259,84 @@ var xt = {
259
259
  requiredMark: void 0,
260
260
  resetType: "initial",
261
261
  showErrorMessage: !0
262
+ }, Et = /* @__PURE__ */ function(e) {
263
+ return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
264
+ }(Et || {}), Dt = /* @__PURE__ */ new Set();
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, {
267
+ controls: !0,
268
+ initialValue: !0
269
+ }), c = {
270
+ closeBtn: () => O($, {
271
+ icon: "mdi:close",
272
+ shape: "circle",
273
+ size: "small",
274
+ theme: "default",
275
+ variant: "base"
276
+ }),
277
+ closeOnEscKeydown: !1,
278
+ closeOnOverlayClick: !1,
279
+ closeWhenCloseAll: !0,
280
+ destroyOnClose: !0,
281
+ draggable: !0,
282
+ header: "提示",
283
+ mode: "modal",
284
+ placement: "center",
285
+ width: "fit-content",
286
+ ...t ?? {},
287
+ body: () => O(In, {}, { default: () => i.value })
288
+ }, l, u = {
289
+ ...c,
290
+ onClosed: () => {
291
+ a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(), Dt.delete(l);
292
+ }
293
+ };
294
+ delete u.closeWhenCloseAll;
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;
297
+ }
298
+ var kt = function(...e) {
299
+ return Ot(void 0, ...e);
300
+ };
301
+ Object.values(Et).forEach((e) => {
302
+ kt[e] = e === "closeAll" ? () => {
303
+ Dt.forEach((e) => {
304
+ e.hide();
305
+ });
306
+ } : (...t) => Ot(e, ...t);
307
+ });
308
+ //#endregion
309
+ //#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
310
+ var W = (e, t) => {
311
+ let n = { ...typeof e == "string" ? {} : e };
312
+ return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
313
+ let a = kt(typeof e == "string" ? {
314
+ body: e,
315
+ onConfirm: () => {
316
+ a.hide(), r();
317
+ },
318
+ theme: "warning"
319
+ } : Ae({
320
+ ...n,
321
+ onClose: (t) => {
322
+ let { trigger: n } = t;
323
+ n === "cancel" ? Promise.resolve(e.onCancelCallback?.()).then(() => {
324
+ a.hide(), e.useReject === !0 && i(/* @__PURE__ */ Error("confirm_cancel"));
325
+ }) : a.hide();
326
+ },
327
+ onConfirm: () => {
328
+ a.setConfirmLoading(!0), Promise.resolve(e.onConfirmCallback?.()).then(() => {
329
+ a.hide(), r();
330
+ }).finally(() => {
331
+ a.setConfirmLoading(!1);
332
+ });
333
+ }
334
+ }), t);
335
+ });
262
336
  };
263
337
  //#endregion
264
338
  //#region ../../packages/dlzn-ui/store/modules/common.ts
265
- function wt() {
339
+ function At() {
266
340
  return VITE_APP_ID === "1" ? X.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
267
341
  meta: { useToken: !1 },
268
342
  transform(e) {
@@ -280,20 +354,20 @@ function wt() {
280
354
  useToken: !1
281
355
  } });
282
356
  }
283
- var G = H("common", () => {
284
- let e = F(!0), t = F(250), n = F({
357
+ var G = V("common", () => {
358
+ let e = P(!0), t = P(250), n = P({
285
359
  appName: "",
286
360
  color: "",
287
361
  logo: "",
288
362
  version: ""
289
363
  });
290
- B(() => n.value.appName, (e) => {
364
+ z(() => n.value.appName, (e) => {
291
365
  e && (document.title = e);
292
- }), B(() => n.value.color, (e) => {
293
- e && (g().value = e);
294
- }), ct(b(() => n.value.logo || "/favicon.ico"));
366
+ }), z(() => n.value.color, (e) => {
367
+ e && (_().value = e);
368
+ }), ut(b(() => n.value.logo || "/favicon.ico"));
295
369
  function r() {
296
- wt().then((e) => {
370
+ At().then((e) => {
297
371
  n.value = e;
298
372
  }).catch((e) => {
299
373
  n.value = {
@@ -304,7 +378,7 @@ var G = H("common", () => {
304
378
  }, console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
305
379
  });
306
380
  }
307
- let i = F(!0), a = null;
381
+ let i = P(!0), a = null;
308
382
  function o() {
309
383
  a !== null && (clearTimeout(a), a = null), i.value = !1, a = setTimeout(() => {
310
384
  i.value = !0;
@@ -318,13 +392,13 @@ var G = H("common", () => {
318
392
  isRequestSleep: i,
319
393
  requestActive: o
320
394
  };
321
- }, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K = H("recentRouters", () => {
322
- let e = F([]), t = U(), n = W();
395
+ }, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K = V("recentRouters", () => {
396
+ let e = P([]), t = H(), n = U();
323
397
  function r() {
324
398
  e.value = e.value.filter((e) => n.hasRoute(e.name));
325
399
  }
326
400
  function i(t, n) {
327
- let r = ft(n), i = e.value.findIndex((e) => e.name === r.name || Y(e.name).meta.title === Y(r.name).meta.title);
401
+ let r = mt(n), i = e.value.findIndex((e) => e.name === r.name || Y(e.name).meta.title === Y(r.name).meta.title);
328
402
  if (delete r.query._fromLeftTree, i === -1) {
329
403
  let n = e.value.findIndex((e) => e.name === t);
330
404
  n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
@@ -355,16 +429,16 @@ var G = H("common", () => {
355
429
  }, { persist: { pick: ["recentRouters"] } });
356
430
  //#endregion
357
431
  //#region ../../packages/dlzn-ui/store/modules/router.ts
358
- function Tt() {
432
+ function jt() {
359
433
  return X.Get("getRouters", { meta: {
360
434
  useFailMsg: "获取用户路由失败",
361
435
  useLoading: "正在获取用户路由..."
362
436
  } });
363
437
  }
364
- function Et(e) {
438
+ function Mt(e) {
365
439
  return e.children !== void 0 || e.component !== void 0;
366
440
  }
367
- function Dt(e) {
441
+ function Nt(e) {
368
442
  let t = [];
369
443
  return e.forEach((e) => {
370
444
  e.path === "/" ? t.push({
@@ -373,7 +447,7 @@ function Dt(e) {
373
447
  }) : t.push(e);
374
448
  }), t;
375
449
  }
376
- function Ot(e) {
450
+ function Pt(e) {
377
451
  let t = (e, n) => {
378
452
  let r = [];
379
453
  return e.forEach((e) => {
@@ -397,12 +471,12 @@ function Ot(e) {
397
471
  e !== void 0 && (i.redirect = { name: e.name });
398
472
  }
399
473
  }
400
- e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = Mt(e)), Et(i) && r.push(i);
474
+ e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = Rt(e)), Mt(i) && r.push(i);
401
475
  }), r;
402
- }, n = an();
476
+ }, n = on();
403
477
  return n.children.push(...e), t([n], null);
404
478
  }
405
- function kt(e) {
479
+ function Ft(e) {
406
480
  let t = (e) => {
407
481
  let n = [...e], r = n.length;
408
482
  for (let e = r - 1; e >= 0; e--) {
@@ -415,30 +489,30 @@ function kt(e) {
415
489
  };
416
490
  return t(e);
417
491
  }
418
- var At = [];
419
- function jt(e) {
492
+ var It = [];
493
+ function Lt(e) {
420
494
  return `./${e.split("___")[0]}.vue`;
421
495
  }
422
- function Mt(e) {
496
+ function Rt(e) {
423
497
  if (typeof e.component == "function" || typeof e.component == "string") {
424
- let t = e.component, n = typeof t == "string" ? ne[jt(t)] : t;
498
+ let t = e.component, n = typeof t == "string" ? re[Lt(t)] : t;
425
499
  if (n === void 0) {
426
- let e = `路由组件${jt(t)}不存在`;
427
- return console.error(e), m["./NotFound.vue"];
500
+ let e = `路由组件${Lt(t)}不存在`;
501
+ return console.error(e), h["./NotFound.vue"];
428
502
  }
429
- return typeof t == "string" && At.push(jt(t)), () => n().then((t) => ({
503
+ return typeof t == "string" && It.push(Lt(t)), () => n().then((t) => ({
430
504
  ...t.default,
431
505
  name: e.name
432
506
  }));
433
507
  }
434
508
  return e.component;
435
509
  }
436
- var Nt = H("router", () => {
437
- let e = F([]), t = W(), n = Q();
510
+ var zt = V("router", () => {
511
+ let e = P([]), t = U(), n = Q();
438
512
  async function r() {
439
- let r = await Tt();
440
- At.length = 0, e.value = we(kt(Ot(Dt(r)))), n.isAdmin && Object.keys(ne).forEach((e) => {
441
- if (!At.includes(e)) {
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)) {
442
516
  let t = `${e} 页面对应的路由不存在`;
443
517
  console.error(t);
444
518
  }
@@ -456,11 +530,11 @@ var Nt = H("router", () => {
456
530
  getRouters: r,
457
531
  routersRaw: e
458
532
  };
459
- }), Pt = { class: "ml-2! flex items-center" }, Ft = /*#__PURE__*/ v(/* @__PURE__ */ E({
533
+ }), Bt = { class: "ml-2! flex items-center" }, Vt = /*#__PURE__*/ y(/* @__PURE__ */ E({
460
534
  __name: "Aside",
461
535
  setup(e) {
462
- let t = U(), n = G(), r = b(() => n.appInfo.appName), i = Nt(), a = F([]);
463
- B(() => t.name, () => {
536
+ let t = H(), n = G(), r = b(() => n.appInfo.appName), i = zt(), a = P([]);
537
+ z(() => t.name, () => {
464
538
  t.matched.map((e) => e.name).forEach((e) => {
465
539
  a.value.includes(e) || a.value.push(e);
466
540
  });
@@ -468,34 +542,34 @@ var Nt = H("router", () => {
468
542
  let o = b(() => {
469
543
  let { hidden: e, parentName: n } = t.meta;
470
544
  return n !== "" && e === !0 ? n : t.name;
471
- }), s = b(() => n.appInfo.logo || gt.asideTopLogoUrl);
472
- return (e, t) => (P(), x(z(Qe), {
545
+ }), s = b(() => n.appInfo.logo || vt.asideTopLogoUrl);
546
+ return (e, t) => (N(), x(R(et), {
473
547
  expanded: a.value,
474
548
  "onUpdate:expanded": t[0] ||= (e) => a.value = e,
475
549
  class: "w-full!",
476
550
  value: o.value
477
551
  }, {
478
- logo: V(() => [be("div", Pt, [T(z(y), {
552
+ logo: B(() => [xe("div", Bt, [T(R(ne), {
479
553
  class: "logo",
480
554
  src: s.value,
481
555
  style: {
482
556
  width: "28px",
483
557
  height: "28px"
484
558
  }
485
- }, null, 8, ["src"]), T(z(te), {
559
+ }, null, 8, ["src"]), T(R(te), {
486
560
  "animation-speed": 8,
487
561
  "class-name": "ml-2 text-xl !font-bold",
488
562
  "show-border": !1,
489
563
  text: r.value
490
564
  }, null, 8, ["text"])])]),
491
- default: V(() => [T(re, { model: z(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
565
+ default: B(() => [T(ie, { model: R(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
492
566
  _: 1
493
567
  }, 8, ["expanded", "value"]));
494
568
  }
495
- }), [["__scopeId", "data-v-36275803"]]), It = /* @__PURE__ */ E({
569
+ }), [["__scopeId", "data-v-36275803"]]), Ht = /* @__PURE__ */ E({
496
570
  __name: "Breadcrumb",
497
571
  setup(e, { expose: t }) {
498
- let n = U(), r = W(), i = K(), a = b(() => {
572
+ let n = H(), r = U(), i = K(), a = b(() => {
499
573
  let e = n.matched.map((e) => ({
500
574
  name: e.name,
501
575
  title: e.meta.title
@@ -508,170 +582,96 @@ var Nt = H("router", () => {
508
582
  function o(e) {
509
583
  r.push(i.recentRouters.find((t) => t.name === e));
510
584
  }
511
- return t({ items: a }), (e, t) => a.value.length > 0 ? (P(), x(z(Ie), {
585
+ return t({ items: a }), (e, t) => a.value.length > 0 ? (N(), x(R(Re), {
512
586
  key: 0,
513
587
  class: "absolute top-px z-10 py-1!"
514
588
  }, {
515
- default: V(() => [(P(!0), C(ve, null, I(a.value, (e) => (P(), x(z(Le), {
589
+ default: B(() => [(N(!0), C(ye, null, F(a.value, (e) => (N(), x(R(ze), {
516
590
  key: e.name,
517
591
  disabled: e.disabled,
518
592
  onClick: (t) => o(e.name)
519
593
  }, {
520
- default: V(() => [w(R(e.title), 1)]),
594
+ default: B(() => [w(L(e.title), 1)]),
521
595
  _: 2
522
596
  }, 1032, ["disabled", "onClick"]))), 128))]),
523
597
  _: 1
524
598
  })) : S("v-if", !0);
525
599
  }
526
- }), Lt = /* @__PURE__ */ function(e) {
527
- return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
528
- }(Lt || {}), Rt = /* @__PURE__ */ new Set();
529
- function zt(e, t, n) {
530
- let i = b(() => typeof t.body == "function" ? t.body(k) : t.body), a = F(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: o, stop: s } = st(a, {
531
- controls: !0,
532
- initialValue: !0
533
- }), c = {
534
- closeBtn: () => k($, {
535
- icon: "mdi:close",
536
- shape: "circle",
537
- size: "small",
538
- theme: "default",
539
- variant: "base"
540
- }),
541
- closeOnEscKeydown: !1,
542
- closeOnOverlayClick: !1,
543
- closeWhenCloseAll: !0,
544
- destroyOnClose: !0,
545
- draggable: !0,
546
- header: "提示",
547
- mode: "modal",
548
- placement: "center",
549
- width: "fit-content",
550
- ...t ?? {},
551
- body: () => k(Fn, {}, { default: () => i.value })
552
- }, l, u = {
553
- ...c,
554
- onClosed: () => {
555
- a.value !== null && o.value && a.value.focus(), s(), c.onClosed?.(), Rt.delete(l);
556
- }
557
- };
558
- delete u.closeWhenCloseAll;
559
- let d = r();
560
- return l = e === void 0 ? He(u, n ?? d) : He[e](u, n ?? d), c.closeWhenCloseAll && Rt.add(l), l;
561
- }
562
- var Bt = function(...e) {
563
- return zt(void 0, ...e);
564
- };
565
- Object.values(Lt).forEach((e) => {
566
- Bt[e] = e === "closeAll" ? () => {
567
- Rt.forEach((e) => {
568
- e.hide();
569
- });
570
- } : (...t) => zt(e, ...t);
571
- });
572
- //#endregion
573
- //#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
574
- var Vt = (e, t) => {
575
- let n = { ...typeof e == "string" ? {} : e };
576
- return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
577
- let a = Bt(typeof e == "string" ? {
578
- body: e,
579
- onConfirm: () => {
580
- a.hide(), r();
581
- },
582
- theme: "warning"
583
- } : Oe({
584
- ...n,
585
- onClose: (t) => {
586
- let { trigger: n } = t;
587
- n === "cancel" ? Promise.resolve(e.onCancelCallback?.()).then(() => {
588
- a.hide(), e.useReject === !0 && i(/* @__PURE__ */ Error("confirm_cancel"));
589
- }) : a.hide();
590
- },
591
- onConfirm: () => {
592
- a.setConfirmLoading(!0), Promise.resolve(e.onConfirmCallback?.()).then(() => {
593
- a.hide(), r();
594
- }).finally(() => {
595
- a.setConfirmLoading(!1);
596
- });
597
- }
598
- }), t);
599
- });
600
- }, Ht = /* @__PURE__ */ new Map();
601
- function Ut(e) {
600
+ }), Ut = /* @__PURE__ */ new Map();
601
+ function Wt(e) {
602
602
  let t = X.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
603
603
  ...e,
604
604
  label: e.userName,
605
605
  value: e.userId
606
606
  })));
607
607
  e.forEach((e) => {
608
- Ht.set(e, t.then((t) => t.find((t) => t.value === e)));
608
+ Ut.set(e, t.then((t) => t.find((t) => t.value === e)));
609
609
  });
610
610
  }
611
- var Wt = [];
612
- function Gt(e) {
613
- return Wt.includes(e) || Wt.push(e), new Promise((t) => {
611
+ var Gt = [];
612
+ function Kt(e) {
613
+ return Gt.includes(e) || Gt.push(e), new Promise((t) => {
614
614
  setTimeout(() => {
615
- let n = Wt.filter((e) => !Ht.has(e));
616
- n.length > 0 && Ut(n), Wt.length = 0, Ht.get(e).then((e) => {
615
+ let n = Gt.filter((e) => !Ut.has(e));
616
+ n.length > 0 && Wt(n), Gt.length = 0, Ut.get(e).then((e) => {
617
617
  t(e);
618
618
  });
619
619
  });
620
620
  });
621
621
  }
622
622
  var q = /* @__PURE__ */ new Map();
623
- function Kt() {
624
- Wt.length = 0, Ht.clear(), q.clear();
623
+ function qt() {
624
+ Gt.length = 0, Ut.clear(), q.clear();
625
625
  }
626
- function qt(e) {
627
- Ht.delete(e), q.has(e) && Gt(e).then((t) => {
626
+ function Jt(e) {
627
+ Ut.delete(e), q.has(e) && Kt(e).then((t) => {
628
628
  q.get(e).value = t;
629
629
  });
630
630
  }
631
- function Jt(e) {
631
+ function Yt(e) {
632
632
  let t;
633
- return q.has(e) ? t = q.get(e) : (t = F(null), q.set(e, t), Gt(e).then((e) => {
633
+ return q.has(e) ? t = q.get(e) : (t = P(null), q.set(e, t), Kt(e).then((e) => {
634
634
  t.value = e;
635
635
  })), t;
636
636
  }
637
637
  //#endregion
638
638
  //#region ../../packages/dlzn-ui/store/modules/login.ts
639
- function Yt(e) {
639
+ function Xt(e) {
640
640
  return X.Post("login", e, { meta: {
641
641
  useLoading: "登录中...",
642
642
  useToken: !1
643
643
  } });
644
644
  }
645
- function Xt() {
645
+ function Zt() {
646
646
  return X.Post("logout", void 0, { meta: {
647
647
  useLoading: "退出登录中...",
648
648
  useSuccessMsg: !0
649
649
  } });
650
650
  }
651
- var Zt = H("login", () => {
652
- let e = F(""), t = U(), n = W();
651
+ var Qt = V("login", () => {
652
+ let e = P(""), t = H(), n = U();
653
653
  async function r(t) {
654
- let n = await Yt(t);
654
+ let n = await Xt(t);
655
655
  e.value = n.token, await Q().getUserInfo();
656
656
  }
657
657
  function i() {
658
- e.value = "", _().clear(), Nt().clear(), Q().clear(), mn(), Kt(), oe();
658
+ e.value = "", v().clear(), zt().clear(), Q().clear(), hn(), qt(), se();
659
659
  }
660
- B(() => t.name, () => {
660
+ z(() => t.name, () => {
661
661
  t.name === "Login" && i();
662
662
  });
663
663
  async function a() {
664
- await Xt(), await n.push({ name: "Login" }), i();
664
+ await Zt(), await n.push({ name: "Login" }), i();
665
665
  }
666
666
  return {
667
667
  login: r,
668
668
  logout: a,
669
669
  token: e
670
670
  };
671
- }, { persist: { pick: ["token"] } }), Qt = { class: "flex items-center justify-between" }, $t = /*#__PURE__*/ v(/* @__PURE__ */ E({
671
+ }, { persist: { pick: ["token"] } }), $t = { class: "flex items-center justify-between" }, en = /*#__PURE__*/ y(/* @__PURE__ */ E({
672
672
  __name: "Header",
673
673
  setup(t) {
674
- let n = U(), r = W(), i = Q(), a = G(), o = K();
674
+ let n = H(), r = U(), i = Q(), a = G(), o = K();
675
675
  function s(e) {
676
676
  r.push(o.recentRouters.find((t) => t.name === e));
677
677
  }
@@ -680,8 +680,8 @@ var Zt = H("login", () => {
680
680
  }
681
681
  let l = async (e) => {
682
682
  let { value: t } = e;
683
- t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await Vt("确定要退出登录吗?"), Zt().logout());
684
- }, u = h.isMd;
683
+ t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await W("确定要退出登录吗?"), Qt().logout());
684
+ }, u = g.isMd;
685
685
  function d(e, t) {
686
686
  let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
687
687
  o.recentRouters.length > 1 && i.push({
@@ -702,74 +702,82 @@ var Zt = H("login", () => {
702
702
  onClick: () => {
703
703
  l > s && r.push(u), o.recentRouters = o.recentRouters.slice(0, s + 1);
704
704
  }
705
- }), ie(e, i);
705
+ }), ae(e, i);
706
706
  }
707
- return (t, r) => (P(), x(z(Ye), { class: "border-b border-b-(--td-border-level-2-color)" }, {
708
- default: V(() => [T(z(Je), {
707
+ return (t, r) => (N(), x(R(Ze), { class: "border-b border-b-(--td-border-level-2-color)" }, {
708
+ default: B(() => [T(R(Xe), {
709
709
  "expand-type": "popup",
710
- value: z(n).name,
710
+ value: R(n).name,
711
711
  onChange: s
712
712
  }, {
713
- logo: V(() => [T(z($), {
713
+ logo: B(() => [T(R($), {
714
714
  class: "ml-0! shrink-0",
715
715
  shape: "circle",
716
716
  size: "large",
717
717
  variant: "text",
718
- onClick: r[0] ||= (e) => z(a).drawerOpen = !z(a).drawerOpen
718
+ onClick: r[0] ||= (e) => R(a).drawerOpen = !R(a).drawerOpen
719
719
  }, {
720
- default: V(() => [T(z(e), { icon: "lineicons:menu-hamburger-1" })]),
720
+ default: B(() => [T(R(e), { icon: "lineicons:menu-hamburger-1" })]),
721
721
  _: 1
722
722
  })]),
723
- operations: V(() => [T(z(Ge), {
723
+ operations: B(() => [T(R(qe), {
724
724
  options: [{
725
725
  content: "个人中心",
726
- value: "profile"
726
+ value: "profile",
727
+ prefixIcon: () => O(R(e), {
728
+ icon: "material-symbols:account-circle",
729
+ size: "16"
730
+ })
727
731
  }, {
728
732
  content: "退出登录",
729
- value: "logout"
733
+ value: "logout",
734
+ prefixIcon: () => O(R(e), {
735
+ icon: "material-symbols:logout",
736
+ size: "16"
737
+ })
730
738
  }],
731
739
  placement: "bottom",
732
740
  trigger: "click",
733
741
  onClick: l
734
742
  }, {
735
- default: V(() => [z(u) ? (P(), x(z($), {
743
+ default: B(() => [R(u) ? (N(), x(R($), {
736
744
  key: 0,
737
745
  shape: "square",
738
746
  variant: "text"
739
747
  }, {
740
- icon: V(() => [T(z(e), { icon: "material-symbols:account-circle" })]),
748
+ icon: B(() => [T(R(e), { icon: "material-symbols:account-circle" })]),
741
749
  _: 1
742
- })) : (P(), x(z($), {
750
+ })) : (N(), x(R($), {
743
751
  key: 1,
744
752
  variant: "text"
745
753
  }, {
746
- icon: V(() => [T(z(e), {
754
+ icon: B(() => [T(R(e), {
747
755
  class: "mr-2!",
748
756
  icon: "material-symbols:account-circle"
749
757
  })]),
750
- suffix: V(() => [T(z(e), {
758
+ suffix: B(() => [T(R(e), {
751
759
  icon: "icon-park-outline:down",
752
760
  size: "18"
753
761
  })]),
754
- default: V(() => [w(" " + R(z(i).userInfo.userName) + " ", 1)]),
762
+ default: B(() => [w(" " + L(R(i).userInfo.userName) + " ", 1)]),
755
763
  _: 1
756
764
  }))]),
757
765
  _: 1
758
- })]),
759
- default: V(() => [(P(!0), C(ve, null, I(z(o).recentRouters, (t) => (P(), x(z($e), {
766
+ }, 8, ["options"])]),
767
+ default: B(() => [(N(!0), C(ye, null, F(R(o).recentRouters, (t) => (N(), x(R(tt), {
760
768
  key: t.name,
761
769
  value: t.name,
762
770
  onContextmenu: (e) => d(e, t.name)
763
771
  }, {
764
- default: V(() => [be("div", Qt, [be("span", null, R(z(Y)(t.name).meta.title), 1), z(o).recentRouters.length > 1 ? (P(), x(z($), {
772
+ default: B(() => [xe("div", $t, [xe("span", null, L(R(Y)(t.name).meta.title), 1), R(o).recentRouters.length > 1 ? (N(), x(R($), {
765
773
  key: 0,
766
774
  class: "ml-1!",
767
775
  shape: "square",
768
776
  size: "small",
769
777
  variant: "text",
770
- onClick: Fe((e) => c(t.name), ["stop"])
778
+ onClick: Le((e) => c(t.name), ["stop"])
771
779
  }, {
772
- icon: V(() => [T(z(e), {
780
+ icon: B(() => [T(R(e), {
773
781
  icon: "material-symbols:close",
774
782
  style: { "font-size": "12px !important" }
775
783
  })]),
@@ -782,40 +790,40 @@ var Zt = H("login", () => {
782
790
  _: 1
783
791
  }));
784
792
  }
785
- }), [["__scopeId", "data-v-cdf58b1a"]]), en = /*#__PURE__*/ v(/* @__PURE__ */ E({
793
+ }), [["__scopeId", "data-v-950ebb61"]]), tn = /*#__PURE__*/ y(/* @__PURE__ */ E({
786
794
  __name: "Entry",
787
795
  setup(e) {
788
- let t = U(), n = G(), r = K(), i = _(), a = b(() => r.recentRouters.filter((e) => Y(e.name).meta.noCache === !1).map((e) => e.name)), o = Pe("breadcrumb"), s = b(() => (o.value?.items.length ?? 0) > 0), c = b(() => h.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), l = h.isMd, u = Pe("contentRef"), { height: d } = ot(u);
796
+ 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);
789
797
  function f({ size: e }) {
790
798
  n.drawerSize = e;
791
799
  }
792
800
  let p = b(() => t.meta.fullScreen);
793
801
  return (e, t) => {
794
- let r = Ae("RouterView");
795
- return p.value ? (P(), x(r, { key: 0 }, {
796
- default: V(({ Component: e }) => [(P(), x(L(e)))]),
802
+ let r = Me("RouterView");
803
+ return p.value ? (N(), x(r, { key: 0 }, {
804
+ default: B(({ Component: e }) => [(N(), x(I(e)))]),
797
805
  _: 1
798
- })) : (P(), x(z(Ze), {
806
+ })) : (N(), x(R($e), {
799
807
  key: 1,
800
808
  class: "h-full"
801
809
  }, {
802
- default: V(() => [
803
- T($t),
804
- T(z(Ue), {
805
- visible: z(n).drawerOpen,
806
- "onUpdate:visible": t[0] ||= (e) => z(n).drawerOpen = e,
810
+ default: B(() => [
811
+ T(en),
812
+ T(R(Ge), {
813
+ visible: R(n).drawerOpen,
814
+ "onUpdate:visible": t[0] ||= (e) => R(n).drawerOpen = e,
807
815
  footer: !1,
808
- mode: z(l) ? "overlay" : "push",
816
+ mode: R(l) ? "overlay" : "push",
809
817
  placement: "left",
810
- "show-overlay": z(l),
811
- size: z(l) ? "200px" : `${z(n).drawerSize}px`,
818
+ "show-overlay": R(l),
819
+ size: R(l) ? "200px" : `${R(n).drawerSize}px`,
812
820
  "size-draggable": {
813
821
  max: 450,
814
822
  min: 180
815
823
  },
816
824
  onSizeDragEnd: f
817
825
  }, {
818
- default: V(() => [T(Ft, { class: "no_drawer_body_padding" })]),
826
+ default: B(() => [T(Vt, { class: "no_drawer_body_padding" })]),
819
827
  _: 1
820
828
  }, 8, [
821
829
  "visible",
@@ -823,27 +831,27 @@ var Zt = H("login", () => {
823
831
  "show-overlay",
824
832
  "size"
825
833
  ]),
826
- T(z(Ve), {
834
+ T(R(Ue), {
827
835
  ref_key: "contentRef",
828
836
  ref: u,
829
837
  class: "overflow-hidden"
830
838
  }, {
831
- default: V(() => [T(z(ee), {
839
+ default: B(() => [T(R(ee), {
832
840
  always: "",
833
- "view-class": Te(["relative flex flex-col", {
841
+ "view-class": De(["relative flex flex-col", {
834
842
  ...c.value,
835
843
  "pt-8": s.value
836
844
  }]),
837
845
  "view-style": {
838
846
  minWidth: "1200px",
839
- minHeight: `${Math.max(z(d), 438)}px`
847
+ minHeight: `${Math.max(R(d), 438)}px`
840
848
  }
841
849
  }, {
842
- default: V(() => [T(It, { ref: "breadcrumb" }, null, 512), T(r, null, {
843
- default: V(({ Component: e }) => [(P(), x(ye, {
844
- exclude: z(i).excludeKPname,
850
+ default: B(() => [T(Ht, { ref: "breadcrumb" }, null, 512), T(r, null, {
851
+ default: B(({ Component: e }) => [(N(), x(be, {
852
+ exclude: R(i).excludeKPname,
845
853
  include: a.value
846
- }, [(P(), x(L(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
854
+ }, [(N(), x(I(e), { class: "flex-auto" }))], 1032, ["exclude", "include"]))]),
847
855
  _: 1
848
856
  })]),
849
857
  _: 1
@@ -855,9 +863,9 @@ var Zt = H("login", () => {
855
863
  }));
856
864
  };
857
865
  }
858
- }), [["__scopeId", "data-v-de5cbc76"]]), tn = /* @__PURE__ */ new Set();
859
- function nn(e, t) {
860
- let n = b(() => typeof e.body == "function" ? e.body(k) : e.body), i = {
866
+ }), [["__scopeId", "data-v-de5cbc76"]]), nn = /* @__PURE__ */ new Set();
867
+ function rn(e, t) {
868
+ let n = b(() => typeof e.body == "function" ? e.body(O) : e.body), i = {
861
869
  attach: "#app",
862
870
  closeOnEscKeydown: !1,
863
871
  closeOnOverlayClick: !1,
@@ -867,30 +875,30 @@ function nn(e, t) {
867
875
  lazy: !0,
868
876
  sizeDraggable: !0,
869
877
  ...e ?? {},
870
- body: () => k(Fn, {}, { default: () => n.value })
878
+ body: () => O(In, {}, { default: () => n.value })
871
879
  }, a, o = {
872
880
  ...i,
873
881
  onClose: (e) => {
874
- i.onClose?.(e), tn.delete(a);
882
+ i.onClose?.(e), nn.delete(a);
875
883
  }
876
884
  };
877
- return delete o.closeWhenCloseAll, a = We(o, t ?? r()), i.closeWhenCloseAll && tn.add(a), a;
885
+ return delete o.closeWhenCloseAll, a = Ke(o, t ?? r()), i.closeWhenCloseAll && nn.add(a), a;
878
886
  }
879
- var rn = function(...e) {
880
- return nn(...e);
887
+ var an = function(...e) {
888
+ return rn(...e);
881
889
  };
882
- rn.closeAll = () => {
883
- tn.forEach((e) => {
890
+ an.closeAll = () => {
891
+ nn.forEach((e) => {
884
892
  e.hide?.();
885
893
  });
886
894
  };
887
895
  //#endregion
888
896
  //#region ../../packages/dlzn-ui/router/index.ts
889
- function an() {
897
+ function on() {
890
898
  return {
891
899
  children: [{
892
900
  children: [{
893
- component: m["./profile/Index.vue"],
901
+ component: h["./profile/Index.vue"],
894
902
  meta: {
895
903
  fullScreen: !1,
896
904
  hidden: !0,
@@ -902,7 +910,7 @@ function an() {
902
910
  name: "Profile",
903
911
  path: "profile"
904
912
  }],
905
- component: m["./Home.vue"],
913
+ component: h["./Home.vue"],
906
914
  meta: {
907
915
  fullScreen: !1,
908
916
  hidden: !1,
@@ -914,17 +922,17 @@ function an() {
914
922
  name: "Home",
915
923
  path: "home"
916
924
  }],
917
- component: en,
925
+ component: tn,
918
926
  name: "Index",
919
927
  path: "/"
920
928
  };
921
929
  }
922
- var J = mt({
923
- history: ht(VITE_BASE_URL),
930
+ var J = gt({
931
+ history: _t(VITE_BASE_URL),
924
932
  routes: [
925
- an(),
933
+ on(),
926
934
  {
927
- component: m["./Login.vue"],
935
+ component: h["./Login.vue"],
928
936
  meta: {
929
937
  fullScreen: !1,
930
938
  hidden: !0,
@@ -936,8 +944,8 @@ var J = mt({
936
944
  name: "Login",
937
945
  path: "/login"
938
946
  },
939
- ...m["./Register.vue"] === void 0 ? [] : [{
940
- component: m["./Register.vue"],
947
+ ...h["./Register.vue"] === void 0 ? [] : [{
948
+ component: h["./Register.vue"],
941
949
  meta: {
942
950
  fullScreen: !1,
943
951
  hidden: !0,
@@ -950,7 +958,7 @@ var J = mt({
950
958
  path: "/register"
951
959
  }],
952
960
  {
953
- component: m["./NotFound.vue"],
961
+ component: h["./NotFound.vue"],
954
962
  meta: {
955
963
  fullScreen: !1,
956
964
  hidden: !0,
@@ -967,12 +975,12 @@ var J = mt({
967
975
  strict: !0
968
976
  });
969
977
  J.beforeEach(async (e) => {
970
- if (e.query._fromLeftTree === "true" && _().add(e.name), !["Login", "Register"].includes(e.name)) return Zt().token === "" ? { name: "Login" } : Nt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), J.resolve({
978
+ 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({
971
979
  path: e.path,
972
980
  query: e.query
973
981
  }));
974
982
  }), J.afterEach((e, t, n) => {
975
- Bt.closeAll(), rn.closeAll();
983
+ kt.closeAll(), an.closeAll();
976
984
  let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
977
985
  document.title = s || G().appInfo.appName;
978
986
  let c = K();
@@ -987,29 +995,29 @@ J.beforeEach(async (e) => {
987
995
  query: e.query
988
996
  });
989
997
  }
990
- _().remove(i);
998
+ v().remove(i);
991
999
  });
992
1000
  function Y(e) {
993
1001
  if (J.hasRoute(e)) return J.getRoutes().find((t) => t.name === e);
994
1002
  }
995
1003
  //#endregion
996
1004
  //#region ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
997
- var on = 15e3, sn = "网络错误,请稍后再试";
998
- function cn(e, t = !0) {
1005
+ var sn = 15e3, cn = "网络错误,请稍后再试";
1006
+ function ln(e, t = !0) {
999
1007
  let n = {};
1000
1008
  return Object.keys(e).forEach((r) => {
1001
1009
  (!t || (Array.isArray(e[r]) ? e[r].length > 0 : !c(e[r]))) && (n[r] = e[r]);
1002
1010
  }), n;
1003
1011
  }
1004
- function ln(e, t = !0) {
1005
- return new URLSearchParams(cn(e, t)).toString();
1012
+ function un(e, t = !0) {
1013
+ return new URLSearchParams(ln(e, t)).toString();
1006
1014
  }
1007
- var X = _t({
1015
+ var X = yt({
1008
1016
  baseURL: VITE_BASE_URL,
1009
1017
  beforeRequest(e) {
1010
1018
  e.config.credentials = e.config.credentials ?? "omit";
1011
1019
  let [t, ...n] = VITE_API_PREFIX_ARRAY;
1012
- !e.url.startsWith("http") && !n.some((t) => bt.join("/", e.url).startsWith(bt.join("/", t, "/"))) && (e.url = bt.join(t, e.url)), e.meta = {
1020
+ !e.url.startsWith("http") && !n.some((t) => St.join("/", e.url).startsWith(St.join("/", t, "/"))) && (e.url = St.join(t, e.url)), e.meta = {
1013
1021
  use600Alert: !0,
1014
1022
  useDataResult: !0,
1015
1023
  useDownload: !1,
@@ -1026,10 +1034,10 @@ var X = _t({
1026
1034
  useToken: !0,
1027
1035
  ...e.meta ?? {}
1028
1036
  };
1029
- let r = Zt(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = e.meta;
1037
+ let r = Qt(), { useEmptyData: a, useEmptyParams: o, useFormData: s, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = e.meta;
1030
1038
  l || G().requestActive(), f && (r.token ? e.config.headers.Authorization = r.token : e.abort()), u !== !1 && i.show(u === !0 ? void 0 : u);
1031
1039
  let p = e.config.params;
1032
- if (typeof p != "string" && (e.config.params = ln(p, o)), a && pt(e.data)) {
1040
+ if (typeof p != "string" && (e.config.params = un(p, o)), a && ht(e.data)) {
1033
1041
  let t = {}, n = e.data;
1034
1042
  Object.keys(n).forEach((e) => {
1035
1043
  c(n[e]) || (t[e] = n[e]);
@@ -1041,10 +1049,10 @@ var X = _t({
1041
1049
  t.append(n, e.data[n]);
1042
1050
  }), e.data = t;
1043
1051
  }
1044
- e.config.timeout === on && (s || e.data instanceof FormData || d) && (e.config.timeout = 0);
1052
+ e.config.timeout === sn && (s || e.data instanceof FormData || d) && (e.config.timeout = 0);
1045
1053
  },
1046
1054
  cacheFor: null,
1047
- requestAdapter: vt(),
1055
+ requestAdapter: bt(),
1048
1056
  responded: {
1049
1057
  onComplete: (e) => {
1050
1058
  e.meta.useLoading !== !1 && i.hide();
@@ -1054,25 +1062,25 @@ var X = _t({
1054
1062
  if (e instanceof Error) {
1055
1063
  let { message: t } = e;
1056
1064
  if (t.toLowerCase().includes("abort")) return Promise.reject(e);
1057
- if (t.toLowerCase().includes("timeout")) return n && p.error("请求超时"), Promise.reject(e);
1065
+ if (t.toLowerCase().includes("timeout")) return n && m.error("请求超时"), Promise.reject(e);
1058
1066
  }
1059
- return n && p.error(sn), Promise.reject(e);
1067
+ return n && m.error(cn), Promise.reject(e);
1060
1068
  },
1061
1069
  onSuccess: async (e, t) => {
1062
1070
  if (typeof e == "string") return e;
1063
- let { useDataResult: r, useDownload: i, useFailMsg: a, useResponseBlob: o, useResponseText: s, useSuccessMsg: c, useSysFailMsg: l, useToken: u } = t.meta, { headers: f, ok: m, status: ee } = e;
1064
- if (m === !1) {
1071
+ 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;
1072
+ if (h === !1) {
1065
1073
  if (l) {
1066
1074
  let e = {
1067
1075
  403: "当前操作没有权限",
1068
1076
  404: "访问资源不存在",
1069
1077
  500: "服务不可用,请稍后再试或联系管理员!"
1070
- }[ee] ?? sn;
1071
- p.error(e);
1078
+ }[ee] ?? cn;
1079
+ m.error(e);
1072
1080
  }
1073
1081
  return Promise.reject(e);
1074
1082
  }
1075
- if (o && !f.get("content-type")?.includes("application/json")) {
1083
+ if (o && !p.get("content-type")?.includes("application/json")) {
1076
1084
  let t;
1077
1085
  try {
1078
1086
  t = await e.blob();
@@ -1080,54 +1088,59 @@ var X = _t({
1080
1088
  return n.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
1081
1089
  }
1082
1090
  if (i !== !1) {
1083
- if (typeof i == "string") d(t, i);
1091
+ if (typeof i == "string") f(t, i);
1084
1092
  else {
1085
1093
  let r = new URLSearchParams((e.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
1086
- r ? d(t, r) : n.error("返回的 response header 没有文件名");
1094
+ r ? f(t, r) : n.error("返回的 response header 没有文件名");
1087
1095
  }
1088
1096
  }
1089
1097
  return t;
1090
1098
  }
1091
- if (s && !f.get("content-type")?.includes("application/json")) {
1099
+ if (s && !p.get("content-type")?.includes("application/json")) {
1092
1100
  let t;
1093
1101
  try {
1094
1102
  t = await e.text();
1095
1103
  } catch (e) {
1096
- return n.error("返回的 response text() 方法所解析"), Promise.reject(e);
1104
+ return n.error("返回的 response 不能被text() 方法所解析"), Promise.reject(e);
1097
1105
  }
1098
1106
  return t;
1099
1107
  }
1100
- let h;
1108
+ let g;
1101
1109
  try {
1102
- h = await e.json();
1110
+ g = await e.json();
1103
1111
  } catch (e) {
1104
1112
  return n.error("返回的 response 不能被json() 方法所解析"), Promise.reject(e);
1105
1113
  }
1106
- if (h?.code !== void 0) {
1107
- let { code: e, data: t, msg: n } = h;
1114
+ if (g?.code !== void 0) {
1115
+ let { code: e, data: t, msg: n } = g;
1108
1116
  if (e >= 400) {
1109
1117
  if (e === 600) {
1110
- if (!o) return h;
1111
- } else e === 401 && u ? J.push({ name: "Login" }) : a !== !1 && p.error(a === !0 ? n : a);
1112
- return Promise.reject(h);
1118
+ if (d(n).then((e) => {
1119
+ W({
1120
+ body: () => O("div", { innerHTML: e }),
1121
+ cancelBtn: null
1122
+ });
1123
+ }), !o) return g;
1124
+ } else e === 401 && u ? J.push({ name: "Login" }) : a !== !1 && m.error(a === !0 ? n : a);
1125
+ return Promise.reject(g);
1113
1126
  }
1114
1127
  {
1115
- let i = gt.alovaResCodeSuccessCb?.({
1128
+ let i = vt.alovaResCodeSuccessCb?.({
1116
1129
  code: e,
1117
1130
  data: t,
1118
1131
  msg: n
1119
1132
  });
1120
- return i === void 0 ? (c && p(n), r ? t === void 0 ? h : t : h) : i;
1133
+ return i === void 0 ? (c && m(n), r ? t === void 0 ? g : t : g) : i;
1121
1134
  }
1122
1135
  }
1123
- return h;
1136
+ return g;
1124
1137
  }
1125
1138
  },
1126
1139
  shareRequest: !1,
1127
- statesHook: yt,
1128
- timeout: on
1129
- }), un = /* @__PURE__ */ new Map();
1130
- function dn(e) {
1140
+ statesHook: xt,
1141
+ timeout: sn
1142
+ }), dn = /* @__PURE__ */ new Map();
1143
+ function fn(e) {
1131
1144
  let t = X.Get(`system/dict/data/types/${e.join(",")}`, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
1132
1145
  cssClass: e.cssClass,
1133
1146
  dictType: e.dictType,
@@ -1136,42 +1149,42 @@ function dn(e) {
1136
1149
  value: e.dictValue
1137
1150
  })));
1138
1151
  e.forEach((e) => {
1139
- un.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
1152
+ dn.set(e, t.then((t) => t.filter((t) => t.dictType === e)));
1140
1153
  });
1141
1154
  }
1142
- var fn = [];
1143
- function pn(e) {
1144
- return fn.includes(e) || fn.push(e), new Promise((t) => {
1155
+ var pn = [];
1156
+ function mn(e) {
1157
+ return pn.includes(e) || pn.push(e), new Promise((t) => {
1145
1158
  setTimeout(() => {
1146
- let n = fn.filter((e) => !un.has(e));
1147
- n.length > 0 && dn(n), fn.length = 0, un.get(e).then((e) => {
1159
+ let n = pn.filter((e) => !dn.has(e));
1160
+ n.length > 0 && fn(n), pn.length = 0, dn.get(e).then((e) => {
1148
1161
  t(e);
1149
1162
  });
1150
1163
  });
1151
1164
  });
1152
1165
  }
1153
1166
  var Z = /* @__PURE__ */ new Map();
1154
- function mn() {
1155
- fn.length = 0, un.clear(), Z.clear();
1156
- }
1157
- function hn(e, t) {
1158
- let n = gn(e);
1159
- return t === void 0 ? f(n) : f(n, t);
1167
+ function hn() {
1168
+ pn.length = 0, dn.clear(), Z.clear();
1160
1169
  }
1161
1170
  function gn(e, t) {
1171
+ let n = _n(e);
1172
+ return t === void 0 ? p(n) : p(n, t);
1173
+ }
1174
+ function _n(e, t) {
1162
1175
  let n;
1163
- return Z.has(e) ? n = Z.get(e) : (n = F([]), Z.set(e, n), pn(e).then((e) => {
1176
+ return Z.has(e) ? n = Z.get(e) : (n = P([]), Z.set(e, n), mn(e).then((e) => {
1164
1177
  n.value = e;
1165
1178
  })), b(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
1166
1179
  }
1167
- function _n(e) {
1168
- un.delete(e), Z.has(e) && pn(e).then((t) => {
1180
+ function vn(e) {
1181
+ dn.delete(e), Z.has(e) && mn(e).then((t) => {
1169
1182
  Z.get(e).value = t;
1170
1183
  });
1171
1184
  }
1172
1185
  //#endregion
1173
1186
  //#region ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
1174
- var vn = /* @__PURE__ */ E({
1187
+ var yn = /* @__PURE__ */ E({
1175
1188
  inheritAttrs: !1,
1176
1189
  name: "TCheckboxGroup",
1177
1190
  __name: "checkbox-group",
@@ -1204,7 +1217,7 @@ var vn = /* @__PURE__ */ E({
1204
1217
  }
1205
1218
  let s = b(() => {
1206
1219
  let e;
1207
- return r.dicCode ? (r.options && n.error("TCheckboxGroup: dicCode and options cannot be used together"), e = gn(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({
1220
+ 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({
1208
1221
  checkAll: !0,
1209
1222
  label: "全选"
1210
1223
  })), e;
@@ -1222,7 +1235,7 @@ var vn = /* @__PURE__ */ E({
1222
1235
  e[t] === void 0 && delete e[t];
1223
1236
  }), e;
1224
1237
  });
1225
- return (e, t) => (P(), x(L(k(z(ze), j(e.$attrs, {
1238
+ return (e, t) => (N(), x(I(O(R(Ve), A(e.$attrs, {
1226
1239
  ...d.value,
1227
1240
  options: s.value,
1228
1241
  modelValue: u.value,
@@ -1232,10 +1245,10 @@ var vn = /* @__PURE__ */ E({
1232
1245
  ref: o
1233
1246
  }), e.$slots))));
1234
1247
  }
1235
- }), yn = /* @__PURE__ */ E({
1248
+ }), bn = /* @__PURE__ */ E({
1236
1249
  inheritAttrs: !1,
1237
1250
  __name: "cron",
1238
- props: /*@__PURE__*/ A({
1251
+ props: /*@__PURE__*/ k({
1239
1252
  modelValue: {},
1240
1253
  adornment: {},
1241
1254
  align: {},
@@ -1280,19 +1293,19 @@ var vn = /* @__PURE__ */ E({
1280
1293
  onPaste: { type: Function },
1281
1294
  onValidate: { type: Function },
1282
1295
  onWheel: { type: Function }
1283
- }, ce),
1296
+ }, le),
1284
1297
  emits: ["update:modelValue"],
1285
1298
  setup(e, { emit: t }) {
1286
- let n = e, r = t, i = Ce("isFormDisabled", b(() => !1)), a = Ce("isFormReadonly", b(() => !1)), o = b(() => {
1299
+ let n = e, r = t, i = Te("isFormDisabled", b(() => !1)), a = Te("isFormReadonly", b(() => !1)), o = b(() => {
1287
1300
  let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
1288
1301
  return {
1289
1302
  ...n,
1290
- adornment: { append: () => k($, {
1303
+ adornment: { append: () => O($, {
1291
1304
  default: "cron",
1292
1305
  onClick: () => {
1293
- let i = F(null);
1294
- Vt({
1295
- body: () => k(Se(() => import("../components/cron/src/Picker.mjs")), {
1306
+ let i = P(null);
1307
+ W({
1308
+ body: () => O(Ce(() => import("../components/cron/src/Picker.mjs")), {
1296
1309
  disabled: e,
1297
1310
  modelValue: n.modelValue,
1298
1311
  onVnodeMounted: (e) => {
@@ -1314,20 +1327,20 @@ var vn = /* @__PURE__ */ E({
1314
1327
  variant: "text"
1315
1328
  }) }
1316
1329
  };
1317
- }), s = Me(), c = D();
1330
+ }), s = Pe(), c = D();
1318
1331
  function l(e) {
1319
1332
  c.exposed = e ?? {};
1320
1333
  }
1321
- let u = b(() => j(s, {
1334
+ let u = b(() => A(s, {
1322
1335
  ...o.value,
1323
1336
  onChange: (...e) => {
1324
1337
  r("update:modelValue", e[0]), n.onChange?.(...e);
1325
1338
  },
1326
1339
  ref: l
1327
1340
  }));
1328
- return (e, t) => (P(), x(z(le), N(O(u.value)), null, 16));
1341
+ return (e, t) => (N(), x(R(ue), M(we(u.value)), null, 16));
1329
1342
  }
1330
- }), bn = /* @__PURE__ */ E({
1343
+ }), xn = /* @__PURE__ */ E({
1331
1344
  inheritAttrs: !1,
1332
1345
  name: "TRadioGroup",
1333
1346
  __name: "radio-group",
@@ -1361,7 +1374,7 @@ var vn = /* @__PURE__ */ E({
1361
1374
  function o(e) {
1362
1375
  a.exposed = e ?? {};
1363
1376
  }
1364
- let s = b(() => r.dicCode ? (r.options && n.error("TRadioGroup: dicCode and options cannot be used together"), gn(r.dicCode).value) : typeof r.options == "string" ? ae(r.options).value : r.options), d = b(() => {
1377
+ 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(() => {
1365
1378
  let e = { ...r };
1366
1379
  return delete e.dicCode, Object.keys(e).forEach((t) => {
1367
1380
  e[t] === void 0 && delete e[t];
@@ -1374,18 +1387,18 @@ var vn = /* @__PURE__ */ E({
1374
1387
  }
1375
1388
  return r.modelValue;
1376
1389
  });
1377
- return (e, t) => (P(), x(L(k(z(et), j(e.$attrs, {
1390
+ return (e, t) => (N(), x(I(O(R(nt), A(e.$attrs, {
1378
1391
  ...d.value,
1379
1392
  options: s.value,
1380
1393
  modelValue: f.value,
1381
1394
  onChange: (...e) => {
1382
- let [t, ...n] = e, a = z(c)(t) ? "" : t;
1395
+ let [t, ...n] = e, a = R(c)(t) ? "" : t;
1383
1396
  i("update:modelValue", a), r.onChange?.(a, ...n);
1384
1397
  },
1385
1398
  ref: o
1386
1399
  }), e.$slots))));
1387
1400
  }
1388
- }), xn = {
1401
+ }), Sn = {
1389
1402
  clearable: !0,
1390
1403
  disabled: void 0,
1391
1404
  filterable: void 0,
@@ -1406,11 +1419,11 @@ var vn = /* @__PURE__ */ E({
1406
1419
  }),
1407
1420
  showArrow: !0,
1408
1421
  showCheckAll: !1
1409
- }, Sn = /* @__PURE__ */ E({
1422
+ }, Cn = /* @__PURE__ */ E({
1410
1423
  inheritAttrs: !1,
1411
1424
  name: "TSelect",
1412
1425
  __name: "select",
1413
- props: /*@__PURE__*/ A({
1426
+ props: /*@__PURE__*/ k({
1414
1427
  adornment: {},
1415
1428
  dicCode: {},
1416
1429
  modelValue: {},
@@ -1470,7 +1483,7 @@ var vn = /* @__PURE__ */ E({
1470
1483
  onPopupVisibleChange: { type: Function },
1471
1484
  onRemove: { type: Function },
1472
1485
  onSearch: { type: Function }
1473
- }, xn),
1486
+ }, Sn),
1474
1487
  setup(e) {
1475
1488
  let t = e, r = D();
1476
1489
  function i(e) {
@@ -1478,7 +1491,7 @@ var vn = /* @__PURE__ */ E({
1478
1491
  }
1479
1492
  let a = b(() => {
1480
1493
  let e;
1481
- 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 = gn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? n.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
1494
+ 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({
1482
1495
  checkAll: !0,
1483
1496
  [t.keys?.label ?? "label"]: "全选"
1484
1497
  }) : n.error("TSelect: showCheckAll is supported only for multiple select")), e;
@@ -1502,9 +1515,9 @@ var vn = /* @__PURE__ */ E({
1502
1515
  return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
1503
1516
  e[t] === void 0 && delete e[t];
1504
1517
  }), e;
1505
- }), d = F(0);
1506
- Ee(() => {
1507
- dt(r.exposed.$el, () => {
1518
+ }), d = P(0);
1519
+ Oe(() => {
1520
+ pt(r.exposed.$el, () => {
1508
1521
  d.value = r.exposed.$el.offsetWidth;
1509
1522
  }, { box: "border-box" });
1510
1523
  });
@@ -1528,16 +1541,16 @@ var vn = /* @__PURE__ */ E({
1528
1541
  })
1529
1542
  },
1530
1543
  ref: i
1531
- })), m = Xe;
1532
- return (t, n) => e.adornment ? (P(), x(L(k(z(m), t.$attrs, {
1544
+ })), m = Qe;
1545
+ return (t, n) => e.adornment ? (N(), x(I(O(R(m), t.$attrs, {
1533
1546
  ...e.adornment,
1534
- default: () => k(z(tt), p.value, t.$slots)
1535
- })), { key: 0 })) : (P(), x(L(k(z(tt), j(t.$attrs, p.value), t.$slots)), { key: 1 }));
1547
+ default: () => O(R(rt), p.value, t.$slots)
1548
+ })), { key: 0 })) : (N(), x(I(O(R(rt), A(t.$attrs, p.value), t.$slots)), { key: 1 }));
1536
1549
  }
1537
- }), Cn = /* @__PURE__ */ E({
1550
+ }), wn = /* @__PURE__ */ E({
1538
1551
  inheritAttrs: !1,
1539
1552
  __name: "select-sys-user",
1540
- props: /*@__PURE__*/ A({
1553
+ props: /*@__PURE__*/ k({
1541
1554
  modelValue: {},
1542
1555
  adornment: {},
1543
1556
  autoWidth: { type: Boolean },
@@ -1576,19 +1589,19 @@ var vn = /* @__PURE__ */ E({
1576
1589
  onMouseleave: { type: Function },
1577
1590
  onPaste: { type: Function },
1578
1591
  onRemove: { type: Function }
1579
- }, pe),
1592
+ }, me),
1580
1593
  emits: ["update:modelValue"],
1581
1594
  setup(e, { emit: t }) {
1582
- let n = e, r = t, i = Ce("isFormDisabled", b(() => !1)), a = Ce("isFormReadonly", b(() => !1)), o = b(() => {
1595
+ let n = e, r = t, i = Te("isFormDisabled", b(() => !1)), a = Te("isFormReadonly", b(() => !1)), o = b(() => {
1583
1596
  let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
1584
1597
  return {
1585
1598
  ...n,
1586
- adornment: e || t ? void 0 : { append: () => k($, {
1599
+ adornment: e || t ? void 0 : { append: () => O($, {
1587
1600
  default: "选择用户",
1588
1601
  onClick: () => {
1589
- let e = F(null);
1590
- Vt({
1591
- body: () => k(Se(() => import("../components/select-sys-user/src/Picker.mjs")), {
1602
+ let e = P(null);
1603
+ W({
1604
+ body: () => O(Ce(() => import("../components/select-sys-user/src/Picker.mjs")), {
1592
1605
  max: n.max,
1593
1606
  modelValue: n.modelValue,
1594
1607
  onVnodeMounted: (t) => {
@@ -1609,11 +1622,11 @@ var vn = /* @__PURE__ */ E({
1609
1622
  variant: "text"
1610
1623
  }) }
1611
1624
  };
1612
- }), s = Me(), c = D();
1625
+ }), s = Pe(), c = D();
1613
1626
  function l(e) {
1614
1627
  c.exposed = e ?? {};
1615
1628
  }
1616
- let u = b(() => j(s, {
1629
+ let u = b(() => A(s, {
1617
1630
  ...o.value,
1618
1631
  inputProps: {
1619
1632
  readonly: !0,
@@ -1625,19 +1638,19 @@ var vn = /* @__PURE__ */ E({
1625
1638
  placeholder: "请选择用户",
1626
1639
  ref: l
1627
1640
  }));
1628
- return (e, t) => (P(), x(z(me), N(O(u.value)), {
1629
- tag: V(({ value: e }) => [w(R(z(Jt)(e).value?.userName), 1)]),
1641
+ return (e, t) => (N(), x(R(he), M(we(u.value)), {
1642
+ tag: B(({ value: e }) => [w(L(R(Yt)(e).value?.userName), 1)]),
1630
1643
  _: 1
1631
1644
  }, 16));
1632
1645
  }
1633
- }), wn = {
1646
+ }), Tn = {
1634
1647
  checkable: !1,
1635
1648
  disabled: void 0,
1636
1649
  expandOnClickNode: void 0,
1637
1650
  hover: !0,
1638
1651
  icon: () => (e, t) => {
1639
1652
  let n = "";
1640
- 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($, {
1653
+ 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($, {
1641
1654
  icon: n,
1642
1655
  shape: "circle",
1643
1656
  size: "small",
@@ -1649,11 +1662,11 @@ var vn = /* @__PURE__ */ E({
1649
1662
  line: !0,
1650
1663
  transition: !0,
1651
1664
  valueMode: "all"
1652
- }, Tn = /* @__PURE__ */ E({
1665
+ }, En = /* @__PURE__ */ E({
1653
1666
  inheritAttrs: !1,
1654
1667
  name: "TTree",
1655
1668
  __name: "tree",
1656
- props: /*@__PURE__*/ A({
1669
+ props: /*@__PURE__*/ k({
1657
1670
  icon: { type: [Function, Boolean] },
1658
1671
  "onUpdate:actived": { type: Function },
1659
1672
  "onUpdate:expanded": { type: Function },
@@ -1706,9 +1719,9 @@ var vn = /* @__PURE__ */ E({
1706
1719
  onLoad: { type: Function },
1707
1720
  onScroll: { type: Function },
1708
1721
  treeStore: {}
1709
- }, wn),
1722
+ }, Tn),
1710
1723
  setup(e, { expose: t }) {
1711
- let n = e, r = Ne(), i = b(() => {
1724
+ let n = e, r = Fe(), i = b(() => {
1712
1725
  let e = { ...n };
1713
1726
  return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
1714
1727
  e[t] === void 0 && delete e[t];
@@ -1717,12 +1730,12 @@ var vn = /* @__PURE__ */ E({
1717
1730
  function o(e) {
1718
1731
  a.exposed = e ?? {};
1719
1732
  }
1720
- return t({}), (e, t) => (P(), x(L(k(z(nt), j(e.$attrs, {
1733
+ return t({}), (e, t) => (N(), x(I(O(R(it), A(e.$attrs, {
1721
1734
  ...i.value,
1722
1735
  ref: o
1723
1736
  }), e.$slots))));
1724
1737
  }
1725
- }), En = /* @__PURE__ */ E({
1738
+ }), Dn = /* @__PURE__ */ E({
1726
1739
  inheritAttrs: !1,
1727
1740
  name: "TTreeSelect",
1728
1741
  __name: "tree-select",
@@ -1789,16 +1802,16 @@ var vn = /* @__PURE__ */ E({
1789
1802
  onSearch: {}
1790
1803
  },
1791
1804
  setup(e) {
1792
- let t = e, n = b(() => typeof t.data == "string" ? ae(t.data).value : t.data), r = b(() => {
1805
+ let t = e, n = b(() => typeof t.data == "string" ? oe(t.data).value : t.data), r = b(() => {
1793
1806
  let e = { ...t };
1794
1807
  return e.selectInputProps = {
1795
1808
  minCollapsedNum: 2,
1796
1809
  ...e.selectInputProps ?? {}
1797
1810
  }, e.treeProps = {
1798
- ...wn,
1811
+ ...Tn,
1799
1812
  checkable: !!t.multiple,
1800
1813
  expandOnClickNode: !!t.multiple,
1801
- icon: wn.icon(),
1814
+ icon: Tn.icon(),
1802
1815
  ...e.treeProps ?? {}
1803
1816
  }, Object.keys(e).forEach((t) => {
1804
1817
  e[t] === void 0 && delete e[t];
@@ -1807,12 +1820,12 @@ var vn = /* @__PURE__ */ E({
1807
1820
  function a(e) {
1808
1821
  i.exposed = e ?? {};
1809
1822
  }
1810
- let o = F(0);
1811
- return Ee(() => {
1812
- dt(i.exposed.$el, () => {
1823
+ let o = P(0);
1824
+ return Oe(() => {
1825
+ pt(i.exposed.$el, () => {
1813
1826
  o.value = i.exposed.$el.offsetWidth;
1814
1827
  }, { box: "border-box" });
1815
- }), (e, t) => (P(), x(L(k(z(rt), j(e.$attrs, {
1828
+ }), (e, t) => (N(), x(I(O(R(at), A(e.$attrs, {
1816
1829
  ...r.value,
1817
1830
  data: n.value,
1818
1831
  ref: a,
@@ -1826,10 +1839,10 @@ var vn = /* @__PURE__ */ E({
1826
1839
  }
1827
1840
  }), e.$slots))));
1828
1841
  }
1829
- }), Dn = ".xlsx,.xls", On = { class: "flex items-center" }, kn = {
1842
+ }), On = ".xlsx,.xls", kn = { class: "flex items-center" }, An = {
1830
1843
  key: 1,
1831
1844
  class: "ml-3 text-xs text-(--td-text-color-placeholder)"
1832
- }, An = /*#__PURE__*/ v(/* @__PURE__ */ E({
1845
+ }, jn = /*#__PURE__*/ y(/* @__PURE__ */ E({
1833
1846
  inheritAttrs: !1,
1834
1847
  name: "TUpload",
1835
1848
  __name: "upload",
@@ -1838,7 +1851,7 @@ var vn = /* @__PURE__ */ E({
1838
1851
  "onUpdate:modelValue": {},
1839
1852
  requestMethod: {},
1840
1853
  abridgeName: {},
1841
- accept: { default: Dn },
1854
+ accept: { default: On },
1842
1855
  allowUploadDuplicateFile: { type: Boolean },
1843
1856
  autoUpload: { type: Boolean },
1844
1857
  beforeAllFilesUpload: {},
@@ -1929,7 +1942,7 @@ var vn = /* @__PURE__ */ E({
1929
1942
  });
1930
1943
  });
1931
1944
  function i() {
1932
- typeof n.downloadTemplate == "string" ? d(n.downloadTemplate) : n.downloadTemplate.send();
1945
+ typeof n.downloadTemplate == "string" ? f(n.downloadTemplate) : n.downloadTemplate.send();
1933
1946
  }
1934
1947
  let a = b(() => {
1935
1948
  let e = { ...n };
@@ -1940,39 +1953,39 @@ var vn = /* @__PURE__ */ E({
1940
1953
  function s(e) {
1941
1954
  o.exposed = e ?? {};
1942
1955
  }
1943
- return t({}), (t, o) => (P(), x(L(k(z(it), j(t.$attrs, {
1956
+ return t({}), (t, o) => (N(), x(I(O(R(ot), A(t.$attrs, {
1944
1957
  ...a.value,
1945
1958
  requestMethod: r.value,
1946
1959
  ref: s
1947
- }, { class: a.value.theme }))), null, xe({ _: 2 }, [I(Object.keys(t.$slots), (e) => ({
1960
+ }, { class: a.value.theme }))), null, Se({ _: 2 }, [F(Object.keys(t.$slots), (e) => ({
1948
1961
  name: e,
1949
- fn: V((n) => [ke(t.$slots, e, N(O(n)), void 0, !0)])
1962
+ fn: B((n) => [je(t.$slots, e, M(we(n)), void 0, !0)])
1950
1963
  })), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
1951
1964
  name: "trigger",
1952
- fn: V(({ files: t }) => [be("div", On, [
1953
- T(z($), { theme: "primary" }, {
1954
- default: V(() => [w(R(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
1965
+ fn: B(({ files: t }) => [xe("div", kn, [
1966
+ T(R($), { theme: "primary" }, {
1967
+ default: B(() => [w(L(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
1955
1968
  _: 2
1956
1969
  }, 1024),
1957
- e.downloadTemplate ? (P(), x(z($), {
1970
+ e.downloadTemplate ? (N(), x(R($), {
1958
1971
  key: 0,
1959
1972
  theme: "primary",
1960
1973
  variant: "outline",
1961
- onClick: Fe(i, ["stop"])
1974
+ onClick: Le(i, ["stop"])
1962
1975
  }, {
1963
- default: V(() => [...o[0] ||= [w("下载模板", -1)]]),
1976
+ default: B(() => [...o[0] ||= [w("下载模板", -1)]]),
1964
1977
  _: 1
1965
1978
  })) : S("v-if", !0),
1966
- n.tips ? (P(), C("span", kn, R(n.tips), 1)) : S("v-if", !0)
1979
+ n.tips ? (N(), C("span", An, L(n.tips), 1)) : S("v-if", !0)
1967
1980
  ])]),
1968
1981
  key: "0"
1969
1982
  } : void 0]), 1024));
1970
1983
  }
1971
- }), [["__scopeId", "data-v-51889a3b"]]), jn = /*#__PURE__*/ v(/* @__PURE__ */ E({
1984
+ }), [["__scopeId", "data-v-51889a3b"]]), Mn = /*#__PURE__*/ y(/* @__PURE__ */ E({
1972
1985
  inheritAttrs: !1,
1973
1986
  name: "TForm",
1974
1987
  __name: "form",
1975
- props: /*@__PURE__*/ A({
1988
+ props: /*@__PURE__*/ k({
1976
1989
  autoLabelWidth: { type: Boolean },
1977
1990
  data: {},
1978
1991
  items: {},
@@ -1996,9 +2009,9 @@ var vn = /* @__PURE__ */ E({
1996
2009
  onReset: { type: Function },
1997
2010
  onSubmit: { type: Function },
1998
2011
  onValidate: { type: Function }
1999
- }, Ct),
2012
+ }, Tt),
2000
2013
  setup(e, { expose: t }) {
2001
- let r = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = gt, s = D(), l = F(null), u = b(() => r.items.map((e) => {
2014
+ 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) => {
2002
2015
  if (typeof e.__others == "function") {
2003
2016
  let t = {
2004
2017
  ...e,
@@ -2038,36 +2051,36 @@ var vn = /* @__PURE__ */ E({
2038
2051
  }
2039
2052
  });
2040
2053
  }
2041
- B(u, d, {
2054
+ z(u, d, {
2042
2055
  deep: 2,
2043
2056
  immediate: !0
2044
- }), B(() => r.data, () => {
2057
+ }), z(() => r.data, () => {
2045
2058
  n.error("TForm: data is changed");
2046
2059
  });
2047
- let f = /* @__PURE__ */ new Map(), m = {
2060
+ let f = /* @__PURE__ */ new Map(), p = {
2048
2061
  TCheckbox: a,
2049
- TCheckboxGroup: vn,
2050
- TColorPicker: se,
2051
- TCron: yn,
2052
- TDatePicker: ue,
2053
- TInput: le,
2054
- TInputNumber: de,
2055
- TRadioGroup: bn,
2056
- TRangeInput: fe,
2057
- TSelect: Sn,
2058
- TSelectSysUser: Cn,
2059
- TSlider: he,
2060
- TSwitch: ge,
2061
- TTagInput: me,
2062
- TTextarea: _e,
2063
- TTree: Tn,
2064
- TTreeSelect: En,
2065
- TUpload: An
2062
+ TCheckboxGroup: yn,
2063
+ TColorPicker: ce,
2064
+ TCron: bn,
2065
+ TDatePicker: de,
2066
+ TInput: ue,
2067
+ TInputNumber: fe,
2068
+ TRadioGroup: xn,
2069
+ TRangeInput: pe,
2070
+ TSelect: Cn,
2071
+ TSelectSysUser: wn,
2072
+ TSlider: ge,
2073
+ TSwitch: _e,
2074
+ TTagInput: he,
2075
+ TTextarea: ve,
2076
+ TTree: En,
2077
+ TTreeSelect: Dn,
2078
+ TUpload: jn
2066
2079
  };
2067
- function ee(e) {
2068
- return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e, Se(o.get(e))), f.get(e)) : m[e] : le;
2069
- }
2070
2080
  function h(e) {
2081
+ return typeof e == "string" ? o.has(e) ? (f.has(e) || f.set(e, Ce(o.get(e))), f.get(e)) : p[e] : ue;
2082
+ }
2083
+ function ee(e) {
2071
2084
  let t = {};
2072
2085
  for (let n in e) !n.startsWith("_") && ![
2073
2086
  "component",
@@ -2113,22 +2126,22 @@ var vn = /* @__PURE__ */ E({
2113
2126
  return delete e.items, delete e.msgErrorWhenValidate, delete e.autoLabelWidth, Object.keys(e).forEach((t) => {
2114
2127
  e[t] === void 0 && delete e[t];
2115
2128
  }), e;
2116
- }), te = () => {
2129
+ }), v = () => {
2117
2130
  let e = { ...r.data };
2118
2131
  return u.value.forEach((t) => {
2119
2132
  t.show === !1 && delete e[t.model];
2120
2133
  }), e;
2121
2134
  };
2122
- function v(e) {
2135
+ function te(e) {
2123
2136
  if (e !== null) {
2124
2137
  let t = e;
2125
2138
  if (!t.validate._alreadyReplace) {
2126
2139
  let e = t.validate;
2127
2140
  t.validate = (...t) => new Promise((n, i) => {
2128
2141
  e(...t).then((e) => {
2129
- e === !0 ? n(te()) : (r.msgErrorWhenValidate && Object.keys(e).forEach((t) => {
2142
+ e === !0 ? n(v()) : (r.msgErrorWhenValidate && Object.keys(e).forEach((t) => {
2130
2143
  e[t].forEach((e) => {
2131
- e.result === !1 && p.error(e.message);
2144
+ e.result === !1 && m.error(e.message);
2132
2145
  });
2133
2146
  }), i(e));
2134
2147
  });
@@ -2138,18 +2151,18 @@ var vn = /* @__PURE__ */ E({
2138
2151
  let e = t.validateOnly;
2139
2152
  t.validateOnly = (...t) => new Promise((n, r) => {
2140
2153
  e(...t).then((e) => {
2141
- e === !0 ? n(te()) : r(e);
2154
+ e === !0 ? n(v()) : r(e);
2142
2155
  });
2143
2156
  }), t.validateOnly._alreadyReplace = !0;
2144
2157
  }
2145
2158
  if (!t.clearValidate._alreadyReplace) {
2146
2159
  let e = t.clearValidate;
2147
2160
  t.clearValidate = (...t) => {
2148
- M(() => {
2149
- M(() => {
2150
- M(() => {
2151
- M(() => {
2152
- M(() => {
2161
+ j(() => {
2162
+ j(() => {
2163
+ j(() => {
2164
+ j(() => {
2165
+ j(() => {
2153
2166
  e(...t);
2154
2167
  });
2155
2168
  });
@@ -2158,7 +2171,7 @@ var vn = /* @__PURE__ */ E({
2158
2171
  });
2159
2172
  }, t.clearValidate._alreadyReplace = !0;
2160
2173
  }
2161
- t.getFormData = te, t.setFormData = (e, t) => {
2174
+ t.getFormData = v, t.setFormData = (e, t) => {
2162
2175
  let { ignoreKeys: n = [], isNotFalsy: i = !0, numberToStringKeys: a = [], override: o = {}, splitToArrKeys: s = [] } = t ?? {};
2163
2176
  Object.keys(r.data).forEach((t) => {
2164
2177
  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])));
@@ -2168,16 +2181,16 @@ var vn = /* @__PURE__ */ E({
2168
2181
  let t = e ?? {};
2169
2182
  l.value = t, s.exposed = t;
2170
2183
  }
2171
- let y = je();
2172
- Ee(() => {
2173
- y.value = s.exposed.$el.getElementsByClassName("t-form__label"), ne(), ut(s.exposed.$el, () => {
2184
+ let y = Ne();
2185
+ Oe(() => {
2186
+ y.value = s.exposed.$el.getElementsByClassName("t-form__label"), ne(), ft(s.exposed.$el, () => {
2174
2187
  ne();
2175
2188
  }, {
2176
2189
  attributeFilter: ["class"],
2177
2190
  characterData: !0,
2178
2191
  childList: !0,
2179
2192
  subtree: !0
2180
- }), dt(s.exposed.$el, () => {
2193
+ }), pt(s.exposed.$el, () => {
2181
2194
  ne();
2182
2195
  });
2183
2196
  });
@@ -2193,29 +2206,29 @@ var vn = /* @__PURE__ */ E({
2193
2206
  e.style.minWidth = `${t}px`;
2194
2207
  });
2195
2208
  }
2196
- return De("formData", r.data), De("formExposed", l), De("isFormDisabled", b(() => r.disabled)), De("isFormReadonly", b(() => r.readonly)), t({}), (t, n) => (P(), C(ve, null, [S(" eslint-disable vue/no-mutating-props "), (P(), x(L(z(Ke)), j(j(t.$attrs, {
2209
+ 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, {
2197
2210
  ..._.value,
2198
- ref: v
2211
+ ref: te
2199
2212
  }), { "label-width": "fit-content" }), {
2200
- default: V(() => [(P(!0), C(ve, null, I(u.value.filter((e) => e.show !== !1), (n) => (P(), x(z(qe), j({ key: n.model ?? n.slot }, { ref_for: !0 }, j({ ...g(n) }, { class: { no_label_item: z(c)(n._label) } }), { name: n.model }), {
2201
- default: V(() => [n.slot ? ke(t.$slots, n.slot, {}, void 0, !0, 0) : (P(), x(L(ee(n.component)), j({
2213
+ 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 }), {
2214
+ default: B(() => [n.slot ? je(t.$slots, n.slot, {}, void 0, !0, 0) : (N(), x(I(h(n.component)), A({
2202
2215
  key: 1,
2203
2216
  modelValue: e.data[n.model],
2204
2217
  "onUpdate:modelValue": (t) => e.data[n.model] = t
2205
- }, { ref_for: !0 }, h(n)), null, 16, ["modelValue", "onUpdate:modelValue"]))]),
2218
+ }, { ref_for: !0 }, ee(n)), null, 16, ["modelValue", "onUpdate:modelValue"]))]),
2206
2219
  _: 2
2207
2220
  }, 1040, ["name"]))), 128))]),
2208
2221
  _: 3
2209
2222
  }, 16))], 2112));
2210
2223
  }
2211
- }), [["__scopeId", "data-v-d3f924b4"]]), Mn = /* @__PURE__ */ E({
2224
+ }), [["__scopeId", "data-v-d3f924b4"]]), Nn = /* @__PURE__ */ E({
2212
2225
  __name: "ResetPwd",
2213
2226
  props: { showFooter: {
2214
2227
  type: Boolean,
2215
2228
  default: !0
2216
2229
  } },
2217
2230
  setup(e, { expose: t }) {
2218
- let n = U(), r = [
2231
+ let n = H(), r = [
2219
2232
  {
2220
2233
  _label: "旧密码",
2221
2234
  _required: !0,
@@ -2246,7 +2259,7 @@ var vn = /* @__PURE__ */ E({
2246
2259
  type: "password"
2247
2260
  },
2248
2261
  ...e.showFooter ? [{ slot: "footer" }] : []
2249
- ], i = Pe("form");
2262
+ ], i = Ie("form");
2250
2263
  function a() {
2251
2264
  K().close(n.name);
2252
2265
  }
@@ -2261,23 +2274,23 @@ var vn = /* @__PURE__ */ E({
2261
2274
  newPassword: e.newPassword,
2262
2275
  oldPassword: e.oldPassword
2263
2276
  }
2264
- }), Zt().logout();
2277
+ }), Qt().logout();
2265
2278
  }
2266
- return t({ handleSubmit: c }), (e, t) => (P(), x(z(jn), {
2279
+ return t({ handleSubmit: c }), (e, t) => (N(), x(R(Mn), {
2267
2280
  ref: "form",
2268
2281
  items: r,
2269
2282
  "label-align": "right",
2270
2283
  layout: "vertical"
2271
2284
  }, {
2272
- footer: V(() => [T(z($), { onClick: c }, {
2273
- default: V(() => [...t[0] ||= [w("保存", -1)]]),
2285
+ footer: B(() => [T(R($), { onClick: c }, {
2286
+ default: B(() => [...t[0] ||= [w("保存", -1)]]),
2274
2287
  _: 1
2275
- }), T(z($), {
2288
+ }), T(R($), {
2276
2289
  class: "ml-4!",
2277
2290
  theme: "default",
2278
2291
  onClick: a
2279
2292
  }, {
2280
- default: V(() => [...t[1] ||= [w("关闭", -1)]]),
2293
+ default: B(() => [...t[1] ||= [w("关闭", -1)]]),
2281
2294
  _: 1
2282
2295
  })]),
2283
2296
  _: 1
@@ -2286,34 +2299,34 @@ var vn = /* @__PURE__ */ E({
2286
2299
  });
2287
2300
  //#endregion
2288
2301
  //#region ../../packages/dlzn-ui/store/modules/user.ts
2289
- function Nn() {
2302
+ function Pn() {
2290
2303
  return X.Get("getInfo", { meta: {
2291
2304
  useFailMsg: "获取用户信息失败",
2292
2305
  useLoading: "正在获取用户信息..."
2293
2306
  } });
2294
2307
  }
2295
- var Pn = {
2308
+ var Fn = {
2296
2309
  admin: !1,
2297
2310
  dept: { deptName: "" },
2298
2311
  needChangePwd: 0,
2299
2312
  nickName: "",
2300
2313
  userId: "",
2301
2314
  userName: ""
2302
- }, Q = H("user", () => {
2303
- let e = F(ft(Pn)), t = F([]), n = F([]);
2315
+ }, Q = V("user", () => {
2316
+ let e = P(mt(Fn)), t = P([]), n = P([]);
2304
2317
  function r() {
2305
- e.value = ft(Pn), t.value = [], n.value = [];
2318
+ e.value = mt(Fn), t.value = [], n.value = [];
2306
2319
  }
2307
- let i = b(() => e.value.admin), a = F("");
2320
+ let i = b(() => e.value.admin), a = P("");
2308
2321
  async function o(r = !0) {
2309
- let i = await Nn();
2310
- 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 Nt().getRouters();
2322
+ let i = await Pn();
2323
+ 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();
2311
2324
  }
2312
- B(() => e.value.needChangePwd, (e) => {
2313
- e === 1 && VITE_FORCE_PWD_CHANGE && M(() => {
2314
- let e = F(null);
2315
- Vt({
2316
- body: () => k(Mn, {
2325
+ z(() => e.value.needChangePwd, (e) => {
2326
+ e === 1 && VITE_FORCE_PWD_CHANGE && j(() => {
2327
+ let e = P(null);
2328
+ W({
2329
+ body: () => O(Nn, {
2317
2330
  labelAlign: "top",
2318
2331
  ref: e,
2319
2332
  showFooter: !1
@@ -2344,11 +2357,11 @@ var Pn = {
2344
2357
  roles: n,
2345
2358
  userInfo: e
2346
2359
  };
2347
- }, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ v(/* @__PURE__ */ E({
2360
+ }, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ y(/* @__PURE__ */ E({
2348
2361
  inheritAttrs: !1,
2349
2362
  name: "TButton",
2350
2363
  __name: "button",
2351
- props: /*@__PURE__*/ A({
2364
+ props: /*@__PURE__*/ k({
2352
2365
  autoIcon: { type: Boolean },
2353
2366
  autoLoading: { type: Boolean },
2354
2367
  autoTheme: { type: Boolean },
@@ -2385,9 +2398,9 @@ var Pn = {
2385
2398
  Object,
2386
2399
  Array
2387
2400
  ] }
2388
- }, St),
2401
+ }, wt),
2389
2402
  setup(n) {
2390
- let r = n, a = F("");
2403
+ let r = n, a = P("");
2391
2404
  function o() {
2392
2405
  if (!r.autoTheme || a.value.trim() === "") return {};
2393
2406
  let e = /* @__PURE__ */ new Map([
@@ -2409,14 +2422,14 @@ var Pn = {
2409
2422
  }
2410
2423
  return t;
2411
2424
  }
2412
- let s = F(!1), c = i.isLoading, l = F(null), { focused: u } = lt(l), d, f;
2413
- B(c, (e) => {
2425
+ let s = P(!1), c = i.isLoading, l = P(null), { focused: u } = dt(l), d, f;
2426
+ z(c, (e) => {
2414
2427
  e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
2415
2428
  s.value = u.value, clearTimeout(d), d = void 0;
2416
2429
  }, 150)) : d === void 0 ? f = setTimeout(() => {
2417
2430
  s.value = !1;
2418
2431
  }, 150) : (clearTimeout(d), d = void 0, s.value = !1);
2419
- }, { immediate: !0 }), B(u, (e) => {
2432
+ }, { immediate: !0 }), z(u, (e) => {
2420
2433
  e && c.value && (s.value = !0);
2421
2434
  });
2422
2435
  let p = b(() => r.loading === void 0 ? r.autoLoading ? s.value : !1 : r.loading), m = b(() => {
@@ -2428,10 +2441,10 @@ var Pn = {
2428
2441
  return Object.keys(e).forEach((t) => {
2429
2442
  e[t] === void 0 && delete e[t];
2430
2443
  }), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
2431
- }), ee = D();
2432
- function h(e) {
2444
+ }), h = D();
2445
+ function ee(e) {
2433
2446
  let t = e ?? {};
2434
- ee.exposed = t, l.value = t.$el;
2447
+ h.exposed = t, l.value = t.$el;
2435
2448
  }
2436
2449
  function g() {
2437
2450
  a.value = l.value?.textContent ?? "";
@@ -2500,9 +2513,9 @@ var Pn = {
2500
2513
  break;
2501
2514
  }
2502
2515
  if (t !== void 0) return t;
2503
- }), te = Me(), v = b(() => j(te, {
2516
+ }), v = Pe(), te = b(() => A(v, {
2504
2517
  ...m.value,
2505
- ref: h
2518
+ ref: ee
2506
2519
  }, { class: "flex-shrink-0" })), y = b(() => {
2507
2520
  if (r.popconfirm) return {
2508
2521
  ...r.popconfirm,
@@ -2511,33 +2524,33 @@ var Pn = {
2511
2524
  }
2512
2525
  };
2513
2526
  });
2514
- return (r, i) => z(Q)().checkPermissions(n.permission) ? (P(), C(ve, { key: 0 }, [y.value ? (P(), x(z(t), N(j({ key: 0 }, y.value)), {
2515
- default: V(() => [(P(), x(L(k(z(Re), v.value)), {
2527
+ 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)), {
2528
+ default: B(() => [(N(), x(I(O(R(Be), te.value)), {
2516
2529
  onVnodeMounted: g,
2517
2530
  onVnodeUpdated: g
2518
- }, xe({ _: 2 }, [n.icon || _.value ? {
2531
+ }, Se({ _: 2 }, [n.icon || _.value ? {
2519
2532
  name: "icon",
2520
- fn: V(() => [T(z(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
2533
+ fn: B(() => [T(R(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
2521
2534
  key: "0"
2522
- } : void 0, I(Object.keys(r.$slots), (e) => ({
2535
+ } : void 0, F(Object.keys(r.$slots), (e) => ({
2523
2536
  name: e,
2524
- fn: V((t) => [ke(r.$slots, e, N(O(t)), void 0, !0)])
2537
+ fn: B((t) => [je(r.$slots, e, M(we(t)), void 0, !0)])
2525
2538
  }))]), 1536))]),
2526
2539
  _: 3
2527
- }, 16)) : (P(), x(L(k(z(Re), v.value)), {
2540
+ }, 16)) : (N(), x(I(O(R(Be), te.value)), {
2528
2541
  key: 1,
2529
2542
  onVnodeMounted: g,
2530
2543
  onVnodeUpdated: g
2531
- }, xe({ _: 2 }, [n.icon || _.value ? {
2544
+ }, Se({ _: 2 }, [n.icon || _.value ? {
2532
2545
  name: "icon",
2533
- fn: V(() => [T(z(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
2546
+ fn: B(() => [T(R(e), { icon: n.icon || _.value }, null, 8, ["icon"])]),
2534
2547
  key: "0"
2535
- } : void 0, I(Object.keys(r.$slots), (e) => ({
2548
+ } : void 0, F(Object.keys(r.$slots), (e) => ({
2536
2549
  name: e,
2537
- fn: V((t) => [ke(r.$slots, e, N(O(t)), void 0, !0)])
2550
+ fn: B((t) => [je(r.$slots, e, M(we(t)), void 0, !0)])
2538
2551
  }))]), 1536))], 64)) : S("v-if", !0);
2539
2552
  }
2540
- }), [["__scopeId", "data-v-891fff89"]]), Fn = /* @__PURE__ */ E({
2553
+ }), [["__scopeId", "data-v-891fff89"]]), In = /* @__PURE__ */ E({
2541
2554
  name: "TProvider",
2542
2555
  __name: "Provider",
2543
2556
  setup(e) {
@@ -2559,14 +2572,14 @@ var Pn = {
2559
2572
  variant: "text"
2560
2573
  })
2561
2574
  } };
2562
- return (e, n) => (P(), x(z(at), {
2575
+ return (e, n) => (N(), x(R(st), {
2563
2576
  "empty-values": [""],
2564
- locale: z(xt),
2577
+ locale: R(Ct),
2565
2578
  "value-on-clear": "",
2566
2579
  "z-index": 5500
2567
2580
  }, {
2568
- default: V(() => [T(z(Be), { "global-config": t }, {
2569
- default: V(() => [ke(e.$slots, "default")]),
2581
+ default: B(() => [T(R(He), { "global-config": t }, {
2582
+ default: B(() => [je(e.$slots, "default")]),
2570
2583
  _: 3
2571
2584
  })]),
2572
2585
  _: 3
@@ -2574,4 +2587,4 @@ var Pn = {
2574
2587
  }
2575
2588
  });
2576
2589
  //#endregion
2577
- export { $t as A, Nt as B, cn as C, J as D, an as E, Vt as F, G as H, Bt as I, It as L, Kt as M, qt as N, rn as O, Jt as P, Ft as R, X as S, Y as T, Ct as U, K as V, St as W, vn as _, Mn as a, gn as b, Dn as c, wn as d, Cn as f, yn as g, bn as h, Q as i, Zt as j, en as k, En as l, xn as m, $ as n, jn as o, Sn as p, Nn as r, An as s, Fn as t, Tn as u, mn as v, ln as w, _n as x, hn as y, Tt as z };
2590
+ 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 };