@skyfox2000/webui 1.0.13 → 1.2.0

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 (162) hide show
  1. package/lib/assets/modules/file-upload-CBUcsUnR.js +170 -0
  2. package/lib/assets/modules/form-validate-CgX7aR7T.js +297 -0
  3. package/lib/assets/modules/index-Civhd8xG.js +112 -0
  4. package/lib/assets/modules/index-DQMdt51R.js +726 -0
  5. package/lib/assets/modules/{index-BEWJ_qAH.js → index-DmWrkTXX.js} +1 -1
  6. package/lib/assets/modules/{menuTabs-BXdbFZor.js → menuTabs-BRYvFWA-.js} +131 -121
  7. package/lib/assets/modules/settingInfo-BZakNKIN.js +999 -0
  8. package/lib/assets/modules/uploadList-B7XoxGOh.js +278 -0
  9. package/lib/components/common/icon/index.vue.d.ts +1 -1
  10. package/lib/components/content/dialog/index.vue.d.ts +1 -1
  11. package/lib/components/content/drawer/index.vue.d.ts +1 -1
  12. package/lib/components/content/form/index.vue.d.ts +1 -1
  13. package/lib/components/content/search/index.vue.d.ts +1 -1
  14. package/lib/components/content/table/index.vue.d.ts +1 -1
  15. package/lib/components/content/table/tableOperate.vue.d.ts +1 -1
  16. package/lib/components/content/toolbar/icontool.vue.d.ts +1 -1
  17. package/lib/components/content/toolbar/index.vue.d.ts +1 -1
  18. package/lib/components/content/tree/index.vue.d.ts +1 -1
  19. package/lib/components/form/transfer/transferTable.vue.d.ts +1 -1
  20. package/lib/components/form/treeSelect/index.vue.d.ts +1 -1
  21. package/lib/components/form/upload/uploadList.vue.d.ts +1 -1
  22. package/lib/const/options.d.ts +32 -0
  23. package/lib/directives/enter-submit.d.ts +4 -0
  24. package/lib/directives/index.d.ts +2 -0
  25. package/lib/directives/permission.d.ts +5 -0
  26. package/lib/es/AceEditor/index.js +9 -8
  27. package/lib/es/BasicLayout/index.js +28 -24
  28. package/lib/es/Error403/index.js +15 -10
  29. package/lib/es/Error404/index.js +15 -10
  30. package/lib/es/ExcelForm/index.js +380 -175
  31. package/lib/es/UploadForm/index.js +23 -20
  32. package/lib/index.d.ts +42 -2
  33. package/lib/router/index.d.ts +16 -0
  34. package/lib/stores/appInfo.d.ts +34 -0
  35. package/lib/stores/hostInfo.d.ts +9 -0
  36. package/lib/stores/pageInfo.d.ts +18 -0
  37. package/lib/stores/pinia.d.ts +3 -0
  38. package/lib/stores/settingInfo.d.ts +8 -0
  39. package/lib/stores/userInfo.d.ts +21 -0
  40. package/lib/typings/data.d.ts +80 -0
  41. package/lib/typings/form.d.ts +171 -0
  42. package/lib/typings/menu.d.ts +7 -0
  43. package/lib/typings/option.d.ts +175 -0
  44. package/lib/typings/page.d.ts +69 -0
  45. package/lib/typings/table.d.ts +181 -0
  46. package/lib/typings/tools.d.ts +130 -0
  47. package/lib/typings/tree.d.ts +72 -0
  48. package/lib/typings/upload.d.ts +161 -0
  49. package/lib/typings/urls.d.ts +69 -0
  50. package/lib/utils/cache.d.ts +23 -0
  51. package/lib/utils/data.d.ts +6 -0
  52. package/lib/utils/download.d.ts +4 -0
  53. package/lib/utils/eventbus.d.ts +16 -0
  54. package/lib/utils/export-table.d.ts +12 -0
  55. package/lib/utils/file-upload.d.ts +15 -0
  56. package/lib/utils/form-excel.d.ts +30 -0
  57. package/lib/utils/form-validate.d.ts +29 -0
  58. package/lib/utils/form.d.ts +9 -0
  59. package/lib/utils/icon-loader.d.ts +125 -0
  60. package/lib/utils/isEmpty.d.ts +1 -0
  61. package/lib/utils/main-openapis.d.ts +9 -0
  62. package/lib/utils/menu.d.ts +6 -0
  63. package/lib/utils/options.d.ts +10 -0
  64. package/lib/utils/page.d.ts +25 -0
  65. package/lib/utils/table.d.ts +21 -0
  66. package/lib/utils/tools.d.ts +18 -0
  67. package/lib/utils/tree.d.ts +3 -0
  68. package/lib/vite-env.d.ts +8 -0
  69. package/lib/webui.css +1 -1
  70. package/lib/webui.es.js +1020 -854
  71. package/package.json +7 -6
  72. package/src/components/common/icon/appicon.vue +1 -1
  73. package/src/components/common/icon/fullscreen.vue +2 -1
  74. package/src/components/common/icon/index.vue +1 -1
  75. package/src/components/common/icon/layoutIcon.vue +1 -1
  76. package/src/components/common/icon/projectIcon.vue +1 -1
  77. package/src/components/common/icon/toolIcon.vue +1 -1
  78. package/src/components/content/dialog/excelForm.vue +2 -2
  79. package/src/components/content/dialog/index.vue +1 -1
  80. package/src/components/content/dialog/uploadForm.vue +7 -6
  81. package/src/components/content/drawer/index.vue +43 -18
  82. package/src/components/content/form/formItem.vue +1 -1
  83. package/src/components/content/form/index.vue +1 -1
  84. package/src/components/content/search/index.vue +1 -1
  85. package/src/components/content/search/searchItem.vue +1 -1
  86. package/src/components/content/table/index.vue +8 -5
  87. package/src/components/content/table/tableOperate.vue +8 -4
  88. package/src/components/content/toolbar/icontool.vue +2 -2
  89. package/src/components/content/toolbar/index.vue +9 -5
  90. package/src/components/content/tree/index.vue +1 -1
  91. package/src/components/error/error403.vue +2 -2
  92. package/src/components/error/error404.vue +2 -2
  93. package/src/components/form/autoComplete/index.vue +1 -1
  94. package/src/components/form/cascader/index.vue +1 -2
  95. package/src/components/form/checkbox/index.vue +11 -5
  96. package/src/components/form/datePicker/index.vue +1 -1
  97. package/src/components/form/input/index.vue +1 -1
  98. package/src/components/form/input/inputNumber.vue +1 -1
  99. package/src/components/form/input/inputPassword.vue +1 -1
  100. package/src/components/form/radio/index.vue +1 -1
  101. package/src/components/form/radio/radioStatus.vue +1 -1
  102. package/src/components/form/rangePicker/index.vue +1 -1
  103. package/src/components/form/select/index.vue +1 -1
  104. package/src/components/form/switch/index.vue +7 -3
  105. package/src/components/form/textarea/index.vue +1 -1
  106. package/src/components/form/transfer/index.vue +1 -1
  107. package/src/components/form/transfer/transferTable.vue +42 -22
  108. package/src/components/form/treeSelect/index.vue +2 -3
  109. package/src/components/form/upload/uploadList.vue +1 -1
  110. package/src/components/layout/breadcrumb/index.vue +1 -1
  111. package/src/components/layout/header/headerExits.vue +1 -1
  112. package/src/components/layout/header/index.vue +1 -1
  113. package/src/components/layout/header/user.vue +2 -1
  114. package/src/components/layout/menu/index.vue +9 -3
  115. package/src/components/layout/menu/menuTabs.vue +10 -12
  116. package/src/components/layout/page/basicLayout.vue +1 -1
  117. package/src/const/options.ts +114 -0
  118. package/src/directives/enter-submit.ts +13 -0
  119. package/src/directives/index.ts +26 -0
  120. package/src/directives/permission.ts +144 -0
  121. package/src/index.ts +201 -0
  122. package/src/router/index.ts +196 -0
  123. package/src/stores/appInfo.ts +471 -0
  124. package/src/stores/hostInfo.ts +117 -0
  125. package/src/stores/pageInfo.ts +131 -0
  126. package/src/stores/pinia.ts +10 -0
  127. package/src/stores/settingInfo.ts +53 -0
  128. package/src/stores/userInfo.ts +392 -0
  129. package/src/typings/data.d.ts +81 -0
  130. package/src/typings/form.d.ts +172 -0
  131. package/src/typings/menu.d.ts +7 -0
  132. package/src/typings/option.d.ts +177 -0
  133. package/src/typings/page.d.ts +70 -0
  134. package/src/typings/table.d.ts +182 -0
  135. package/src/typings/tools.d.ts +131 -0
  136. package/src/typings/tree.d.ts +73 -0
  137. package/src/typings/upload.d.ts +162 -0
  138. package/src/typings/urls.d.ts +70 -0
  139. package/src/utils/cache.ts +175 -0
  140. package/src/utils/data.ts +189 -0
  141. package/src/utils/download.ts +80 -0
  142. package/src/utils/eventbus.ts +78 -0
  143. package/src/utils/export-table.ts +155 -0
  144. package/src/utils/file-upload.ts +304 -0
  145. package/src/utils/form-excel.ts +523 -0
  146. package/src/utils/form-validate.ts +368 -0
  147. package/src/utils/form.ts +188 -0
  148. package/src/utils/icon-loader.ts +412 -0
  149. package/src/utils/isEmpty.ts +18 -0
  150. package/src/utils/main-openapis.ts +72 -0
  151. package/src/utils/menu.ts +89 -0
  152. package/src/utils/options.ts +324 -0
  153. package/src/utils/page.ts +262 -0
  154. package/src/utils/table.ts +274 -0
  155. package/src/utils/tools.ts +362 -0
  156. package/src/utils/tree.ts +28 -0
  157. package/tsconfig.json +1 -8
  158. package/vite.config.ts +7 -4
  159. package/lib/assets/modules/index-BahGnrAq.js +0 -415
  160. package/lib/assets/modules/index-BoKIa2sr.js +0 -109
  161. package/lib/assets/modules/index-D47Ci-T3.js +0 -107
  162. package/lib/assets/modules/uploadList-Dzlg47V0.js +0 -182
package/lib/webui.es.js CHANGED
@@ -1,58 +1,219 @@
1
- import { _ as La } from "./assets/modules/index-D47Ci-T3.js";
2
- import { _ as z } from "./assets/modules/index-BoKIa2sr.js";
3
- import { _ as R } from "./assets/modules/index-BEWJ_qAH.js";
4
- import { a as qa } from "./assets/modules/index-BEWJ_qAH.js";
5
- import { _ as V } from "./assets/modules/menuTabs-BXdbFZor.js";
6
- import { a as Va, c as ja, d as Ha, e as Wa, I as Ja, f as Ga, g as Xa, b as Za } from "./assets/modules/menuTabs-BXdbFZor.js";
7
- import { defineComponent as C, createBlock as g, openBlock as p, withModifiers as J, unref as e, useAttrs as W, withCtx as m, createElementVNode as T, createVNode as b, mergeProps as B, renderSlot as I, normalizeStyle as ue, toDisplayString as D, createCommentVNode as k, ref as _, provide as _e, watch as $, onMounted as A, createTextVNode as P, inject as ie, resolveDirective as X, withDirectives as Q, computed as oe, createElementBlock as w, normalizeClass as N, createSlots as xe, useSlots as Ae, Fragment as M, renderList as Y, resolveDynamicComponent as Ke, onUnmounted as ye, onActivated as Oe, withKeys as fe } from "vue";
8
- import { useSettingInfo as be, onFullscreenClick as Ee, createFromIconfont as Re, ProviderKeys as Z, onFormClose as le, onFormSaveAs as Ye, onFormSave as ke, useFormItemFactory as Ce, getToolGroup as we, onGridRowEdit as Le, onGridRowDelete as Ue, getToolVisible as j, onToolClicked as L, AppRouter as H, getToolStatus as q, useToolFactory as qe, getToolByKey as ee, filterColumns as $e, onColumnVisibleChanged as Qe, openNewForm as Ve, useInputFactory as K, loadOption as Se, unloadOption as Te, formValidate as U, gridQueryFind as me, gridQueryList as je, gridStatusUpdate as He, OPTIONS as De, queryTree as Ie, OptionCommProps as We, circleLoading as Je, doQuery as Be } from "@skyfox2000/webbase";
9
- import { Popover as Ge, theme as Fe, Drawer as Xe, Space as G, Form as Pe, message as Ze, FormItem as Me, ConfigProvider as he, Popconfirm as et, Button as Ne, DropdownButton as tt, Menu as de, MenuItem as ce, Dropdown as se, Checkbox as at, Switch as lt, Table as ze, Tree as rt, Cascader as ot, DatePicker as st, Input as ne, InputPassword as nt, InputNumber as ut, RangePicker as it, Textarea as dt, Transfer as ct, TreeSelect as pt, LayoutContent as vt } from "ant-design-vue";
10
- import { SERVER_HOST as ft, fieldMapping as te } from "@skyfox2000/fapi";
11
- import { VueDraggableNext as mt } from "vue-draggable-next";
12
- import ht from "vue-m-message";
13
- import { _ as gt, a as _t, b as xt, c as yt } from "./assets/modules/index-BahGnrAq.js";
14
- import ge from "dayjs";
15
- import { _ as tl } from "./assets/modules/uploadList-Dzlg47V0.js";
16
- const ha = /* @__PURE__ */ C({
1
+ import { _ as ll } from "./assets/modules/index-Civhd8xG.js";
2
+ import { d as ue, P as Z, _ as N, u as Ce, a as A, f as U } from "./assets/modules/form-validate-CgX7aR7T.js";
3
+ import { _ as R } from "./assets/modules/index-DmWrkTXX.js";
4
+ import { a as sl } from "./assets/modules/index-DmWrkTXX.js";
5
+ import { _ as H } from "./assets/modules/menuTabs-BRYvFWA-.js";
6
+ import { a as nl, c as ul, d as cl, e as il, I as dl, f as pl, g as fl, b as vl } from "./assets/modules/menuTabs-BRYvFWA-.js";
7
+ import { defineComponent as w, createBlock as g, openBlock as f, withModifiers as G, unref as e, useAttrs as J, withCtx as h, createElementVNode as T, createVNode as y, mergeProps as P, renderSlot as I, normalizeStyle as ce, toDisplayString as D, createCommentVNode as k, ref as b, provide as $e, watch as $, onMounted as K, createTextVNode as F, inject as ie, resolveDirective as ee, withDirectives as q, computed as W, createElementBlock as C, normalizeClass as E, createSlots as Se, useSlots as Ye, Fragment as z, renderList as Y, resolveDynamicComponent as Le, onUnmounted as Te, onActivated as Ue, withKeys as _e } from "vue";
8
+ import { u as de, c as Qe, r as le, O as De, a as Ve } from "./assets/modules/settingInfo-BZakNKIN.js";
9
+ import { combineParams as qe } from "@skyfox2000/microbase";
10
+ import { ResStatus as He, SERVER_HOST as je, fieldMapping as ae } from "@skyfox2000/fapi";
11
+ import Ie from "vue-m-message";
12
+ import "async-validator";
13
+ import be from "dayjs";
14
+ import { Popover as We, theme as Pe, Drawer as Je, Space as X, Form as Be, message as Ge, FormItem as Fe, ConfigProvider as xe, Popconfirm as Xe, Button as Me, DropdownButton as Ze, Menu as pe, MenuItem as fe, Dropdown as oe, Checkbox as ea, Switch as aa, Table as ze, Tree as ta, Cascader as la, DatePicker as ra, Input as ne, InputPassword as sa, InputNumber as oa, RangePicker as na, Textarea as ua, Transfer as ca, TreeSelect as ia, LayoutContent as da } from "ant-design-vue";
15
+ import { o as re, a as pa, b as Ee, c as fa, l as Ne, u as Ae, _ as va, O as ma, d as ha, e as ga, f as _a } from "./assets/modules/index-DQMdt51R.js";
16
+ import { o as ba, a as xa, f as Ke, g as ye, b as ya, c as ka } from "./assets/modules/uploadList-B7XoxGOh.js";
17
+ import { _ as hl } from "./assets/modules/uploadList-B7XoxGOh.js";
18
+ import { VueDraggableNext as wa } from "vue-draggable-next";
19
+ const Oe = (r, l) => ue(r, {
20
+ urlKey: "tree",
21
+ params: {},
22
+ loadingState: r.isTreeLoading,
23
+ loadingText: !1,
24
+ processParams: () => qe(r.treeQuery, l)
25
+ }).then((t) => (t == null ? void 0 : t.status) === He.SUCCESS ? (r.data.value = t.data, r.data.value) : []), Q = (r, l) => {
26
+ const t = r.find((a) => a.key === l);
27
+ if (t)
28
+ return t;
29
+ for (const a of r)
30
+ if (a.children) {
31
+ const o = Q(a.children, l);
32
+ if (o)
33
+ return o;
34
+ }
35
+ }, ve = (r, l, t) => {
36
+ const a = [], o = [];
37
+ return t || (t = [...r]), t.length && t.forEach((u, m) => {
38
+ let d;
39
+ if (typeof u == "string") {
40
+ const n = Q(r, u);
41
+ d = n ? { ...n } : { key: u, label: u };
42
+ } else {
43
+ const n = Q(r, u.key);
44
+ d = n ? { ...n, ...u } : { ...u };
45
+ }
46
+ d.click || (d.click = (n, c, i) => {
47
+ c && (c.rowData.value = i), d.formVisible ? (d.formVisible.value = !1, setTimeout(() => {
48
+ d.formVisible.value = !0;
49
+ }, 1)) : Ie.warning("未配置点击处理事件!");
50
+ }), l === 0 || m < l ? a.push(d) : o.push(d);
51
+ }), { buttons: a, menus: o };
52
+ }, V = (r, l) => r.disabled && typeof r.disabled == "function" ? r.disabled(l) : r.disabled, j = (r, l) => r.visible && typeof r.visible == "function" ? r.visible(l) : r.visible ?? !0, Ca = (r, l) => {
53
+ l.reload.value = !0;
54
+ }, $a = (r, l) => {
55
+ l.searchBar.value = !l.searchBar.value;
56
+ }, Sa = (r, l) => {
57
+ switch (l.tableSize.value) {
58
+ case "large":
59
+ l.tableSize.value = "middle";
60
+ break;
61
+ case "middle":
62
+ l.tableSize.value = "small";
63
+ break;
64
+ case "small":
65
+ l.tableSize.value = "large";
66
+ break;
67
+ }
68
+ }, Ta = (r, l) => {
69
+ l.selectable.value = !l.selectable.value, l.selectable.value || (l.selectKeys.value = [], l.selectRows.value = []);
70
+ }, Da = (r, l) => {
71
+ l.rowExpand.value = !l.rowExpand.value;
72
+ }, ke = (r, l) => {
73
+ l.selectable.value = !l.selectable.value;
74
+ }, L = (r, l, t, a, o) => {
75
+ (!r.confirm || o) && r.click && (l ? r.click(l, t, a) : r.click(null, t, a)), Pa(r);
76
+ }, Ia = (r, l) => {
77
+ l.selectable.value = !l.selectable.value;
78
+ }, Re = () => {
79
+ const r = de();
80
+ r.setFullscreen(!r.fullscreen);
81
+ }, Pa = (r, l) => {
82
+ (r.icons || r.labels) && (r.iconStatus = r.iconStatus || 0, r.iconStatus += 1, r.labels && r.labels.length && (r.label = r.labels[r.iconStatus % r.labels.length]), r.icons && r.icons.length && (r.icon = r.icons[r.iconStatus % r.icons.length]));
83
+ }, Ba = (r, l) => {
84
+ l ? delete r.visible : r.visible = !1;
85
+ }, we = [
86
+ {
87
+ key: "Reload",
88
+ label: "刷新表格",
89
+ icon: "icon-reload",
90
+ click: Ca
91
+ },
92
+ {
93
+ key: "Query",
94
+ label: "展开搜索栏",
95
+ labels: ["展开搜索栏", "折叠搜索栏"],
96
+ icon: "icon-search",
97
+ iconStatus: 0,
98
+ click: $a
99
+ },
100
+ {
101
+ key: "RowHeight",
102
+ label: "行高调整",
103
+ icon: "icon-row-height",
104
+ click: Sa
105
+ },
106
+ {
107
+ key: "tool.multiple.checkbox",
108
+ label: "显示多选框",
109
+ labels: ["显示多选框", "隐藏多选框"],
110
+ icon: "icon-checkbox",
111
+ click: Ta
112
+ },
113
+ {
114
+ key: "tool.expand.rows",
115
+ label: "展开记录行",
116
+ labels: ["展开记录行", "折叠记录行"],
117
+ icon: "icon-row-collapse",
118
+ iconStatus: 0,
119
+ icons: ["icon-row-collapse", "icon-row-expand"],
120
+ click: Da
121
+ },
122
+ {
123
+ key: "tool.export.excel",
124
+ label: "导出Excel",
125
+ icon: "icon-export-excel",
126
+ children: [
127
+ {
128
+ key: "tool.export.excel.all",
129
+ label: "全部记录",
130
+ click: ke
131
+ },
132
+ {
133
+ key: "tool.export.excel.selected",
134
+ label: "选中的记录",
135
+ click: ke
136
+ }
137
+ ]
138
+ },
139
+ {
140
+ key: "tool.export.pdf",
141
+ label: "导出PDF",
142
+ icon: "icon-export-pdf",
143
+ children: [
144
+ {
145
+ key: "tool.export.pdf.selected",
146
+ label: "选中的记录",
147
+ click: Ia
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ key: "TableHeadset",
153
+ label: "表头设置",
154
+ icon: "icon-headset",
155
+ dropdown: "headset",
156
+ click: () => {
157
+ }
158
+ // 不设置点击事件
159
+ },
160
+ {
161
+ key: "Fullscreen",
162
+ label: "设置全屏",
163
+ labels: ["设置全屏", "取消全屏"],
164
+ icon: "icon-fullscreen",
165
+ iconStatus: 0,
166
+ icons: ["icon-fullscreen", "icon-exitscreen"],
167
+ click: Re
168
+ }
169
+ ], Fa = (r) => {
170
+ if (!r.tools || r.tools.length > 0) {
171
+ const l = [];
172
+ return r.tools ? l.push(...r.tools) : l.push(...we), { tools: ve(we, 0, l).buttons };
173
+ }
174
+ return {
175
+ tools: []
176
+ };
177
+ }, Bt = /* @__PURE__ */ w({
17
178
  __name: "fullscreen",
18
- setup(f) {
19
- const o = be();
20
- return (a, t) => (p(), g(R, {
21
- onClick: J(e(Ee), ["stop"]),
22
- icon: e(o).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
179
+ setup(r) {
180
+ const l = de();
181
+ return (t, a) => (f(), g(R, {
182
+ onClick: G(e(Re), ["stop"]),
183
+ icon: e(l).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
23
184
  class: "w-[17px] h-[17px]"
24
185
  }, null, 8, ["onClick", "icon"]));
25
186
  }
26
- }), bt = { class: "ml-2" }, kt = /* @__PURE__ */ C({
187
+ }), Ma = { class: "ml-2" }, za = /* @__PURE__ */ w({
27
188
  inheritAttrs: !1,
28
189
  __name: "helper",
29
190
  props: {
30
191
  text: {},
31
192
  maxWidth: {}
32
193
  },
33
- setup(f) {
34
- const o = W();
35
- return (a, t) => (p(), g(e(Ge), { placement: "topRight" }, {
36
- content: m(() => [
37
- I(a.$slots, "default", {}, () => [
194
+ setup(r) {
195
+ const l = J();
196
+ return (t, a) => (f(), g(e(We), { placement: "topRight" }, {
197
+ content: h(() => [
198
+ I(t.$slots, "default", {}, () => [
38
199
  T("div", {
39
200
  class: "text-[14px]",
40
- style: ue({ maxWidth: a.maxWidth })
41
- }, D(a.text), 5)
201
+ style: ce({ maxWidth: t.maxWidth })
202
+ }, D(t.text), 5)
42
203
  ])
43
204
  ]),
44
- default: m(() => [
45
- T("span", bt, [
46
- b(R, B({
205
+ default: h(() => [
206
+ T("span", Ma, [
207
+ y(R, P({
47
208
  icon: "icon-question-circle",
48
209
  class: "text-[#888] w-4 h-4"
49
- }, e(o)), null, 16)
210
+ }, e(l)), null, 16)
50
211
  ])
51
212
  ]),
52
213
  _: 3
53
214
  }));
54
215
  }
55
- }), ga = /* @__PURE__ */ C({
216
+ }), Ft = /* @__PURE__ */ w({
56
217
  __name: "layoutIcon",
57
218
  props: {
58
219
  icon: {
@@ -62,21 +223,21 @@ const ha = /* @__PURE__ */ C({
62
223
  type: Array
63
224
  }
64
225
  },
65
- setup(f) {
66
- const o = f, t = Re({
67
- iconUrl: `${ft.MICROLAYOUT_ICONS}`,
226
+ setup(r) {
227
+ const l = r, a = Qe({
228
+ iconUrl: `${je.MICROLAYOUT_ICONS}`,
68
229
  monoColor: !0,
69
- icon: o.icon,
70
- icons: o.icons
230
+ icon: l.icon,
231
+ icons: l.icons
71
232
  });
72
- return (s, u) => f.icon || f.icons ? (p(), g(e(t), B({
233
+ return (o, u) => r.icon || r.icons ? (f(), g(e(a), P({
73
234
  key: 0,
74
- icon: f.icon,
75
- icons: f.icons,
235
+ icon: r.icon,
236
+ icons: r.icons,
76
237
  class: ["align-middle"]
77
- }, s.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
238
+ }, o.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
78
239
  }
79
- }), Ct = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, _a = /* @__PURE__ */ C({
240
+ }), Ea = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, Mt = /* @__PURE__ */ w({
80
241
  __name: "index",
81
242
  props: {
82
243
  saveText: {},
@@ -84,28 +245,28 @@ const ha = /* @__PURE__ */ C({
84
245
  cancelText: {},
85
246
  editorCtrl: {}
86
247
  },
87
- setup(f) {
88
- const { useToken: o } = Fe, { token: a } = o(), t = _(!1), u = f.editorCtrl;
89
- _e(Z.EditorControl, u), $(
248
+ setup(r) {
249
+ const { useToken: l } = Pe, { token: t } = l(), a = b(!1), u = r.editorCtrl;
250
+ $e(Z.EditorControl, u), $(
90
251
  () => u.visible.value,
91
- (i) => {
92
- t.value = i ?? !1;
252
+ (d) => {
253
+ a.value = d ?? !1;
93
254
  }
94
- ), A(() => {
95
- t.value = u.visible.value ?? !1;
255
+ ), K(() => {
256
+ a.value = u.visible.value ?? !1;
96
257
  });
97
- const c = () => {
98
- le(u);
258
+ const m = () => {
259
+ re(u);
99
260
  };
100
- return (i, d) => (p(), g(e(Xe), {
101
- open: t.value,
102
- "onUpdate:open": d[4] || (d[4] = (n) => t.value = n),
261
+ return (d, n) => (f(), g(e(Je), {
262
+ open: a.value,
263
+ "onUpdate:open": n[4] || (n[4] = (c) => a.value = c),
103
264
  "get-container": !1,
104
265
  closable: !1,
105
266
  "header-style": {
106
267
  height: "40px",
107
268
  padding: "10px 6px 10px 16px",
108
- backgroundColor: e(a).colorBgLayout
269
+ backgroundColor: e(t).colorBgLayout
109
270
  },
110
271
  "body-style": {
111
272
  padding: "10px 16px"
@@ -118,11 +279,11 @@ const ha = /* @__PURE__ */ C({
118
279
  boxShadow: "rgba(0, 0, 0, 0.3) -2px 0px 8px"
119
280
  },
120
281
  width: "420px",
121
- onClose: c
282
+ onClose: m
122
283
  }, {
123
- extra: m(() => [
124
- T("div", Ct, [
125
- b(e(R), {
284
+ extra: h(() => [
285
+ T("div", Ea, [
286
+ y(e(R), {
126
287
  class: "top-[-2px] left-[2px] w-6 h-6",
127
288
  icon: "icon-new",
128
289
  angle: 45,
@@ -130,44 +291,44 @@ const ha = /* @__PURE__ */ C({
130
291
  clickable: "",
131
292
  color: "#666",
132
293
  position: [0, 0],
133
- onClick: d[0] || (d[0] = () => e(le)(e(u)))
294
+ onClick: n[0] || (n[0] = () => e(re)(e(u)))
134
295
  })
135
296
  ])
136
297
  ]),
137
- default: m(() => [
138
- I(i.$slots, "default")
298
+ default: h(() => [
299
+ I(d.$slots, "default")
139
300
  ]),
140
- footer: m(() => [
141
- b(e(G), null, {
142
- default: m(() => [
143
- i.cancelText !== "" ? (p(), g(e(z), {
301
+ footer: h(() => [
302
+ y(e(X), null, {
303
+ default: h(() => [
304
+ d.cancelText !== "" ? (f(), g(e(N), {
144
305
  key: 0,
145
- onClick: d[1] || (d[1] = () => e(le)(e(u)))
306
+ onClick: n[1] || (n[1] = () => e(re)(e(u)))
146
307
  }, {
147
- default: m(() => [
148
- P(D(i.cancelText ?? "取消"), 1)
308
+ default: h(() => [
309
+ F(D(d.cancelText ?? "取消"), 1)
149
310
  ]),
150
311
  _: 1
151
312
  })) : k("", !0),
152
- i.saveAsText !== "" && e(u).saveAsBtnVisible !== !1 ? (p(), g(e(z), {
313
+ d.saveAsText !== "" && e(u).saveAsBtnVisible !== !1 ? (f(), g(e(N), {
153
314
  key: 1,
154
- onClick: d[2] || (d[2] = () => e(Ye)(e(u))),
315
+ onClick: n[2] || (n[2] = () => e(pa)(e(u))),
155
316
  type: "primary",
156
317
  loading: e(u).isFormSaving.value
157
318
  }, {
158
- default: m(() => [
159
- P(D(i.saveAsText ?? "另存为"), 1)
319
+ default: h(() => [
320
+ F(D(d.saveAsText ?? "另存为"), 1)
160
321
  ]),
161
322
  _: 1
162
323
  }, 8, ["loading"])) : k("", !0),
163
- i.saveText !== "" && e(u).saveBtnVisible !== !1 ? (p(), g(e(z), {
324
+ d.saveText !== "" && e(u).saveBtnVisible !== !1 ? (f(), g(e(N), {
164
325
  key: 2,
165
- onClick: d[3] || (d[3] = () => e(ke)(e(u))),
326
+ onClick: n[3] || (n[3] = () => e(Ee)(e(u))),
166
327
  type: "primary",
167
328
  loading: e(u).isFormSaving.value
168
329
  }, {
169
- default: m(() => [
170
- P(D(i.saveText ?? "保存"), 1)
330
+ default: h(() => [
331
+ F(D(d.saveText ?? "保存"), 1)
171
332
  ]),
172
333
  _: 1
173
334
  }, 8, ["loading"])) : k("", !0)
@@ -178,45 +339,45 @@ const ha = /* @__PURE__ */ C({
178
339
  _: 3
179
340
  }, 8, ["open", "header-style"]));
180
341
  }
181
- }), xa = /* @__PURE__ */ C({
342
+ }), zt = /* @__PURE__ */ w({
182
343
  __name: "index",
183
344
  props: {
184
345
  labelWidth: {},
185
346
  wrapperWidth: {},
186
347
  editorCtrl: {}
187
348
  },
188
- setup(f) {
189
- const o = f, a = o.editorCtrl ?? ie(Z.EditorControl, void 0);
190
- return (t, s) => {
191
- const u = X("submit");
192
- return Q((p(), g(e(Pe), {
193
- "label-col": { flex: o.labelWidth ?? "85px" },
349
+ setup(r) {
350
+ const l = r, t = l.editorCtrl ?? ie(Z.EditorControl, void 0);
351
+ return (a, o) => {
352
+ const u = ee("submit");
353
+ return q((f(), g(e(Be), {
354
+ "label-col": { flex: l.labelWidth ?? "85px" },
194
355
  "wrapper-col": {
195
- flex: o.wrapperWidth ?? "1"
356
+ flex: l.wrapperWidth ?? "1"
196
357
  },
197
358
  style: {
198
359
  display: "flex",
199
360
  flexWrap: "wrap"
200
361
  }
201
362
  }, {
202
- default: m(() => [
203
- I(t.$slots, "default")
363
+ default: h(() => [
364
+ I(a.$slots, "default")
204
365
  ]),
205
366
  _: 3
206
367
  }, 8, ["label-col", "wrapper-col"])), [
207
368
  [
208
369
  u,
209
370
  () => {
210
- e(a) && e(ke)(e(a));
371
+ e(t) && e(Ee)(e(t));
211
372
  }
212
373
  ]
213
374
  ]);
214
375
  };
215
376
  }
216
- }), wt = { class: "w-full flex items-center" }, $t = { class: "flex-grow" }, St = { class: "w-8 mt-[-2px]" }, Tt = {
377
+ }), Na = { class: "w-full flex items-center" }, Aa = { class: "flex-grow" }, Ka = { class: "w-8 mt-[-2px]" }, Oa = {
217
378
  key: 1,
218
379
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
219
- }, ya = /* @__PURE__ */ C({
380
+ }, Et = /* @__PURE__ */ w({
220
381
  inheritAttrs: !1,
221
382
  __name: "formItem",
222
383
  props: {
@@ -225,48 +386,48 @@ const ha = /* @__PURE__ */ C({
225
386
  helper: {},
226
387
  width: {}
227
388
  },
228
- setup(f) {
229
- const o = f, a = W(), t = ie(Z.EditorControl, void 0), s = Ce(o, t), u = _(!1);
389
+ setup(r) {
390
+ const l = r, t = J(), a = ie(Z.EditorControl, void 0), o = Ce(l, a), u = b(!1);
230
391
  setTimeout(() => {
231
392
  u.value = !0;
232
393
  }, 30);
233
- const c = (d, n) => {
234
- if (!n)
394
+ const m = (n, c) => {
395
+ if (!c)
235
396
  return;
236
- const [r, ...l] = d;
237
- return d.length === 1 ? n[r] : c(l, n[r].fields);
238
- }, i = oe(() => {
239
- var n;
240
- if (!o.rule)
397
+ const [i, ...s] = n;
398
+ return n.length === 1 ? c[i] : m(s, c[i].fields);
399
+ }, d = W(() => {
400
+ var c;
401
+ if (!l.rule)
241
402
  return !1;
242
- const d = c(o.rule.split("."), (n = t == null ? void 0 : t.formRules) == null ? void 0 : n.value);
243
- return d ? d.required ?? !0 : (Ze.error(`"${o.label}" 的验证规则 \`${o.rule}\` 不存在`), s.value.errClass = "text-[#ff4d4f]", s.value.msg = `规则 \`${o.rule}\` 不存在,请检查代码!`, !0);
403
+ const n = m(l.rule.split("."), (c = a == null ? void 0 : a.formRules) == null ? void 0 : c.value);
404
+ return n ? n.required ?? !0 : (Ge.error(`"${l.label}" 的验证规则 \`${l.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${l.rule}\` 不存在,请检查代码!`, !0);
244
405
  });
245
- return (d, n) => (p(), w("div", {
246
- class: N(["w-full relative mb-1", d.width])
406
+ return (n, c) => (f(), C("div", {
407
+ class: E(["w-full relative mb-1", n.width])
247
408
  }, [
248
- u.value ? (p(), g(e(Me), B({
409
+ u.value ? (f(), g(e(Fe), P({
249
410
  key: 0,
250
- required: i.value,
411
+ required: d.value,
251
412
  class: "!w-[95%] relative"
252
- }, e(a), {
253
- class: [d.rule ? "" : "mb-3"]
413
+ }, e(t), {
414
+ class: [n.rule ? "" : "mb-3"]
254
415
  }), {
255
- label: m(() => [
416
+ label: h(() => [
256
417
  T("span", {
257
- class: N([e(s).errClass ? "text-[#ff4d4f]" : "", "w-full"])
258
- }, D(d.label), 3)
418
+ class: E([e(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
419
+ }, D(n.label), 3)
259
420
  ]),
260
- default: m(() => [
261
- T("div", wt, [
262
- T("div", $t, [
263
- I(d.$slots, "default")
421
+ default: h(() => [
422
+ T("div", Na, [
423
+ T("div", Aa, [
424
+ I(n.$slots, "default")
264
425
  ]),
265
- T("div", St, [
266
- I(d.$slots, "helper", {}, () => [
267
- d.helper ? (p(), g(e(kt), {
426
+ T("div", Ka, [
427
+ I(n.$slots, "helper", {}, () => [
428
+ n.helper ? (f(), g(e(za), {
268
429
  key: 0,
269
- text: d.helper
430
+ text: n.helper
270
431
  }, null, 8, ["text"])) : k("", !0)
271
432
  ])
272
433
  ])
@@ -274,13 +435,13 @@ const ha = /* @__PURE__ */ C({
274
435
  ]),
275
436
  _: 3
276
437
  }, 16, ["required", "class"])) : k("", !0),
277
- e(s).errClass ? (p(), w("span", Tt, D(e(s).msg), 1)) : k("", !0)
438
+ e(o).errClass ? (f(), C("span", Oa, D(e(o).msg), 1)) : k("", !0)
278
439
  ], 2));
279
440
  }
280
- }), Dt = { class: "w-1/3 relative mb-1" }, It = { class: "flex items-center" }, Bt = { class: "flex-grow pl-1" }, Ft = {
441
+ }), Ra = { class: "w-1/3 relative mb-1" }, Ya = { class: "flex items-center" }, La = { class: "flex-grow pl-1" }, Ua = {
281
442
  key: 0,
282
443
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
283
- }, re = /* @__PURE__ */ C({
444
+ }, se = /* @__PURE__ */ w({
284
445
  inheritAttrs: !1,
285
446
  __name: "searchItem",
286
447
  props: {
@@ -288,19 +449,19 @@ const ha = /* @__PURE__ */ C({
288
449
  width: {},
289
450
  rule: {}
290
451
  },
291
- setup(f) {
292
- const o = f, a = W(), t = ie(Z.EditorControl, void 0), s = Ce(o, t);
293
- return (u, c) => (p(), w("div", Dt, [
294
- b(e(Me), B({
452
+ setup(r) {
453
+ const l = r, t = J(), a = ie(Z.EditorControl, void 0), o = Ce(l, a);
454
+ return (u, m) => (f(), C("div", Ra, [
455
+ y(e(Fe), P({
295
456
  required: u.rule !== void 0,
296
457
  class: "w-[90%] relative"
297
- }, e(a), {
458
+ }, e(t), {
298
459
  class: [u.rule ? "" : "mb-3", u.width],
299
460
  labelCol: { span: 6 }
300
- }), xe({
301
- default: m(() => [
302
- T("div", It, [
303
- T("div", Bt, [
461
+ }), Se({
462
+ default: h(() => [
463
+ T("div", Ya, [
464
+ T("div", La, [
304
465
  I(u.$slots, "default")
305
466
  ])
306
467
  ])
@@ -309,18 +470,18 @@ const ha = /* @__PURE__ */ C({
309
470
  }, [
310
471
  u.label ? {
311
472
  name: "label",
312
- fn: m(() => [
473
+ fn: h(() => [
313
474
  T("span", {
314
- class: N([e(s).errClass ? "text-[#ff4d4f]" : "", "w-full"])
475
+ class: E([e(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
315
476
  }, D(u.label), 3)
316
477
  ]),
317
478
  key: "0"
318
479
  } : void 0
319
480
  ]), 1040, ["required", "class"]),
320
- e(s).msg ? (p(), w("span", Ft, D(e(s).msg), 1)) : k("", !0)
481
+ e(o).msg ? (f(), C("span", Ua, D(e(o).msg), 1)) : k("", !0)
321
482
  ]));
322
483
  }
323
- }), ba = /* @__PURE__ */ C({
484
+ }), Nt = /* @__PURE__ */ w({
324
485
  __name: "index",
325
486
  props: {
326
487
  search: {},
@@ -328,56 +489,56 @@ const ha = /* @__PURE__ */ C({
328
489
  likeFields: {}
329
490
  },
330
491
  emits: ["update:search"],
331
- setup(f, { emit: o }) {
332
- const a = f, t = o, s = _(0), u = _(0), c = _(0), i = (h) => {
333
- let x = 0;
334
- for (let S = 0; S < h.length; S++)
335
- typeof h[S].type == "object" && x++;
336
- return x;
337
- }, d = Ae(), n = () => {
338
- u.value = 0, c.value = 0, d.default && (u.value = i(d.default({}))), a.gridCtrl.searchBar && d.control && (c.value = i(d.control({}))), s.value = 2 - (u.value + c.value) % 3;
492
+ setup(r, { emit: l }) {
493
+ const t = r, a = l, o = b(0), u = b(0), m = b(0), d = (p) => {
494
+ let _ = 0;
495
+ for (let S = 0; S < p.length; S++)
496
+ typeof p[S].type == "object" && _++;
497
+ return _;
498
+ }, n = Ye(), c = () => {
499
+ u.value = 0, m.value = 0, n.default && (u.value = d(n.default({}))), t.gridCtrl.searchBar && n.control && (m.value = d(n.control({}))), o.value = 2 - (u.value + m.value) % 3;
339
500
  };
340
501
  $(
341
- () => a.gridCtrl.searchBar,
502
+ () => t.gridCtrl.searchBar,
342
503
  () => {
343
- n();
504
+ c();
344
505
  }
345
506
  );
346
- const r = JSON.parse(JSON.stringify(a.search));
347
- A(() => {
348
- var x;
349
- n();
350
- let h = { ...a.search };
351
- a.gridCtrl.gridQuery = {
352
- ...a.gridCtrl.gridQuery,
507
+ const i = JSON.parse(JSON.stringify(t.search));
508
+ K(() => {
509
+ var _;
510
+ c();
511
+ let p = { ...t.search };
512
+ t.gridCtrl.gridQuery = {
513
+ ...t.gridCtrl.gridQuery,
353
514
  Query: {
354
- ...(x = a.gridCtrl.gridQuery) == null ? void 0 : x.Query,
355
- ...h
515
+ ...(_ = t.gridCtrl.gridQuery) == null ? void 0 : _.Query,
516
+ ...p
356
517
  }
357
518
  };
358
519
  });
359
- const l = () => {
360
- var x;
361
- let h = { ...a.search };
362
- if (a.likeFields)
363
- for (const S of a.likeFields)
364
- h[S] && (h[S] = { $like: "%" + h[S] + "%" });
365
- a.gridCtrl.gridQuery = {
366
- ...a.gridCtrl.gridQuery,
520
+ const s = () => {
521
+ var _;
522
+ let p = { ...t.search };
523
+ if (t.likeFields)
524
+ for (const S of t.likeFields)
525
+ p[S] && (p[S] = { $like: "%" + p[S] + "%" });
526
+ t.gridCtrl.gridQuery = {
527
+ ...t.gridCtrl.gridQuery,
367
528
  Query: {
368
- ...(x = a.gridCtrl.gridQuery) == null ? void 0 : x.Query,
369
- ...h
529
+ ...(_ = t.gridCtrl.gridQuery) == null ? void 0 : _.Query,
530
+ ...p
370
531
  }
371
- }, a.gridCtrl.pageNo.value = 1, a.gridCtrl.reload.value = !0;
532
+ }, t.gridCtrl.pageNo.value = 1, t.gridCtrl.reload.value = !0;
372
533
  }, v = () => {
373
- const h = JSON.parse(JSON.stringify(r));
374
- for (const x in a.search)
375
- h[x] === void 0 && (h[x] = void 0);
376
- t("update:search", h);
534
+ const p = JSON.parse(JSON.stringify(i));
535
+ for (const _ in t.search)
536
+ p[_] === void 0 && (p[_] = void 0);
537
+ a("update:search", p);
377
538
  };
378
- return (h, x) => {
379
- const S = X("submit");
380
- return u.value + c.value > 0 ? Q((p(), g(e(Pe), {
539
+ return (p, _) => {
540
+ const S = ee("submit");
541
+ return u.value + m.value > 0 ? q((f(), g(e(Be), {
381
542
  key: 0,
382
543
  "label-col": { flex: "60px" },
383
544
  style: {
@@ -386,42 +547,42 @@ const ha = /* @__PURE__ */ C({
386
547
  },
387
548
  class: "flex mb-[10px]"
388
549
  }, {
389
- default: m(() => [
390
- I(h.$slots, "default"),
391
- h.gridCtrl.searchBar ? I(h.$slots, "control", { key: 0 }) : k("", !0),
392
- s.value >= 1 ? (p(), g(re, {
550
+ default: h(() => [
551
+ I(p.$slots, "default"),
552
+ p.gridCtrl.searchBar ? I(p.$slots, "control", { key: 0 }) : k("", !0),
553
+ o.value >= 1 ? (f(), g(se, {
393
554
  key: 1,
394
555
  class: "w-1/3"
395
556
  })) : k("", !0),
396
- s.value >= 2 ? (p(), g(re, {
557
+ o.value >= 2 ? (f(), g(se, {
397
558
  key: 2,
398
559
  class: "w-1/3"
399
560
  })) : k("", !0),
400
- u.value || h.gridCtrl.searchBar ? (p(), g(re, {
561
+ u.value || p.gridCtrl.searchBar ? (f(), g(se, {
401
562
  key: 3,
402
563
  class: "w-1/3 flex justify-end text-right pr-5",
403
564
  "wrapper-col": { flex: "auto" }
404
565
  }, {
405
- default: m(() => [
406
- b(e(G), null, {
407
- default: m(() => [
408
- b(e(z), {
566
+ default: h(() => [
567
+ y(e(X), null, {
568
+ default: h(() => [
569
+ y(e(N), {
409
570
  type: "primary",
410
- onClick: l,
571
+ onClick: s,
411
572
  icon: "icon-search"
412
573
  }, {
413
- default: m(() => x[0] || (x[0] = [
414
- P("搜索")
574
+ default: h(() => _[0] || (_[0] = [
575
+ F("搜索")
415
576
  ])),
416
577
  _: 1,
417
578
  __: [0]
418
579
  }),
419
- b(e(z), {
580
+ y(e(N), {
420
581
  onClick: v,
421
582
  icon: "icon-reset"
422
583
  }, {
423
- default: m(() => x[1] || (x[1] = [
424
- P("重置")
584
+ default: h(() => _[1] || (_[1] = [
585
+ F("重置")
425
586
  ])),
426
587
  _: 1,
427
588
  __: [1]
@@ -435,18 +596,18 @@ const ha = /* @__PURE__ */ C({
435
596
  ]),
436
597
  _: 3
437
598
  })), [
438
- [S, l]
599
+ [S, s]
439
600
  ]) : k("", !0);
440
601
  };
441
602
  }
442
- }), Pt = /* @__PURE__ */ C({
603
+ }), Qa = /* @__PURE__ */ w({
443
604
  __name: "tableOperate",
444
605
  props: {
445
606
  record: {},
446
607
  gridCtrl: {}
447
608
  },
448
- setup(f) {
449
- const o = f, a = o.gridCtrl, t = [
609
+ setup(r) {
610
+ const l = r, t = l.gridCtrl, a = W(() => le.currentRoute.value.path), o = [
450
611
  {
451
612
  key: "Edit",
452
613
  label: "编辑",
@@ -454,7 +615,7 @@ const ha = /* @__PURE__ */ C({
454
615
  visible: !0,
455
616
  role: ["Super", "Admin"],
456
617
  permit: ":edit",
457
- click: () => Le(a, o.record)
618
+ click: () => ba(t, l.record)
458
619
  },
459
620
  {
460
621
  key: "Delete",
@@ -466,102 +627,102 @@ const ha = /* @__PURE__ */ C({
466
627
  permit: ":delete",
467
628
  confirm: !0,
468
629
  confirmText: "是否删除此记录?",
469
- click: () => Ue(a, o.record)
630
+ click: () => xa(t, l.record)
470
631
  }
471
- ], { buttons: s, menus: u } = we(t, 0, a.operates), c = (i) => {
472
- if (typeof i.disabled == "boolean")
473
- return i.disabled;
474
- if (typeof i.disabled == "function")
475
- return q(i, o.record) ?? !1;
476
- if (o.record.hasOwnProperty("Enabled"))
477
- switch (i.key) {
632
+ ], { buttons: u, menus: m } = ve(o, 0, t.operates), d = (n) => {
633
+ if (typeof n.disabled == "boolean")
634
+ return n.disabled;
635
+ if (typeof n.disabled == "function")
636
+ return V(n, l.record) ?? !1;
637
+ if (l.record.hasOwnProperty("Enabled"))
638
+ switch (n.key) {
478
639
  case "Edit":
479
- return !o.record.Enabled;
640
+ return !l.record.Enabled;
480
641
  case "Delete":
481
- return !!o.record.Enabled;
642
+ return !!l.record.Enabled;
482
643
  }
483
644
  return !1;
484
645
  };
485
- return (i, d) => {
486
- const n = X("auth");
487
- return p(), g(e(he), { theme: {
646
+ return (n, c) => {
647
+ const i = ee("auth");
648
+ return f(), g(e(xe), { theme: {
488
649
  token: {
489
650
  fontSize: 13
490
651
  }
491
652
  } }, {
492
- default: m(() => [
493
- b(e(G), null, {
494
- default: m(() => [
495
- (p(!0), w(M, null, Y(e(s), (r) => (p(), w(M, {
496
- key: r.key
653
+ default: h(() => [
654
+ y(e(X), null, {
655
+ default: h(() => [
656
+ (f(!0), C(z, null, Y(e(u), (s) => (f(), C(z, {
657
+ key: s.key
497
658
  }, [
498
- e(j)(r, o.record) ? (p(), g(e(et), {
659
+ e(j)(s, l.record) ? (f(), g(e(Xe), {
499
660
  key: 0,
500
- disabled: c(r) || !r.confirm,
661
+ disabled: d(s) || !s.confirm,
501
662
  cancelText: "否",
502
663
  okText: "是",
503
- title: r.confirmText,
664
+ title: s.confirmText,
504
665
  okButtonProps: { size: "small" },
505
666
  cancelButtonProps: { size: "small" },
506
- onConfirm: (l) => e(L)(r, e(a).page, e(a), o.record, !0)
667
+ onConfirm: (v) => e(L)(s, e(t).page, e(t), l.record, !0)
507
668
  }, {
508
- default: m(() => [
509
- e(j)(r, o.record) ? Q((p(), g(e(Ne), {
510
- key: r.key,
511
- type: r.type ?? "text",
512
- danger: r.danger,
513
- disabled: c(r),
514
- onClick: (l) => e(L)(r, e(a).page, e(a), o.record),
669
+ default: h(() => [
670
+ e(j)(s, l.record) ? q((f(), g(e(Me), {
671
+ key: s.key,
672
+ type: s.type ?? "text",
673
+ danger: s.danger,
674
+ disabled: d(s),
675
+ onClick: (v) => e(L)(s, e(t).page, e(t), l.record),
515
676
  size: "small",
516
- style: ue({
517
- padding: r.type ?? "0px 4px"
677
+ style: ce({
678
+ padding: s.type ?? "0px 4px"
518
679
  })
519
680
  }, {
520
- default: m(() => [
521
- P(D(r.label), 1)
681
+ default: h(() => [
682
+ F(D(s.label), 1)
522
683
  ]),
523
684
  _: 2
524
685
  }, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
525
- [n, { url: e(H).currentRoute.value.path, role: r.role, permit: r.permit }]
686
+ [i, { url: a.value, role: s.role, permit: s.permit }]
526
687
  ]) : k("", !0)
527
688
  ]),
528
689
  _: 2
529
690
  }, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
530
691
  ], 64))), 128)),
531
- i.record.Enabled == 1 ? (p(), g(e(he), {
692
+ n.record.Enabled == 1 ? (f(), g(e(xe), {
532
693
  key: 0,
533
694
  autoInsertSpaceInButton: !1
534
695
  }, {
535
- default: m(() => [
536
- e(u).length > 0 ? (p(), g(e(tt), {
696
+ default: h(() => [
697
+ e(m).length > 0 ? (f(), g(e(Ze), {
537
698
  key: 0,
538
699
  size: "small"
539
700
  }, {
540
- overlay: m(() => [
541
- b(e(de), null, {
542
- default: m(() => [
543
- (p(!0), w(M, null, Y(e(u), (r) => (p(), w(M, {
544
- key: r.key
701
+ overlay: h(() => [
702
+ y(e(pe), null, {
703
+ default: h(() => [
704
+ (f(!0), C(z, null, Y(e(m), (s) => (f(), C(z, {
705
+ key: s.key
545
706
  }, [
546
- e(j)(r, o.record) ? Q((p(), g(e(ce), {
707
+ e(j)(s, l.record) ? q((f(), g(e(fe), {
547
708
  key: 0,
548
- disabled: c(r),
549
- onClick: (l) => e(L)(r, e(a).page, e(a), o.record)
709
+ disabled: d(s),
710
+ onClick: (v) => e(L)(s, e(t).page, e(t), l.record)
550
711
  }, {
551
- default: m(() => [
552
- P(D(r.label), 1)
712
+ default: h(() => [
713
+ F(D(s.label), 1)
553
714
  ]),
554
715
  _: 2
555
716
  }, 1032, ["disabled", "onClick"])), [
556
- [n, { url: e(H).currentRoute.value.path, role: r.role, permit: r.permit }]
717
+ [i, { url: a.value, role: s.role, permit: s.permit }]
557
718
  ]) : k("", !0)
558
719
  ], 64))), 128))
559
720
  ]),
560
721
  _: 1
561
722
  })
562
723
  ]),
563
- default: m(() => [
564
- d[0] || (d[0] = P(" 更多 "))
724
+ default: h(() => [
725
+ c[0] || (c[0] = F(" 更多 "))
565
726
  ]),
566
727
  _: 1,
567
728
  __: [0]
@@ -577,71 +738,71 @@ const ha = /* @__PURE__ */ C({
577
738
  });
578
739
  };
579
740
  }
580
- }), Mt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Nt = /* @__PURE__ */ C({
741
+ }), Va = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, qa = /* @__PURE__ */ w({
581
742
  __name: "icontool",
582
743
  props: {
583
744
  gridCtrl: {}
584
745
  },
585
- setup(f) {
586
- const o = f, a = o.gridCtrl, { tools: t } = qe(o.gridCtrl), s = be();
746
+ setup(r) {
747
+ const l = r, t = l.gridCtrl, { tools: a } = Fa(l.gridCtrl), o = de();
587
748
  $(
588
- () => a.selectable.value,
589
- (i) => {
590
- ee(t, "tool.export.excel.selected") && (ee(t, "tool.export.excel.selected").disabled = !i), ee(t, "tool.export.pdf.selected") && (ee(t, "tool.export.pdf.selected").disabled = !i);
749
+ () => t.selectable.value,
750
+ (d) => {
751
+ Q(a, "tool.export.excel.selected") && (Q(a, "tool.export.excel.selected").disabled = !d), Q(a, "tool.export.pdf.selected") && (Q(a, "tool.export.pdf.selected").disabled = !d);
591
752
  }
592
753
  );
593
- const u = _([]);
754
+ const u = b([]);
594
755
  $(
595
- () => a.columns.value,
596
- (i) => {
597
- u.value = $e(i, !0);
756
+ () => t.columns.value,
757
+ (d) => {
758
+ u.value = Ke(d, !0);
598
759
  },
599
760
  { deep: !0, immediate: !0 }
600
761
  );
601
- const c = () => {
602
- a.columns.value.splice(0, a.columns.value.length, ...u.value), s.setTableColumns(H.currentRoute.value.path, a.columns.value);
762
+ const m = () => {
763
+ t.columns.value.splice(0, t.columns.value.length, ...u.value), o.setTableColumns(le.currentRoute.value.path, t.columns.value);
603
764
  };
604
- return (i, d) => (p(), w("div", Mt, [
605
- (p(!0), w(M, null, Y(e(t), (n, r) => (p(), w(M, {
606
- key: n.key
765
+ return (d, n) => (f(), C("div", Va, [
766
+ (f(!0), C(z, null, Y(e(a), (c, i) => (f(), C(z, {
767
+ key: c.key
607
768
  }, [
608
- e(j)(n) && n.dropdown ? (p(), g(e(se), {
769
+ e(j)(c) && c.dropdown ? (f(), g(e(oe), {
609
770
  key: 0,
610
771
  placement: "bottomRight",
611
772
  class: "p-0 rounded-none"
612
773
  }, {
613
- overlay: m(() => [
774
+ overlay: h(() => [
614
775
  T("div", {
615
- class: N(["min-w-[100px] bg-white rounded shadow-md p-4", n.dropdownClass])
776
+ class: E(["min-w-[100px] bg-white rounded shadow-md p-4", c.dropdownClass])
616
777
  }, [
617
- n.dropdown === "headset" ? (p(), g(e(mt), {
778
+ c.dropdown === "headset" ? (f(), g(e(wa), {
618
779
  key: 0,
619
780
  modelValue: u.value,
620
- "onUpdate:modelValue": d[1] || (d[1] = (l) => u.value = l),
781
+ "onUpdate:modelValue": n[1] || (n[1] = (s) => u.value = s),
621
782
  "item-key": "dataIndex",
622
- onEnd: c,
783
+ onEnd: m,
623
784
  handle: ".drag-handle"
624
785
  }, {
625
- default: m(() => [
626
- (p(!0), w(M, null, Y(u.value, (l) => (p(), w("div", {
627
- key: l.name,
628
- onClick: d[0] || (d[0] = J(() => {
786
+ default: h(() => [
787
+ (f(!0), C(z, null, Y(u.value, (s) => (f(), C("div", {
788
+ key: s.name,
789
+ onClick: n[0] || (n[0] = G(() => {
629
790
  }, ["stop"])),
630
791
  class: "flex items-center mb-2 last:mb-0 select-none"
631
792
  }, [
632
- d[2] || (d[2] = T("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
633
- b(e(at), {
634
- checked: l.visible !== !1,
635
- onChange: J(
793
+ n[2] || (n[2] = T("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
794
+ y(e(ea), {
795
+ checked: s.visible !== !1,
796
+ onChange: G(
636
797
  (v) => {
637
- e(Qe)(l, v.target.checked);
798
+ e(Ba)(s, v.target.checked);
638
799
  },
639
800
  ["stop", "prevent"]
640
801
  ),
641
802
  class: "text-gray-700 hover:text-gray-900 select-none"
642
803
  }, {
643
- default: m(() => [
644
- P(D(l.title), 1)
804
+ default: h(() => [
805
+ F(D(s.title), 1)
645
806
  ]),
646
807
  _: 2
647
808
  }, 1032, ["checked", "onChange"])
@@ -651,20 +812,20 @@ const ha = /* @__PURE__ */ C({
651
812
  }, 8, ["modelValue"])) : k("", !0)
652
813
  ], 2)
653
814
  ]),
654
- default: m(() => [
655
- b(e(z), {
656
- class: N([
815
+ default: h(() => [
816
+ y(e(N), {
817
+ class: E([
657
818
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
658
- r === 0 ? "rounded-l-[5px]" : "",
659
- r === e(t).length - 1 ? "rounded-r-[5px]" : ""
819
+ i === 0 ? "rounded-l-[5px]" : "",
820
+ i === e(a).length - 1 ? "rounded-r-[5px]" : ""
660
821
  ]),
661
- disabled: e(q)(n),
662
- tiptext: n.label,
663
- onClick: (l) => e(L)(n, e(a).page, e(a))
822
+ disabled: e(V)(c),
823
+ tiptext: c.label,
824
+ onClick: (s) => e(L)(c, e(t).page, e(t))
664
825
  }, {
665
- default: m(() => [
666
- b(e(R), {
667
- icon: n.icon,
826
+ default: h(() => [
827
+ y(e(R), {
828
+ icon: c.icon,
668
829
  class: "w-[18px] h-[18.5px]",
669
830
  clickable: ""
670
831
  }, null, 8, ["icon"])
@@ -673,39 +834,39 @@ const ha = /* @__PURE__ */ C({
673
834
  }, 1032, ["class", "disabled", "tiptext", "onClick"])
674
835
  ]),
675
836
  _: 2
676
- }, 1024)) : !n.children && e(j)(n) ? (p(), g(e(z), {
837
+ }, 1024)) : !c.children && e(j)(c) ? (f(), g(e(N), {
677
838
  key: 1,
678
- class: N([
839
+ class: E([
679
840
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
680
- r === 0 ? "rounded-l-[5px]" : "",
681
- r === e(t).length - 1 ? "rounded-r-[5px]" : ""
841
+ i === 0 ? "rounded-l-[5px]" : "",
842
+ i === e(a).length - 1 ? "rounded-r-[5px]" : ""
682
843
  ]),
683
- disabled: e(q)(n),
684
- tiptext: n.label,
685
- onClick: (l) => e(L)(n, e(a).page, e(a))
844
+ disabled: e(V)(c),
845
+ tiptext: c.label,
846
+ onClick: (s) => e(L)(c, e(t).page, e(t))
686
847
  }, {
687
- default: m(() => [
688
- b(e(R), {
689
- icon: n.icon,
848
+ default: h(() => [
849
+ y(e(R), {
850
+ icon: c.icon,
690
851
  class: "w-[18px] h-[18.5px]",
691
852
  clickable: ""
692
853
  }, null, 8, ["icon"])
693
854
  ]),
694
855
  _: 2
695
- }, 1032, ["class", "disabled", "tiptext", "onClick"])) : e(j)(n) ? (p(), g(e(se), {
856
+ }, 1032, ["class", "disabled", "tiptext", "onClick"])) : e(j)(c) ? (f(), g(e(oe), {
696
857
  key: 2,
697
858
  placement: "bottomRight",
698
859
  class: "p-0 rounded-none"
699
860
  }, {
700
- overlay: m(() => [
701
- b(e(de), null, {
702
- default: m(() => [
703
- (p(!0), w(M, null, Y(n.children, (l) => (p(), g(e(ce), {
704
- key: l.key,
705
- disabled: e(q)(l)
861
+ overlay: h(() => [
862
+ y(e(pe), null, {
863
+ default: h(() => [
864
+ (f(!0), C(z, null, Y(c.children, (s) => (f(), g(e(fe), {
865
+ key: s.key,
866
+ disabled: e(V)(s)
706
867
  }, {
707
- default: m(() => [
708
- P(D(l.label), 1)
868
+ default: h(() => [
869
+ F(D(s.label), 1)
709
870
  ]),
710
871
  _: 2
711
872
  }, 1032, ["disabled"]))), 128))
@@ -713,20 +874,20 @@ const ha = /* @__PURE__ */ C({
713
874
  _: 2
714
875
  }, 1024)
715
876
  ]),
716
- default: m(() => [
717
- b(e(z), {
718
- class: N([
877
+ default: h(() => [
878
+ y(e(N), {
879
+ class: E([
719
880
  "!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
720
- r === 0 ? "rounded-l-[5px]" : ""
881
+ i === 0 ? "rounded-l-[5px]" : ""
721
882
  ]),
722
- disabled: e(q)(n),
723
- tiptext: n.label,
724
- icon: n.icon,
883
+ disabled: e(V)(c),
884
+ tiptext: c.label,
885
+ icon: c.icon,
725
886
  iconProps: { class: "w-[19px] h-[19px]" },
726
- onClick: (l) => e(L)(n, e(a).page, e(a))
887
+ onClick: (s) => e(L)(c, e(t).page, e(t))
727
888
  }, {
728
- default: m(() => [
729
- b(e(R), {
889
+ default: h(() => [
890
+ y(e(R), {
730
891
  icon: "icon-down-arrow",
731
892
  class: "w-[12px] h-[12px]"
732
893
  })
@@ -739,14 +900,14 @@ const ha = /* @__PURE__ */ C({
739
900
  ], 64))), 128))
740
901
  ]));
741
902
  }
742
- }), zt = { class: "flex justify-between mb-[10px]" }, At = { key: 1 }, Kt = 3, Ot = /* @__PURE__ */ C({
903
+ }), Ha = { class: "flex justify-between mb-[10px]" }, ja = { key: 1 }, Wa = 3, Ja = /* @__PURE__ */ w({
743
904
  __name: "index",
744
905
  props: {
745
906
  gridCtrl: {},
746
907
  editorCtrl: {}
747
908
  },
748
- setup(f) {
749
- const o = f, a = o.gridCtrl, t = a.page, s = o.editorCtrl, u = [
909
+ setup(r) {
910
+ const l = r, t = l.gridCtrl, a = t.page, o = l.editorCtrl, u = W(() => le.currentRoute.value.path), m = [
750
911
  {
751
912
  key: "New",
752
913
  label: "新增",
@@ -756,71 +917,72 @@ const ha = /* @__PURE__ */ C({
756
917
  role: ["Super", "Admin"],
757
918
  permit: ":new",
758
919
  // 默认仅受权限码控制
759
- click: () => Ve(s)
920
+ click: () => fa(o)
760
921
  }
761
- ], c = _([]), i = _([]);
922
+ ], d = b([]), n = b([]);
762
923
  return $(
763
924
  () => {
764
- var d;
765
- return (d = a.buttons) == null ? void 0 : d.value;
925
+ var c;
926
+ return (c = t.buttons) == null ? void 0 : c.value;
766
927
  },
767
928
  () => {
768
- var r;
769
- const { buttons: d, menus: n } = we(
770
- u,
771
- a.flat !== void 0 ? a.flat : Kt,
772
- (r = a.buttons) == null ? void 0 : r.value
929
+ var s;
930
+ const { buttons: c, menus: i } = ve(
931
+ m,
932
+ t.flat !== void 0 ? t.flat : Wa,
933
+ (s = t.buttons) == null ? void 0 : s.value
773
934
  );
774
- c.value.splice(0, c.value.length, ...d), i.value.splice(0, i.value.length, ...n);
935
+ d.value.splice(0, d.value.length, ...c), n.value.splice(0, n.value.length, ...i);
775
936
  },
776
937
  {
777
938
  deep: !0,
778
939
  immediate: !0
779
940
  }
780
- ), (d, n) => {
781
- const r = X("auth");
782
- return p(), w("div", zt, [
783
- b(e(G), null, {
784
- default: m(() => [
785
- (p(!0), w(M, null, Y(c.value, (l) => Q((p(), g(e(z), {
786
- key: l.key,
787
- type: l.type,
788
- danger: l.danger,
789
- disabled: e(q)(l),
790
- icon: l.icon,
791
- onClick: (v) => e(L)(l, e(t), e(a))
941
+ ), (c, i) => {
942
+ const s = ee("auth");
943
+ return f(), C("div", Ha, [
944
+ y(e(X), null, {
945
+ default: h(() => [
946
+ F(D(u.value) + " ", 1),
947
+ (f(!0), C(z, null, Y(d.value, (v) => q((f(), g(e(N), {
948
+ key: v.key,
949
+ type: v.type,
950
+ danger: v.danger,
951
+ disabled: e(V)(v),
952
+ icon: v.icon,
953
+ onClick: (p) => e(L)(v, e(a), e(t))
792
954
  }, {
793
- default: m(() => [
794
- P(D(l.label), 1)
955
+ default: h(() => [
956
+ F(D(v.label), 1)
795
957
  ]),
796
958
  _: 2
797
959
  }, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
798
- [r, { url: e(H).currentRoute.value.path, role: l.role, permit: l.permit }]
960
+ [s, { url: u.value, role: v.role, permit: v.permit }]
799
961
  ])), 128)),
800
- i.value.length > 0 ? (p(), g(e(se), { key: 0 }, {
801
- overlay: m(() => [
802
- b(e(de), null, {
803
- default: m(() => [
804
- (p(!0), w(M, null, Y(i.value, (l) => Q((p(), g(e(ce), {
805
- key: l.key,
806
- disabled: e(q)(l),
807
- onClick: (v) => e(L)(l, e(t), e(a))
962
+ n.value.length > 0 ? (f(), g(e(oe), { key: 0 }, {
963
+ overlay: h(() => [
964
+ y(e(pe), null, {
965
+ default: h(() => [
966
+ (f(!0), C(z, null, Y(n.value, (v) => q((f(), g(e(fe), {
967
+ key: v.key,
968
+ disabled: e(V)(v),
969
+ onClick: (p) => e(L)(v, e(a), e(t))
808
970
  }, {
809
- default: m(() => [
810
- P(D(l.label), 1)
971
+ default: h(() => [
972
+ F(D(v.label), 1)
811
973
  ]),
812
974
  _: 2
813
975
  }, 1032, ["disabled", "onClick"])), [
814
- [r, { url: e(H).currentRoute.value.path, role: l.role, permit: l.permit }]
976
+ [s, { url: u.value, role: v.role, permit: v.permit }]
815
977
  ])), 128))
816
978
  ]),
817
979
  _: 1
818
980
  })
819
981
  ]),
820
- default: m(() => [
821
- b(e(z), null, {
822
- default: m(() => n[0] || (n[0] = [
823
- P(" 更多操作 ")
982
+ default: h(() => [
983
+ y(e(N), null, {
984
+ default: h(() => i[0] || (i[0] = [
985
+ F(" 更多操作 ")
824
986
  ])),
825
987
  _: 1,
826
988
  __: [0]
@@ -828,20 +990,20 @@ const ha = /* @__PURE__ */ C({
828
990
  ]),
829
991
  _: 1
830
992
  })) : k("", !0),
831
- c.value.length === 0 && i.value.length === 0 ? (p(), w("span", At)) : k("", !0)
993
+ d.value.length === 0 && n.value.length === 0 ? (f(), C("span", ja)) : k("", !0)
832
994
  ]),
833
995
  _: 1
834
996
  }),
835
- b(e(G), { class: "mr-1" }, {
836
- default: m(() => [
837
- (p(), g(Ke(Nt), { "grid-ctrl": e(a) }, null, 8, ["grid-ctrl"]))
997
+ y(e(X), { class: "mr-1" }, {
998
+ default: h(() => [
999
+ (f(), g(Le(qa), { "grid-ctrl": e(t) }, null, 8, ["grid-ctrl"]))
838
1000
  ]),
839
1001
  _: 1
840
1002
  })
841
1003
  ]);
842
1004
  };
843
1005
  }
844
- }), Et = /* @__PURE__ */ C({
1006
+ }), Ga = /* @__PURE__ */ w({
845
1007
  __name: "index",
846
1008
  props: {
847
1009
  /**
@@ -853,32 +1015,36 @@ const ha = /* @__PURE__ */ C({
853
1015
  }
854
1016
  },
855
1017
  emits: ["change"],
856
- setup(f, { emit: o }) {
857
- const a = f, t = _([]), s = o, { editorCtrl: u, errInfo: c } = K(), i = (d) => {
858
- c != null && c.value.errClass && u && U(u), s("change", d);
1018
+ setup(r, { emit: l }) {
1019
+ const t = r, a = b([]), o = l, { editorCtrl: u, errInfo: m } = A(), d = (n) => {
1020
+ m != null && m.value.errClass && u && U(u), o("change", n);
859
1021
  };
860
- return A(() => {
861
- if (!a.data || a.data.length != 2) {
862
- console.error("Switch组件: ", a.data), ht.error("Switch组件必须有且只有两个选项");
1022
+ return K(() => {
1023
+ if (!t.data || t.data.length != 2) {
1024
+ console.error("Switch组件: ", t.data), Ie.error("Switch组件必须有且只有两个选项");
863
1025
  return;
864
1026
  }
865
- Se(!1, a, t);
866
- }), ye(() => {
867
- Te(a);
868
- }), (d, n) => {
869
- var r;
870
- return t.value.length === 2 ? (p(), g(e(lt), B({
1027
+ Ne(!1, t, a);
1028
+ }), Te(() => {
1029
+ Ae(t);
1030
+ }), (n, c) => {
1031
+ var i;
1032
+ return a.value.length === 2 ? (f(), g(e(aa), P({
871
1033
  key: 0,
872
- class: [((r = e(c)) == null ? void 0 : r.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "", "bg-blue-300", "w-[58px]"],
873
- checkedChildren: t.value[0].label,
874
- checkedValue: t.value[0].value,
875
- unCheckedChildren: t.value[1].label,
876
- unCheckedValue: t.value[1].value,
877
- onChange: i
878
- }, d.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : k("", !0);
1034
+ class: [
1035
+ ((i = e(m)) == null ? void 0 : i.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "",
1036
+ "bg-blue-300",
1037
+ "w-[58px]"
1038
+ ],
1039
+ checkedChildren: a.value[0].label,
1040
+ checkedValue: a.value[0].value,
1041
+ unCheckedChildren: a.value[1].label,
1042
+ unCheckedValue: a.value[1].value,
1043
+ onChange: d
1044
+ }, n.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : k("", !0);
879
1045
  };
880
1046
  }
881
- }), ka = /* @__PURE__ */ C({
1047
+ }), At = /* @__PURE__ */ w({
882
1048
  inheritAttrs: !1,
883
1049
  __name: "index",
884
1050
  props: {
@@ -890,113 +1056,113 @@ const ha = /* @__PURE__ */ C({
890
1056
  scroll: {},
891
1057
  statusDisabled: { type: Function }
892
1058
  },
893
- setup(f) {
894
- const o = f, a = W(), t = o.gridCtrl;
895
- t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
896
- const s = _(t.pageSize.value), u = _(t.pageNo.value), c = _([]), i = _({
1059
+ setup(r) {
1060
+ const l = r, t = J(), a = l.gridCtrl, o = W(() => le.currentRoute.value.path);
1061
+ a && (a.pageNo.value = 1, a.total.value = 0, a.pageSize.value = a.pageSize.value);
1062
+ const u = b(a.pageSize.value), m = b(a.pageNo.value), d = b([]), n = b({
897
1063
  total: 0,
898
1064
  current: 1,
899
- pageSize: s.value,
900
- showTotal: (v) => `共 ${v} 条记录`,
901
- onChange: (v, h) => {
902
- i.value.current = v, i.value.pageSize = h, s.value = h, u.value = v, t && (t.pageNo.value = v, t.pageSize.value = h, t.remotePage && me(t));
1065
+ pageSize: u.value,
1066
+ showTotal: (p) => `共 ${p} 条记录`,
1067
+ onChange: (p, _) => {
1068
+ n.value.current = p, n.value.pageSize = _, u.value = _, m.value = p, a && (a.pageNo.value = p, a.pageSize.value = _, a.remotePage && ye(a));
903
1069
  },
904
- ...o.pagination
1070
+ ...l.pagination
905
1071
  });
906
1072
  $(
907
- () => t.tableData.value,
908
- (v) => {
909
- v && (c.value = v, i.value.total = t.total.value ?? 0, i.value.current = t.pageNo.value ?? 1, i.value.pageSize = t.pageSize.value ?? 10);
1073
+ () => a.tableData.value,
1074
+ (p) => {
1075
+ p && (d.value = p, n.value.total = a.total.value ?? 0, n.value.current = a.pageNo.value ?? 1, n.value.pageSize = a.pageSize.value ?? 10);
910
1076
  },
911
1077
  { immediate: !0 }
912
1078
  ), $(
913
- () => o.tableData,
914
- (v) => {
915
- v && (c.value = v, i.value.total = v.length, i.value.current = t.pageNo.value ?? 1, i.value.pageSize = t.pageSize.value ?? 10);
1079
+ () => l.tableData,
1080
+ (p) => {
1081
+ p && (d.value = p, n.value.total = p.length, n.value.current = a.pageNo.value ?? 1, n.value.pageSize = a.pageSize.value ?? 10);
916
1082
  },
917
1083
  { immediate: !0 }
918
1084
  );
919
- const d = _(t.columns.value), n = {
920
- onChange: (v, h) => {
921
- t && (t.selectKeys.value = v, t.selectRows.value = h);
1085
+ const c = b(a.columns.value), i = {
1086
+ onChange: (p, _) => {
1087
+ a && (a.selectKeys.value = p, a.selectRows.value = _);
922
1088
  },
923
1089
  columnWidth: "30px",
924
- getCheckboxProps: (v) => ({
925
- disabled: v.Enabled === 0
1090
+ getCheckboxProps: (p) => ({
1091
+ disabled: p.Enabled === 0
926
1092
  }),
927
- ...o.rowSelection
928
- }, r = _(n);
1093
+ ...l.rowSelection
1094
+ }, s = b(i);
929
1095
  $(
930
- () => t.selectable.value,
931
- (v) => {
932
- t && (r.value = v ? n : void 0);
1096
+ () => a.selectable.value,
1097
+ (p) => {
1098
+ a && (s.value = p ? i : void 0);
933
1099
  },
934
1100
  { immediate: !0 }
935
1101
  ), $(
936
- () => t.columns.value,
1102
+ () => a.columns.value,
937
1103
  () => {
938
- d.value = $e(t.columns.value);
1104
+ c.value = Ke(a.columns.value);
939
1105
  },
940
1106
  { deep: !0, immediate: !0 }
941
1107
  );
942
- const l = _(!1);
943
- return Oe(() => {
944
- l.value && t && (t.reload.value = !0);
945
- }), A(async () => {
946
- _e(Z.GridControl, t), t.tableData.value ? (c.value = t.tableData.value, t.total.value = c.value.length, i.value.total = t.total.value ?? 0) : t.autoload !== !1 && (t.remotePage ? c.value = (await me(t)).rows : c.value = await je(t)), setTimeout(() => {
947
- l.value = !0;
1108
+ const v = b(!1);
1109
+ return Ue(() => {
1110
+ v.value && a && (a.reload.value = !0);
1111
+ }), K(async () => {
1112
+ $e(Z.GridControl, a), a.tableData.value ? (d.value = a.tableData.value, a.total.value = d.value.length, n.value.total = a.total.value ?? 0) : a.autoload !== !1 && (a.remotePage ? d.value = (await ye(a)).rows : d.value = await ya(a)), setTimeout(() => {
1113
+ v.value = !0;
948
1114
  }, 50);
949
- }), (v, h) => {
950
- var S, F;
951
- const x = X("auth");
952
- return p(), w(M, null, [
953
- (S = e(t).buttons) != null && S.value.length || (F = e(t).tools) != null && F.length ? (p(), g(Ot, {
1115
+ }), (p, _) => {
1116
+ var B, M;
1117
+ const S = ee("auth");
1118
+ return f(), C(z, null, [
1119
+ (B = e(a).buttons) != null && B.value.length || (M = e(a).tools) != null && M.length ? (f(), g(Ja, {
954
1120
  key: 0,
955
- "grid-ctrl": e(t),
956
- "editor-ctrl": e(t).editor
1121
+ "grid-ctrl": e(a),
1122
+ "editor-ctrl": e(a).editor
957
1123
  }, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
958
- l.value ? (p(), g(e(ze), B({
1124
+ v.value ? (f(), g(e(ze), P({
959
1125
  key: 1,
960
1126
  class: "w-full",
961
- "row-key": o.primaryKey ?? e(t).primaryKey ?? "Id",
962
- "data-source": c.value,
963
- loading: e(t).isGridLoading.value,
964
- columns: d.value,
965
- pagination: i.value,
966
- "row-selection": r.value,
967
- scroll: o.scroll || { x: 700, y: 1e3 },
968
- size: e(t).tableSize.value,
1127
+ "row-key": l.primaryKey ?? e(a).primaryKey ?? "Id",
1128
+ "data-source": d.value,
1129
+ loading: e(a).isGridLoading.value,
1130
+ columns: c.value,
1131
+ pagination: n.value,
1132
+ "row-selection": s.value,
1133
+ scroll: l.scroll || { x: 700, y: 1e3 },
1134
+ size: e(a).tableSize.value,
969
1135
  bordered: ""
970
- }, e(a)), {
971
- bodyCell: m((y) => {
972
- var O, E;
1136
+ }, e(t)), {
1137
+ bodyCell: h((x) => {
1138
+ var O, he;
973
1139
  return [
974
- I(v.$slots, "bodyCell", {
975
- column: y == null ? void 0 : y.column,
976
- record: y == null ? void 0 : y.record
1140
+ I(p.$slots, "bodyCell", {
1141
+ column: x == null ? void 0 : x.column,
1142
+ record: x == null ? void 0 : x.record
977
1143
  }),
978
- e(t) && ((O = y == null ? void 0 : y.column) == null ? void 0 : O.dataIndex) === "enabled" ? Q((p(), g(Et, {
1144
+ e(a) && ((O = x == null ? void 0 : x.column) == null ? void 0 : O.dataIndex) === "enabled" ? q((f(), g(Ga, {
979
1145
  key: 0,
980
- checked: y.record.Enabled,
981
- "onUpdate:checked": (ve) => y.record.Enabled = ve,
982
- disabled: v.statusDisabled ? v.statusDisabled(y.record) : !1,
1146
+ checked: x.record.Enabled,
1147
+ "onUpdate:checked": (ge) => x.record.Enabled = ge,
1148
+ disabled: p.statusDisabled ? p.statusDisabled(x.record) : !1,
983
1149
  data: e(De).EnableDisable,
984
- onClick: (ve) => e(He)(e(t), y.record),
985
- class: N([
1150
+ onClick: (ge) => e(ka)(e(a), x.record),
1151
+ class: E([
986
1152
  "w-[58px]",
987
- v.statusDisabled && v.statusDisabled(y.record) ? "cursor-not-allowed disabled" : ""
1153
+ p.statusDisabled && p.statusDisabled(x.record) ? "cursor-not-allowed disabled" : ""
988
1154
  ]),
989
- loading: y == null ? void 0 : y.record.isLoading
1155
+ loading: x == null ? void 0 : x.record.isLoading
990
1156
  }, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
991
- [x, { url: e(H).currentRoute.value.path, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
1157
+ [S, { url: o.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
992
1158
  ]) : k("", !0),
993
- e(t) && ((E = y == null ? void 0 : y.column) == null ? void 0 : E.dataIndex) === "operation" ? I(v.$slots, "operate", {
1159
+ e(a) && ((he = x == null ? void 0 : x.column) == null ? void 0 : he.dataIndex) === "operation" ? I(p.$slots, "operate", {
994
1160
  key: 1,
995
- record: y == null ? void 0 : y.record
1161
+ record: x == null ? void 0 : x.record
996
1162
  }, () => [
997
- b(Pt, {
998
- record: y == null ? void 0 : y.record,
999
- "grid-ctrl": e(t)
1163
+ y(Qa, {
1164
+ record: x == null ? void 0 : x.record,
1165
+ "grid-ctrl": e(a)
1000
1166
  }, null, 8, ["record", "grid-ctrl"])
1001
1167
  ]) : k("", !0)
1002
1168
  ];
@@ -1006,7 +1172,7 @@ const ha = /* @__PURE__ */ C({
1006
1172
  ], 64);
1007
1173
  };
1008
1174
  }
1009
- }), Rt = { class: "flex items-center gap-1" }, Yt = { class: "text-nowrap" }, Ca = /* @__PURE__ */ C({
1175
+ }), Xa = { class: "flex items-center gap-1" }, Za = { class: "text-nowrap" }, Kt = /* @__PURE__ */ w({
1010
1176
  __name: "index",
1011
1177
  props: {
1012
1178
  treeCtrl: {},
@@ -1014,139 +1180,139 @@ const ha = /* @__PURE__ */ C({
1014
1180
  expandedKeys: {}
1015
1181
  },
1016
1182
  emits: ["select", "update:selectedKeys"],
1017
- setup(f, { emit: o }) {
1018
- const a = f, t = W(), s = a.treeCtrl, u = _([]);
1183
+ setup(r, { emit: l }) {
1184
+ const t = r, a = J(), o = t.treeCtrl, u = b([]);
1019
1185
  $(
1020
- () => s.data.value,
1021
- (r) => {
1022
- r && (u.value = s.fieldMap ? te(s.fieldMap, r) : r, n(a.selectedKeys ?? []));
1186
+ () => o.data.value,
1187
+ (i) => {
1188
+ i && (u.value = o.fieldMap ? ae(o.fieldMap, i) : i, c(t.selectedKeys ?? []));
1023
1189
  }
1024
1190
  );
1025
- const c = o, i = _([]);
1191
+ const m = l, d = b([]);
1026
1192
  $(
1027
- () => a.selectedKeys,
1028
- (r) => {
1029
- r && (i.value = r);
1193
+ () => t.selectedKeys,
1194
+ (i) => {
1195
+ i && (d.value = i);
1030
1196
  },
1031
1197
  { immediate: !0 }
1032
1198
  );
1033
- const d = _(["-"]);
1199
+ const n = b(["-"]);
1034
1200
  $(
1035
- () => a.expandedKeys,
1036
- (r) => {
1037
- r && (d.value = r);
1201
+ () => t.expandedKeys,
1202
+ (i) => {
1203
+ i && (n.value = i);
1038
1204
  },
1039
1205
  { immediate: !0 }
1040
1206
  );
1041
- const n = (r, l) => {
1042
- r.length === 0 && r.push(...i.value), r.length > 0 && (s.node.value = l == null ? void 0 : l.node.dataRef), i.value = r, c("update:selectedKeys", r), c("select", r, l);
1207
+ const c = (i, s) => {
1208
+ i.length === 0 && i.push(...d.value), i.length > 0 && (o.node.value = s == null ? void 0 : s.node.dataRef), d.value = i, m("update:selectedKeys", i), m("select", i, s);
1043
1209
  };
1044
- return A(() => {
1045
- s.fieldMap || (s.fieldMap = {
1210
+ return K(() => {
1211
+ o.fieldMap || (o.fieldMap = {
1046
1212
  label: "Name",
1047
1213
  key: "Id",
1048
1214
  value: "Id",
1049
1215
  icon: "Icon"
1050
- }), s.data.value ? u.value = te(s.fieldMap, s.data.value) : s.autoload && Ie(s);
1051
- }), (r, l) => (p(), g(e(rt), B({
1216
+ }), o.data.value ? u.value = ae(o.fieldMap, o.data.value) : o.autoload && Oe(o);
1217
+ }), (i, s) => (f(), g(e(ta), P({
1052
1218
  class: "w-full",
1053
1219
  "show-line": !0,
1054
1220
  "tree-data": u.value,
1055
- "expanded-keys": d.value,
1056
- "onUpdate:expandedKeys": l[0] || (l[0] = (v) => d.value = v),
1057
- "selected-keys": i.value,
1058
- loading: e(s).isTreeLoading,
1059
- onSelect: n
1060
- }, e(t)), {
1061
- title: m(({ key: v, label: h, icon: x }) => [
1062
- I(r.$slots, "title", {
1063
- label: h,
1221
+ "expanded-keys": n.value,
1222
+ "onUpdate:expandedKeys": s[0] || (s[0] = (v) => n.value = v),
1223
+ "selected-keys": d.value,
1224
+ loading: e(o).isTreeLoading,
1225
+ onSelect: c
1226
+ }, e(a)), {
1227
+ title: h(({ key: v, label: p, icon: _ }) => [
1228
+ I(i.$slots, "title", {
1229
+ label: p,
1064
1230
  key: v,
1065
- icon: x
1231
+ icon: _
1066
1232
  }, () => [
1067
- T("div", Rt, [
1068
- b(e(R), { icon: x }, null, 8, ["icon"]),
1069
- T("span", Yt, D(h), 1)
1233
+ T("div", Xa, [
1234
+ y(e(R), { icon: _ }, null, 8, ["icon"]),
1235
+ T("span", Za, D(p), 1)
1070
1236
  ])
1071
1237
  ])
1072
1238
  ]),
1073
1239
  _: 3
1074
1240
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1075
1241
  }
1076
- }), wa = /* @__PURE__ */ V(gt, [["__scopeId", "data-v-1e39ad49"]]), Lt = {
1242
+ }), Ot = /* @__PURE__ */ H(va, [["__scopeId", "data-v-cd4382b7"]]), et = {
1077
1243
  key: 0,
1078
1244
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1079
- }, Ut = /* @__PURE__ */ C({
1245
+ }, at = /* @__PURE__ */ w({
1080
1246
  inheritAttrs: !1,
1081
1247
  __name: "index",
1082
- props: We,
1248
+ props: ma,
1083
1249
  emits: ["change", "update:labels", "update:value"],
1084
- setup(f, { emit: o }) {
1085
- var h, x, S;
1086
- const a = f, t = W(), s = _({
1087
- ...a.url,
1088
- url: ((h = a.url) == null ? void 0 : h.url) || "",
1089
- fieldMap: a.fieldMap || ((x = a.url) == null ? void 0 : x.fieldMap),
1090
- params: a.params || ((S = a.url) == null ? void 0 : S.params),
1250
+ setup(r, { emit: l }) {
1251
+ var p, _, S;
1252
+ const t = r, a = J(), o = b({
1253
+ ...t.url,
1254
+ url: ((p = t.url) == null ? void 0 : p.url) || "",
1255
+ fieldMap: t.fieldMap || ((_ = t.url) == null ? void 0 : _.fieldMap),
1256
+ params: t.params || ((S = t.url) == null ? void 0 : S.params),
1091
1257
  loadingText: !1
1092
- }), u = K(), { editorCtrl: c, errInfo: i, labelText: d } = u, n = _(t.placeholder);
1258
+ }), u = A(), { editorCtrl: m, errInfo: d, labelText: n } = u, c = b(a.placeholder);
1093
1259
  $(
1094
- () => s.value.loading,
1095
- (F) => {
1096
- F ? n.value = "" : n.value || (n.value = "请选择" + d.value);
1260
+ () => o.value.loading,
1261
+ (B) => {
1262
+ B ? c.value = "" : c.value || (c.value = "请选择" + n.value);
1097
1263
  },
1098
1264
  { immediate: !0 }
1099
1265
  );
1100
- const r = o;
1101
- u.inputEmit = r;
1102
- const l = _([]), v = (F, y) => {
1103
- if (!y || y.length === 0) {
1104
- r("update:labels", []), r("update:value", []);
1266
+ const i = l;
1267
+ u.inputEmit = i;
1268
+ const s = b([]), v = (B, M) => {
1269
+ if (!M || M.length === 0) {
1270
+ i("update:labels", []), i("update:value", []);
1105
1271
  return;
1106
1272
  }
1107
- const O = y.map((E) => E.label);
1108
- r("update:labels", O), r(
1273
+ const x = M.map((O) => O.label);
1274
+ i("update:labels", x), i(
1109
1275
  "update:value",
1110
- y.map((E) => E.value)
1111
- ), i != null && i.value.errClass && c && U(c);
1276
+ M.map((O) => O.value)
1277
+ ), d != null && d.value.errClass && m && U(m);
1112
1278
  };
1113
- return A(() => {
1114
- s.value && !s.value.fieldMap && (s.value.fieldMap = {
1279
+ return K(() => {
1280
+ o.value && !o.value.fieldMap && (o.value.fieldMap = {
1115
1281
  title: "Name",
1116
1282
  label: "Name",
1117
1283
  value: "Id",
1118
1284
  key: "Id"
1119
- }), Se(a.autoload, a, l, u, s.value, s.value.params);
1120
- }), ye(() => {
1121
- Te(a, u);
1122
- }), (F, y) => {
1123
- var O;
1124
- return p(), w("div", null, [
1125
- l.value.length ? k("", !0) : (p(), w("div", Lt, [
1126
- b(e(Je), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1127
- y[0] || (y[0] = T("span", null, "数据加载中...", -1))
1285
+ }), Ne(t.autoload, t, s, u, o.value, o.value.params);
1286
+ }), Te(() => {
1287
+ Ae(t, u);
1288
+ }), (B, M) => {
1289
+ var x;
1290
+ return f(), C("div", null, [
1291
+ s.value.length ? k("", !0) : (f(), C("div", et, [
1292
+ y(e(Ve), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1293
+ M[0] || (M[0] = T("span", null, "数据加载中...", -1))
1128
1294
  ])),
1129
- b(e(ot), B({
1130
- options: l.value,
1131
- class: [(O = e(i)) == null ? void 0 : O.errClass],
1295
+ y(e(la), P({
1296
+ options: s.value,
1297
+ class: [(x = e(d)) == null ? void 0 : x.errClass],
1132
1298
  "allow-clear": !0,
1133
- placeholder: l.value.length > 0 ? "请选择" + e(d) : "",
1299
+ placeholder: s.value.length > 0 ? "请选择" + e(n) : "",
1134
1300
  onChange: v
1135
- }, e(t)), null, 16, ["options", "class", "placeholder"])
1301
+ }, e(a)), null, 16, ["options", "class", "placeholder"])
1136
1302
  ]);
1137
1303
  };
1138
1304
  }
1139
- }), $a = /* @__PURE__ */ V(Ut, [["__scopeId", "data-v-05e57a52"]]), Sa = /* @__PURE__ */ V(_t, [["__scopeId", "data-v-dc59fe7f"]]);
1140
- function ae() {
1141
- return ae = Object.assign ? Object.assign.bind() : function(f) {
1142
- for (var o = 1; o < arguments.length; o++) {
1143
- var a = arguments[o];
1144
- for (var t in a) ({}).hasOwnProperty.call(a, t) && (f[t] = a[t]);
1305
+ }), Rt = /* @__PURE__ */ H(at, [["__scopeId", "data-v-8517d129"]]), Yt = /* @__PURE__ */ H(ha, [["__scopeId", "data-v-602494f4"]]);
1306
+ function te() {
1307
+ return te = Object.assign ? Object.assign.bind() : function(r) {
1308
+ for (var l = 1; l < arguments.length; l++) {
1309
+ var t = arguments[l];
1310
+ for (var a in t) ({}).hasOwnProperty.call(t, a) && (r[a] = t[a]);
1145
1311
  }
1146
- return f;
1147
- }, ae.apply(null, arguments);
1312
+ return r;
1313
+ }, te.apply(null, arguments);
1148
1314
  }
1149
- const qt = {
1315
+ const tt = {
1150
1316
  locale: "zh_CN",
1151
1317
  today: "今天",
1152
1318
  now: "此刻",
@@ -1173,11 +1339,11 @@ const qt = {
1173
1339
  nextDecade: "下一年代",
1174
1340
  previousCentury: "上一世纪",
1175
1341
  nextCentury: "下一世纪"
1176
- }, Qt = {
1342
+ }, lt = {
1177
1343
  placeholder: "请选择时间",
1178
1344
  rangePlaceholder: ["开始时间", "结束时间"]
1179
- }, pe = {
1180
- lang: ae({
1345
+ }, me = {
1346
+ lang: te({
1181
1347
  placeholder: "请选择日期",
1182
1348
  yearPlaceholder: "请选择年份",
1183
1349
  quarterPlaceholder: "请选择季度",
@@ -1188,159 +1354,159 @@ const qt = {
1188
1354
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
1189
1355
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
1190
1356
  rangeWeekPlaceholder: ["开始周", "结束周"]
1191
- }, qt),
1192
- timePickerLocale: ae({}, Qt)
1357
+ }, tt),
1358
+ timePickerLocale: te({}, lt)
1193
1359
  };
1194
- pe.lang.ok = "确定";
1195
- const Ta = /* @__PURE__ */ C({
1360
+ me.lang.ok = "确定";
1361
+ const Lt = /* @__PURE__ */ w({
1196
1362
  __name: "index",
1197
1363
  props: {
1198
1364
  valueFormat: {}
1199
1365
  },
1200
- setup(f) {
1201
- const o = f, { editorCtrl: a, labelText: t, errInfo: s } = K(), u = () => {
1202
- s != null && s.value.errClass && a && U(a);
1203
- }, c = _(o.valueFormat ?? "YYYY-MM-DD");
1204
- return (i, d) => {
1205
- var n;
1206
- return p(), g(e(st), {
1207
- class: N([[((n = e(s)) == null ? void 0 : n.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-full"]),
1208
- placeholder: "请选择" + e(t),
1209
- locale: e(pe),
1210
- valueFormat: c.value,
1366
+ setup(r) {
1367
+ const l = r, { editorCtrl: t, labelText: a, errInfo: o } = A(), u = () => {
1368
+ o != null && o.value.errClass && t && U(t);
1369
+ }, m = b(l.valueFormat ?? "YYYY-MM-DD");
1370
+ return (d, n) => {
1371
+ var c;
1372
+ return f(), g(e(ra), {
1373
+ class: E([[((c = e(o)) == null ? void 0 : c.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-full"]),
1374
+ placeholder: "请选择" + e(a),
1375
+ locale: e(me),
1376
+ valueFormat: m.value,
1211
1377
  onBlur: u
1212
1378
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1213
1379
  };
1214
1380
  }
1215
- }), Vt = /* @__PURE__ */ C({
1381
+ }), rt = /* @__PURE__ */ w({
1216
1382
  __name: "index",
1217
1383
  props: {
1218
1384
  value: {}
1219
1385
  },
1220
1386
  emits: ["update:value"],
1221
- setup(f, { emit: o }) {
1222
- const { editorCtrl: a, labelText: t, errInfo: s } = K(), u = () => {
1223
- s != null && s.value.errClass && a && U(a);
1224
- }, c = f, i = o, d = _(c.value);
1387
+ setup(r, { emit: l }) {
1388
+ const { editorCtrl: t, labelText: a, errInfo: o } = A(), u = () => {
1389
+ o != null && o.value.errClass && t && U(t);
1390
+ }, m = r, d = l, n = b(m.value);
1225
1391
  $(
1226
- () => c.value,
1227
- (r) => {
1228
- d.value = r;
1392
+ () => m.value,
1393
+ (i) => {
1394
+ n.value = i;
1229
1395
  },
1230
1396
  { immediate: !0 }
1231
1397
  // 立即同步初始值
1232
1398
  ), $(
1233
- () => d.value,
1234
- (r) => {
1235
- if (d.value === "") {
1236
- i("update:value", void 0);
1399
+ () => n.value,
1400
+ (i) => {
1401
+ if (n.value === "") {
1402
+ d("update:value", void 0);
1237
1403
  return;
1238
1404
  }
1239
- i("update:value", r);
1405
+ d("update:value", i);
1240
1406
  }
1241
1407
  );
1242
- const n = () => {
1243
- d.value === "" && (d.value = void 0);
1408
+ const c = () => {
1409
+ n.value === "" && (n.value = void 0);
1244
1410
  };
1245
- return (r, l) => {
1246
- var v, h;
1247
- return p(), g(e(ne), B({
1411
+ return (i, s) => {
1412
+ var v, p;
1413
+ return f(), g(e(ne), P({
1248
1414
  class: [
1249
- (v = e(s)) == null ? void 0 : v.errClass,
1250
- ((h = e(s)) == null ? void 0 : h.errClass) === "error" && !r.$slots.addonBefore && !r.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1415
+ (v = e(o)) == null ? void 0 : v.errClass,
1416
+ ((p = e(o)) == null ? void 0 : p.errClass) === "error" && !i.$slots.addonBefore && !i.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
1251
1417
  ],
1252
- value: d.value,
1253
- "onUpdate:value": l[0] || (l[0] = (x) => d.value = x),
1418
+ value: n.value,
1419
+ "onUpdate:value": s[0] || (s[0] = (_) => n.value = _),
1254
1420
  autocomplete: "new-password",
1255
1421
  "allow-clear": !0,
1256
- placeholder: "请输入" + e(t),
1422
+ placeholder: "请输入" + e(a),
1257
1423
  onBlur: u,
1258
- onChange: n
1259
- }, r.$attrs), xe({ _: 2 }, [
1260
- r.$slots.addonBefore ? {
1424
+ onChange: c
1425
+ }, i.$attrs), Se({ _: 2 }, [
1426
+ i.$slots.addonBefore ? {
1261
1427
  name: "addonBefore",
1262
- fn: m(() => [
1263
- I(r.$slots, "addonBefore")
1428
+ fn: h(() => [
1429
+ I(i.$slots, "addonBefore")
1264
1430
  ]),
1265
1431
  key: "0"
1266
1432
  } : void 0,
1267
- r.$slots.addonAfter ? {
1433
+ i.$slots.addonAfter ? {
1268
1434
  name: "addonAfter",
1269
- fn: m(() => [
1270
- I(r.$slots, "addonAfter")
1435
+ fn: h(() => [
1436
+ I(i.$slots, "addonAfter")
1271
1437
  ]),
1272
1438
  key: "1"
1273
1439
  } : void 0
1274
1440
  ]), 1040, ["class", "value", "placeholder"]);
1275
1441
  };
1276
1442
  }
1277
- }), jt = /* @__PURE__ */ C({
1443
+ }), st = /* @__PURE__ */ w({
1278
1444
  __name: "inputIcon",
1279
1445
  props: {
1280
1446
  value: {}
1281
1447
  },
1282
1448
  emits: ["update:value"],
1283
- setup(f, { emit: o }) {
1284
- const a = f, t = o, s = _(void 0);
1449
+ setup(r, { emit: l }) {
1450
+ const t = r, a = l, o = b(void 0);
1285
1451
  return $(
1286
- () => a.value,
1452
+ () => t.value,
1287
1453
  (u) => {
1288
- s.value = u ?? void 0;
1454
+ o.value = u ?? void 0;
1289
1455
  },
1290
1456
  { immediate: !0 }
1291
1457
  ), $(
1292
- () => s.value,
1458
+ () => o.value,
1293
1459
  (u) => {
1294
- t("update:value", u);
1460
+ a("update:value", u);
1295
1461
  }
1296
- ), (u, c) => (p(), g(Vt, B({
1462
+ ), (u, m) => (f(), g(rt, P({
1297
1463
  class: ["w-[80%]"],
1298
- value: s.value,
1299
- "onUpdate:value": c[0] || (c[0] = (i) => s.value = i)
1464
+ value: o.value,
1465
+ "onUpdate:value": m[0] || (m[0] = (d) => o.value = d)
1300
1466
  }, u.$attrs), {
1301
- addonBefore: m(() => [
1302
- b(e(R), {
1467
+ addonBefore: h(() => [
1468
+ y(e(R), {
1303
1469
  class: "!w-4 !h-4",
1304
- icon: s.value
1470
+ icon: o.value
1305
1471
  }, null, 8, ["icon"])
1306
1472
  ]),
1307
1473
  _: 1
1308
1474
  }, 16, ["value"]));
1309
1475
  }
1310
- }), Da = /* @__PURE__ */ V(jt, [["__scopeId", "data-v-f7b3ed74"]]), Ia = /* @__PURE__ */ C({
1476
+ }), Ut = /* @__PURE__ */ H(st, [["__scopeId", "data-v-f7b3ed74"]]), Qt = /* @__PURE__ */ w({
1311
1477
  __name: "inputPassword",
1312
- setup(f) {
1313
- const { editorCtrl: o, labelText: a, errInfo: t } = K(), s = () => {
1314
- t != null && t.value.errClass && o && U(o);
1478
+ setup(r) {
1479
+ const { editorCtrl: l, labelText: t, errInfo: a } = A(), o = () => {
1480
+ a != null && a.value.errClass && l && U(l);
1315
1481
  };
1316
- return (u, c) => {
1317
- var i;
1318
- return p(), g(e(nt), B({
1319
- class: ((i = e(t)) == null ? void 0 : i.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1482
+ return (u, m) => {
1483
+ var d;
1484
+ return f(), g(e(sa), P({
1485
+ class: ((d = e(a)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1320
1486
  "allow-clear": !0,
1321
1487
  autocomplete: "new-password",
1322
- placeholder: "请输入" + e(a),
1323
- onBlur: s
1488
+ placeholder: "请输入" + e(t),
1489
+ onBlur: o
1324
1490
  }, u.$attrs), null, 16, ["class", "placeholder"]);
1325
1491
  };
1326
1492
  }
1327
- }), Ba = /* @__PURE__ */ C({
1493
+ }), Vt = /* @__PURE__ */ w({
1328
1494
  __name: "inputNumber",
1329
- setup(f) {
1330
- const { editorCtrl: o, labelText: a, errInfo: t } = K(), s = () => {
1331
- t != null && t.value.errClass && o && U(o);
1495
+ setup(r) {
1496
+ const { editorCtrl: l, labelText: t, errInfo: a } = A(), o = () => {
1497
+ a != null && a.value.errClass && l && U(l);
1332
1498
  };
1333
- return (u, c) => {
1334
- var i;
1335
- return p(), g(e(ut), B({
1336
- class: [[((i = e(t)) == null ? void 0 : i.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1337
- onBlur: s,
1499
+ return (u, m) => {
1500
+ var d;
1501
+ return f(), g(e(oa), P({
1502
+ class: [[((d = e(a)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1503
+ onBlur: o,
1338
1504
  "allow-clear": !1,
1339
- placeholder: "请输入" + e(a)
1505
+ placeholder: "请输入" + e(t)
1340
1506
  }, u.$attrs), null, 16, ["class", "placeholder"]);
1341
1507
  };
1342
1508
  }
1343
- }), Ht = { class: "flex flex-col gap-2" }, Wt = { class: "w-[33%]" }, Jt = { class: "w-[64%]" }, Fa = /* @__PURE__ */ C({
1509
+ }), ot = { class: "flex flex-col gap-2" }, nt = { class: "w-[33%]" }, ut = { class: "w-[64%]" }, qt = /* @__PURE__ */ w({
1344
1510
  __name: "index",
1345
1511
  props: {
1346
1512
  value: {},
@@ -1348,71 +1514,71 @@ const Ta = /* @__PURE__ */ C({
1348
1514
  valueHolder: {}
1349
1515
  },
1350
1516
  emits: ["update:value"],
1351
- setup(f, { emit: o }) {
1352
- const a = f, t = o, s = _([]);
1517
+ setup(r, { emit: l }) {
1518
+ const t = r, a = l, o = b([]);
1353
1519
  let u = !1;
1354
- const c = () => {
1355
- s.value = Object.entries(a.value).map(([r, l]) => ({
1520
+ const m = () => {
1521
+ o.value = Object.entries(t.value).map(([i, s]) => ({
1356
1522
  id: Date.now() + Math.random(),
1357
- field: r,
1358
- value: l
1523
+ field: i,
1524
+ value: s
1359
1525
  }));
1360
1526
  };
1361
- $(() => a.value, () => {
1362
- u || c(), u = !1;
1527
+ $(() => t.value, () => {
1528
+ u || m(), u = !1;
1363
1529
  }, { immediate: !0 });
1364
- const i = () => {
1365
- const r = s.value.reduce((l, v) => (v.field && (l[v.field] = v.value), l), {});
1366
- u = !0, t("update:value", r);
1367
- }, d = () => {
1368
- s.value.push({
1530
+ const d = () => {
1531
+ const i = o.value.reduce((s, v) => (v.field && (s[v.field] = v.value), s), {});
1532
+ u = !0, a("update:value", i);
1533
+ }, n = () => {
1534
+ o.value.push({
1369
1535
  id: Date.now() + Math.random(),
1370
1536
  field: "",
1371
1537
  value: ""
1372
1538
  });
1373
- }, n = () => {
1374
- i();
1539
+ }, c = () => {
1540
+ d();
1375
1541
  };
1376
- return (r, l) => (p(), w("div", Ht, [
1377
- (p(!0), w(M, null, Y(s.value, (v) => (p(), w("div", {
1542
+ return (i, s) => (f(), C("div", ot, [
1543
+ (f(!0), C(z, null, Y(o.value, (v) => (f(), C("div", {
1378
1544
  key: v.id,
1379
1545
  class: "flex items-center gap-2"
1380
1546
  }, [
1381
- T("div", Wt, [
1382
- b(e(ne), {
1547
+ T("div", nt, [
1548
+ y(e(ne), {
1383
1549
  value: v.field,
1384
- "onUpdate:value": (h) => v.field = h,
1550
+ "onUpdate:value": (p) => v.field = p,
1385
1551
  title: v.field,
1386
1552
  class: "w-full",
1387
- placeholder: r.labelHolder || "配置名",
1388
- onInput: n
1553
+ placeholder: i.labelHolder || "配置名",
1554
+ onInput: c
1389
1555
  }, null, 8, ["value", "onUpdate:value", "title", "placeholder"])
1390
1556
  ]),
1391
- l[0] || (l[0] = T("div", { class: "w-[3%]" }, " = ", -1)),
1392
- T("div", Jt, [
1393
- b(e(ne), {
1557
+ s[0] || (s[0] = T("div", { class: "w-[3%]" }, " = ", -1)),
1558
+ T("div", ut, [
1559
+ y(e(ne), {
1394
1560
  value: v.value,
1395
- "onUpdate:value": (h) => v.value = h,
1396
- placeholder: r.valueHolder,
1397
- onInput: n,
1561
+ "onUpdate:value": (p) => v.value = p,
1562
+ placeholder: i.valueHolder,
1563
+ onInput: c,
1398
1564
  title: v.value
1399
1565
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
1400
1566
  ])
1401
1567
  ]))), 128)),
1402
- b(e(Ne), {
1403
- onClick: d,
1568
+ y(e(Me), {
1569
+ onClick: n,
1404
1570
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
1405
1571
  size: "small"
1406
1572
  }, {
1407
- default: m(() => l[1] || (l[1] = [
1408
- P(" 新增配置行 ")
1573
+ default: h(() => s[1] || (s[1] = [
1574
+ F(" 新增配置行 ")
1409
1575
  ])),
1410
1576
  _: 1,
1411
1577
  __: [1]
1412
1578
  })
1413
1579
  ]));
1414
1580
  }
1415
- }), Gt = /* @__PURE__ */ V(xt, [["__scopeId", "data-v-f9b2ac3d"]]), Pa = /* @__PURE__ */ C({
1581
+ }), ct = /* @__PURE__ */ H(ga, [["__scopeId", "data-v-08c7f643"]]), Ht = /* @__PURE__ */ w({
1416
1582
  __name: "radioStatus",
1417
1583
  props: {
1418
1584
  /**
@@ -1439,14 +1605,14 @@ const Ta = /* @__PURE__ */ C({
1439
1605
  required: !1
1440
1606
  }
1441
1607
  },
1442
- setup(f) {
1443
- const o = f, a = _(JSON.parse(JSON.stringify(De.getOptions(o.dataKey))));
1444
- return o.all === !0 && a.value.unshift({
1608
+ setup(r) {
1609
+ const l = r, t = b(JSON.parse(JSON.stringify(De.getOptions(l.dataKey))));
1610
+ return l.all === !0 && t.value.unshift({
1445
1611
  label: "全部",
1446
- value: o.allValue || [0, 1]
1447
- }), (t, s) => (p(), g(Gt, { data: a.value }, null, 8, ["data"]));
1612
+ value: l.allValue || [0, 1]
1613
+ }), (a, o) => (f(), g(ct, { data: t.value }, null, 8, ["data"]));
1448
1614
  }
1449
- }), Ma = /* @__PURE__ */ C({
1615
+ }), jt = /* @__PURE__ */ w({
1450
1616
  __name: "index",
1451
1617
  props: {
1452
1618
  startDate: {},
@@ -1454,55 +1620,55 @@ const Ta = /* @__PURE__ */ C({
1454
1620
  valueFormat: { default: "YYYY-MM-DD" }
1455
1621
  },
1456
1622
  emits: ["update:startDate", "update:endDate"],
1457
- setup(f, { emit: o }) {
1458
- const a = f, t = o, s = K(), { errInfo: u } = s, c = oe(() => a.valueFormat), i = oe(() => {
1459
- const n = a.startDate, r = a.endDate;
1460
- if (!(!n || !r))
1623
+ setup(r, { emit: l }) {
1624
+ const t = r, a = l, o = A(), { errInfo: u } = o, m = W(() => t.valueFormat), d = W(() => {
1625
+ const c = t.startDate, i = t.endDate;
1626
+ if (!(!c || !i))
1461
1627
  try {
1462
- const l = ge(n), v = ge(r);
1463
- return !l.isValid() || !v.isValid() ? void 0 : [l, v];
1628
+ const s = be(c), v = be(i);
1629
+ return !s.isValid() || !v.isValid() ? void 0 : [s, v];
1464
1630
  } catch {
1465
1631
  return;
1466
1632
  }
1467
- }), d = (n, r) => {
1468
- if (!n || !r || r.length !== 2) {
1469
- t("update:startDate", null), t("update:endDate", null);
1633
+ }), n = (c, i) => {
1634
+ if (!c || !i || i.length !== 2) {
1635
+ a("update:startDate", null), a("update:endDate", null);
1470
1636
  return;
1471
1637
  }
1472
- t("update:startDate", r[0] || null), t("update:endDate", r[1] || null);
1638
+ a("update:startDate", i[0] || null), a("update:endDate", i[1] || null);
1473
1639
  };
1474
- return (n, r) => {
1475
- var l;
1476
- return p(), g(e(it), {
1477
- class: N([((l = e(u)) == null ? void 0 : l.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1478
- locale: e(pe),
1479
- "value-format": c.value,
1480
- value: i.value,
1481
- onChange: d
1640
+ return (c, i) => {
1641
+ var s;
1642
+ return f(), g(e(na), {
1643
+ class: E([((s = e(u)) == null ? void 0 : s.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1644
+ locale: e(me),
1645
+ "value-format": m.value,
1646
+ value: d.value,
1647
+ onChange: n
1482
1648
  }, null, 8, ["class", "locale", "value-format", "value"]);
1483
1649
  };
1484
1650
  }
1485
- }), Na = /* @__PURE__ */ V(yt, [["__scopeId", "data-v-bf782acb"]]), za = /* @__PURE__ */ C({
1651
+ }), Wt = /* @__PURE__ */ H(_a, [["__scopeId", "data-v-58735935"]]), Jt = /* @__PURE__ */ w({
1486
1652
  __name: "index",
1487
- setup(f) {
1488
- const { editorCtrl: o, labelText: a, errInfo: t } = K(), s = () => {
1489
- t != null && t.value.errClass && o && U(o);
1653
+ setup(r) {
1654
+ const { editorCtrl: l, labelText: t, errInfo: a } = A(), o = () => {
1655
+ a != null && a.value.errClass && l && U(l);
1490
1656
  };
1491
- return (u, c) => {
1492
- var i;
1493
- return p(), g(e(dt), B({
1494
- class: ((i = e(t)) == null ? void 0 : i.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1657
+ return (u, m) => {
1658
+ var d;
1659
+ return f(), g(e(ua), P({
1660
+ class: ((d = e(a)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1495
1661
  "allow-clear": !0,
1496
- placeholder: "请输入" + e(a),
1497
- onBlur: s,
1498
- onKeyup: c[0] || (c[0] = fe(J(() => {
1662
+ placeholder: "请输入" + e(t),
1663
+ onBlur: o,
1664
+ onKeyup: m[0] || (m[0] = _e(G(() => {
1499
1665
  }, ["stop"]), ["enter", "native"])),
1500
- onKeydown: c[1] || (c[1] = fe(J(() => {
1666
+ onKeydown: m[1] || (m[1] = _e(G(() => {
1501
1667
  }, ["stop"]), ["enter", "native"]))
1502
1668
  }, u.$attrs), null, 16, ["class", "placeholder"]);
1503
1669
  };
1504
1670
  }
1505
- }), Xt = /* @__PURE__ */ C({
1671
+ }), it = /* @__PURE__ */ w({
1506
1672
  __name: "index",
1507
1673
  props: {
1508
1674
  autoload: { type: Boolean },
@@ -1511,55 +1677,55 @@ const Ta = /* @__PURE__ */ C({
1511
1677
  value: {}
1512
1678
  },
1513
1679
  emits: ["change", "update:value"],
1514
- setup(f, { emit: o }) {
1515
- const a = f, t = _({ ...a.url }), { editorCtrl: s, labelText: u, errInfo: c } = K(), i = o, d = _([]), n = _([]);
1516
- a.value && a.value.every((l) => {
1517
- n.value.push(l.toString());
1680
+ setup(r, { emit: l }) {
1681
+ const t = r, a = b({ ...t.url }), { editorCtrl: o, labelText: u, errInfo: m } = A(), d = l, n = b([]), c = b([]);
1682
+ t.value && t.value.every((s) => {
1683
+ c.value.push(s.toString());
1518
1684
  }), $(
1519
- () => a.value,
1520
- (l) => {
1521
- l && (n.value = l);
1685
+ () => t.value,
1686
+ (s) => {
1687
+ s && (c.value = s);
1522
1688
  }
1523
1689
  );
1524
- const r = (l) => {
1525
- i("update:value", l), i("change", l), n.value = l, c != null && c.value.errClass && s && U(s);
1690
+ const i = (s) => {
1691
+ d("update:value", s), d("change", s), c.value = s, m != null && m.value.errClass && o && U(o);
1526
1692
  };
1527
- return A(async () => {
1528
- if (t.value) {
1529
- const l = s == null ? void 0 : s.page;
1530
- if (t.value.api || (t.value.api = l == null ? void 0 : l.api), t.value.authorize === void 0 && (t.value.authorize = l == null ? void 0 : l.authorize), a.autoload) {
1531
- const v = await Be(s, {
1693
+ return K(async () => {
1694
+ if (a.value) {
1695
+ const s = o == null ? void 0 : o.page;
1696
+ if (a.value.api || (a.value.api = s == null ? void 0 : s.api), a.value.authorize === void 0 && (a.value.authorize = s == null ? void 0 : s.authorize), t.autoload) {
1697
+ const v = await ue(o, {
1532
1698
  urlKey: "list",
1533
- url: { ...t.value, url: t.value.url },
1699
+ url: { ...a.value, url: a.value.url },
1534
1700
  loadingText: !1,
1535
- params: a.params
1701
+ params: t.params
1536
1702
  });
1537
- d.value = (v == null ? void 0 : v.data) ?? [];
1703
+ n.value = (v == null ? void 0 : v.data) ?? [];
1538
1704
  }
1539
1705
  }
1540
- }), (l, v) => {
1541
- var h;
1542
- return p(), g(e(ct), B({
1543
- class: ((h = e(c)) == null ? void 0 : h.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1706
+ }), (s, v) => {
1707
+ var p;
1708
+ return f(), g(e(ca), P({
1709
+ class: ((p = e(m)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1544
1710
  placeholder: "请输入" + e(u),
1545
- targetKeys: n.value,
1546
- onChange: r
1547
- }, l.$attrs), {
1548
- children: m(({ direction: x, disabled: S, filteredItems: F, onItemSelectAll: y, onItemSelect: O, selectedKeys: E }) => [
1549
- I(l.$slots, "children", {
1550
- direction: x,
1711
+ targetKeys: c.value,
1712
+ onChange: i
1713
+ }, s.$attrs), {
1714
+ children: h(({ direction: _, disabled: S, filteredItems: B, onItemSelectAll: M, onItemSelect: x, selectedKeys: O }) => [
1715
+ I(s.$slots, "children", {
1716
+ direction: _,
1551
1717
  disabled: S,
1552
- filteredItems: F,
1553
- onItemSelectAll: y,
1554
- onItemSelect: O,
1555
- selectedKeys: E
1718
+ filteredItems: B,
1719
+ onItemSelectAll: M,
1720
+ onItemSelect: x,
1721
+ selectedKeys: O
1556
1722
  })
1557
1723
  ]),
1558
1724
  _: 3
1559
1725
  }, 16, ["class", "placeholder", "targetKeys"]);
1560
1726
  };
1561
1727
  }
1562
- }), Aa = /* @__PURE__ */ C({
1728
+ }), Gt = /* @__PURE__ */ w({
1563
1729
  __name: "transferTable",
1564
1730
  props: {
1565
1731
  /**
@@ -1585,79 +1751,79 @@ const Ta = /* @__PURE__ */ C({
1585
1751
  }
1586
1752
  },
1587
1753
  emits: ["update:value"],
1588
- setup(f, { emit: o }) {
1589
- const a = f, t = o, s = _(a.autoload), u = _(a.value), c = _(a.gridCtrl.primaryKey);
1754
+ setup(r, { emit: l }) {
1755
+ const t = r, a = l, o = b(t.autoload), u = b(t.value), m = b(t.gridCtrl.primaryKey);
1590
1756
  $(
1591
1757
  () => u.value,
1592
- (n) => {
1593
- t("update:value", n);
1758
+ (c) => {
1759
+ a("update:value", c);
1594
1760
  }
1595
1761
  ), $(
1596
- () => a.value,
1597
- (n) => {
1598
- n && (u.value = n);
1762
+ () => t.value,
1763
+ (c) => {
1764
+ c && (u.value = c);
1599
1765
  }
1600
- ), a.gridCtrl.autoload = !1, a.gridCtrl.remotePage = !1, a.gridCtrl.selectable = _(!0), a.gridCtrl.buttons = _([]), a.gridCtrl.tools = [];
1601
- const i = ({ disabled: n, selectedKeys: r, onItemSelectAll: l, onItemSelect: v }) => ({
1602
- getCheckboxProps: (h) => ({
1766
+ ), t.gridCtrl.autoload = !1, t.gridCtrl.remotePage = !1, t.gridCtrl.selectable = b(!0), t.gridCtrl.buttons = b([]), t.gridCtrl.tools = [];
1767
+ const d = ({ disabled: c, selectedKeys: i, onItemSelectAll: s, onItemSelect: v }) => ({
1768
+ getCheckboxProps: (p) => ({
1603
1769
  // 控制是否禁止
1604
- disabled: n || h.disabled
1770
+ disabled: c || p.disabled
1605
1771
  }),
1606
- onSelectAll(h, x) {
1607
- const S = x.filter((F) => !F.disabled).map(({ [c.value]: F }) => F);
1608
- l(S, h);
1772
+ onSelectAll(p, _) {
1773
+ const S = _.filter((B) => !B.disabled).map(({ [m.value]: B }) => B);
1774
+ s(S, p);
1609
1775
  },
1610
- onSelect({ [c.value]: h }, x) {
1611
- v(h, x);
1776
+ onSelect({ [m.value]: p }, _) {
1777
+ v(p, _);
1612
1778
  },
1613
- selectedRowKeys: r
1614
- }), d = _([]);
1615
- return A(async () => {
1616
- if (s.value) {
1617
- const n = await Be(a.gridCtrl, {
1779
+ selectedRowKeys: i
1780
+ }), n = b([]);
1781
+ return K(async () => {
1782
+ if (o.value) {
1783
+ const c = await ue(t.gridCtrl, {
1618
1784
  urlKey: "list",
1619
- url: { ...a.gridCtrl.gridUrl, url: a.gridCtrl.gridUrl.url },
1620
- params: a.gridCtrl.gridQuery,
1785
+ url: { ...t.gridCtrl.gridUrl, url: t.gridCtrl.gridUrl.url },
1786
+ params: t.gridCtrl.gridQuery,
1621
1787
  loadingText: !1
1622
1788
  });
1623
- d.value = (n == null ? void 0 : n.data) ?? [];
1789
+ n.value = (c == null ? void 0 : c.data) ?? [];
1624
1790
  }
1625
- }), (n, r) => (p(), g(Xt, B({
1626
- "data-source": d.value,
1627
- "row-key": (l) => l[c.value],
1791
+ }), (c, i) => (f(), g(it, P({
1792
+ "data-source": n.value,
1793
+ "row-key": (s) => s[m.value],
1628
1794
  value: u.value,
1629
- "onUpdate:value": r[0] || (r[0] = (l) => u.value = l),
1795
+ "onUpdate:value": i[0] || (i[0] = (s) => u.value = s),
1630
1796
  "list-style": {
1631
1797
  width: "300px",
1632
1798
  height: "500px"
1633
1799
  },
1634
1800
  "show-select-all": !1,
1635
1801
  "show-search": !0,
1636
- "filter-option": (l, v) => {
1637
- for (const h of a.gridCtrl.columns.value)
1638
- if (v[h.dataIndex].toString().indexOf(l) !== -1)
1802
+ "filter-option": (s, v) => {
1803
+ for (const p of t.gridCtrl.columns.value)
1804
+ if (v[p.dataIndex].toString().indexOf(s) !== -1)
1639
1805
  return !0;
1640
1806
  return !1;
1641
1807
  }
1642
- }, n.$attrs), {
1643
- children: m(({ filteredItems: l, onItemSelectAll: v, onItemSelect: h, selectedKeys: x }) => [
1644
- b(e(ze), {
1645
- columns: f.gridCtrl.columns.value,
1646
- "row-key": c.value,
1647
- "row-selection": i({
1808
+ }, c.$attrs), {
1809
+ children: h(({ filteredItems: s, onItemSelectAll: v, onItemSelect: p, selectedKeys: _ }) => [
1810
+ y(e(ze), {
1811
+ columns: r.gridCtrl.columns.value,
1812
+ "row-key": m.value,
1813
+ "row-selection": d({
1648
1814
  disabled: !1,
1649
- selectedKeys: x,
1815
+ selectedKeys: _,
1650
1816
  onItemSelectAll: v,
1651
- onItemSelect: h
1817
+ onItemSelect: p
1652
1818
  }),
1653
1819
  bordered: !1,
1654
1820
  size: "small",
1655
- "data-source": l,
1821
+ "data-source": s,
1656
1822
  scroll: { x: 300 },
1657
1823
  "custom-row": (S) => ({
1658
1824
  onClick: () => {
1659
- const F = S[c.value];
1660
- h(F, !x.includes(F));
1825
+ const B = S[m.value];
1826
+ p(B, !_.includes(B));
1661
1827
  }
1662
1828
  })
1663
1829
  }, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
@@ -1665,7 +1831,7 @@ const Ta = /* @__PURE__ */ C({
1665
1831
  _: 1
1666
1832
  }, 16, ["data-source", "row-key", "value", "filter-option"]));
1667
1833
  }
1668
- }), Zt = /* @__PURE__ */ C({
1834
+ }), dt = /* @__PURE__ */ w({
1669
1835
  __name: "index",
1670
1836
  props: {
1671
1837
  multiple: {
@@ -1682,72 +1848,72 @@ const Ta = /* @__PURE__ */ C({
1682
1848
  }
1683
1849
  },
1684
1850
  emits: ["change", "update:value"],
1685
- setup(f, { emit: o }) {
1686
- const a = f, t = a.treeCtrl, s = K(), { errInfo: u, labelText: c } = s, i = o;
1687
- s.inputEmit = i;
1688
- const d = _([]), n = _();
1851
+ setup(r, { emit: l }) {
1852
+ const t = r, a = t.treeCtrl, o = A(), { errInfo: u, labelText: m } = o, d = l;
1853
+ o.inputEmit = d;
1854
+ const n = b([]), c = b();
1689
1855
  $(
1690
- () => a.value,
1691
- (l) => {
1692
- n.value = l ?? null;
1856
+ () => t.value,
1857
+ (s) => {
1858
+ c.value = s ?? null;
1693
1859
  },
1694
1860
  { immediate: !0 }
1695
1861
  ), $(
1696
- () => t.data.value,
1697
- (l) => {
1698
- l && (d.value = t.fieldMap ? te(t.fieldMap, l) : l);
1862
+ () => a.data.value,
1863
+ (s) => {
1864
+ s && (n.value = a.fieldMap ? ae(a.fieldMap, s) : s);
1699
1865
  },
1700
1866
  { immediate: !0 }
1701
1867
  );
1702
- const r = (l) => {
1703
- a.multiple ? n.value = l ?? [] : n.value = l ?? "", i("change", n.value), i("update:value", n.value);
1868
+ const i = (s) => {
1869
+ t.multiple ? c.value = s ?? [] : c.value = s ?? "", d("change", c.value), d("update:value", c.value);
1704
1870
  };
1705
- return A(() => {
1706
- t.fieldMap || (t.fieldMap = {
1871
+ return K(() => {
1872
+ a.fieldMap || (a.fieldMap = {
1707
1873
  label: "Name",
1708
1874
  key: "Id",
1709
1875
  value: "Id"
1710
- }), t.data.value ? d.value = t.fieldMap ? te(t.fieldMap, t.data.value) : t.data.value : a.treeCtrl.autoload && Ie(a.treeCtrl);
1711
- }), (l, v) => {
1712
- var h;
1713
- return p(), g(e(pt), B({
1714
- class: [[(h = e(u)) == null ? void 0 : h.errClass], "w-full"],
1876
+ }), a.data.value ? n.value = a.fieldMap ? ae(a.fieldMap, a.data.value) : a.data.value : t.treeCtrl.autoload && Oe(t.treeCtrl);
1877
+ }), (s, v) => {
1878
+ var p;
1879
+ return f(), g(e(ia), P({
1880
+ class: [[(p = e(u)) == null ? void 0 : p.errClass], "w-full"],
1715
1881
  "tree-line": "",
1716
- multiple: f.multiple,
1882
+ multiple: r.multiple,
1717
1883
  "tree-default-expanded-keys": ["-"],
1718
- value: n.value,
1719
- "onUpdate:value": v[0] || (v[0] = (x) => n.value = x),
1720
- "tree-data": d.value,
1721
- placeholder: "请选择" + e(c),
1884
+ value: c.value,
1885
+ "onUpdate:value": v[0] || (v[0] = (_) => c.value = _),
1886
+ "tree-data": n.value,
1887
+ placeholder: "请选择" + e(m),
1722
1888
  "allow-clear": !0,
1723
- onChange: r
1724
- }, l.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
1889
+ onChange: i
1890
+ }, s.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
1725
1891
  };
1726
1892
  }
1727
- }), Ka = /* @__PURE__ */ V(Zt, [["__scopeId", "data-v-64be74cc"]]), ea = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, ta = { class: "flex w-full h-full min-h-full" }, aa = {
1893
+ }), Xt = /* @__PURE__ */ H(dt, [["__scopeId", "data-v-f000d1d0"]]), pt = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, ft = { class: "flex w-full h-full min-h-full" }, vt = {
1728
1894
  key: 0,
1729
1895
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
1730
- }, la = { class: "flex-1 h-full overflow-y-auto" }, Oa = /* @__PURE__ */ C({
1896
+ }, mt = { class: "flex-1 h-full overflow-y-auto" }, Zt = /* @__PURE__ */ w({
1731
1897
  __name: "index",
1732
1898
  props: {
1733
1899
  left: { type: Boolean }
1734
1900
  },
1735
- setup(f) {
1736
- const { useToken: o } = Fe, { token: a } = o();
1737
- return (t, s) => (p(), w("div", ea, [
1738
- b(e(vt), {
1901
+ setup(r) {
1902
+ const { useToken: l } = Pe, { token: t } = l();
1903
+ return (a, o) => (f(), C("div", pt, [
1904
+ y(e(da), {
1739
1905
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
1740
- style: ue({
1741
- backgroundColor: e(a).colorBgContainer
1906
+ style: ce({
1907
+ backgroundColor: e(t).colorBgContainer
1742
1908
  })
1743
1909
  }, {
1744
- default: m(() => [
1745
- T("div", ta, [
1746
- t.left ? (p(), w("div", aa, [
1747
- I(t.$slots, "left")
1910
+ default: h(() => [
1911
+ T("div", ft, [
1912
+ a.left ? (f(), C("div", vt, [
1913
+ I(a.$slots, "left")
1748
1914
  ])) : k("", !0),
1749
- T("div", la, [
1750
- I(t.$slots, "default")
1915
+ T("div", mt, [
1916
+ I(a.$slots, "default")
1751
1917
  ])
1752
1918
  ])
1753
1919
  ]),
@@ -1755,63 +1921,63 @@ const Ta = /* @__PURE__ */ C({
1755
1921
  }, 8, ["style"])
1756
1922
  ]));
1757
1923
  }
1758
- }), ra = { class: "font-['Courier'] text-[#666]" }, Ea = /* @__PURE__ */ C({
1924
+ }), ht = { class: "font-['Courier'] text-[#666]" }, el = /* @__PURE__ */ w({
1759
1925
  __name: "index",
1760
- setup(f) {
1761
- const o = _("");
1762
- return A(() => {
1926
+ setup(r) {
1927
+ const l = b("");
1928
+ return K(() => {
1763
1929
  setInterval(() => {
1764
- const a = /* @__PURE__ */ new Date(), t = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, s = a.toLocaleString(void 0, t).replace(/\//g, "-").replace(",", "");
1765
- o.value = a.getFullYear() + "-" + s;
1930
+ const t = /* @__PURE__ */ new Date(), a = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, o = t.toLocaleString(void 0, a).replace(/\//g, "-").replace(",", "");
1931
+ l.value = t.getFullYear() + "-" + o;
1766
1932
  }, 1e3);
1767
- }), (a, t) => (p(), w("div", ra, D(o.value), 1));
1933
+ }), (t, a) => (f(), C("div", ht, D(l.value), 1));
1768
1934
  }
1769
1935
  });
1770
1936
  export {
1771
- Va as AppIcon,
1772
- wa as AutoComplete,
1773
- ja as Breadcrumb,
1774
- z as Button,
1775
- $a as Cascader,
1776
- Sa as Checkbox,
1777
- Oa as Content,
1778
- Ta as DatePicker,
1779
- Ea as Datetime,
1780
- La as Dialog,
1781
- _a as Drawer,
1782
- xa as Form,
1783
- ya as FormItem,
1784
- ha as Fullscreen,
1785
- Ha as Header,
1786
- Wa as HeaderExits,
1787
- kt as Helper,
1788
- Ja as Icon,
1789
- Nt as Icontool,
1790
- Vt as Input,
1791
- Da as InputIcon,
1792
- Ba as InputNumber,
1793
- Ia as InputPassword,
1794
- ga as LayoutIcon,
1795
- Ga as Menu,
1796
- Xa as MenuTabs,
1797
- Za as ProjectIcon,
1798
- Fa as PropEditor,
1799
- Gt as Radio,
1800
- Pa as RadioStatus,
1801
- Ma as RangePicker,
1802
- ba as Search,
1803
- re as SearchItem,
1804
- Na as Select,
1805
- Et as Switch,
1806
- ka as Table,
1807
- Pt as TableOperate,
1808
- za as Textarea,
1937
+ nl as AppIcon,
1938
+ Ot as AutoComplete,
1939
+ ul as Breadcrumb,
1940
+ N as Button,
1941
+ Rt as Cascader,
1942
+ Yt as Checkbox,
1943
+ Zt as Content,
1944
+ Lt as DatePicker,
1945
+ el as Datetime,
1946
+ ll as Dialog,
1947
+ Mt as Drawer,
1948
+ zt as Form,
1949
+ Et as FormItem,
1950
+ Bt as Fullscreen,
1951
+ cl as Header,
1952
+ il as HeaderExits,
1953
+ za as Helper,
1954
+ dl as Icon,
1955
+ qa as Icontool,
1956
+ rt as Input,
1957
+ Ut as InputIcon,
1958
+ Vt as InputNumber,
1959
+ Qt as InputPassword,
1960
+ Ft as LayoutIcon,
1961
+ pl as Menu,
1962
+ fl as MenuTabs,
1963
+ vl as ProjectIcon,
1964
+ qt as PropEditor,
1965
+ ct as Radio,
1966
+ Ht as RadioStatus,
1967
+ jt as RangePicker,
1968
+ Nt as Search,
1969
+ se as SearchItem,
1970
+ Wt as Select,
1971
+ Ga as Switch,
1972
+ At as Table,
1973
+ Qa as TableOperate,
1974
+ Jt as Textarea,
1809
1975
  R as ToolIcon,
1810
- Ot as Toolbar,
1811
- qa as Tooltip,
1812
- Xt as Transfer,
1813
- Aa as TransferTable,
1814
- Ca as Tree,
1815
- Ka as TreeSelect,
1816
- tl as UploadList
1976
+ Ja as Toolbar,
1977
+ sl as Tooltip,
1978
+ it as Transfer,
1979
+ Gt as TransferTable,
1980
+ Kt as Tree,
1981
+ Xt as TreeSelect,
1982
+ hl as UploadList
1817
1983
  };