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