@skyfox2000/webui 0.1.7 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cursorignore +8 -0
- package/lib/assets/modules/{menuTabs-JxjPoyCD.js → menuTabs-BXdbFZor.js} +143 -138
- package/lib/components/content/search/index.vue.d.ts +1 -0
- package/lib/components/content/search/index.vue.d.ts.map +1 -1
- package/lib/components/layout/header/headerExits.vue.d.ts.map +1 -1
- package/lib/components/layout/header/index.vue.d.ts.map +1 -1
- package/lib/components/layout/header/user.vue.d.ts +4 -0
- package/lib/components/layout/header/user.vue.d.ts.map +1 -0
- package/lib/components/layout/menu/menuTabs.vue.d.ts.map +1 -1
- package/lib/es/BasicLayout/index.js +1 -1
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +244 -240
- package/package.json +6 -4
- package/src/components/content/search/index.vue +12 -0
- package/src/components/layout/header/headerExits.vue +1 -1
- package/src/components/layout/header/index.vue +5 -3
- package/src/components/layout/header/user.vue +10 -0
- package/src/components/layout/menu/menuTabs.vue +14 -1
package/lib/webui.es.js
CHANGED
|
@@ -2,18 +2,18 @@ import { _ as La } from "./assets/modules/index-D47Ci-T3.js";
|
|
|
2
2
|
import { _ as O } from "./assets/modules/index-BoKIa2sr.js";
|
|
3
3
|
import { _ as Y } from "./assets/modules/index-BEWJ_qAH.js";
|
|
4
4
|
import { a as Ua } from "./assets/modules/index-BEWJ_qAH.js";
|
|
5
|
-
import { _ as V } from "./assets/modules/menuTabs-
|
|
6
|
-
import { a as qa, c as Qa, d as Va, e as Ha, I as Wa, f as Ja, g as Ga, b as Xa } from "./assets/modules/menuTabs-
|
|
7
|
-
import { defineComponent as
|
|
8
|
-
import { useSettingInfo as ye, onFullscreenClick as Ae, createFromIconfont as Ee, ProviderKeys as X, onFormClose as ae, onFormSaveAs as Ye, onFormSave as be, useFormItemFactory as
|
|
9
|
-
import { Popover as Ge, theme as Be, Drawer as Xe, Space as G, Form as
|
|
5
|
+
import { _ as V } from "./assets/modules/menuTabs-BXdbFZor.js";
|
|
6
|
+
import { a as qa, c as Qa, d as Va, e as Ha, I as Wa, f as Ja, g as Ga, b as Xa } from "./assets/modules/menuTabs-BXdbFZor.js";
|
|
7
|
+
import { defineComponent as C, createBlock as h, openBlock as p, withModifiers as J, unref as e, useAttrs as W, withCtx as _, createElementVNode as T, createVNode as b, mergeProps as B, renderSlot as I, normalizeStyle as se, toDisplayString as D, createCommentVNode as k, ref as g, provide as he, watch as $, onMounted as z, createTextVNode as P, inject as ne, resolveDirective as q, withDirectives as Q, createElementBlock as w, normalizeClass as N, createSlots as ge, useSlots as Oe, Fragment as M, renderList as L, resolveDynamicComponent as ze, onUnmounted as xe, onActivated as Ke, computed as pe, withKeys as fe } from "vue";
|
|
8
|
+
import { useSettingInfo as ye, onFullscreenClick as Ae, createFromIconfont as Ee, ProviderKeys as X, onFormClose as ae, onFormSaveAs as Ye, onFormSave as be, useFormItemFactory as ke, getToolGroup as Ce, onGridRowEdit as Le, onGridRowDelete as Re, getToolVisible as H, onToolClicked as R, getToolStatus as j, useToolFactory as Ue, getToolByKey as Z, filterColumns as we, onColumnVisibleChanged as je, AppRouter as qe, openNewForm as Qe, useInputFactory as K, loadOption as $e, unloadOption as Se, formValidate as U, gridQueryFind as ve, gridQueryList as Ve, gridStatusUpdate as He, OPTIONS as Te, queryTree as De, OptionCommProps as We, circleLoading as Je, doQuery as Ie } from "@skyfox2000/webbase";
|
|
9
|
+
import { Popover as Ge, theme as Be, Drawer as Xe, Space as G, Form as Fe, FormItem as Pe, ConfigProvider as me, Popconfirm as Ze, Button as Me, DropdownButton as et, Menu as ue, MenuItem as ie, Dropdown as re, Checkbox as tt, Switch as at, Table as Ne, Tree as lt, Cascader as rt, DatePicker as ot, Input as oe, InputPassword as st, InputNumber as nt, RangePicker as ut, Textarea as it, Transfer as dt, TreeSelect as ct, LayoutContent as pt } from "ant-design-vue";
|
|
10
10
|
import { SERVER_HOST as ft, fieldMapping as ee } from "@skyfox2000/fapi";
|
|
11
11
|
import { VueDraggableNext as vt } from "vue-draggable-next";
|
|
12
12
|
import mt from "vue-m-message";
|
|
13
13
|
import { _ as _t, a as ht, b as gt, c as xt } from "./assets/modules/index-BahGnrAq.js";
|
|
14
14
|
import _e from "dayjs";
|
|
15
15
|
import { _ as el } from "./assets/modules/uploadList-Dzlg47V0.js";
|
|
16
|
-
const ma = /* @__PURE__ */
|
|
16
|
+
const ma = /* @__PURE__ */ C({
|
|
17
17
|
__name: "fullscreen",
|
|
18
18
|
setup(v) {
|
|
19
19
|
const o = ye();
|
|
@@ -23,7 +23,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
23
23
|
class: "w-[17px] h-[17px]"
|
|
24
24
|
}, null, 8, ["onClick", "icon"]));
|
|
25
25
|
}
|
|
26
|
-
}), yt = { class: "ml-2" }, bt = /* @__PURE__ */
|
|
26
|
+
}), yt = { class: "ml-2" }, bt = /* @__PURE__ */ C({
|
|
27
27
|
inheritAttrs: !1,
|
|
28
28
|
__name: "helper",
|
|
29
29
|
props: {
|
|
@@ -33,16 +33,16 @@ const ma = /* @__PURE__ */ k({
|
|
|
33
33
|
setup(v) {
|
|
34
34
|
const o = W();
|
|
35
35
|
return (a, t) => (p(), h(e(Ge), { placement: "topRight" }, {
|
|
36
|
-
content:
|
|
36
|
+
content: _(() => [
|
|
37
37
|
I(a.$slots, "default", {}, () => [
|
|
38
|
-
|
|
38
|
+
T("div", {
|
|
39
39
|
class: "text-[14px]",
|
|
40
40
|
style: se({ maxWidth: a.maxWidth })
|
|
41
41
|
}, D(a.text), 5)
|
|
42
42
|
])
|
|
43
43
|
]),
|
|
44
|
-
default:
|
|
45
|
-
|
|
44
|
+
default: _(() => [
|
|
45
|
+
T("span", yt, [
|
|
46
46
|
b(Y, B({
|
|
47
47
|
icon: "icon-question-circle",
|
|
48
48
|
class: "text-[#888] w-4 h-4"
|
|
@@ -52,7 +52,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
52
52
|
_: 3
|
|
53
53
|
}));
|
|
54
54
|
}
|
|
55
|
-
}), _a = /* @__PURE__ */
|
|
55
|
+
}), _a = /* @__PURE__ */ C({
|
|
56
56
|
__name: "layoutIcon",
|
|
57
57
|
props: {
|
|
58
58
|
icon: {
|
|
@@ -74,9 +74,9 @@ const ma = /* @__PURE__ */ k({
|
|
|
74
74
|
icon: v.icon,
|
|
75
75
|
icons: v.icons,
|
|
76
76
|
class: ["align-middle"]
|
|
77
|
-
}, r.$attrs), null, 16, ["icon", "icons"])) :
|
|
77
|
+
}, r.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
|
|
78
78
|
}
|
|
79
|
-
}),
|
|
79
|
+
}), kt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, ha = /* @__PURE__ */ C({
|
|
80
80
|
__name: "index",
|
|
81
81
|
props: {
|
|
82
82
|
saveText: {},
|
|
@@ -120,8 +120,8 @@ const ma = /* @__PURE__ */ k({
|
|
|
120
120
|
width: "420px",
|
|
121
121
|
onClose: c
|
|
122
122
|
}, {
|
|
123
|
-
extra:
|
|
124
|
-
|
|
123
|
+
extra: _(() => [
|
|
124
|
+
T("div", kt, [
|
|
125
125
|
b(e(Y), {
|
|
126
126
|
class: "top-[-2px] left-[2px] w-6 h-6",
|
|
127
127
|
icon: "icon-new",
|
|
@@ -134,43 +134,43 @@ const ma = /* @__PURE__ */ k({
|
|
|
134
134
|
})
|
|
135
135
|
])
|
|
136
136
|
]),
|
|
137
|
-
default:
|
|
137
|
+
default: _(() => [
|
|
138
138
|
I(d.$slots, "default")
|
|
139
139
|
]),
|
|
140
|
-
footer:
|
|
140
|
+
footer: _(() => [
|
|
141
141
|
b(e(G), null, {
|
|
142
|
-
default:
|
|
142
|
+
default: _(() => [
|
|
143
143
|
d.cancelText !== "" ? (p(), h(e(O), {
|
|
144
144
|
key: 0,
|
|
145
145
|
onClick: f[1] || (f[1] = () => e(ae)(e(n)))
|
|
146
146
|
}, {
|
|
147
|
-
default:
|
|
148
|
-
|
|
147
|
+
default: _(() => [
|
|
148
|
+
P(D(d.cancelText ?? "取消"), 1)
|
|
149
149
|
]),
|
|
150
150
|
_: 1
|
|
151
|
-
})) :
|
|
151
|
+
})) : k("", !0),
|
|
152
152
|
d.saveAsText !== "" && e(n).saveAsBtnVisible !== !1 ? (p(), h(e(O), {
|
|
153
153
|
key: 1,
|
|
154
154
|
onClick: f[2] || (f[2] = () => e(Ye)(e(n))),
|
|
155
155
|
type: "primary",
|
|
156
156
|
loading: e(n).isFormSaving.value
|
|
157
157
|
}, {
|
|
158
|
-
default:
|
|
159
|
-
|
|
158
|
+
default: _(() => [
|
|
159
|
+
P(D(d.saveAsText ?? "另存为"), 1)
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
|
-
}, 8, ["loading"])) :
|
|
162
|
+
}, 8, ["loading"])) : k("", !0),
|
|
163
163
|
d.saveText !== "" && e(n).saveBtnVisible !== !1 ? (p(), h(e(O), {
|
|
164
164
|
key: 2,
|
|
165
165
|
onClick: f[3] || (f[3] = () => e(be)(e(n))),
|
|
166
166
|
type: "primary",
|
|
167
167
|
loading: e(n).isFormSaving.value
|
|
168
168
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
|
|
169
|
+
default: _(() => [
|
|
170
|
+
P(D(d.saveText ?? "保存"), 1)
|
|
171
171
|
]),
|
|
172
172
|
_: 1
|
|
173
|
-
}, 8, ["loading"])) :
|
|
173
|
+
}, 8, ["loading"])) : k("", !0)
|
|
174
174
|
]),
|
|
175
175
|
_: 1
|
|
176
176
|
})
|
|
@@ -178,7 +178,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
178
178
|
_: 3
|
|
179
179
|
}, 8, ["open", "header-style"]));
|
|
180
180
|
}
|
|
181
|
-
}), ga = /* @__PURE__ */
|
|
181
|
+
}), ga = /* @__PURE__ */ C({
|
|
182
182
|
__name: "index",
|
|
183
183
|
props: {
|
|
184
184
|
labelWidth: {},
|
|
@@ -189,7 +189,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
189
189
|
const o = v, a = o.editorCtrl ?? ne(X.EditorControl, void 0);
|
|
190
190
|
return (t, r) => {
|
|
191
191
|
const n = q("submit");
|
|
192
|
-
return Q((p(), h(e(
|
|
192
|
+
return Q((p(), h(e(Fe), {
|
|
193
193
|
"label-col": { flex: o.labelWidth ?? "85px" },
|
|
194
194
|
"wrapper-col": {
|
|
195
195
|
flex: o.wrapperWidth ?? "1"
|
|
@@ -199,7 +199,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
199
199
|
flexWrap: "wrap"
|
|
200
200
|
}
|
|
201
201
|
}, {
|
|
202
|
-
default:
|
|
202
|
+
default: _(() => [
|
|
203
203
|
I(t.$slots, "default")
|
|
204
204
|
]),
|
|
205
205
|
_: 3
|
|
@@ -213,10 +213,10 @@ const ma = /* @__PURE__ */ k({
|
|
|
213
213
|
]);
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
}),
|
|
216
|
+
}), Ct = { class: "w-full flex items-center" }, wt = { class: "flex-grow" }, $t = { class: "w-8 mt-[-2px]" }, St = {
|
|
217
217
|
key: 1,
|
|
218
218
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
219
|
-
}, xa = /* @__PURE__ */
|
|
219
|
+
}, xa = /* @__PURE__ */ C({
|
|
220
220
|
inheritAttrs: !1,
|
|
221
221
|
__name: "formItem",
|
|
222
222
|
props: {
|
|
@@ -226,7 +226,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
226
226
|
width: {}
|
|
227
227
|
},
|
|
228
228
|
setup(v) {
|
|
229
|
-
const o = v, a = W(), t = ne(X.EditorControl, void 0), r =
|
|
229
|
+
const o = v, a = W(), t = ne(X.EditorControl, void 0), r = ke(o, t), n = g(!1);
|
|
230
230
|
return setTimeout(() => {
|
|
231
231
|
n.value = !0;
|
|
232
232
|
}, 30), (c, d) => {
|
|
@@ -234,43 +234,43 @@ const ma = /* @__PURE__ */ k({
|
|
|
234
234
|
return p(), w("div", {
|
|
235
235
|
class: N(["w-full relative mb-1", c.width])
|
|
236
236
|
}, [
|
|
237
|
-
n.value ? (p(), h(e(
|
|
237
|
+
n.value ? (p(), h(e(Pe), B({
|
|
238
238
|
key: 0,
|
|
239
239
|
required: !!c.rule && ((l = (u = (s = (f = e(t)) == null ? void 0 : f.formRules) == null ? void 0 : s.value) == null ? void 0 : u[c.rule]) == null ? void 0 : l.required),
|
|
240
240
|
class: "!w-[95%] relative"
|
|
241
241
|
}, e(a), {
|
|
242
242
|
class: [c.rule ? "" : "mb-3"]
|
|
243
243
|
}), {
|
|
244
|
-
label:
|
|
245
|
-
|
|
244
|
+
label: _(() => [
|
|
245
|
+
T("span", {
|
|
246
246
|
class: N([e(r).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
247
247
|
}, D(c.label), 3)
|
|
248
248
|
]),
|
|
249
|
-
default:
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
default: _(() => [
|
|
250
|
+
T("div", Ct, [
|
|
251
|
+
T("div", wt, [
|
|
252
252
|
I(c.$slots, "default")
|
|
253
253
|
]),
|
|
254
|
-
|
|
254
|
+
T("div", $t, [
|
|
255
255
|
I(c.$slots, "helper", {}, () => [
|
|
256
256
|
c.helper ? (p(), h(e(bt), {
|
|
257
257
|
key: 0,
|
|
258
258
|
text: c.helper
|
|
259
|
-
}, null, 8, ["text"])) :
|
|
259
|
+
}, null, 8, ["text"])) : k("", !0)
|
|
260
260
|
])
|
|
261
261
|
])
|
|
262
262
|
])
|
|
263
263
|
]),
|
|
264
264
|
_: 3
|
|
265
|
-
}, 16, ["required", "class"])) :
|
|
266
|
-
e(r).errClass ? (p(), w("span", St, D(e(r).msg), 1)) :
|
|
265
|
+
}, 16, ["required", "class"])) : k("", !0),
|
|
266
|
+
e(r).errClass ? (p(), w("span", St, D(e(r).msg), 1)) : k("", !0)
|
|
267
267
|
], 2);
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
}), Tt = { class: "w-1/3 relative mb-1" }, Dt = { class: "flex items-center" }, It = { class: "flex-grow pl-1" }, Bt = {
|
|
271
271
|
key: 0,
|
|
272
272
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
273
|
-
}, le = /* @__PURE__ */
|
|
273
|
+
}, le = /* @__PURE__ */ C({
|
|
274
274
|
inheritAttrs: !1,
|
|
275
275
|
__name: "searchItem",
|
|
276
276
|
props: {
|
|
@@ -279,18 +279,18 @@ const ma = /* @__PURE__ */ k({
|
|
|
279
279
|
rule: {}
|
|
280
280
|
},
|
|
281
281
|
setup(v) {
|
|
282
|
-
const o = v, a = W(), t = ne(X.EditorControl, void 0), r =
|
|
282
|
+
const o = v, a = W(), t = ne(X.EditorControl, void 0), r = ke(o, t);
|
|
283
283
|
return (n, c) => (p(), w("div", Tt, [
|
|
284
|
-
b(e(
|
|
284
|
+
b(e(Pe), B({
|
|
285
285
|
required: n.rule !== void 0,
|
|
286
286
|
class: "w-[90%] relative"
|
|
287
287
|
}, e(a), {
|
|
288
288
|
class: [n.rule ? "" : "mb-3", n.width],
|
|
289
289
|
labelCol: { span: 6 }
|
|
290
290
|
}), ge({
|
|
291
|
-
default:
|
|
292
|
-
|
|
293
|
-
|
|
291
|
+
default: _(() => [
|
|
292
|
+
T("div", Dt, [
|
|
293
|
+
T("div", It, [
|
|
294
294
|
I(n.$slots, "default")
|
|
295
295
|
])
|
|
296
296
|
])
|
|
@@ -299,29 +299,30 @@ const ma = /* @__PURE__ */ k({
|
|
|
299
299
|
}, [
|
|
300
300
|
n.label ? {
|
|
301
301
|
name: "label",
|
|
302
|
-
fn:
|
|
303
|
-
|
|
302
|
+
fn: _(() => [
|
|
303
|
+
T("span", {
|
|
304
304
|
class: N([e(r).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
305
305
|
}, D(n.label), 3)
|
|
306
306
|
]),
|
|
307
307
|
key: "0"
|
|
308
308
|
} : void 0
|
|
309
309
|
]), 1040, ["required", "class"]),
|
|
310
|
-
e(r).msg ? (p(), w("span", Bt, D(e(r).msg), 1)) :
|
|
310
|
+
e(r).msg ? (p(), w("span", Bt, D(e(r).msg), 1)) : k("", !0)
|
|
311
311
|
]));
|
|
312
312
|
}
|
|
313
|
-
}), ya = /* @__PURE__ */
|
|
313
|
+
}), ya = /* @__PURE__ */ C({
|
|
314
314
|
__name: "index",
|
|
315
315
|
props: {
|
|
316
316
|
search: {},
|
|
317
|
-
gridCtrl: {}
|
|
317
|
+
gridCtrl: {},
|
|
318
|
+
likeFields: {}
|
|
318
319
|
},
|
|
319
320
|
emits: ["update:search"],
|
|
320
321
|
setup(v, { emit: o }) {
|
|
321
|
-
const a = v, t = o, r = g(0), n = g(0), c = g(0), d = (
|
|
322
|
+
const a = v, t = o, r = g(0), n = g(0), c = g(0), d = (m) => {
|
|
322
323
|
let x = 0;
|
|
323
|
-
for (let
|
|
324
|
-
typeof
|
|
324
|
+
for (let S = 0; S < m.length; S++)
|
|
325
|
+
typeof m[S].type == "object" && x++;
|
|
325
326
|
return x;
|
|
326
327
|
}, f = Oe(), s = () => {
|
|
327
328
|
n.value = 0, c.value = 0, f.default && (n.value = d(f.default({}))), a.gridCtrl.searchBar && f.control && (c.value = d(f.control({}))), r.value = 2 - (n.value + c.value) % 3;
|
|
@@ -336,34 +337,37 @@ const ma = /* @__PURE__ */ k({
|
|
|
336
337
|
z(() => {
|
|
337
338
|
var x;
|
|
338
339
|
s();
|
|
339
|
-
let
|
|
340
|
+
let m = { ...a.search };
|
|
340
341
|
a.gridCtrl.gridQuery = {
|
|
341
342
|
...a.gridCtrl.gridQuery,
|
|
342
343
|
Query: {
|
|
343
344
|
...(x = a.gridCtrl.gridQuery) == null ? void 0 : x.Query,
|
|
344
|
-
...
|
|
345
|
+
...m
|
|
345
346
|
}
|
|
346
347
|
};
|
|
347
348
|
});
|
|
348
349
|
const l = () => {
|
|
349
350
|
var x;
|
|
350
|
-
let
|
|
351
|
+
let m = { ...a.search };
|
|
352
|
+
if (a.likeFields)
|
|
353
|
+
for (const S of a.likeFields)
|
|
354
|
+
m[S] && (m[S] = { $like: "%" + m[S] + "%" });
|
|
351
355
|
a.gridCtrl.gridQuery = {
|
|
352
356
|
...a.gridCtrl.gridQuery,
|
|
353
357
|
Query: {
|
|
354
358
|
...(x = a.gridCtrl.gridQuery) == null ? void 0 : x.Query,
|
|
355
|
-
...
|
|
359
|
+
...m
|
|
356
360
|
}
|
|
357
361
|
}, a.gridCtrl.reload.value = !0;
|
|
358
362
|
}, i = () => {
|
|
359
|
-
const
|
|
363
|
+
const m = JSON.parse(JSON.stringify(u));
|
|
360
364
|
for (const x in a.search)
|
|
361
|
-
|
|
362
|
-
t("update:search",
|
|
365
|
+
m[x] === void 0 && (m[x] = void 0);
|
|
366
|
+
t("update:search", m);
|
|
363
367
|
};
|
|
364
|
-
return (
|
|
365
|
-
const
|
|
366
|
-
return n.value + c.value > 0 ? Q((p(), h(e(
|
|
368
|
+
return (m, x) => {
|
|
369
|
+
const S = q("submit");
|
|
370
|
+
return n.value + c.value > 0 ? Q((p(), h(e(Fe), {
|
|
367
371
|
key: 0,
|
|
368
372
|
"label-col": { flex: "60px" },
|
|
369
373
|
style: {
|
|
@@ -372,32 +376,32 @@ const ma = /* @__PURE__ */ k({
|
|
|
372
376
|
},
|
|
373
377
|
class: "flex mb-[10px]"
|
|
374
378
|
}, {
|
|
375
|
-
default:
|
|
376
|
-
I(
|
|
377
|
-
|
|
379
|
+
default: _(() => [
|
|
380
|
+
I(m.$slots, "default"),
|
|
381
|
+
m.gridCtrl.searchBar ? I(m.$slots, "control", { key: 0 }) : k("", !0),
|
|
378
382
|
r.value >= 1 ? (p(), h(le, {
|
|
379
383
|
key: 1,
|
|
380
384
|
class: "w-1/3"
|
|
381
|
-
})) :
|
|
385
|
+
})) : k("", !0),
|
|
382
386
|
r.value >= 2 ? (p(), h(le, {
|
|
383
387
|
key: 2,
|
|
384
388
|
class: "w-1/3"
|
|
385
|
-
})) :
|
|
386
|
-
n.value ||
|
|
389
|
+
})) : k("", !0),
|
|
390
|
+
n.value || m.gridCtrl.searchBar ? (p(), h(le, {
|
|
387
391
|
key: 3,
|
|
388
392
|
class: "w-1/3 flex justify-end text-right pr-5",
|
|
389
393
|
"wrapper-col": { flex: "auto" }
|
|
390
394
|
}, {
|
|
391
|
-
default:
|
|
395
|
+
default: _(() => [
|
|
392
396
|
b(e(G), null, {
|
|
393
|
-
default:
|
|
397
|
+
default: _(() => [
|
|
394
398
|
b(e(O), {
|
|
395
399
|
type: "primary",
|
|
396
400
|
onClick: l,
|
|
397
401
|
icon: "icon-search"
|
|
398
402
|
}, {
|
|
399
|
-
default:
|
|
400
|
-
|
|
403
|
+
default: _(() => x[0] || (x[0] = [
|
|
404
|
+
P("搜索")
|
|
401
405
|
])),
|
|
402
406
|
_: 1,
|
|
403
407
|
__: [0]
|
|
@@ -406,8 +410,8 @@ const ma = /* @__PURE__ */ k({
|
|
|
406
410
|
onClick: i,
|
|
407
411
|
icon: "icon-reset"
|
|
408
412
|
}, {
|
|
409
|
-
default:
|
|
410
|
-
|
|
413
|
+
default: _(() => x[1] || (x[1] = [
|
|
414
|
+
P("重置")
|
|
411
415
|
])),
|
|
412
416
|
_: 1,
|
|
413
417
|
__: [1]
|
|
@@ -417,15 +421,15 @@ const ma = /* @__PURE__ */ k({
|
|
|
417
421
|
})
|
|
418
422
|
]),
|
|
419
423
|
_: 1
|
|
420
|
-
})) :
|
|
424
|
+
})) : k("", !0)
|
|
421
425
|
]),
|
|
422
426
|
_: 3
|
|
423
427
|
})), [
|
|
424
|
-
[
|
|
425
|
-
]) :
|
|
428
|
+
[S, l]
|
|
429
|
+
]) : k("", !0);
|
|
426
430
|
};
|
|
427
431
|
}
|
|
428
|
-
}),
|
|
432
|
+
}), Ft = /* @__PURE__ */ C({
|
|
429
433
|
__name: "tableOperate",
|
|
430
434
|
props: {
|
|
431
435
|
record: {},
|
|
@@ -452,7 +456,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
452
456
|
confirmText: "是否删除此记录?",
|
|
453
457
|
click: () => Re(a, o.record)
|
|
454
458
|
}
|
|
455
|
-
], { buttons: r, menus: n } =
|
|
459
|
+
], { buttons: r, menus: n } = Ce(t, 0, a.operates), c = (d) => {
|
|
456
460
|
if (typeof d.disabled == "boolean")
|
|
457
461
|
return d.disabled;
|
|
458
462
|
if (typeof d.disabled == "function")
|
|
@@ -473,10 +477,10 @@ const ma = /* @__PURE__ */ k({
|
|
|
473
477
|
fontSize: 13
|
|
474
478
|
}
|
|
475
479
|
} }, {
|
|
476
|
-
default:
|
|
480
|
+
default: _(() => [
|
|
477
481
|
b(e(G), null, {
|
|
478
|
-
default:
|
|
479
|
-
(p(!0), w(
|
|
482
|
+
default: _(() => [
|
|
483
|
+
(p(!0), w(M, null, L(e(r), (l) => (p(), w(M, {
|
|
480
484
|
key: l.key
|
|
481
485
|
}, [
|
|
482
486
|
e(H)(l, o.record) ? (p(), h(e(Ze), {
|
|
@@ -489,8 +493,8 @@ const ma = /* @__PURE__ */ k({
|
|
|
489
493
|
cancelButtonProps: { size: "small" },
|
|
490
494
|
onConfirm: (i) => e(R)(l, e(a).page, e(a), o.record, !0)
|
|
491
495
|
}, {
|
|
492
|
-
default:
|
|
493
|
-
e(H)(l, o.record) ? Q((p(), h(e(
|
|
496
|
+
default: _(() => [
|
|
497
|
+
e(H)(l, o.record) ? Q((p(), h(e(Me), {
|
|
494
498
|
key: l.key,
|
|
495
499
|
type: l.type ?? "text",
|
|
496
500
|
danger: l.danger,
|
|
@@ -501,31 +505,31 @@ const ma = /* @__PURE__ */ k({
|
|
|
501
505
|
padding: l.type ?? "0px 4px"
|
|
502
506
|
})
|
|
503
507
|
}, {
|
|
504
|
-
default:
|
|
505
|
-
|
|
508
|
+
default: _(() => [
|
|
509
|
+
P(D(l.label), 1)
|
|
506
510
|
]),
|
|
507
511
|
_: 2
|
|
508
512
|
}, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
|
|
509
513
|
[s, l.role],
|
|
510
514
|
[u, l.permit]
|
|
511
|
-
]) :
|
|
515
|
+
]) : k("", !0)
|
|
512
516
|
]),
|
|
513
517
|
_: 2
|
|
514
|
-
}, 1032, ["disabled", "title", "onConfirm"])) :
|
|
518
|
+
}, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
|
|
515
519
|
], 64))), 128)),
|
|
516
520
|
d.record.Enabled == 1 ? (p(), h(e(me), {
|
|
517
521
|
key: 0,
|
|
518
522
|
autoInsertSpaceInButton: !1
|
|
519
523
|
}, {
|
|
520
|
-
default:
|
|
524
|
+
default: _(() => [
|
|
521
525
|
e(n).length > 0 ? (p(), h(e(et), {
|
|
522
526
|
key: 0,
|
|
523
527
|
size: "small"
|
|
524
528
|
}, {
|
|
525
|
-
overlay:
|
|
529
|
+
overlay: _(() => [
|
|
526
530
|
b(e(ue), null, {
|
|
527
|
-
default:
|
|
528
|
-
(p(!0), w(
|
|
531
|
+
default: _(() => [
|
|
532
|
+
(p(!0), w(M, null, L(e(n), (l) => (p(), w(M, {
|
|
529
533
|
key: l.key
|
|
530
534
|
}, [
|
|
531
535
|
e(H)(l, o.record) ? Q((p(), h(e(ie), {
|
|
@@ -533,28 +537,28 @@ const ma = /* @__PURE__ */ k({
|
|
|
533
537
|
disabled: c(l),
|
|
534
538
|
onClick: (i) => e(R)(l, e(a).page, e(a), o.record)
|
|
535
539
|
}, {
|
|
536
|
-
default:
|
|
537
|
-
|
|
540
|
+
default: _(() => [
|
|
541
|
+
P(D(l.label), 1)
|
|
538
542
|
]),
|
|
539
543
|
_: 2
|
|
540
544
|
}, 1032, ["disabled", "onClick"])), [
|
|
541
545
|
[s, l.role],
|
|
542
546
|
[u, l.permit]
|
|
543
|
-
]) :
|
|
547
|
+
]) : k("", !0)
|
|
544
548
|
], 64))), 128))
|
|
545
549
|
]),
|
|
546
550
|
_: 1
|
|
547
551
|
})
|
|
548
552
|
]),
|
|
549
|
-
default:
|
|
550
|
-
f[0] || (f[0] =
|
|
553
|
+
default: _(() => [
|
|
554
|
+
f[0] || (f[0] = P(" 更多 "))
|
|
551
555
|
]),
|
|
552
556
|
_: 1,
|
|
553
557
|
__: [0]
|
|
554
|
-
})) :
|
|
558
|
+
})) : k("", !0)
|
|
555
559
|
]),
|
|
556
560
|
_: 1
|
|
557
|
-
})) :
|
|
561
|
+
})) : k("", !0)
|
|
558
562
|
]),
|
|
559
563
|
_: 1
|
|
560
564
|
})
|
|
@@ -563,7 +567,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
563
567
|
});
|
|
564
568
|
};
|
|
565
569
|
}
|
|
566
|
-
}),
|
|
570
|
+
}), Pt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Mt = /* @__PURE__ */ C({
|
|
567
571
|
__name: "icontool",
|
|
568
572
|
props: {
|
|
569
573
|
gridCtrl: {}
|
|
@@ -587,8 +591,8 @@ const ma = /* @__PURE__ */ k({
|
|
|
587
591
|
const c = () => {
|
|
588
592
|
a.columns.value.splice(0, a.columns.value.length, ...n.value), r.setTableColumns(qe.currentRoute.value.path, a.columns.value);
|
|
589
593
|
};
|
|
590
|
-
return (d, f) => (p(), w("div",
|
|
591
|
-
(p(!0), w(
|
|
594
|
+
return (d, f) => (p(), w("div", Pt, [
|
|
595
|
+
(p(!0), w(M, null, L(e(t), (s, u) => (p(), w(M, {
|
|
592
596
|
key: s.key
|
|
593
597
|
}, [
|
|
594
598
|
e(H)(s) && s.dropdown ? (p(), h(e(re), {
|
|
@@ -596,8 +600,8 @@ const ma = /* @__PURE__ */ k({
|
|
|
596
600
|
placement: "bottomRight",
|
|
597
601
|
class: "p-0 rounded-none"
|
|
598
602
|
}, {
|
|
599
|
-
overlay:
|
|
600
|
-
|
|
603
|
+
overlay: _(() => [
|
|
604
|
+
T("div", {
|
|
601
605
|
class: N(["min-w-[100px] bg-white rounded shadow-md p-4", s.dropdownClass])
|
|
602
606
|
}, [
|
|
603
607
|
s.dropdown === "headset" ? (p(), h(e(vt), {
|
|
@@ -608,14 +612,14 @@ const ma = /* @__PURE__ */ k({
|
|
|
608
612
|
onEnd: c,
|
|
609
613
|
handle: ".drag-handle"
|
|
610
614
|
}, {
|
|
611
|
-
default:
|
|
612
|
-
(p(!0), w(
|
|
615
|
+
default: _(() => [
|
|
616
|
+
(p(!0), w(M, null, L(n.value, (l) => (p(), w("div", {
|
|
613
617
|
key: l.name,
|
|
614
618
|
onClick: f[0] || (f[0] = J(() => {
|
|
615
619
|
}, ["stop"])),
|
|
616
620
|
class: "flex items-center mb-2 last:mb-0 select-none"
|
|
617
621
|
}, [
|
|
618
|
-
f[2] || (f[2] =
|
|
622
|
+
f[2] || (f[2] = T("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
|
|
619
623
|
b(e(tt), {
|
|
620
624
|
checked: l.visible !== !1,
|
|
621
625
|
onChange: J(
|
|
@@ -626,18 +630,18 @@ const ma = /* @__PURE__ */ k({
|
|
|
626
630
|
),
|
|
627
631
|
class: "text-gray-700 hover:text-gray-900 select-none"
|
|
628
632
|
}, {
|
|
629
|
-
default:
|
|
630
|
-
|
|
633
|
+
default: _(() => [
|
|
634
|
+
P(D(l.title), 1)
|
|
631
635
|
]),
|
|
632
636
|
_: 2
|
|
633
637
|
}, 1032, ["checked", "onChange"])
|
|
634
638
|
]))), 128))
|
|
635
639
|
]),
|
|
636
640
|
_: 1
|
|
637
|
-
}, 8, ["modelValue"])) :
|
|
641
|
+
}, 8, ["modelValue"])) : k("", !0)
|
|
638
642
|
], 2)
|
|
639
643
|
]),
|
|
640
|
-
default:
|
|
644
|
+
default: _(() => [
|
|
641
645
|
b(e(O), {
|
|
642
646
|
class: N([
|
|
643
647
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
@@ -648,7 +652,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
648
652
|
tiptext: s.label,
|
|
649
653
|
onClick: (l) => e(R)(s, e(a).page, e(a))
|
|
650
654
|
}, {
|
|
651
|
-
default:
|
|
655
|
+
default: _(() => [
|
|
652
656
|
b(e(Y), {
|
|
653
657
|
icon: s.icon,
|
|
654
658
|
class: "w-[18px] h-[18.5px]",
|
|
@@ -670,7 +674,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
670
674
|
tiptext: s.label,
|
|
671
675
|
onClick: (l) => e(R)(s, e(a).page, e(a))
|
|
672
676
|
}, {
|
|
673
|
-
default:
|
|
677
|
+
default: _(() => [
|
|
674
678
|
b(e(Y), {
|
|
675
679
|
icon: s.icon,
|
|
676
680
|
class: "w-[18px] h-[18.5px]",
|
|
@@ -683,15 +687,15 @@ const ma = /* @__PURE__ */ k({
|
|
|
683
687
|
placement: "bottomRight",
|
|
684
688
|
class: "p-0 rounded-none"
|
|
685
689
|
}, {
|
|
686
|
-
overlay:
|
|
690
|
+
overlay: _(() => [
|
|
687
691
|
b(e(ue), null, {
|
|
688
|
-
default:
|
|
689
|
-
(p(!0), w(
|
|
692
|
+
default: _(() => [
|
|
693
|
+
(p(!0), w(M, null, L(s.children, (l) => (p(), h(e(ie), {
|
|
690
694
|
key: l.key,
|
|
691
695
|
disabled: e(j)(l)
|
|
692
696
|
}, {
|
|
693
|
-
default:
|
|
694
|
-
|
|
697
|
+
default: _(() => [
|
|
698
|
+
P(D(l.label), 1)
|
|
695
699
|
]),
|
|
696
700
|
_: 2
|
|
697
701
|
}, 1032, ["disabled"]))), 128))
|
|
@@ -699,7 +703,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
699
703
|
_: 2
|
|
700
704
|
}, 1024)
|
|
701
705
|
]),
|
|
702
|
-
default:
|
|
706
|
+
default: _(() => [
|
|
703
707
|
b(e(O), {
|
|
704
708
|
class: N([
|
|
705
709
|
"!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
@@ -711,7 +715,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
711
715
|
iconProps: { class: "w-[19px] h-[19px]" },
|
|
712
716
|
onClick: (l) => e(R)(s, e(a).page, e(a))
|
|
713
717
|
}, {
|
|
714
|
-
default:
|
|
718
|
+
default: _(() => [
|
|
715
719
|
b(e(Y), {
|
|
716
720
|
icon: "icon-down-arrow",
|
|
717
721
|
class: "w-[12px] h-[12px]"
|
|
@@ -721,11 +725,11 @@ const ma = /* @__PURE__ */ k({
|
|
|
721
725
|
}, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
|
|
722
726
|
]),
|
|
723
727
|
_: 2
|
|
724
|
-
}, 1024)) :
|
|
728
|
+
}, 1024)) : k("", !0)
|
|
725
729
|
], 64))), 128))
|
|
726
730
|
]));
|
|
727
731
|
}
|
|
728
|
-
}), Nt = { class: "flex justify-between mb-[10px]" }, Ot = { key: 1 }, zt = 3, Kt = /* @__PURE__ */
|
|
732
|
+
}), Nt = { class: "flex justify-between mb-[10px]" }, Ot = { key: 1 }, zt = 3, Kt = /* @__PURE__ */ C({
|
|
729
733
|
__name: "index",
|
|
730
734
|
props: {
|
|
731
735
|
gridCtrl: {},
|
|
@@ -751,7 +755,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
751
755
|
},
|
|
752
756
|
() => {
|
|
753
757
|
var u;
|
|
754
|
-
const { buttons: f, menus: s } =
|
|
758
|
+
const { buttons: f, menus: s } = Ce(
|
|
755
759
|
n,
|
|
756
760
|
a.flat !== void 0 ? a.flat : zt,
|
|
757
761
|
(u = a.buttons) == null ? void 0 : u.value
|
|
@@ -766,17 +770,17 @@ const ma = /* @__PURE__ */ k({
|
|
|
766
770
|
const u = q("role"), l = q("permit");
|
|
767
771
|
return p(), w("div", Nt, [
|
|
768
772
|
b(e(G), null, {
|
|
769
|
-
default:
|
|
770
|
-
(p(!0), w(
|
|
773
|
+
default: _(() => [
|
|
774
|
+
(p(!0), w(M, null, L(c.value, (i) => Q((p(), h(e(O), {
|
|
771
775
|
key: i.key,
|
|
772
776
|
type: i.type,
|
|
773
777
|
danger: i.danger,
|
|
774
778
|
disabled: e(j)(i),
|
|
775
779
|
icon: i.icon,
|
|
776
|
-
onClick: (
|
|
780
|
+
onClick: (m) => e(R)(i, e(t), e(a))
|
|
777
781
|
}, {
|
|
778
|
-
default:
|
|
779
|
-
|
|
782
|
+
default: _(() => [
|
|
783
|
+
P(D(i.label), 1)
|
|
780
784
|
]),
|
|
781
785
|
_: 2
|
|
782
786
|
}, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
|
|
@@ -784,16 +788,16 @@ const ma = /* @__PURE__ */ k({
|
|
|
784
788
|
[l, i.permit]
|
|
785
789
|
])), 128)),
|
|
786
790
|
d.value.length > 0 ? (p(), h(e(re), { key: 0 }, {
|
|
787
|
-
overlay:
|
|
791
|
+
overlay: _(() => [
|
|
788
792
|
b(e(ue), null, {
|
|
789
|
-
default:
|
|
790
|
-
(p(!0), w(
|
|
793
|
+
default: _(() => [
|
|
794
|
+
(p(!0), w(M, null, L(d.value, (i) => Q((p(), h(e(ie), {
|
|
791
795
|
key: i.key,
|
|
792
796
|
disabled: e(j)(i),
|
|
793
|
-
onClick: (
|
|
797
|
+
onClick: (m) => e(R)(i, e(t), e(a))
|
|
794
798
|
}, {
|
|
795
|
-
default:
|
|
796
|
-
|
|
799
|
+
default: _(() => [
|
|
800
|
+
P(D(i.label), 1)
|
|
797
801
|
]),
|
|
798
802
|
_: 2
|
|
799
803
|
}, 1032, ["disabled", "onClick"])), [
|
|
@@ -804,31 +808,31 @@ const ma = /* @__PURE__ */ k({
|
|
|
804
808
|
_: 1
|
|
805
809
|
})
|
|
806
810
|
]),
|
|
807
|
-
default:
|
|
811
|
+
default: _(() => [
|
|
808
812
|
b(e(O), null, {
|
|
809
|
-
default:
|
|
810
|
-
|
|
813
|
+
default: _(() => s[0] || (s[0] = [
|
|
814
|
+
P(" 更多操作 ")
|
|
811
815
|
])),
|
|
812
816
|
_: 1,
|
|
813
817
|
__: [0]
|
|
814
818
|
})
|
|
815
819
|
]),
|
|
816
820
|
_: 1
|
|
817
|
-
})) :
|
|
818
|
-
c.value.length === 0 && d.value.length === 0 ? (p(), w("span", Ot)) :
|
|
821
|
+
})) : k("", !0),
|
|
822
|
+
c.value.length === 0 && d.value.length === 0 ? (p(), w("span", Ot)) : k("", !0)
|
|
819
823
|
]),
|
|
820
824
|
_: 1
|
|
821
825
|
}),
|
|
822
826
|
b(e(G), { class: "mr-1" }, {
|
|
823
|
-
default:
|
|
824
|
-
(p(), h(ze(
|
|
827
|
+
default: _(() => [
|
|
828
|
+
(p(), h(ze(Mt), { "grid-ctrl": e(a) }, null, 8, ["grid-ctrl"]))
|
|
825
829
|
]),
|
|
826
830
|
_: 1
|
|
827
831
|
})
|
|
828
832
|
]);
|
|
829
833
|
};
|
|
830
834
|
}
|
|
831
|
-
}), At = /* @__PURE__ */
|
|
835
|
+
}), At = /* @__PURE__ */ C({
|
|
832
836
|
__name: "index",
|
|
833
837
|
props: {
|
|
834
838
|
/**
|
|
@@ -862,10 +866,10 @@ const ma = /* @__PURE__ */ k({
|
|
|
862
866
|
unCheckedChildren: t.value[1].label,
|
|
863
867
|
unCheckedValue: t.value[1].value,
|
|
864
868
|
onChange: d
|
|
865
|
-
}, f.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) :
|
|
869
|
+
}, f.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : k("", !0);
|
|
866
870
|
};
|
|
867
871
|
}
|
|
868
|
-
}), ba = /* @__PURE__ */
|
|
872
|
+
}), ba = /* @__PURE__ */ C({
|
|
869
873
|
inheritAttrs: !1,
|
|
870
874
|
__name: "index",
|
|
871
875
|
props: {
|
|
@@ -885,8 +889,8 @@ const ma = /* @__PURE__ */ k({
|
|
|
885
889
|
current: 1,
|
|
886
890
|
pageSize: r.value,
|
|
887
891
|
showTotal: (i) => `共 ${i} 条记录`,
|
|
888
|
-
onChange: (i,
|
|
889
|
-
d.value.current = i, d.value.pageSize =
|
|
892
|
+
onChange: (i, m) => {
|
|
893
|
+
d.value.current = i, d.value.pageSize = m, r.value = m, n.value = i, t && (t.pageNo.value = i, t.pageSize.value = m, t.remotePage && ve(t));
|
|
890
894
|
},
|
|
891
895
|
...o.pagination
|
|
892
896
|
});
|
|
@@ -904,8 +908,8 @@ const ma = /* @__PURE__ */ k({
|
|
|
904
908
|
{ immediate: !0 }
|
|
905
909
|
);
|
|
906
910
|
const f = g(t.columns.value), s = {
|
|
907
|
-
onChange: (i,
|
|
908
|
-
t && (t.selectKeys.value = i, t.selectRows.value =
|
|
911
|
+
onChange: (i, m) => {
|
|
912
|
+
t && (t.selectKeys.value = i, t.selectRows.value = m);
|
|
909
913
|
},
|
|
910
914
|
columnWidth: "30px",
|
|
911
915
|
getCheckboxProps: (i) => ({
|
|
@@ -933,15 +937,15 @@ const ma = /* @__PURE__ */ k({
|
|
|
933
937
|
he(X.GridControl, t), t.tableData.value ? (c.value = t.tableData.value, t.total.value = c.value.length, d.value.total = t.total.value ?? 0) : t.autoload !== !1 && (t.remotePage ? c.value = (await ve(t)).rows : c.value = await Ve(t)), setTimeout(() => {
|
|
934
938
|
l.value = !0;
|
|
935
939
|
}, 50);
|
|
936
|
-
}), (i,
|
|
937
|
-
var
|
|
940
|
+
}), (i, m) => {
|
|
941
|
+
var S, F;
|
|
938
942
|
const x = q("permit");
|
|
939
|
-
return p(), w(
|
|
940
|
-
(
|
|
943
|
+
return p(), w(M, null, [
|
|
944
|
+
(S = e(t).buttons) != null && S.value.length || (F = e(t).tools) != null && F.length ? (p(), h(Kt, {
|
|
941
945
|
key: 0,
|
|
942
946
|
"grid-ctrl": e(t),
|
|
943
947
|
"editor-ctrl": e(t).editor
|
|
944
|
-
}, null, 8, ["grid-ctrl", "editor-ctrl"])) :
|
|
948
|
+
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
|
|
945
949
|
l.value ? (p(), h(e(Ne), B({
|
|
946
950
|
key: 1,
|
|
947
951
|
class: "w-full",
|
|
@@ -955,7 +959,7 @@ const ma = /* @__PURE__ */ k({
|
|
|
955
959
|
size: e(t).tableSize.value,
|
|
956
960
|
bordered: ""
|
|
957
961
|
}, e(a)), {
|
|
958
|
-
bodyCell:
|
|
962
|
+
bodyCell: _((y) => {
|
|
959
963
|
var A, E;
|
|
960
964
|
return [
|
|
961
965
|
I(i.$slots, "bodyCell", {
|
|
@@ -976,24 +980,24 @@ const ma = /* @__PURE__ */ k({
|
|
|
976
980
|
loading: y == null ? void 0 : y.record.isLoading
|
|
977
981
|
}, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
|
|
978
982
|
[x, ":enabled", "disable"]
|
|
979
|
-
]) :
|
|
983
|
+
]) : k("", !0),
|
|
980
984
|
e(t) && ((E = y == null ? void 0 : y.column) == null ? void 0 : E.dataIndex) === "operation" ? I(i.$slots, "operate", {
|
|
981
985
|
key: 1,
|
|
982
986
|
record: y == null ? void 0 : y.record
|
|
983
987
|
}, () => [
|
|
984
|
-
b(
|
|
988
|
+
b(Ft, {
|
|
985
989
|
record: y == null ? void 0 : y.record,
|
|
986
990
|
"grid-ctrl": e(t)
|
|
987
991
|
}, null, 8, ["record", "grid-ctrl"])
|
|
988
|
-
]) :
|
|
992
|
+
]) : k("", !0)
|
|
989
993
|
];
|
|
990
994
|
}),
|
|
991
995
|
_: 3
|
|
992
|
-
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) :
|
|
996
|
+
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : k("", !0)
|
|
993
997
|
], 64);
|
|
994
998
|
};
|
|
995
999
|
}
|
|
996
|
-
}), Et = { class: "flex items-center gap-1" }, Yt = { class: "text-nowrap" },
|
|
1000
|
+
}), Et = { class: "flex items-center gap-1" }, Yt = { class: "text-nowrap" }, ka = /* @__PURE__ */ C({
|
|
997
1001
|
__name: "index",
|
|
998
1002
|
props: {
|
|
999
1003
|
treeCtrl: {},
|
|
@@ -1045,48 +1049,48 @@ const ma = /* @__PURE__ */ k({
|
|
|
1045
1049
|
loading: e(r).isTreeLoading,
|
|
1046
1050
|
onSelect: s
|
|
1047
1051
|
}, e(t)), {
|
|
1048
|
-
title:
|
|
1052
|
+
title: _(({ key: i, label: m, icon: x }) => [
|
|
1049
1053
|
I(u.$slots, "title", {
|
|
1050
|
-
label:
|
|
1054
|
+
label: m,
|
|
1051
1055
|
key: i,
|
|
1052
1056
|
icon: x
|
|
1053
1057
|
}, () => [
|
|
1054
|
-
|
|
1058
|
+
T("div", Et, [
|
|
1055
1059
|
b(e(Y), { icon: x }, null, 8, ["icon"]),
|
|
1056
|
-
|
|
1060
|
+
T("span", Yt, D(m), 1)
|
|
1057
1061
|
])
|
|
1058
1062
|
])
|
|
1059
1063
|
]),
|
|
1060
1064
|
_: 3
|
|
1061
1065
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1062
1066
|
}
|
|
1063
|
-
}),
|
|
1067
|
+
}), Ca = /* @__PURE__ */ V(_t, [["__scopeId", "data-v-1e39ad49"]]), Lt = {
|
|
1064
1068
|
key: 0,
|
|
1065
1069
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1066
|
-
}, Rt = /* @__PURE__ */
|
|
1070
|
+
}, Rt = /* @__PURE__ */ C({
|
|
1067
1071
|
inheritAttrs: !1,
|
|
1068
1072
|
__name: "index",
|
|
1069
1073
|
props: We,
|
|
1070
1074
|
emits: ["change", "update:labels", "update:value"],
|
|
1071
1075
|
setup(v, { emit: o }) {
|
|
1072
|
-
var
|
|
1076
|
+
var m, x, S;
|
|
1073
1077
|
const a = v, t = W(), r = g({
|
|
1074
1078
|
...a.url,
|
|
1075
|
-
url: ((
|
|
1079
|
+
url: ((m = a.url) == null ? void 0 : m.url) || "",
|
|
1076
1080
|
fieldMap: a.fieldMap || ((x = a.url) == null ? void 0 : x.fieldMap),
|
|
1077
|
-
params: a.params || ((
|
|
1081
|
+
params: a.params || ((S = a.url) == null ? void 0 : S.params),
|
|
1078
1082
|
loadingText: !1
|
|
1079
1083
|
}), n = K(), { editorCtrl: c, errInfo: d, labelText: f } = n, s = g(t.placeholder);
|
|
1080
1084
|
$(
|
|
1081
1085
|
() => r.value.loading,
|
|
1082
|
-
(
|
|
1083
|
-
|
|
1086
|
+
(F) => {
|
|
1087
|
+
F ? s.value = "" : s.value || (s.value = "请选择" + f.value);
|
|
1084
1088
|
},
|
|
1085
1089
|
{ immediate: !0 }
|
|
1086
1090
|
);
|
|
1087
1091
|
const u = o;
|
|
1088
1092
|
n.inputEmit = u;
|
|
1089
|
-
const l = g([]), i = (
|
|
1093
|
+
const l = g([]), i = (F, y) => {
|
|
1090
1094
|
if (!y || y.length === 0) {
|
|
1091
1095
|
u("update:labels", []), u("update:value", []);
|
|
1092
1096
|
return;
|
|
@@ -1106,12 +1110,12 @@ const ma = /* @__PURE__ */ k({
|
|
|
1106
1110
|
}), $e(a.autoload, a, l, n, r.value, r.value.params);
|
|
1107
1111
|
}), xe(() => {
|
|
1108
1112
|
Se(a, n);
|
|
1109
|
-
}), (
|
|
1113
|
+
}), (F, y) => {
|
|
1110
1114
|
var A;
|
|
1111
1115
|
return p(), w("div", null, [
|
|
1112
|
-
l.value.length ?
|
|
1116
|
+
l.value.length ? k("", !0) : (p(), w("div", Lt, [
|
|
1113
1117
|
b(e(Je), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1114
|
-
y[0] || (y[0] =
|
|
1118
|
+
y[0] || (y[0] = T("span", null, "数据加载中...", -1))
|
|
1115
1119
|
])),
|
|
1116
1120
|
b(e(rt), B({
|
|
1117
1121
|
options: l.value,
|
|
@@ -1179,7 +1183,7 @@ const Ut = {
|
|
|
1179
1183
|
timePickerLocale: te({}, jt)
|
|
1180
1184
|
};
|
|
1181
1185
|
de.lang.ok = "确定";
|
|
1182
|
-
const Sa = /* @__PURE__ */
|
|
1186
|
+
const Sa = /* @__PURE__ */ C({
|
|
1183
1187
|
__name: "index",
|
|
1184
1188
|
props: {
|
|
1185
1189
|
valueFormat: {}
|
|
@@ -1199,7 +1203,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1199
1203
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1200
1204
|
};
|
|
1201
1205
|
}
|
|
1202
|
-
}), qt = /* @__PURE__ */
|
|
1206
|
+
}), qt = /* @__PURE__ */ C({
|
|
1203
1207
|
__name: "index",
|
|
1204
1208
|
props: {
|
|
1205
1209
|
value: {}
|
|
@@ -1230,11 +1234,11 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1230
1234
|
f.value === "" && (f.value = void 0);
|
|
1231
1235
|
};
|
|
1232
1236
|
return (u, l) => {
|
|
1233
|
-
var i,
|
|
1237
|
+
var i, m;
|
|
1234
1238
|
return p(), h(e(oe), B({
|
|
1235
1239
|
class: [
|
|
1236
1240
|
(i = e(r)) == null ? void 0 : i.errClass,
|
|
1237
|
-
((
|
|
1241
|
+
((m = e(r)) == null ? void 0 : m.errClass) === "error" && !u.$slots.addonBefore && !u.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
|
|
1238
1242
|
],
|
|
1239
1243
|
value: f.value,
|
|
1240
1244
|
"onUpdate:value": l[0] || (l[0] = (x) => f.value = x),
|
|
@@ -1246,14 +1250,14 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1246
1250
|
}, u.$attrs), ge({ _: 2 }, [
|
|
1247
1251
|
u.$slots.addonBefore ? {
|
|
1248
1252
|
name: "addonBefore",
|
|
1249
|
-
fn:
|
|
1253
|
+
fn: _(() => [
|
|
1250
1254
|
I(u.$slots, "addonBefore")
|
|
1251
1255
|
]),
|
|
1252
1256
|
key: "0"
|
|
1253
1257
|
} : void 0,
|
|
1254
1258
|
u.$slots.addonAfter ? {
|
|
1255
1259
|
name: "addonAfter",
|
|
1256
|
-
fn:
|
|
1260
|
+
fn: _(() => [
|
|
1257
1261
|
I(u.$slots, "addonAfter")
|
|
1258
1262
|
]),
|
|
1259
1263
|
key: "1"
|
|
@@ -1261,7 +1265,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1261
1265
|
]), 1040, ["class", "value", "placeholder"]);
|
|
1262
1266
|
};
|
|
1263
1267
|
}
|
|
1264
|
-
}), Qt = /* @__PURE__ */
|
|
1268
|
+
}), Qt = /* @__PURE__ */ C({
|
|
1265
1269
|
__name: "inputIcon",
|
|
1266
1270
|
props: {
|
|
1267
1271
|
value: {}
|
|
@@ -1285,7 +1289,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1285
1289
|
value: r.value,
|
|
1286
1290
|
"onUpdate:value": c[0] || (c[0] = (d) => r.value = d)
|
|
1287
1291
|
}, n.$attrs), {
|
|
1288
|
-
addonBefore:
|
|
1292
|
+
addonBefore: _(() => [
|
|
1289
1293
|
b(e(Y), {
|
|
1290
1294
|
class: "!w-4 !h-4",
|
|
1291
1295
|
icon: r.value
|
|
@@ -1294,7 +1298,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1294
1298
|
_: 1
|
|
1295
1299
|
}, 16, ["value"]));
|
|
1296
1300
|
}
|
|
1297
|
-
}), Ta = /* @__PURE__ */ V(Qt, [["__scopeId", "data-v-f7b3ed74"]]), Da = /* @__PURE__ */
|
|
1301
|
+
}), Ta = /* @__PURE__ */ V(Qt, [["__scopeId", "data-v-f7b3ed74"]]), Da = /* @__PURE__ */ C({
|
|
1298
1302
|
__name: "inputPassword",
|
|
1299
1303
|
setup(v) {
|
|
1300
1304
|
const { editorCtrl: o, labelText: a, errInfo: t } = K(), r = () => {
|
|
@@ -1311,7 +1315,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1311
1315
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1312
1316
|
};
|
|
1313
1317
|
}
|
|
1314
|
-
}), Ia = /* @__PURE__ */
|
|
1318
|
+
}), Ia = /* @__PURE__ */ C({
|
|
1315
1319
|
__name: "inputNumber",
|
|
1316
1320
|
setup(v) {
|
|
1317
1321
|
const { editorCtrl: o, labelText: a, errInfo: t } = K(), r = () => {
|
|
@@ -1327,7 +1331,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1327
1331
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1328
1332
|
};
|
|
1329
1333
|
}
|
|
1330
|
-
}), Vt = { class: "flex flex-col gap-2" }, Ht = { class: "w-[33%]" }, Wt = { class: "w-[64%]" }, Ba = /* @__PURE__ */
|
|
1334
|
+
}), Vt = { class: "flex flex-col gap-2" }, Ht = { class: "w-[33%]" }, Wt = { class: "w-[64%]" }, Ba = /* @__PURE__ */ C({
|
|
1331
1335
|
__name: "index",
|
|
1332
1336
|
props: {
|
|
1333
1337
|
value: {},
|
|
@@ -1361,45 +1365,45 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1361
1365
|
d();
|
|
1362
1366
|
};
|
|
1363
1367
|
return (u, l) => (p(), w("div", Vt, [
|
|
1364
|
-
(p(!0), w(
|
|
1368
|
+
(p(!0), w(M, null, L(r.value, (i) => (p(), w("div", {
|
|
1365
1369
|
key: i.id,
|
|
1366
1370
|
class: "flex items-center gap-2"
|
|
1367
1371
|
}, [
|
|
1368
|
-
|
|
1372
|
+
T("div", Ht, [
|
|
1369
1373
|
b(e(oe), {
|
|
1370
1374
|
value: i.field,
|
|
1371
|
-
"onUpdate:value": (
|
|
1375
|
+
"onUpdate:value": (m) => i.field = m,
|
|
1372
1376
|
title: i.field,
|
|
1373
1377
|
class: "w-full",
|
|
1374
1378
|
placeholder: u.labelHolder || "配置名",
|
|
1375
1379
|
onInput: s
|
|
1376
1380
|
}, null, 8, ["value", "onUpdate:value", "title", "placeholder"])
|
|
1377
1381
|
]),
|
|
1378
|
-
l[0] || (l[0] =
|
|
1379
|
-
|
|
1382
|
+
l[0] || (l[0] = T("div", { class: "w-[3%]" }, " = ", -1)),
|
|
1383
|
+
T("div", Wt, [
|
|
1380
1384
|
b(e(oe), {
|
|
1381
1385
|
value: i.value,
|
|
1382
|
-
"onUpdate:value": (
|
|
1386
|
+
"onUpdate:value": (m) => i.value = m,
|
|
1383
1387
|
placeholder: u.valueHolder,
|
|
1384
1388
|
onInput: s,
|
|
1385
1389
|
title: i.value
|
|
1386
1390
|
}, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
|
|
1387
1391
|
])
|
|
1388
1392
|
]))), 128)),
|
|
1389
|
-
b(e(
|
|
1393
|
+
b(e(Me), {
|
|
1390
1394
|
onClick: f,
|
|
1391
1395
|
class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
|
|
1392
1396
|
size: "small"
|
|
1393
1397
|
}, {
|
|
1394
|
-
default:
|
|
1395
|
-
|
|
1398
|
+
default: _(() => l[1] || (l[1] = [
|
|
1399
|
+
P(" 新增配置行 ")
|
|
1396
1400
|
])),
|
|
1397
1401
|
_: 1,
|
|
1398
1402
|
__: [1]
|
|
1399
1403
|
})
|
|
1400
1404
|
]));
|
|
1401
1405
|
}
|
|
1402
|
-
}), Jt = /* @__PURE__ */ V(gt, [["__scopeId", "data-v-f9b2ac3d"]]),
|
|
1406
|
+
}), Jt = /* @__PURE__ */ V(gt, [["__scopeId", "data-v-f9b2ac3d"]]), Fa = /* @__PURE__ */ C({
|
|
1403
1407
|
__name: "radioStatus",
|
|
1404
1408
|
props: {
|
|
1405
1409
|
/**
|
|
@@ -1433,7 +1437,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1433
1437
|
value: o.allValue || [0, 1]
|
|
1434
1438
|
}), (t, r) => (p(), h(Jt, { data: a.value }, null, 8, ["data"]));
|
|
1435
1439
|
}
|
|
1436
|
-
}),
|
|
1440
|
+
}), Pa = /* @__PURE__ */ C({
|
|
1437
1441
|
__name: "index",
|
|
1438
1442
|
props: {
|
|
1439
1443
|
startDate: {},
|
|
@@ -1469,7 +1473,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1469
1473
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1470
1474
|
};
|
|
1471
1475
|
}
|
|
1472
|
-
}),
|
|
1476
|
+
}), Ma = /* @__PURE__ */ V(xt, [["__scopeId", "data-v-bf782acb"]]), Na = /* @__PURE__ */ C({
|
|
1473
1477
|
__name: "index",
|
|
1474
1478
|
setup(v) {
|
|
1475
1479
|
const { editorCtrl: o, labelText: a, errInfo: t } = K(), r = () => {
|
|
@@ -1489,7 +1493,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1489
1493
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1490
1494
|
};
|
|
1491
1495
|
}
|
|
1492
|
-
}), Gt = /* @__PURE__ */
|
|
1496
|
+
}), Gt = /* @__PURE__ */ C({
|
|
1493
1497
|
__name: "index",
|
|
1494
1498
|
props: {
|
|
1495
1499
|
autoload: { type: Boolean },
|
|
@@ -1525,18 +1529,18 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1525
1529
|
}
|
|
1526
1530
|
}
|
|
1527
1531
|
}), (l, i) => {
|
|
1528
|
-
var
|
|
1532
|
+
var m;
|
|
1529
1533
|
return p(), h(e(dt), B({
|
|
1530
|
-
class: ((
|
|
1534
|
+
class: ((m = e(c)) == null ? void 0 : m.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1531
1535
|
placeholder: "请输入" + e(n),
|
|
1532
1536
|
targetKeys: s.value,
|
|
1533
1537
|
onChange: u
|
|
1534
1538
|
}, l.$attrs), {
|
|
1535
|
-
children:
|
|
1539
|
+
children: _(({ direction: x, disabled: S, filteredItems: F, onItemSelectAll: y, onItemSelect: A, selectedKeys: E }) => [
|
|
1536
1540
|
I(l.$slots, "children", {
|
|
1537
1541
|
direction: x,
|
|
1538
|
-
disabled:
|
|
1539
|
-
filteredItems:
|
|
1542
|
+
disabled: S,
|
|
1543
|
+
filteredItems: F,
|
|
1540
1544
|
onItemSelectAll: y,
|
|
1541
1545
|
onItemSelect: A,
|
|
1542
1546
|
selectedKeys: E
|
|
@@ -1546,7 +1550,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1546
1550
|
}, 16, ["class", "placeholder", "targetKeys"]);
|
|
1547
1551
|
};
|
|
1548
1552
|
}
|
|
1549
|
-
}), Oa = /* @__PURE__ */
|
|
1553
|
+
}), Oa = /* @__PURE__ */ C({
|
|
1550
1554
|
__name: "transferTable",
|
|
1551
1555
|
props: {
|
|
1552
1556
|
/**
|
|
@@ -1586,16 +1590,16 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1586
1590
|
}
|
|
1587
1591
|
), a.gridCtrl.autoload = !1, a.gridCtrl.remotePage = !1, a.gridCtrl.selectable = g(!0), a.gridCtrl.buttons = g([]), a.gridCtrl.tools = [];
|
|
1588
1592
|
const d = ({ disabled: s, selectedKeys: u, onItemSelectAll: l, onItemSelect: i }) => ({
|
|
1589
|
-
getCheckboxProps: (
|
|
1593
|
+
getCheckboxProps: (m) => ({
|
|
1590
1594
|
// 控制是否禁止
|
|
1591
|
-
disabled: s ||
|
|
1595
|
+
disabled: s || m.disabled
|
|
1592
1596
|
}),
|
|
1593
|
-
onSelectAll(
|
|
1594
|
-
const
|
|
1595
|
-
l(
|
|
1597
|
+
onSelectAll(m, x) {
|
|
1598
|
+
const S = x.filter((F) => !F.disabled).map(({ [c.value]: F }) => F);
|
|
1599
|
+
l(S, m);
|
|
1596
1600
|
},
|
|
1597
|
-
onSelect({ [c.value]:
|
|
1598
|
-
i(
|
|
1601
|
+
onSelect({ [c.value]: m }, x) {
|
|
1602
|
+
i(m, x);
|
|
1599
1603
|
},
|
|
1600
1604
|
selectedRowKeys: u
|
|
1601
1605
|
}), f = g([]);
|
|
@@ -1621,13 +1625,13 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1621
1625
|
"show-select-all": !1,
|
|
1622
1626
|
"show-search": !0,
|
|
1623
1627
|
"filter-option": (l, i) => {
|
|
1624
|
-
for (const
|
|
1625
|
-
if (i[
|
|
1628
|
+
for (const m of a.gridCtrl.columns.value)
|
|
1629
|
+
if (i[m.dataIndex].toString().indexOf(l) !== -1)
|
|
1626
1630
|
return !0;
|
|
1627
1631
|
return !1;
|
|
1628
1632
|
}
|
|
1629
1633
|
}, s.$attrs), {
|
|
1630
|
-
children:
|
|
1634
|
+
children: _(({ filteredItems: l, onItemSelectAll: i, onItemSelect: m, selectedKeys: x }) => [
|
|
1631
1635
|
b(e(Ne), {
|
|
1632
1636
|
columns: v.gridCtrl.columns.value,
|
|
1633
1637
|
"row-key": c.value,
|
|
@@ -1635,16 +1639,16 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1635
1639
|
disabled: !1,
|
|
1636
1640
|
selectedKeys: x,
|
|
1637
1641
|
onItemSelectAll: i,
|
|
1638
|
-
onItemSelect:
|
|
1642
|
+
onItemSelect: m
|
|
1639
1643
|
}),
|
|
1640
1644
|
bordered: !1,
|
|
1641
1645
|
size: "small",
|
|
1642
1646
|
"data-source": l,
|
|
1643
1647
|
scroll: { x: 300 },
|
|
1644
|
-
"custom-row": (
|
|
1648
|
+
"custom-row": (S) => ({
|
|
1645
1649
|
onClick: () => {
|
|
1646
|
-
const
|
|
1647
|
-
|
|
1650
|
+
const F = S[c.value];
|
|
1651
|
+
m(F, !x.includes(F));
|
|
1648
1652
|
}
|
|
1649
1653
|
})
|
|
1650
1654
|
}, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
|
|
@@ -1652,7 +1656,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1652
1656
|
_: 1
|
|
1653
1657
|
}, 16, ["data-source", "row-key", "value", "filter-option"]));
|
|
1654
1658
|
}
|
|
1655
|
-
}), Xt = /* @__PURE__ */
|
|
1659
|
+
}), Xt = /* @__PURE__ */ C({
|
|
1656
1660
|
__name: "index",
|
|
1657
1661
|
props: {
|
|
1658
1662
|
multiple: {
|
|
@@ -1696,9 +1700,9 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1696
1700
|
value: "Id"
|
|
1697
1701
|
}), t.data.value ? f.value = t.fieldMap ? ee(t.fieldMap, t.data.value) : t.data.value : a.treeCtrl.autoload && De(a.treeCtrl);
|
|
1698
1702
|
}), (l, i) => {
|
|
1699
|
-
var
|
|
1703
|
+
var m;
|
|
1700
1704
|
return p(), h(e(ct), B({
|
|
1701
|
-
class: [[(
|
|
1705
|
+
class: [[(m = e(n)) == null ? void 0 : m.errClass], "w-full"],
|
|
1702
1706
|
"tree-line": "",
|
|
1703
1707
|
multiple: v.multiple,
|
|
1704
1708
|
"tree-default-expanded-keys": ["-"],
|
|
@@ -1714,7 +1718,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1714
1718
|
}), za = /* @__PURE__ */ V(Xt, [["__scopeId", "data-v-64be74cc"]]), Zt = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, ea = { class: "flex w-full h-full min-h-full" }, ta = {
|
|
1715
1719
|
key: 0,
|
|
1716
1720
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
1717
|
-
}, aa = { class: "flex-1 h-full overflow-y-auto" }, Ka = /* @__PURE__ */
|
|
1721
|
+
}, aa = { class: "flex-1 h-full overflow-y-auto" }, Ka = /* @__PURE__ */ C({
|
|
1718
1722
|
__name: "index",
|
|
1719
1723
|
props: {
|
|
1720
1724
|
left: { type: Boolean }
|
|
@@ -1728,12 +1732,12 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1728
1732
|
backgroundColor: e(a).colorBgContainer
|
|
1729
1733
|
})
|
|
1730
1734
|
}, {
|
|
1731
|
-
default:
|
|
1732
|
-
|
|
1735
|
+
default: _(() => [
|
|
1736
|
+
T("div", ea, [
|
|
1733
1737
|
t.left ? (p(), w("div", ta, [
|
|
1734
1738
|
I(t.$slots, "left")
|
|
1735
|
-
])) :
|
|
1736
|
-
|
|
1739
|
+
])) : k("", !0),
|
|
1740
|
+
T("div", aa, [
|
|
1737
1741
|
I(t.$slots, "default")
|
|
1738
1742
|
])
|
|
1739
1743
|
])
|
|
@@ -1742,7 +1746,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1742
1746
|
}, 8, ["style"])
|
|
1743
1747
|
]));
|
|
1744
1748
|
}
|
|
1745
|
-
}), la = { class: "font-['Courier'] text-[#666]" }, Aa = /* @__PURE__ */
|
|
1749
|
+
}), la = { class: "font-['Courier'] text-[#666]" }, Aa = /* @__PURE__ */ C({
|
|
1746
1750
|
__name: "index",
|
|
1747
1751
|
setup(v) {
|
|
1748
1752
|
const o = g("");
|
|
@@ -1756,7 +1760,7 @@ const Sa = /* @__PURE__ */ k({
|
|
|
1756
1760
|
});
|
|
1757
1761
|
export {
|
|
1758
1762
|
qa as AppIcon,
|
|
1759
|
-
|
|
1763
|
+
Ca as AutoComplete,
|
|
1760
1764
|
Qa as Breadcrumb,
|
|
1761
1765
|
O as Button,
|
|
1762
1766
|
wa as Cascader,
|
|
@@ -1773,7 +1777,7 @@ export {
|
|
|
1773
1777
|
Ha as HeaderExits,
|
|
1774
1778
|
bt as Helper,
|
|
1775
1779
|
Wa as Icon,
|
|
1776
|
-
|
|
1780
|
+
Mt as Icontool,
|
|
1777
1781
|
qt as Input,
|
|
1778
1782
|
Ta as InputIcon,
|
|
1779
1783
|
Ia as InputNumber,
|
|
@@ -1784,21 +1788,21 @@ export {
|
|
|
1784
1788
|
Xa as ProjectIcon,
|
|
1785
1789
|
Ba as PropEditor,
|
|
1786
1790
|
Jt as Radio,
|
|
1787
|
-
|
|
1788
|
-
|
|
1791
|
+
Fa as RadioStatus,
|
|
1792
|
+
Pa as RangePicker,
|
|
1789
1793
|
ya as Search,
|
|
1790
1794
|
le as SearchItem,
|
|
1791
|
-
|
|
1795
|
+
Ma as Select,
|
|
1792
1796
|
At as Switch,
|
|
1793
1797
|
ba as Table,
|
|
1794
|
-
|
|
1798
|
+
Ft as TableOperate,
|
|
1795
1799
|
Na as Textarea,
|
|
1796
1800
|
Y as ToolIcon,
|
|
1797
1801
|
Kt as Toolbar,
|
|
1798
1802
|
Ua as Tooltip,
|
|
1799
1803
|
Gt as Transfer,
|
|
1800
1804
|
Oa as TransferTable,
|
|
1801
|
-
|
|
1805
|
+
ka as Tree,
|
|
1802
1806
|
za as TreeSelect,
|
|
1803
1807
|
el as UploadList
|
|
1804
1808
|
};
|