@jt-home/mfe-components 9.0.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package/globalInfo/index.cjs +1 -1
- package/dist/package/globalInfo/index.mjs +1 -1
- package/dist/package/index-C0I6Ft6Z.cjs +1 -0
- package/dist/package/{index-DImDpEoU.js → index-ENX8_eTS.js} +210 -188
- package/dist/package/index.cjs +2 -2
- package/dist/package/index.mjs +1825 -1410
- package/dist/package/style.css +1 -1
- package/dist/package/types/src/components/JtConfirmDialog/index.d.ts +1 -1
- package/dist/package/types/src/components/JtConfirmDialog/index.vue.d.ts +9 -1
- package/dist/package/types/src/components/JtConfirmDialog/types.d.ts +18 -1
- package/dist/package/types/src/components/JtDialog/index.vue.d.ts +9 -6
- package/dist/package/types/src/components/JtDialog/types.d.ts +6 -0
- package/dist/package/types/src/components/JtDrawer/index.vue.d.ts +5 -0
- package/dist/package/types/src/components/form/JtForm.vue.d.ts +24 -0
- package/dist/package/types/src/components/form/JtFormItem.vue.d.ts +114 -0
- package/dist/package/types/src/components/form/JtFormItems.vue.d.ts +33 -2
- package/dist/package/types/src/components/form/formChange.d.ts +5 -0
- package/dist/package/types/src/components/form/formControl.d.ts +5 -0
- package/dist/package/types/src/components/form/formOption.d.ts +18 -0
- package/dist/package/types/src/components/form/index.d.ts +6 -4
- package/dist/package/types/src/components/form/item/JtPersonSelect/index.d.ts +2 -0
- package/dist/package/types/src/components/form/item/JtPersonSelect/index.vue.d.ts +53 -0
- package/dist/package/types/src/components/form/item/JtPersonSelect/types.d.ts +21 -0
- package/dist/package/types/src/components/form/item/JtSearchSelect/index.vue.d.ts +4 -0
- package/dist/package/types/src/components/form/item/JtSearchSelect/types.d.ts +1 -0
- package/dist/package/types/src/components/form/item/index.d.ts +2 -0
- package/dist/package/types/src/components/form/types.d.ts +86 -5
- package/dist/package/types/src/components/index.d.ts +3 -2
- package/dist/package/types/src/components/table/JtCrudTable.vue.d.ts +2 -2
- package/dist/package/types/src/main.d.ts +2 -2
- package/package.json +1 -1
- package/dist/package/index-D9uUSmTc.cjs +0 -1
package/dist/package/index.mjs
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import { t as
|
|
3
|
-
import { getLocale as
|
|
4
|
-
import { ElCascader as
|
|
5
|
-
import { defineComponent as H, computed as m, ref as R, watch as pe, openBlock as c, createBlock as
|
|
6
|
-
import { cascaderEmits as
|
|
7
|
-
import { a as
|
|
8
|
-
import { b as
|
|
9
|
-
const
|
|
2
|
+
import { t as O } from "./locale/index.mjs";
|
|
3
|
+
import { getLocale as Ha, install as Ja, installLocale as Aa, normalizeLocale as Ra, resetLocale as Za, setLocale as Ka } from "./locale/index.mjs";
|
|
4
|
+
import { ElCascader as ut, ElSelect as Ne, ElOption as pt, ElFormItem as mt, ElForm as ft, ElTable as ht, ElTableColumn as vt, ElPagination as yt, ElLoadingDirective as gt, ElDropdown as Ct, ElDropdownMenu as _t, ElDropdownItem as bt, ElIcon as wt, ElTree as $t, ElDialog as Lt, ElDrawer as kt } from "element-plus/es";
|
|
5
|
+
import { defineComponent as H, computed as m, ref as R, watch as pe, openBlock as c, createBlock as z, mergeProps as A, mergeDefaults as xt, toHandlers as fe, withCtx as j, renderSlot as $, createVNode as q, unref as P, withModifiers as de, useAttrs as _e, onBeforeUnmount as Ve, createTextVNode as ee, toDisplayString as I, getCurrentInstance as jt, createElementBlock as w, Fragment as G, renderList as W, createElementVNode as T, createCommentVNode as J, normalizeClass as te, useSlots as he, normalizeStyle as ie, createSlots as ae, resolveDynamicComponent as Ie, nextTick as je, normalizeProps as le, guardReactiveProps as ne, camelize as He, useModel as ye, withDirectives as qe, mergeModels as me, shallowReactive as St, provide as Je, onMounted as Bt, inject as Ae, withKeys as Re } from "vue";
|
|
6
|
+
import { cascaderEmits as Tt, selectEmits as Le, ElSwitch as Et, ElInputNumber as Mt, useFormDisabled as Ge, ElOption as Qe, ElFormItem as Pt, ElForm as Vt, formProps as It, ClickOutside as Dt } from "element-plus";
|
|
7
|
+
import { a as ge, c as Xe, _ as K, d as Ot, o as De, p as Oe, J as re } from "./index-ENX8_eTS.js";
|
|
8
|
+
import { b as Wa, e as Na } from "./index-ENX8_eTS.js";
|
|
9
|
+
const Ft = {
|
|
10
10
|
// 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
|
|
11
11
|
options: () => [],
|
|
12
12
|
clearable: !0,
|
|
13
13
|
persistent: !0
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function Ze(l) {
|
|
16
16
|
return Object.fromEntries(
|
|
17
|
-
Object.entries(l).filter(([,
|
|
17
|
+
Object.entries(l).filter(([, o]) => o !== void 0)
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
const
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
)),
|
|
20
|
+
function zt(l) {
|
|
21
|
+
const o = Ze(l);
|
|
22
|
+
return o.props && (o.props = Ze(
|
|
23
|
+
o.props
|
|
24
|
+
)), o;
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const Ht = /* @__PURE__ */ H({
|
|
27
27
|
name: "JtCascader",
|
|
28
28
|
__name: "index",
|
|
29
|
-
props: /* @__PURE__ */
|
|
29
|
+
props: /* @__PURE__ */ xt({
|
|
30
30
|
size: {},
|
|
31
31
|
placeholder: {},
|
|
32
32
|
disabled: { type: Boolean },
|
|
@@ -64,66 +64,66 @@ const xt = /* @__PURE__ */ H({
|
|
|
64
64
|
emptyValues: {},
|
|
65
65
|
valueOnClear: { type: [String, Number, Boolean, Function, null] },
|
|
66
66
|
options: {}
|
|
67
|
-
},
|
|
68
|
-
emits:
|
|
69
|
-
setup(l, { emit:
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
if (!
|
|
73
|
-
const { placeholder:
|
|
74
|
-
return
|
|
75
|
-
}),
|
|
67
|
+
}, Ft),
|
|
68
|
+
emits: Tt,
|
|
69
|
+
setup(l, { emit: o }) {
|
|
70
|
+
const e = l, t = m(() => {
|
|
71
|
+
const b = zt(e);
|
|
72
|
+
if (!b.disabled) return b;
|
|
73
|
+
const { placeholder: p, ...r } = b;
|
|
74
|
+
return r;
|
|
75
|
+
}), s = R(e.modelValue);
|
|
76
76
|
pe(
|
|
77
|
-
() =>
|
|
78
|
-
(
|
|
79
|
-
|
|
77
|
+
() => e.modelValue,
|
|
78
|
+
(b) => {
|
|
79
|
+
s.value = b;
|
|
80
80
|
},
|
|
81
81
|
{ deep: !0 }
|
|
82
82
|
);
|
|
83
|
-
const
|
|
84
|
-
function
|
|
85
|
-
|
|
83
|
+
const n = o;
|
|
84
|
+
function i(b, ...p) {
|
|
85
|
+
n(b, ...p);
|
|
86
86
|
}
|
|
87
|
-
function f(
|
|
88
|
-
|
|
87
|
+
function f(b) {
|
|
88
|
+
s.value = b, i("update:modelValue", b);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
|
|
90
|
+
function a(b) {
|
|
91
|
+
i("change", b);
|
|
92
92
|
}
|
|
93
|
-
function u(
|
|
94
|
-
|
|
93
|
+
function u(b) {
|
|
94
|
+
i("focus", b);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
|
|
96
|
+
function g(b) {
|
|
97
|
+
i("blur", b);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
|
|
99
|
+
function C() {
|
|
100
|
+
i("clear");
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
|
|
102
|
+
function _(b) {
|
|
103
|
+
i("visibleChange", b);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
105
|
+
function B(b) {
|
|
106
|
+
i("expandChange", b);
|
|
107
107
|
}
|
|
108
|
-
function M(
|
|
109
|
-
|
|
108
|
+
function M(b) {
|
|
109
|
+
i("removeTag", b);
|
|
110
110
|
}
|
|
111
|
-
return (
|
|
112
|
-
const
|
|
113
|
-
return c(),
|
|
114
|
-
"model-value":
|
|
111
|
+
return (b, p) => {
|
|
112
|
+
const r = ut;
|
|
113
|
+
return c(), z(r, A({ class: "jt-cascader jt-form-control" }, t.value, {
|
|
114
|
+
"model-value": s.value,
|
|
115
115
|
"onUpdate:modelValue": f,
|
|
116
|
-
onChange:
|
|
116
|
+
onChange: a,
|
|
117
117
|
onFocus: u,
|
|
118
|
-
onBlur:
|
|
119
|
-
onClear:
|
|
120
|
-
onVisibleChange:
|
|
121
|
-
onExpandChange:
|
|
118
|
+
onBlur: g,
|
|
119
|
+
onClear: C,
|
|
120
|
+
onVisibleChange: _,
|
|
121
|
+
onExpandChange: B,
|
|
122
122
|
onRemoveTag: M
|
|
123
123
|
}), null, 16, ["model-value"]);
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
}),
|
|
126
|
+
}), Jt = /* @__PURE__ */ H({
|
|
127
127
|
name: "JtHeaderSearchSelect",
|
|
128
128
|
__name: "index",
|
|
129
129
|
props: {
|
|
@@ -183,143 +183,256 @@ const xt = /* @__PURE__ */ H({
|
|
|
183
183
|
props: {}
|
|
184
184
|
},
|
|
185
185
|
emits: {
|
|
186
|
-
|
|
186
|
+
...Le,
|
|
187
187
|
input: () => !0,
|
|
188
188
|
change: () => !0,
|
|
189
189
|
"update:headerQuery": (l) => typeof l == "string"
|
|
190
190
|
},
|
|
191
|
-
setup(l, { emit:
|
|
192
|
-
const
|
|
191
|
+
setup(l, { emit: o }) {
|
|
192
|
+
const e = l, t = o, s = R(""), n = R(e.headerQuery);
|
|
193
193
|
pe(
|
|
194
|
-
() =>
|
|
195
|
-
(
|
|
196
|
-
|
|
194
|
+
() => e.headerQuery,
|
|
195
|
+
(r) => {
|
|
196
|
+
n.value = r;
|
|
197
197
|
}
|
|
198
198
|
);
|
|
199
|
-
const
|
|
199
|
+
const i = m(() => {
|
|
200
200
|
const {
|
|
201
|
-
headerQuery:
|
|
201
|
+
headerQuery: r,
|
|
202
202
|
headerPlaceholder: h,
|
|
203
|
-
remoteMethod:
|
|
204
|
-
filterMethod:
|
|
205
|
-
placeholder:
|
|
206
|
-
popperClass:
|
|
207
|
-
...
|
|
208
|
-
} =
|
|
203
|
+
remoteMethod: S,
|
|
204
|
+
filterMethod: x,
|
|
205
|
+
placeholder: y,
|
|
206
|
+
popperClass: L,
|
|
207
|
+
...D
|
|
208
|
+
} = e;
|
|
209
209
|
return {
|
|
210
|
-
...
|
|
211
|
-
clearable:
|
|
212
|
-
filterable:
|
|
213
|
-
remote:
|
|
214
|
-
remoteMethod:
|
|
215
|
-
filterMethod:
|
|
216
|
-
placeholder:
|
|
217
|
-
popperClass: ["jt-header-search-select__popper",
|
|
210
|
+
...D,
|
|
211
|
+
clearable: e.clearable ?? !0,
|
|
212
|
+
filterable: e.filterable ?? !0,
|
|
213
|
+
remote: e.remote ?? !0,
|
|
214
|
+
remoteMethod: S ? g : void 0,
|
|
215
|
+
filterMethod: x ? C : void 0,
|
|
216
|
+
placeholder: y ?? O("common.请选择"),
|
|
217
|
+
popperClass: ["jt-header-search-select__popper", L].filter(Boolean).join(" ")
|
|
218
218
|
};
|
|
219
219
|
}), f = m(
|
|
220
|
-
() =>
|
|
221
|
-
),
|
|
220
|
+
() => e.headerPlaceholder ?? O("common.请输入")
|
|
221
|
+
), a = m(
|
|
222
222
|
() => Object.fromEntries(
|
|
223
|
-
Object.keys(
|
|
224
|
-
|
|
223
|
+
Object.keys(Le).map((r) => [
|
|
224
|
+
r,
|
|
225
225
|
(...h) => {
|
|
226
|
-
if (
|
|
227
|
-
|
|
226
|
+
if (r === "change") {
|
|
227
|
+
t("change", u());
|
|
228
228
|
return;
|
|
229
229
|
}
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
t(
|
|
231
|
+
r,
|
|
232
232
|
...h
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
235
|
])
|
|
236
236
|
)
|
|
237
237
|
);
|
|
238
|
-
function u(
|
|
239
|
-
return { query:
|
|
238
|
+
function u(r = n.value) {
|
|
239
|
+
return { query: s.value, headerQuery: r };
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
|
|
241
|
+
function g(r) {
|
|
242
|
+
_(r, e.remoteMethod);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
|
|
244
|
+
function C(r) {
|
|
245
|
+
_(r, e.filterMethod);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
|
|
249
|
-
const
|
|
250
|
-
|
|
247
|
+
function _(r, h) {
|
|
248
|
+
s.value = r;
|
|
249
|
+
const S = u();
|
|
250
|
+
t("input", S), h?.(S);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
const h = String(
|
|
254
|
-
|
|
252
|
+
function B(r) {
|
|
253
|
+
const h = String(r ?? "");
|
|
254
|
+
n.value = h, t("update:headerQuery", h);
|
|
255
255
|
}
|
|
256
|
-
function M(
|
|
257
|
-
const h = u(
|
|
258
|
-
|
|
256
|
+
function M(r) {
|
|
257
|
+
const h = u(r);
|
|
258
|
+
t("input", h), p(h);
|
|
259
259
|
}
|
|
260
|
-
function
|
|
261
|
-
const h = u(
|
|
262
|
-
|
|
260
|
+
function b(r) {
|
|
261
|
+
const h = u(r);
|
|
262
|
+
t("change", h), p(h);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
(
|
|
264
|
+
function p(r) {
|
|
265
|
+
(e.filterMethod ?? e.remoteMethod)?.(r);
|
|
266
266
|
}
|
|
267
|
-
return (
|
|
268
|
-
const
|
|
269
|
-
return c(),
|
|
267
|
+
return (r, h) => {
|
|
268
|
+
const S = Ne;
|
|
269
|
+
return c(), z(S, A({ class: "jt-header-search-select jt-form-control" }, i.value, fe(a.value)), {
|
|
270
270
|
header: j(() => [
|
|
271
|
-
|
|
271
|
+
q(P(ge), {
|
|
272
272
|
class: "jt-header-search-select__input",
|
|
273
|
-
"model-value":
|
|
274
|
-
disabled:
|
|
273
|
+
"model-value": n.value,
|
|
274
|
+
disabled: e.disabled,
|
|
275
275
|
placeholder: f.value,
|
|
276
|
-
"onUpdate:modelValue":
|
|
276
|
+
"onUpdate:modelValue": B,
|
|
277
277
|
onInput: M,
|
|
278
|
-
onChange:
|
|
279
|
-
onKeydown: h[0] || (h[0] =
|
|
278
|
+
onChange: b,
|
|
279
|
+
onKeydown: h[0] || (h[0] = de(() => {
|
|
280
280
|
}, ["stop"]))
|
|
281
281
|
}, null, 8, ["model-value", "disabled", "placeholder"])
|
|
282
282
|
]),
|
|
283
283
|
default: j(() => [
|
|
284
|
-
|
|
284
|
+
$(r.$slots, "default")
|
|
285
285
|
]),
|
|
286
286
|
_: 3
|
|
287
287
|
}, 16);
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
})
|
|
291
|
-
|
|
290
|
+
}), At = /* @__PURE__ */ H({
|
|
291
|
+
name: "JtPersonSelect",
|
|
292
|
+
inheritAttrs: !1,
|
|
293
|
+
__name: "index",
|
|
294
|
+
props: {
|
|
295
|
+
modelValue: {},
|
|
296
|
+
multiple: { type: Boolean, default: !1 },
|
|
297
|
+
requestMethod: {},
|
|
298
|
+
requestParams: { default: () => ({}) },
|
|
299
|
+
responsePaths: { default: () => ["data.list", "data", "result.list", "result"] },
|
|
300
|
+
labelKey: { default: "name" },
|
|
301
|
+
labelFormatter: {},
|
|
302
|
+
valueKey: { default: "emplId" },
|
|
303
|
+
debounce: { default: 300 }
|
|
304
|
+
},
|
|
305
|
+
emits: ["update:modelValue", "personChange", "loadError"],
|
|
306
|
+
setup(l, { expose: o, emit: e }) {
|
|
307
|
+
const t = l, s = e, n = _e(), i = (v) => v === !0 || v === "" || v === "true", f = m(
|
|
308
|
+
() => !!(t.multiple && (i(n.collapseTags) || i(n["collapse-tags"])))
|
|
309
|
+
), a = R([]), u = m(
|
|
310
|
+
() => a.value.map((v) => ({
|
|
311
|
+
value: b(v),
|
|
312
|
+
label: M(v),
|
|
313
|
+
__person: v
|
|
314
|
+
}))
|
|
315
|
+
), g = R(!1), C = /* @__PURE__ */ new Map();
|
|
316
|
+
let _, B = 0;
|
|
317
|
+
const M = (v) => t.labelFormatter?.(v) ?? String(v?.[t.labelKey] ?? ""), b = (v) => v?.[t.valueKey], p = (v) => v?.__person, r = () => {
|
|
318
|
+
B += 1, _ && (clearTimeout(_), _ = void 0), g.value = !1, a.value = [];
|
|
319
|
+
}, h = async (v, k) => {
|
|
320
|
+
g.value = !0;
|
|
321
|
+
try {
|
|
322
|
+
const F = await t.requestMethod({
|
|
323
|
+
searchText: v,
|
|
324
|
+
...t.requestParams
|
|
325
|
+
});
|
|
326
|
+
if (k !== B) return;
|
|
327
|
+
a.value = F?.code === 200 ? x(F) : [], a.value.forEach((Y) => {
|
|
328
|
+
const Q = b(Y);
|
|
329
|
+
Q !== void 0 && C.set(Q, Y);
|
|
330
|
+
});
|
|
331
|
+
} catch (F) {
|
|
332
|
+
k === B && (a.value = [], s("loadError", F));
|
|
333
|
+
} finally {
|
|
334
|
+
k === B && (g.value = !1);
|
|
335
|
+
}
|
|
336
|
+
}, S = (v, k) => k.split(".").reduce((F, Y) => F == null ? F : F[Y], v), x = (v) => {
|
|
337
|
+
for (const k of t.responsePaths) {
|
|
338
|
+
const F = S(v, k);
|
|
339
|
+
if (Array.isArray(F)) return F;
|
|
340
|
+
}
|
|
341
|
+
return [];
|
|
342
|
+
}, y = (v) => {
|
|
343
|
+
const k = v.trim();
|
|
344
|
+
if (!k) return;
|
|
345
|
+
r();
|
|
346
|
+
const F = ++B;
|
|
347
|
+
_ = setTimeout(
|
|
348
|
+
() => {
|
|
349
|
+
_ = void 0, h(k, F);
|
|
350
|
+
},
|
|
351
|
+
Math.max(0, t.debounce)
|
|
352
|
+
);
|
|
353
|
+
}, L = (v) => {
|
|
354
|
+
s("update:modelValue", v);
|
|
355
|
+
}, D = (v) => {
|
|
356
|
+
if (Array.isArray(v)) {
|
|
357
|
+
const F = new Set(v);
|
|
358
|
+
C.forEach((Y, Q) => {
|
|
359
|
+
F.has(Q) || C.delete(Q);
|
|
360
|
+
}), s(
|
|
361
|
+
"personChange",
|
|
362
|
+
v.flatMap((Y) => {
|
|
363
|
+
const Q = a.value.find(
|
|
364
|
+
(oe) => b(oe) === Y
|
|
365
|
+
) ?? C.get(Y);
|
|
366
|
+
return Q ? [Q] : [];
|
|
367
|
+
})
|
|
368
|
+
);
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
const k = a.value.find(
|
|
372
|
+
(F) => b(F) === v
|
|
373
|
+
) ?? (v == null ? void 0 : C.get(v));
|
|
374
|
+
C.clear(), k && v !== null && v !== void 0 && C.set(v, k), s("personChange", k);
|
|
375
|
+
};
|
|
376
|
+
return Ve(r), o({
|
|
377
|
+
clearOptions: r,
|
|
378
|
+
refresh: y
|
|
379
|
+
}), (v, k) => (c(), z(P(Xe), A(P(n), {
|
|
380
|
+
"model-value": v.modelValue,
|
|
381
|
+
multiple: v.multiple,
|
|
382
|
+
"collapse-tags-tooltip": f.value,
|
|
383
|
+
options: u.value,
|
|
384
|
+
filterable: "",
|
|
385
|
+
remote: "",
|
|
386
|
+
"remote-method": y,
|
|
387
|
+
loading: g.value,
|
|
388
|
+
"onUpdate:modelValue": L,
|
|
389
|
+
onChange: D,
|
|
390
|
+
onClear: r
|
|
391
|
+
}), {
|
|
392
|
+
option: j(({ option: F }) => [
|
|
393
|
+
$(v.$slots, "option", {
|
|
394
|
+
person: p(F)
|
|
395
|
+
}, () => [
|
|
396
|
+
ee(I(F.label), 1)
|
|
397
|
+
], !0)
|
|
398
|
+
]),
|
|
399
|
+
_: 3
|
|
400
|
+
}, 16, ["model-value", "multiple", "collapse-tags-tooltip", "options", "loading"]));
|
|
401
|
+
}
|
|
402
|
+
}), _a = /* @__PURE__ */ K(At, [["__scopeId", "data-v-f2e2a897"]]);
|
|
403
|
+
function Ye(l) {
|
|
292
404
|
return l.trim().toLocaleLowerCase();
|
|
293
405
|
}
|
|
294
|
-
function
|
|
295
|
-
const
|
|
296
|
-
return
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
...
|
|
300
|
-
].filter((
|
|
301
|
-
`).toLocaleLowerCase().includes(
|
|
406
|
+
function Ke(l, o) {
|
|
407
|
+
const e = Ye(o);
|
|
408
|
+
return e ? l.filter((t) => [
|
|
409
|
+
t.label,
|
|
410
|
+
t.description,
|
|
411
|
+
...t.keywords ?? []
|
|
412
|
+
].filter((n) => !!n).join(`
|
|
413
|
+
`).toLocaleLowerCase().includes(e)) : l;
|
|
302
414
|
}
|
|
303
|
-
function
|
|
304
|
-
const
|
|
305
|
-
if (!
|
|
306
|
-
const
|
|
307
|
-
let
|
|
308
|
-
for (;
|
|
309
|
-
|
|
310
|
-
const f =
|
|
311
|
-
|
|
415
|
+
function Rt(l, o) {
|
|
416
|
+
const e = Ye(o);
|
|
417
|
+
if (!e) return [{ text: l, matched: !1 }];
|
|
418
|
+
const t = l.toLocaleLowerCase(), s = [];
|
|
419
|
+
let n = 0, i = t.indexOf(e, n);
|
|
420
|
+
for (; i !== -1; ) {
|
|
421
|
+
i > n && s.push({ text: l.slice(n, i), matched: !1 });
|
|
422
|
+
const f = i + e.length;
|
|
423
|
+
s.push({ text: l.slice(i, f), matched: !0 }), n = f, i = t.indexOf(e, n);
|
|
312
424
|
}
|
|
313
|
-
return
|
|
425
|
+
return n < l.length && s.push({ text: l.slice(n), matched: !1 }), s.length ? s : [{ text: l, matched: !1 }];
|
|
314
426
|
}
|
|
315
|
-
const
|
|
427
|
+
const Zt = { class: "jt-search-select__option-title" }, Kt = { key: 0 }, Ut = { key: 1 }, Wt = {
|
|
316
428
|
key: 0,
|
|
317
429
|
class: "jt-search-select__option-description"
|
|
318
|
-
},
|
|
430
|
+
}, Nt = { key: 0 }, qt = { key: 1 }, Gt = /* @__PURE__ */ H({
|
|
319
431
|
name: "JtSearchSelect",
|
|
320
432
|
__name: "index",
|
|
321
433
|
props: {
|
|
322
434
|
options: { default: () => [] },
|
|
435
|
+
secondaryOptions: {},
|
|
323
436
|
secondaryPlaceholder: {},
|
|
324
437
|
ariaLabel: {},
|
|
325
438
|
emptyValues: {},
|
|
@@ -373,106 +486,115 @@ const jt = { class: "jt-search-select__option-title" }, Bt = { key: 0 }, St = {
|
|
|
373
486
|
props: {}
|
|
374
487
|
},
|
|
375
488
|
emits: {
|
|
376
|
-
|
|
377
|
-
search: (l) => typeof l == "string"
|
|
489
|
+
...Le,
|
|
490
|
+
search: (l) => typeof l == "string",
|
|
491
|
+
"secondary-search": (l) => typeof l == "string"
|
|
378
492
|
},
|
|
379
|
-
setup(l, { emit:
|
|
380
|
-
const
|
|
381
|
-
const
|
|
382
|
-
return Object.prototype.hasOwnProperty.call(
|
|
383
|
-
}),
|
|
493
|
+
setup(l, { emit: o }) {
|
|
494
|
+
const e = l, t = o, s = R(""), n = R(""), i = jt(), f = m(() => {
|
|
495
|
+
const r = i?.vnode.props ?? {};
|
|
496
|
+
return Object.prototype.hasOwnProperty.call(r, "collapseTagsTooltip") || Object.prototype.hasOwnProperty.call(r, "collapse-tags-tooltip");
|
|
497
|
+
}), a = m(() => {
|
|
384
498
|
const {
|
|
385
|
-
options:
|
|
386
|
-
secondaryPlaceholder:
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
499
|
+
options: r,
|
|
500
|
+
secondaryPlaceholder: h,
|
|
501
|
+
secondaryOptions: S,
|
|
502
|
+
remoteMethod: x,
|
|
503
|
+
popperClass: y,
|
|
504
|
+
placeholder: L,
|
|
505
|
+
teleported: D,
|
|
506
|
+
collapseTagsTooltip: v,
|
|
507
|
+
...k
|
|
508
|
+
} = e;
|
|
394
509
|
return {
|
|
395
|
-
...
|
|
396
|
-
filterable:
|
|
397
|
-
remote:
|
|
398
|
-
remoteMethod:
|
|
399
|
-
filterMethod:
|
|
400
|
-
placeholder:
|
|
401
|
-
teleported:
|
|
402
|
-
collapseTagsTooltip: f.value ?
|
|
403
|
-
popperClass: ["jt-search-select__popper",
|
|
510
|
+
...k,
|
|
511
|
+
filterable: e.filterable ?? !0,
|
|
512
|
+
remote: e.remote ?? !0,
|
|
513
|
+
remoteMethod: _,
|
|
514
|
+
filterMethod: _,
|
|
515
|
+
placeholder: L ?? O("common.请选择"),
|
|
516
|
+
teleported: D ?? !0,
|
|
517
|
+
collapseTagsTooltip: f.value ? v : !!e.collapseTags,
|
|
518
|
+
popperClass: ["jt-search-select__popper", y].filter(Boolean).join(" ")
|
|
404
519
|
};
|
|
405
520
|
}), u = m(() => {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
521
|
+
if (e.secondaryOptions !== void 0 && n.value.trim())
|
|
522
|
+
return e.secondaryOptions;
|
|
523
|
+
const r = Ke(
|
|
524
|
+
e.options,
|
|
525
|
+
s.value
|
|
409
526
|
);
|
|
410
|
-
return
|
|
411
|
-
|
|
412
|
-
|
|
527
|
+
return Ke(
|
|
528
|
+
r,
|
|
529
|
+
n.value
|
|
413
530
|
);
|
|
414
|
-
}),
|
|
415
|
-
() =>
|
|
416
|
-
),
|
|
417
|
-
Object.keys(
|
|
418
|
-
|
|
419
|
-
(...
|
|
531
|
+
}), g = m(
|
|
532
|
+
() => e.secondaryPlaceholder ?? O("common.请输入")
|
|
533
|
+
), C = m(() => Object.fromEntries(
|
|
534
|
+
Object.keys(Le).map((r) => [
|
|
535
|
+
r,
|
|
536
|
+
(...h) => t(r, ...h)
|
|
420
537
|
])
|
|
421
538
|
));
|
|
422
|
-
function
|
|
423
|
-
|
|
539
|
+
function _(r) {
|
|
540
|
+
s.value = r, p(), (e.remote ?? !0) && e.remoteMethod?.(r), t("search", r);
|
|
424
541
|
}
|
|
425
|
-
function
|
|
426
|
-
|
|
542
|
+
function B(r) {
|
|
543
|
+
n.value = String(r ?? ""), t("secondary-search", n.value.trim());
|
|
427
544
|
}
|
|
428
545
|
function M() {
|
|
429
|
-
|
|
546
|
+
B("");
|
|
547
|
+
}
|
|
548
|
+
function b(r) {
|
|
549
|
+
return Rt(r, n.value);
|
|
430
550
|
}
|
|
431
|
-
function p(
|
|
432
|
-
|
|
551
|
+
function p() {
|
|
552
|
+
n.value = "", t("secondary-search", "");
|
|
433
553
|
}
|
|
434
|
-
return (
|
|
435
|
-
const
|
|
436
|
-
return c(),
|
|
554
|
+
return (r, h) => {
|
|
555
|
+
const S = pt, x = Ne;
|
|
556
|
+
return c(), z(x, A({ class: "jt-search-select jt-form-control" }, a.value, fe(C.value)), {
|
|
437
557
|
header: j(() => [
|
|
438
|
-
|
|
439
|
-
keyword:
|
|
440
|
-
|
|
558
|
+
$(r.$slots, "header", {
|
|
559
|
+
keyword: n.value,
|
|
560
|
+
placeholder: g.value,
|
|
561
|
+
loading: !!e.loading,
|
|
562
|
+
setKeyword: B,
|
|
441
563
|
clearKeyword: M
|
|
442
564
|
}, () => [
|
|
443
|
-
|
|
565
|
+
q(P(ge), {
|
|
444
566
|
class: "jt-search-select__secondary-input",
|
|
445
|
-
"model-value":
|
|
446
|
-
placeholder:
|
|
447
|
-
"onUpdate:modelValue":
|
|
448
|
-
onKeydown:
|
|
567
|
+
"model-value": n.value,
|
|
568
|
+
placeholder: g.value,
|
|
569
|
+
"onUpdate:modelValue": B,
|
|
570
|
+
onKeydown: h[0] || (h[0] = de(() => {
|
|
449
571
|
}, ["stop"]))
|
|
450
572
|
}, null, 8, ["model-value", "placeholder"])
|
|
451
573
|
])
|
|
452
574
|
]),
|
|
453
575
|
default: j(() => [
|
|
454
|
-
(c(!0),
|
|
455
|
-
key:
|
|
456
|
-
label:
|
|
457
|
-
value:
|
|
458
|
-
disabled:
|
|
576
|
+
(c(!0), w(G, null, W(u.value, (y) => (c(), z(S, {
|
|
577
|
+
key: y.value,
|
|
578
|
+
label: y.label,
|
|
579
|
+
value: y.value,
|
|
580
|
+
disabled: y.disabled,
|
|
459
581
|
class: "jt-search-select__option"
|
|
460
582
|
}, {
|
|
461
583
|
default: j(() => [
|
|
462
|
-
|
|
463
|
-
(c(!0),
|
|
464
|
-
key: `${
|
|
584
|
+
T("div", Zt, [
|
|
585
|
+
(c(!0), w(G, null, W(b(y.label), (L, D) => (c(), w(G, {
|
|
586
|
+
key: `${y.value}-label-${D}`
|
|
465
587
|
}, [
|
|
466
|
-
|
|
588
|
+
L.matched ? (c(), w("mark", Kt, I(L.text), 1)) : (c(), w("span", Ut, I(L.text), 1))
|
|
467
589
|
], 64))), 128))
|
|
468
590
|
]),
|
|
469
|
-
|
|
470
|
-
(c(!0),
|
|
471
|
-
key: `${
|
|
591
|
+
y.description ? (c(), w("div", Wt, [
|
|
592
|
+
(c(!0), w(G, null, W(b(y.description), (L, D) => (c(), w(G, {
|
|
593
|
+
key: `${y.value}-description-${D}`
|
|
472
594
|
}, [
|
|
473
|
-
|
|
595
|
+
L.matched ? (c(), w("mark", Nt, I(L.text), 1)) : (c(), w("span", qt, I(L.text), 1))
|
|
474
596
|
], 64))), 128))
|
|
475
|
-
])) :
|
|
597
|
+
])) : J("", !0)
|
|
476
598
|
]),
|
|
477
599
|
_: 2
|
|
478
600
|
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
@@ -481,26 +603,145 @@ const jt = { class: "jt-search-select__option-title" }, Bt = { key: 0 }, St = {
|
|
|
481
603
|
}, 16);
|
|
482
604
|
};
|
|
483
605
|
}
|
|
484
|
-
})
|
|
485
|
-
|
|
486
|
-
|
|
606
|
+
}), Qt = ["aria-label"], Xt = ["data-jt-choice-card-index", "aria-checked", "aria-disabled", "disabled", "tabindex", "onClick", "onKeydown"], Yt = { class: "jt-choice-card__copy" }, e2 = { class: "jt-choice-card__label" }, t2 = {
|
|
607
|
+
key: 0,
|
|
608
|
+
class: "jt-choice-card__description"
|
|
609
|
+
}, a2 = /* @__PURE__ */ H({
|
|
610
|
+
name: "JtChoiceCardGroup",
|
|
611
|
+
__name: "index",
|
|
612
|
+
props: {
|
|
613
|
+
modelValue: {},
|
|
614
|
+
options: { default: () => [] },
|
|
615
|
+
ariaLabel: { default: O("common.卡片单选", "卡片单选") }
|
|
616
|
+
},
|
|
617
|
+
emits: ["update:modelValue", "change"],
|
|
618
|
+
setup(l, { emit: o }) {
|
|
619
|
+
const e = l, t = o, s = R(), n = m(
|
|
620
|
+
() => e.options.flatMap((u, g) => u.disabled ? [] : [g])
|
|
621
|
+
);
|
|
622
|
+
function i(u) {
|
|
623
|
+
u.disabled || u.value === e.modelValue || (t("update:modelValue", u.value), t("change", u.value, u));
|
|
624
|
+
}
|
|
625
|
+
function f(u, g) {
|
|
626
|
+
return u.disabled ? -1 : u.value === e.modelValue || e.modelValue === void 0 && g === n.value[0] ? 0 : -1;
|
|
627
|
+
}
|
|
628
|
+
function a(u, g, C) {
|
|
629
|
+
if (u.key === "Enter" || u.key === " ") {
|
|
630
|
+
u.preventDefault(), i(g);
|
|
631
|
+
return;
|
|
632
|
+
}
|
|
633
|
+
const B = {
|
|
634
|
+
ArrowRight: 1,
|
|
635
|
+
ArrowDown: 1,
|
|
636
|
+
ArrowLeft: -1,
|
|
637
|
+
ArrowUp: -1
|
|
638
|
+
}[u.key];
|
|
639
|
+
if (!B || n.value.length === 0) return;
|
|
640
|
+
u.preventDefault();
|
|
641
|
+
const b = (Math.max(n.value.indexOf(C), 0) + B + n.value.length) % n.value.length, p = n.value[b], r = e.options[p];
|
|
642
|
+
s.value?.querySelector(`[data-jt-choice-card-index="${p}"]`)?.focus(), r && i(r);
|
|
643
|
+
}
|
|
644
|
+
return (u, g) => (c(), w("div", {
|
|
645
|
+
ref_key: "groupRef",
|
|
646
|
+
ref: s,
|
|
647
|
+
class: "jt-choice-card-group",
|
|
648
|
+
role: "radiogroup",
|
|
649
|
+
"aria-label": e.ariaLabel
|
|
650
|
+
}, [
|
|
651
|
+
(c(!0), w(G, null, W(e.options, (C, _) => (c(), w("button", {
|
|
652
|
+
key: C.value,
|
|
653
|
+
class: te(["jt-choice-card", { "is-selected": C.value === e.modelValue }]),
|
|
654
|
+
type: "button",
|
|
655
|
+
role: "radio",
|
|
656
|
+
"data-jt-choice-card-index": _,
|
|
657
|
+
"aria-checked": C.value === e.modelValue ? "true" : "false",
|
|
658
|
+
"aria-disabled": C.disabled ? "true" : "false",
|
|
659
|
+
disabled: C.disabled,
|
|
660
|
+
tabindex: f(C, _),
|
|
661
|
+
onClick: (B) => i(C),
|
|
662
|
+
onKeydown: (B) => a(B, C, _)
|
|
663
|
+
}, [
|
|
664
|
+
$(u.$slots, "option", {
|
|
665
|
+
option: C,
|
|
666
|
+
selected: C.value === e.modelValue
|
|
667
|
+
}, () => [
|
|
668
|
+
T("span", Yt, [
|
|
669
|
+
T("span", e2, I(C.label), 1),
|
|
670
|
+
C.description ? (c(), w("span", t2, I(C.description), 1)) : J("", !0)
|
|
671
|
+
])
|
|
672
|
+
], !0)
|
|
673
|
+
], 42, Xt))), 128))
|
|
674
|
+
], 8, Qt));
|
|
675
|
+
}
|
|
676
|
+
}), o2 = /* @__PURE__ */ K(a2, [["__scopeId", "data-v-897eb9f2"]]), Ue = {
|
|
677
|
+
input: ge,
|
|
678
|
+
select: Xe,
|
|
679
|
+
cascader: Ht,
|
|
680
|
+
"date-picker": Ot,
|
|
681
|
+
"search-select": Gt,
|
|
682
|
+
"header-search-select": Jt,
|
|
683
|
+
"choice-card-group": o2,
|
|
684
|
+
"input-number": Mt,
|
|
685
|
+
switch: Et
|
|
686
|
+
}, l2 = {
|
|
687
|
+
"remote-select": "select",
|
|
688
|
+
date: "date-picker",
|
|
689
|
+
daterange: "date-picker",
|
|
690
|
+
"date-range": "date-picker",
|
|
691
|
+
dateRange: "date-picker"
|
|
692
|
+
}, n2 = /* @__PURE__ */ new Set([
|
|
693
|
+
"prop",
|
|
694
|
+
"label",
|
|
695
|
+
"itemType",
|
|
696
|
+
"span",
|
|
697
|
+
"rules",
|
|
698
|
+
"formItemProps",
|
|
699
|
+
"showSlot",
|
|
700
|
+
"show",
|
|
701
|
+
"componentProps",
|
|
702
|
+
"modelValue",
|
|
703
|
+
"model-value"
|
|
704
|
+
]);
|
|
705
|
+
function et(l) {
|
|
706
|
+
if (!l) return ge;
|
|
707
|
+
if (typeof l != "string") return l;
|
|
708
|
+
const o = Ue[l2[l] ?? l];
|
|
709
|
+
return o || (console.error(`[JtForm] 不支持的 itemType: "${l}",支持的类型: ${Object.keys(Ue).join(", ")}`), ge);
|
|
487
710
|
}
|
|
488
|
-
function
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
const t = Object.keys(l), e = Object.keys(a);
|
|
496
|
-
return t.length === e.length && t.every((i) => Object.prototype.hasOwnProperty.call(a, i) && Te(l[i], a[i]));
|
|
711
|
+
function tt(l) {
|
|
712
|
+
const o = ["daterange", "date-range", "dateRange"].includes(l.itemType), e = {
|
|
713
|
+
...Object.fromEntries(Object.entries(l).filter(([t]) => !n2.has(t))),
|
|
714
|
+
...o ? { type: "daterange" } : {},
|
|
715
|
+
...l.componentProps
|
|
716
|
+
};
|
|
717
|
+
return Object.fromEntries(Object.entries(e).filter(([t]) => t !== "modelValue" && t !== "model-value"));
|
|
497
718
|
}
|
|
498
|
-
function
|
|
719
|
+
function at(l, o = !1) {
|
|
720
|
+
const e = De(tt(l));
|
|
721
|
+
return l.itemType === "choice-card-group" && (o || e.disabled) && (e.options = (e.options ?? []).map((t) => ({ ...t, disabled: !0 }))), e;
|
|
722
|
+
}
|
|
723
|
+
function ot(l) {
|
|
724
|
+
return Oe(tt(l));
|
|
725
|
+
}
|
|
726
|
+
function s2(l, o, e) {
|
|
727
|
+
return l.some(({ prop: t }) => !ke(o[t], e[t]));
|
|
728
|
+
}
|
|
729
|
+
function ke(l, o) {
|
|
730
|
+
if (Object.is(l, o)) return !0;
|
|
731
|
+
if (l instanceof Date || o instanceof Date)
|
|
732
|
+
return l instanceof Date && o instanceof Date && Object.is(l.getTime(), o.getTime());
|
|
733
|
+
if (Array.isArray(l) || Array.isArray(o))
|
|
734
|
+
return Array.isArray(l) && Array.isArray(o) && l.length === o.length && l.every((s, n) => ke(s, o[n]));
|
|
735
|
+
if (!We(l) || !We(o)) return !1;
|
|
736
|
+
const e = Object.keys(l), t = Object.keys(o);
|
|
737
|
+
return e.length === t.length && e.every((s) => Object.prototype.hasOwnProperty.call(o, s) && ke(l[s], o[s]));
|
|
738
|
+
}
|
|
739
|
+
function We(l) {
|
|
499
740
|
if (l === null || typeof l != "object") return !1;
|
|
500
|
-
const
|
|
501
|
-
return
|
|
741
|
+
const o = Object.getPrototypeOf(l);
|
|
742
|
+
return o === Object.prototype || o === null;
|
|
502
743
|
}
|
|
503
|
-
const
|
|
744
|
+
const r2 = /* @__PURE__ */ H({
|
|
504
745
|
name: "JTFormItems",
|
|
505
746
|
__name: "JtFormItems",
|
|
506
747
|
props: {
|
|
@@ -509,142 +750,377 @@ const It = /* @__PURE__ */ H({
|
|
|
509
750
|
gridColumns: {},
|
|
510
751
|
span: {}
|
|
511
752
|
},
|
|
512
|
-
setup(l, { expose:
|
|
513
|
-
const
|
|
514
|
-
function
|
|
515
|
-
return
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
const
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
}, r = {
|
|
524
|
-
"remote-select": "select",
|
|
525
|
-
date: "date-picker",
|
|
526
|
-
daterange: "date-picker",
|
|
527
|
-
"date-range": "date-picker",
|
|
528
|
-
dateRange: "date-picker"
|
|
529
|
-
}, f = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), n = Object.keys(o), u = /* @__PURE__ */ new Map(), _ = m(() => e.configs.filter((L) => L.show !== !1)), b = (L) => {
|
|
530
|
-
const { itemType: $ } = L;
|
|
531
|
-
if (!$) return ye;
|
|
532
|
-
if (typeof $ != "string") return $;
|
|
533
|
-
const W = r[$] ?? $;
|
|
534
|
-
return n.includes(W) ? o[W] : (console.error(
|
|
535
|
-
`[JtFormItems] 不支持的 itemType: "${$}",支持的类型: ${n.join(", ")}`
|
|
536
|
-
), ye);
|
|
537
|
-
}, v = (L) => {
|
|
538
|
-
const $ = Ee(L, f);
|
|
539
|
-
return L.itemType === "select" || L.itemType === "remote-select" || L.itemType === "cascader" ? {
|
|
540
|
-
...$,
|
|
541
|
-
options: L.options
|
|
542
|
-
} : O(L.itemType) ? {
|
|
543
|
-
...$,
|
|
544
|
-
type: "daterange"
|
|
545
|
-
} : $;
|
|
546
|
-
}, S = (L) => Ve(L, f), M = (L) => ({
|
|
547
|
-
rules: L.rules,
|
|
548
|
-
...L.formItemProps
|
|
549
|
-
}), p = (L, $) => {
|
|
550
|
-
e.formData[L] = $;
|
|
753
|
+
setup(l, { expose: o }) {
|
|
754
|
+
const e = he(), t = l;
|
|
755
|
+
function s(y) {
|
|
756
|
+
return s2(t.configs, t.formData, y);
|
|
757
|
+
}
|
|
758
|
+
o({ hasChanges: s });
|
|
759
|
+
const n = Ge(), i = /* @__PURE__ */ new Map(), f = m(() => t.configs.filter((y) => y.show !== !1)), a = (y) => et(y.itemType), u = (y) => at(y, n.value), g = (y) => ot(y), C = (y) => u(y).options ?? [], _ = (y) => ({
|
|
760
|
+
rules: y.rules,
|
|
761
|
+
...y.formItemProps
|
|
762
|
+
}), B = (y, L) => {
|
|
763
|
+
t.formData[y] = L;
|
|
551
764
|
};
|
|
552
|
-
function
|
|
553
|
-
return (
|
|
554
|
-
if (
|
|
555
|
-
|
|
765
|
+
function M(y) {
|
|
766
|
+
return (L) => {
|
|
767
|
+
if (L) {
|
|
768
|
+
i.set(y, L);
|
|
556
769
|
return;
|
|
557
770
|
}
|
|
558
|
-
|
|
771
|
+
i.delete(y);
|
|
559
772
|
};
|
|
560
773
|
}
|
|
561
|
-
function
|
|
562
|
-
|
|
563
|
-
|
|
774
|
+
function b(y, L) {
|
|
775
|
+
je(() => {
|
|
776
|
+
i.get(y)?.validate(L).catch(() => {
|
|
564
777
|
});
|
|
565
778
|
});
|
|
566
779
|
}
|
|
567
|
-
const
|
|
568
|
-
const
|
|
569
|
-
(
|
|
780
|
+
const p = (y) => Math.min(Math.max(Math.trunc(y || 4), 1), 24), r = m(() => p(t.gridColumns)), h = (y) => Math.min(Math.max(Math.trunc(y || 1), 1), r.value), S = m(() => {
|
|
781
|
+
const L = f.value.reduce(
|
|
782
|
+
(D, v) => D + h(t.span || v.span),
|
|
570
783
|
0
|
|
571
|
-
) %
|
|
572
|
-
return
|
|
573
|
-
gridColumn: `1 / span ${
|
|
784
|
+
) % r.value;
|
|
785
|
+
return L === 0 ? {
|
|
786
|
+
gridColumn: `1 / span ${r.value}`
|
|
574
787
|
} : {
|
|
575
|
-
gridColumn: `${
|
|
788
|
+
gridColumn: `${L + 1} / span ${r.value - L}`
|
|
576
789
|
};
|
|
577
|
-
}),
|
|
578
|
-
gridColumn: `span ${
|
|
790
|
+
}), x = (y) => ({
|
|
791
|
+
gridColumn: `span ${h(t.span || y.span)}`
|
|
579
792
|
});
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
return (L, $) => {
|
|
584
|
-
const W = at;
|
|
585
|
-
return c(), y("div", {
|
|
793
|
+
return (y, L) => {
|
|
794
|
+
const D = mt;
|
|
795
|
+
return c(), w("div", {
|
|
586
796
|
class: "jt-form-items",
|
|
587
|
-
style:
|
|
797
|
+
style: ie({ "--jt-form-columns": r.value })
|
|
588
798
|
}, [
|
|
589
|
-
(c(!0),
|
|
590
|
-
key:
|
|
799
|
+
(c(!0), w(G, null, W(f.value, (v) => (c(), z(D, A({
|
|
800
|
+
key: v.prop,
|
|
591
801
|
ref_for: !0,
|
|
592
|
-
ref:
|
|
802
|
+
ref: M(v.prop),
|
|
593
803
|
class: "jt-form-items__item",
|
|
594
|
-
style:
|
|
595
|
-
label:
|
|
596
|
-
prop:
|
|
597
|
-
},
|
|
804
|
+
style: x(v),
|
|
805
|
+
label: v.label,
|
|
806
|
+
prop: v.prop
|
|
807
|
+
}, _(v)), ae({
|
|
598
808
|
default: j(() => [
|
|
599
|
-
|
|
809
|
+
v.showSlot ? $(y.$slots, v.prop, { key: 0 }, void 0, !0) : (c(), z(Ie(a(v)), A({
|
|
600
810
|
key: 1,
|
|
601
|
-
"model-value": L.formData[F.prop],
|
|
602
811
|
ref_for: !0
|
|
603
|
-
}, v
|
|
604
|
-
"
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
812
|
+
}, u(v), {
|
|
813
|
+
"model-value": y.formData[v.prop]
|
|
814
|
+
}, fe(g(v)), {
|
|
815
|
+
"onUpdate:modelValue": (k) => B(v.prop, k),
|
|
816
|
+
onChange: () => b(v.prop, "change"),
|
|
817
|
+
onBlur: () => b(v.prop, "blur")
|
|
818
|
+
}), ae({ _: 2 }, [
|
|
819
|
+
v.itemType === "header-search-select" ? {
|
|
820
|
+
name: "default",
|
|
821
|
+
fn: j(() => [
|
|
822
|
+
(c(!0), w(G, null, W(C(v), (k) => (c(), z(P(Qe), A({
|
|
823
|
+
key: k.value,
|
|
824
|
+
ref_for: !0
|
|
825
|
+
}, k), {
|
|
826
|
+
default: j(() => [
|
|
827
|
+
$(y.$slots, v.prop + "-option", { option: k }, () => [
|
|
828
|
+
ee(I(k.label), 1)
|
|
829
|
+
], !0)
|
|
830
|
+
]),
|
|
831
|
+
_: 2
|
|
832
|
+
}, 1040))), 128))
|
|
833
|
+
]),
|
|
834
|
+
key: "0"
|
|
835
|
+
} : void 0,
|
|
836
|
+
v.itemType !== "header-search-select" && P(e)[v.prop + "-option"] ? {
|
|
837
|
+
name: "option",
|
|
838
|
+
fn: j((k) => [
|
|
839
|
+
$(y.$slots, v.prop + "-option", A({ ref_for: !0 }, k), void 0, !0)
|
|
840
|
+
]),
|
|
841
|
+
key: "1"
|
|
842
|
+
} : void 0,
|
|
843
|
+
P(e)[v.prop + "-header"] ? {
|
|
844
|
+
name: "header",
|
|
845
|
+
fn: j((k) => [
|
|
846
|
+
$(y.$slots, v.prop + "-header", A({ ref_for: !0 }, k), void 0, !0)
|
|
847
|
+
]),
|
|
848
|
+
key: "2"
|
|
849
|
+
} : void 0
|
|
850
|
+
]), 1040, ["model-value", "onUpdate:modelValue", "onChange", "onBlur"]))
|
|
608
851
|
]),
|
|
609
852
|
_: 2
|
|
610
853
|
}, [
|
|
611
|
-
P(
|
|
854
|
+
P(e)[`${v.prop}-label`] ? {
|
|
612
855
|
name: "label",
|
|
613
|
-
fn: j((
|
|
614
|
-
|
|
856
|
+
fn: j((k) => [
|
|
857
|
+
$(y.$slots, `${v.prop}-label`, A({ ref_for: !0 }, k), void 0, !0)
|
|
615
858
|
]),
|
|
616
859
|
key: "0"
|
|
617
860
|
} : void 0
|
|
618
861
|
]), 1040, ["style", "label", "prop"]))), 128)),
|
|
619
|
-
|
|
862
|
+
y.$slots.actions ? (c(), z(D, {
|
|
620
863
|
key: 0,
|
|
621
864
|
class: "jt-form-items__actions",
|
|
622
|
-
style:
|
|
865
|
+
style: ie(S.value)
|
|
623
866
|
}, {
|
|
624
867
|
default: j(() => [
|
|
625
|
-
|
|
868
|
+
$(y.$slots, "actions", {}, void 0, !0)
|
|
626
869
|
]),
|
|
627
870
|
_: 3
|
|
628
|
-
}, 8, ["style"])) :
|
|
871
|
+
}, 8, ["style"])) : J("", !0)
|
|
629
872
|
], 4);
|
|
630
873
|
};
|
|
631
874
|
}
|
|
632
|
-
}),
|
|
633
|
-
function
|
|
875
|
+
}), lt = /* @__PURE__ */ K(r2, [["__scopeId", "data-v-2ad201d8"]]);
|
|
876
|
+
function xe(l, o) {
|
|
877
|
+
return o ? (l ?? []).map((e) => {
|
|
878
|
+
const t = e[o.children ?? "children"];
|
|
879
|
+
return {
|
|
880
|
+
...e,
|
|
881
|
+
...o.label ? { label: e[o.label] } : {},
|
|
882
|
+
...o.value ? { value: e[o.value] } : {},
|
|
883
|
+
...o.disabled ? { disabled: e[o.disabled] } : {},
|
|
884
|
+
...Array.isArray(t) ? {
|
|
885
|
+
children: xe(
|
|
886
|
+
t,
|
|
887
|
+
o
|
|
888
|
+
)
|
|
889
|
+
} : {}
|
|
890
|
+
};
|
|
891
|
+
}) : l ?? [];
|
|
892
|
+
}
|
|
893
|
+
function i2(l = []) {
|
|
894
|
+
return l.map(({ type: o = "input", dicData: e, props: t, optionProps: s, ...n }) => {
|
|
895
|
+
const i = e !== void 0, f = i ? e : n.componentProps && "options" in n.componentProps ? n.componentProps.options : n.options;
|
|
896
|
+
if (!i && (!s || f === void 0))
|
|
897
|
+
return { ...n, itemType: o };
|
|
898
|
+
const a = xe(
|
|
899
|
+
f,
|
|
900
|
+
i ? t : s
|
|
901
|
+
);
|
|
902
|
+
return {
|
|
903
|
+
...n,
|
|
904
|
+
itemType: o,
|
|
905
|
+
options: a,
|
|
906
|
+
...n.componentProps ? { componentProps: { ...n.componentProps, options: a } } : {}
|
|
907
|
+
};
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
const ba = /* @__PURE__ */ H({
|
|
911
|
+
name: "JtFormItem",
|
|
912
|
+
inheritAttrs: !1,
|
|
913
|
+
__name: "JtFormItem",
|
|
914
|
+
props: {
|
|
915
|
+
formData: Object,
|
|
916
|
+
prop: {
|
|
917
|
+
type: String,
|
|
918
|
+
required: !0
|
|
919
|
+
},
|
|
920
|
+
label: {
|
|
921
|
+
type: String,
|
|
922
|
+
required: !0
|
|
923
|
+
},
|
|
924
|
+
itemType: [String, Object, Function],
|
|
925
|
+
/** 统一字典入口;props 映射字段,默认使用 label/value。 */
|
|
926
|
+
dicData: Array,
|
|
927
|
+
// 未传 dicData 时保留原生 props 透传,兼容旧级联用法。
|
|
928
|
+
props: Object,
|
|
929
|
+
options: Array,
|
|
930
|
+
/** 控件原生属性,保留顶层透传并允许显式覆盖。 */
|
|
931
|
+
componentProps: Object,
|
|
932
|
+
optionProps: Object,
|
|
933
|
+
rules: [Object, Array],
|
|
934
|
+
formItemProps: Object,
|
|
935
|
+
span: Number,
|
|
936
|
+
show: {
|
|
937
|
+
type: Boolean,
|
|
938
|
+
default: !0
|
|
939
|
+
},
|
|
940
|
+
showSlot: Boolean
|
|
941
|
+
},
|
|
942
|
+
setup(l, { expose: o }) {
|
|
943
|
+
const e = l, t = _e(), s = R(), n = Ge(), i = m(() => et(e.itemType)), f = m(() => ({
|
|
944
|
+
rules: e.rules,
|
|
945
|
+
...e.formItemProps
|
|
946
|
+
})), a = m(() => {
|
|
947
|
+
const r = { ...t, itemType: e.itemType, componentProps: e.componentProps };
|
|
948
|
+
if (e.dicData !== void 0) {
|
|
949
|
+
const x = xe(
|
|
950
|
+
e.dicData,
|
|
951
|
+
e.props
|
|
952
|
+
);
|
|
953
|
+
return {
|
|
954
|
+
...r,
|
|
955
|
+
options: x,
|
|
956
|
+
...e.componentProps ? { componentProps: { ...e.componentProps, options: x } } : {}
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
const h = e.componentProps && "options" in e.componentProps ? e.componentProps.options : e.options;
|
|
960
|
+
if (h === void 0) return { ...r, props: e.props };
|
|
961
|
+
const S = xe(
|
|
962
|
+
h,
|
|
963
|
+
e.optionProps
|
|
964
|
+
);
|
|
965
|
+
return {
|
|
966
|
+
...r,
|
|
967
|
+
props: e.props,
|
|
968
|
+
options: S,
|
|
969
|
+
...e.componentProps ? { componentProps: { ...e.componentProps, options: S } } : {}
|
|
970
|
+
};
|
|
971
|
+
}), u = m(() => at(a.value, n.value)), g = m(() => ot(a.value)), C = m(() => u.value.options ?? []);
|
|
972
|
+
function _(r) {
|
|
973
|
+
e.formData && (e.formData[e.prop] = r);
|
|
974
|
+
}
|
|
975
|
+
function B(r) {
|
|
976
|
+
je(() => {
|
|
977
|
+
s.value?.validate(r).catch(() => {
|
|
978
|
+
});
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
function M(...r) {
|
|
982
|
+
return s.value?.validate(...r);
|
|
983
|
+
}
|
|
984
|
+
function b() {
|
|
985
|
+
s.value?.resetField();
|
|
986
|
+
}
|
|
987
|
+
function p() {
|
|
988
|
+
s.value?.clearValidate();
|
|
989
|
+
}
|
|
990
|
+
return o({ validate: M, resetField: b, clearValidate: p }), (r, h) => l.show ? (c(), z(P(Pt), A({
|
|
991
|
+
key: 0,
|
|
992
|
+
ref_key: "formItemRef",
|
|
993
|
+
ref: s,
|
|
994
|
+
label: l.label,
|
|
995
|
+
prop: l.prop
|
|
996
|
+
}, f.value), ae({
|
|
997
|
+
default: j(() => [
|
|
998
|
+
r.$slots.default ? $(r.$slots, "default", { key: 0 }) : (c(), z(Ie(i.value), A({ key: 1 }, u.value, {
|
|
999
|
+
"model-value": l.formData?.[l.prop]
|
|
1000
|
+
}, fe(g.value), {
|
|
1001
|
+
"onUpdate:modelValue": _,
|
|
1002
|
+
onChange: h[0] || (h[0] = (S) => B("change")),
|
|
1003
|
+
onBlur: h[1] || (h[1] = (S) => B("blur"))
|
|
1004
|
+
}), ae({ _: 2 }, [
|
|
1005
|
+
l.itemType === "header-search-select" ? {
|
|
1006
|
+
name: "default",
|
|
1007
|
+
fn: j(() => [
|
|
1008
|
+
(c(!0), w(G, null, W(C.value, (S) => (c(), z(P(Qe), A({
|
|
1009
|
+
key: S.value,
|
|
1010
|
+
ref_for: !0
|
|
1011
|
+
}, S), {
|
|
1012
|
+
default: j(() => [
|
|
1013
|
+
$(r.$slots, "option", { option: S }, () => [
|
|
1014
|
+
ee(I(S.label), 1)
|
|
1015
|
+
])
|
|
1016
|
+
]),
|
|
1017
|
+
_: 2
|
|
1018
|
+
}, 1040))), 128))
|
|
1019
|
+
]),
|
|
1020
|
+
key: "0"
|
|
1021
|
+
} : void 0,
|
|
1022
|
+
l.itemType !== "header-search-select" && r.$slots.option ? {
|
|
1023
|
+
name: "option",
|
|
1024
|
+
fn: j((S) => [
|
|
1025
|
+
$(r.$slots, "option", le(ne(S)))
|
|
1026
|
+
]),
|
|
1027
|
+
key: "1"
|
|
1028
|
+
} : void 0,
|
|
1029
|
+
r.$slots.header ? {
|
|
1030
|
+
name: "header",
|
|
1031
|
+
fn: j((S) => [
|
|
1032
|
+
$(r.$slots, "header", le(ne(S)))
|
|
1033
|
+
]),
|
|
1034
|
+
key: "2"
|
|
1035
|
+
} : void 0
|
|
1036
|
+
]), 1040, ["model-value"]))
|
|
1037
|
+
]),
|
|
1038
|
+
_: 2
|
|
1039
|
+
}, [
|
|
1040
|
+
r.$slots.label ? {
|
|
1041
|
+
name: "label",
|
|
1042
|
+
fn: j((S) => [
|
|
1043
|
+
$(r.$slots, "label", le(ne(S)))
|
|
1044
|
+
]),
|
|
1045
|
+
key: "0"
|
|
1046
|
+
} : void 0
|
|
1047
|
+
]), 1040, ["label", "prop"])) : J("", !0);
|
|
1048
|
+
}
|
|
1049
|
+
}), wa = /* @__PURE__ */ H({
|
|
1050
|
+
name: "JtForm",
|
|
1051
|
+
inheritAttrs: !1,
|
|
1052
|
+
__name: "JtForm",
|
|
1053
|
+
props: {
|
|
1054
|
+
model: {},
|
|
1055
|
+
option: {}
|
|
1056
|
+
},
|
|
1057
|
+
setup(l, { expose: o }) {
|
|
1058
|
+
const e = l, t = _e(), s = R(), n = m(() => i2(e.option?.column));
|
|
1059
|
+
function i() {
|
|
1060
|
+
const { column: a, gridColumns: u, ...g } = e.option ?? {};
|
|
1061
|
+
return {
|
|
1062
|
+
...g,
|
|
1063
|
+
...Object.fromEntries(Object.entries(t).map(([C, _]) => [
|
|
1064
|
+
He(C) in It ? He(C) : C,
|
|
1065
|
+
_
|
|
1066
|
+
]))
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
function f(a) {
|
|
1070
|
+
return !ke(e.model ?? {}, a);
|
|
1071
|
+
}
|
|
1072
|
+
return o({
|
|
1073
|
+
hasChanges: f,
|
|
1074
|
+
validate: (...a) => s.value.validate(...a),
|
|
1075
|
+
validateField: (...a) => s.value.validateField(...a),
|
|
1076
|
+
resetFields: (...a) => s.value.resetFields(...a),
|
|
1077
|
+
clearValidate: (...a) => s.value.clearValidate(...a),
|
|
1078
|
+
scrollToField: (...a) => s.value.scrollToField(...a),
|
|
1079
|
+
getField: (...a) => s.value.getField(...a),
|
|
1080
|
+
setInitialValues: (...a) => s.value.setInitialValues(...a),
|
|
1081
|
+
get fields() {
|
|
1082
|
+
return s.value?.fields ?? [];
|
|
1083
|
+
}
|
|
1084
|
+
}), (a, u) => (c(), z(P(Vt), A({
|
|
1085
|
+
ref_key: "formRef",
|
|
1086
|
+
ref: s
|
|
1087
|
+
}, i(), { model: a.model }), {
|
|
1088
|
+
default: j(() => [
|
|
1089
|
+
$(a.$slots, "default", { formData: a.model }, () => [
|
|
1090
|
+
a.option && a.model ? (c(), z(lt, {
|
|
1091
|
+
key: 0,
|
|
1092
|
+
configs: n.value,
|
|
1093
|
+
"form-data": a.model,
|
|
1094
|
+
"grid-columns": a.option.gridColumns
|
|
1095
|
+
}, ae({ _: 2 }, [
|
|
1096
|
+
W(Object.keys(a.$slots).filter((g) => g !== "default"), (g) => ({
|
|
1097
|
+
name: g,
|
|
1098
|
+
fn: j((C) => [
|
|
1099
|
+
$(a.$slots, g, A(C, { formData: a.model }))
|
|
1100
|
+
])
|
|
1101
|
+
}))
|
|
1102
|
+
]), 1032, ["configs", "form-data", "grid-columns"])) : J("", !0)
|
|
1103
|
+
])
|
|
1104
|
+
]),
|
|
1105
|
+
_: 3
|
|
1106
|
+
}, 16, ["model"]));
|
|
1107
|
+
}
|
|
1108
|
+
});
|
|
1109
|
+
function c2() {
|
|
634
1110
|
const l = R(!1);
|
|
635
|
-
function
|
|
1111
|
+
function o() {
|
|
636
1112
|
l.value = !0;
|
|
637
1113
|
}
|
|
638
|
-
function
|
|
1114
|
+
function e() {
|
|
639
1115
|
l.value = !1;
|
|
640
1116
|
}
|
|
641
1117
|
return {
|
|
642
1118
|
searchDisabled: l,
|
|
643
|
-
searchLoading:
|
|
644
|
-
searchDone:
|
|
1119
|
+
searchLoading: o,
|
|
1120
|
+
searchDone: e
|
|
645
1121
|
};
|
|
646
1122
|
}
|
|
647
|
-
const
|
|
1123
|
+
const d2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e", u2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e", nt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e", p2 = { class: "jt-filter-bar__btns" }, m2 = ["src"], f2 = ["src"], h2 = ["src"], v2 = /* @__PURE__ */ H({
|
|
648
1124
|
name: "JtFilterBar",
|
|
649
1125
|
__name: "JtFilterBar",
|
|
650
1126
|
props: {
|
|
@@ -653,278 +1129,278 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
653
1129
|
modelValue: {}
|
|
654
1130
|
},
|
|
655
1131
|
emits: ["update:modelValue", "search", "reset"],
|
|
656
|
-
setup(l, { expose:
|
|
657
|
-
const
|
|
658
|
-
() =>
|
|
659
|
-
),
|
|
1132
|
+
setup(l, { expose: o, emit: e }) {
|
|
1133
|
+
const t = l, s = e, n = R(), i = he(), f = R({}), { searchDisabled: a, searchLoading: u, searchDone: g } = c2(), C = R({}), _ = R({}), B = /* @__PURE__ */ new Map(), M = m(() => t.option), b = R(M.value.searchCollapsed ?? !0), p = m(
|
|
1134
|
+
() => t.columns.filter((d) => d.search === !0)
|
|
1135
|
+
), r = m(
|
|
660
1136
|
() => Math.max(1, M.value.searchSpan ?? 4)
|
|
661
1137
|
), h = m(
|
|
662
1138
|
() => Math.max(1, M.value.searchCollapsedRows ?? 1)
|
|
663
|
-
),
|
|
664
|
-
() => Math.max(1,
|
|
665
|
-
),
|
|
666
|
-
() =>
|
|
667
|
-
),
|
|
668
|
-
() =>
|
|
669
|
-
),
|
|
1139
|
+
), S = m(() => r.value), x = m(
|
|
1140
|
+
() => Math.max(1, S.value * h.value)
|
|
1141
|
+
), y = m(() => r.value), L = m(
|
|
1142
|
+
() => Q.value ? "264px" : "174px"
|
|
1143
|
+
), D = m(
|
|
1144
|
+
() => ct(M.value.searchLabelWidth ?? 84)
|
|
1145
|
+
), v = m(
|
|
670
1146
|
() => M.value.searchLabelPosition ?? "top"
|
|
671
|
-
),
|
|
672
|
-
() =>
|
|
673
|
-
), W = m(
|
|
674
|
-
() => Pe(M.value.searchRowGap, 10)
|
|
1147
|
+
), k = m(
|
|
1148
|
+
() => ze(M.value.searchGutter, 16)
|
|
675
1149
|
), F = m(
|
|
676
|
-
() =>
|
|
677
|
-
),
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
1150
|
+
() => ze(M.value.searchRowGap, 10)
|
|
1151
|
+
), Y = m(
|
|
1152
|
+
() => dt(M.value.searchPadding ?? "0 12px")
|
|
1153
|
+
), Q = m(() => M.value.searchCollapse === !1 ? !1 : Pe(p.value) > x.value), oe = m(() => {
|
|
1154
|
+
if (!Q.value || !b.value) return p.value;
|
|
1155
|
+
let d = 0;
|
|
1156
|
+
return p.value.filter((V) => {
|
|
1157
|
+
const Z = Me(V);
|
|
1158
|
+
return d + Z > x.value ? !1 : (d += Z, !0);
|
|
683
1159
|
});
|
|
684
|
-
}),
|
|
685
|
-
() =>
|
|
686
|
-
),
|
|
687
|
-
const
|
|
688
|
-
return
|
|
689
|
-
}),
|
|
690
|
-
const
|
|
691
|
-
return `${Math.min(
|
|
692
|
-
}),
|
|
693
|
-
() =>
|
|
1160
|
+
}), E = m(
|
|
1161
|
+
() => oe.value.filter((d) => !!i[`${d.prop}-search`])
|
|
1162
|
+
), U = m(() => {
|
|
1163
|
+
const d = Pe(oe.value);
|
|
1164
|
+
return oe.value.length > 0 && oe.value.length <= 2 && d < r.value;
|
|
1165
|
+
}), X = m(() => {
|
|
1166
|
+
const d = Pe(oe.value);
|
|
1167
|
+
return `${Math.min(r.value, d + 1)}`;
|
|
1168
|
+
}), se = m(
|
|
1169
|
+
() => oe.value.map((d) => Ce(d))
|
|
694
1170
|
);
|
|
695
1171
|
pe(
|
|
696
1172
|
() => M.value.searchCollapsed,
|
|
697
|
-
(
|
|
698
|
-
typeof
|
|
1173
|
+
(d) => {
|
|
1174
|
+
typeof d == "boolean" && (b.value = d);
|
|
699
1175
|
}
|
|
700
1176
|
), pe(
|
|
701
|
-
() =>
|
|
702
|
-
(
|
|
703
|
-
f.value = { ...
|
|
1177
|
+
() => t.modelValue,
|
|
1178
|
+
(d) => {
|
|
1179
|
+
f.value = { ...d };
|
|
704
1180
|
},
|
|
705
1181
|
{ deep: !0, immediate: !0 }
|
|
706
1182
|
);
|
|
707
|
-
function
|
|
708
|
-
if (
|
|
709
|
-
const
|
|
710
|
-
f.value =
|
|
1183
|
+
function ue(d, V) {
|
|
1184
|
+
if (a.value) return;
|
|
1185
|
+
const Z = { ...f.value, [d]: V };
|
|
1186
|
+
f.value = Z, s("update:modelValue", Z);
|
|
711
1187
|
}
|
|
712
|
-
function Ce(
|
|
713
|
-
const
|
|
1188
|
+
function Ce(d) {
|
|
1189
|
+
const V = d.searchProps ?? {}, Z = d.searchType ?? "input", N = ce(d, V);
|
|
714
1190
|
return {
|
|
715
|
-
...
|
|
716
|
-
...
|
|
717
|
-
prop:
|
|
718
|
-
label:
|
|
719
|
-
span:
|
|
720
|
-
itemType:
|
|
1191
|
+
...V,
|
|
1192
|
+
...N,
|
|
1193
|
+
prop: d.prop,
|
|
1194
|
+
label: d.searchLabel ?? d.label,
|
|
1195
|
+
span: Me(d),
|
|
1196
|
+
itemType: Z,
|
|
721
1197
|
// 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
|
|
722
|
-
showSlot: !!
|
|
723
|
-
options:
|
|
724
|
-
placeholder:
|
|
725
|
-
valueFormat:
|
|
726
|
-
disabled:
|
|
727
|
-
loading:
|
|
728
|
-
preservePlaceholderWhenDisabled:
|
|
1198
|
+
showSlot: !!i[`${d.prop}-search`],
|
|
1199
|
+
options: Se(d, V),
|
|
1200
|
+
placeholder: V.placeholder ?? d.searchPlaceholder,
|
|
1201
|
+
valueFormat: V.valueFormat ?? d.searchValueFormat,
|
|
1202
|
+
disabled: a.value || V.disabled === !0,
|
|
1203
|
+
loading: Be(d, V),
|
|
1204
|
+
preservePlaceholderWhenDisabled: a.value,
|
|
729
1205
|
formItemProps: {
|
|
730
|
-
required:
|
|
731
|
-
class: ["jt-filter-bar__item", { "is-required":
|
|
1206
|
+
required: d.searchRequired,
|
|
1207
|
+
class: ["jt-filter-bar__item", { "is-required": d.searchRequired }]
|
|
732
1208
|
},
|
|
733
1209
|
// 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
|
|
734
|
-
onEnter: (...
|
|
735
|
-
|
|
1210
|
+
onEnter: (...ve) => {
|
|
1211
|
+
Te(V.onEnter, ...ve), $e();
|
|
736
1212
|
},
|
|
737
1213
|
// JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
|
|
738
|
-
"onUpdate:modelValue": (
|
|
739
|
-
|
|
1214
|
+
"onUpdate:modelValue": (ve) => {
|
|
1215
|
+
Te(V["onUpdate:modelValue"], ve), ue(d.prop, ve);
|
|
740
1216
|
}
|
|
741
1217
|
};
|
|
742
1218
|
}
|
|
743
|
-
function
|
|
744
|
-
if (
|
|
745
|
-
const
|
|
1219
|
+
function ce(d, V) {
|
|
1220
|
+
if (d.searchType !== "remote-select") return {};
|
|
1221
|
+
const Z = d.searchRemoteMethod ? (N) => be(d, N) : V.remoteMethod;
|
|
746
1222
|
return {
|
|
747
1223
|
// remote-select 明确进入 Element Plus 远程搜索模式,避免调用方重复配置 remote。
|
|
748
|
-
remote:
|
|
749
|
-
filterable:
|
|
750
|
-
remoteMethod:
|
|
1224
|
+
remote: V.remote ?? !!Z,
|
|
1225
|
+
filterable: V.filterable ?? !0,
|
|
1226
|
+
remoteMethod: Z
|
|
751
1227
|
};
|
|
752
1228
|
}
|
|
753
|
-
function
|
|
754
|
-
return
|
|
1229
|
+
function Se(d, V) {
|
|
1230
|
+
return d.searchType === "remote-select" && Object.prototype.hasOwnProperty.call(C.value, d.prop) ? C.value[d.prop] : V.options ?? d.searchOptions ?? d.dicData;
|
|
755
1231
|
}
|
|
756
|
-
function
|
|
757
|
-
return
|
|
1232
|
+
function Be(d, V) {
|
|
1233
|
+
return d.searchLoading !== void 0 ? d.searchLoading : V.loading !== void 0 ? V.loading : d.searchType === "remote-select" && d.searchRemoteMethod ? _.value[d.prop] === !0 : V.loading;
|
|
758
1234
|
}
|
|
759
|
-
async function
|
|
760
|
-
if (!
|
|
761
|
-
const
|
|
762
|
-
|
|
1235
|
+
async function be(d, V) {
|
|
1236
|
+
if (!d.searchRemoteMethod) return;
|
|
1237
|
+
const Z = (B.get(d.prop) ?? 0) + 1;
|
|
1238
|
+
B.set(d.prop, Z), d.searchLoading === void 0 && (_.value = { ..._.value, [d.prop]: !0 });
|
|
763
1239
|
try {
|
|
764
|
-
const
|
|
765
|
-
if (
|
|
766
|
-
if (!
|
|
1240
|
+
const N = await d.searchRemoteMethod(V, d);
|
|
1241
|
+
if (B.get(d.prop) !== Z || N === void 0) return;
|
|
1242
|
+
if (!we(N)) {
|
|
767
1243
|
console.warn(
|
|
768
|
-
`[JtFilterBar] ${
|
|
1244
|
+
`[JtFilterBar] ${d.prop} 的 searchRemoteMethod 应返回 JtDicItem[] 或 void,请在业务方法内把接口响应映射为 { label, value } 选项。`
|
|
769
1245
|
);
|
|
770
1246
|
return;
|
|
771
1247
|
}
|
|
772
|
-
|
|
773
|
-
} catch (
|
|
774
|
-
console.error("[JtFilterBar] searchRemoteMethod 执行失败",
|
|
1248
|
+
C.value = { ...C.value, [d.prop]: N };
|
|
1249
|
+
} catch (N) {
|
|
1250
|
+
console.error("[JtFilterBar] searchRemoteMethod 执行失败", N);
|
|
775
1251
|
} finally {
|
|
776
|
-
|
|
1252
|
+
B.get(d.prop) === Z && d.searchLoading === void 0 && (_.value = { ..._.value, [d.prop]: !1 });
|
|
777
1253
|
}
|
|
778
1254
|
}
|
|
779
|
-
function
|
|
780
|
-
return Array.isArray(
|
|
1255
|
+
function we(d) {
|
|
1256
|
+
return Array.isArray(d) && d.every(it);
|
|
781
1257
|
}
|
|
782
|
-
function
|
|
783
|
-
if (!
|
|
784
|
-
const
|
|
785
|
-
return typeof
|
|
1258
|
+
function it(d) {
|
|
1259
|
+
if (!d || typeof d != "object") return !1;
|
|
1260
|
+
const V = d, Z = typeof V.value, N = V.children;
|
|
1261
|
+
return typeof V.label == "string" && (Z === "string" || Z === "number" || Z === "boolean") && (V.disabled === void 0 || typeof V.disabled == "boolean") && (N === void 0 || we(N));
|
|
786
1262
|
}
|
|
787
|
-
function
|
|
788
|
-
if (Array.isArray(
|
|
789
|
-
|
|
1263
|
+
function Te(d, ...V) {
|
|
1264
|
+
if (Array.isArray(d)) {
|
|
1265
|
+
d.forEach((Z) => Te(Z, ...V));
|
|
790
1266
|
return;
|
|
791
1267
|
}
|
|
792
|
-
typeof
|
|
1268
|
+
typeof d == "function" && d(...V);
|
|
793
1269
|
}
|
|
794
|
-
async function
|
|
795
|
-
if (!
|
|
796
|
-
if (
|
|
1270
|
+
async function $e() {
|
|
1271
|
+
if (!a.value) {
|
|
1272
|
+
if (n.value)
|
|
797
1273
|
try {
|
|
798
|
-
await
|
|
1274
|
+
await n.value.validate();
|
|
799
1275
|
} catch {
|
|
800
1276
|
return;
|
|
801
1277
|
}
|
|
802
|
-
|
|
1278
|
+
s("search");
|
|
803
1279
|
}
|
|
804
1280
|
}
|
|
805
|
-
function
|
|
806
|
-
|
|
1281
|
+
function Ee() {
|
|
1282
|
+
a.value || s("reset");
|
|
807
1283
|
}
|
|
808
|
-
function
|
|
809
|
-
|
|
1284
|
+
function Fe() {
|
|
1285
|
+
b.value = !b.value;
|
|
810
1286
|
}
|
|
811
|
-
function
|
|
812
|
-
return Math.min(
|
|
1287
|
+
function Me(d) {
|
|
1288
|
+
return Math.min(r.value, Math.max(1, d.searchSpan ?? 1));
|
|
813
1289
|
}
|
|
814
|
-
function
|
|
815
|
-
return
|
|
1290
|
+
function Pe(d) {
|
|
1291
|
+
return d.reduce((V, Z) => V + Me(Z), 0);
|
|
816
1292
|
}
|
|
817
|
-
function
|
|
818
|
-
return typeof
|
|
1293
|
+
function ct(d) {
|
|
1294
|
+
return typeof d == "number" ? `${d}px` : d;
|
|
819
1295
|
}
|
|
820
|
-
function
|
|
821
|
-
return typeof
|
|
1296
|
+
function ze(d, V) {
|
|
1297
|
+
return typeof d == "number" ? d : V;
|
|
822
1298
|
}
|
|
823
|
-
function
|
|
824
|
-
return typeof
|
|
1299
|
+
function dt(d) {
|
|
1300
|
+
return typeof d == "number" ? `${d}px` : d;
|
|
825
1301
|
}
|
|
826
|
-
return
|
|
1302
|
+
return o({
|
|
827
1303
|
/** 内部 Element Plus Form 实例,保留给业务侧做校验、重置等原生表单操作。 */
|
|
828
|
-
formRef:
|
|
1304
|
+
formRef: n,
|
|
829
1305
|
/** 当前筛选表单禁用态。 */
|
|
830
|
-
searchDisabled:
|
|
1306
|
+
searchDisabled: a,
|
|
831
1307
|
/** 开启筛选表单禁用。 */
|
|
832
1308
|
searchLoading: u,
|
|
833
1309
|
/** 关闭筛选表单禁用。 */
|
|
834
|
-
searchDone:
|
|
835
|
-
}), (
|
|
836
|
-
const
|
|
837
|
-
return c(),
|
|
838
|
-
class:
|
|
839
|
-
`is-label-${
|
|
840
|
-
{ "is-single-filter":
|
|
1310
|
+
searchDone: g
|
|
1311
|
+
}), (d, V) => {
|
|
1312
|
+
const Z = ft;
|
|
1313
|
+
return c(), w("div", {
|
|
1314
|
+
class: te(["jt-filter-bar", [
|
|
1315
|
+
`is-label-${v.value}`,
|
|
1316
|
+
{ "is-single-filter": U.value }
|
|
841
1317
|
]]),
|
|
842
|
-
style:
|
|
843
|
-
"--jt-filter-columns":
|
|
844
|
-
"--jt-filter-field-columns":
|
|
845
|
-
"--jt-filter-btns-width":
|
|
846
|
-
"--jt-filter-actions-start":
|
|
847
|
-
"--jt-filter-label-width":
|
|
848
|
-
"--jt-filter-column-gap": `${
|
|
849
|
-
"--jt-filter-row-gap": `${
|
|
850
|
-
"--jt-filter-padding":
|
|
1318
|
+
style: ie({
|
|
1319
|
+
"--jt-filter-columns": r.value,
|
|
1320
|
+
"--jt-filter-field-columns": y.value,
|
|
1321
|
+
"--jt-filter-btns-width": L.value,
|
|
1322
|
+
"--jt-filter-actions-start": X.value,
|
|
1323
|
+
"--jt-filter-label-width": D.value,
|
|
1324
|
+
"--jt-filter-column-gap": `${k.value}px`,
|
|
1325
|
+
"--jt-filter-row-gap": `${F.value}px`,
|
|
1326
|
+
"--jt-filter-padding": Y.value
|
|
851
1327
|
})
|
|
852
1328
|
}, [
|
|
853
|
-
|
|
1329
|
+
q(Z, {
|
|
854
1330
|
ref_key: "formRef",
|
|
855
|
-
ref:
|
|
1331
|
+
ref: n,
|
|
856
1332
|
class: "jt-filter-bar__form",
|
|
857
1333
|
model: f.value,
|
|
858
|
-
"label-position":
|
|
859
|
-
"label-width":
|
|
860
|
-
disabled: P(
|
|
861
|
-
onSubmit:
|
|
1334
|
+
"label-position": v.value,
|
|
1335
|
+
"label-width": D.value,
|
|
1336
|
+
disabled: P(a),
|
|
1337
|
+
onSubmit: V[0] || (V[0] = de(() => {
|
|
862
1338
|
}, ["prevent"]))
|
|
863
1339
|
}, {
|
|
864
1340
|
default: j(() => [
|
|
865
|
-
|
|
866
|
-
configs:
|
|
1341
|
+
q(P(lt), {
|
|
1342
|
+
configs: se.value,
|
|
867
1343
|
"form-data": f.value,
|
|
868
1344
|
style: { "--jt-form-label-gap": "6px", "--jt-form-column-gap": "16px", "--jt-form-row-gap": "10px" }
|
|
869
|
-
},
|
|
1345
|
+
}, ae({
|
|
870
1346
|
actions: j(() => [
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
search:
|
|
874
|
-
reset:
|
|
875
|
-
disabled: P(
|
|
876
|
-
collapsed:
|
|
877
|
-
toggleCollapse:
|
|
1347
|
+
T("div", p2, [
|
|
1348
|
+
$(d.$slots, "search-menu", {
|
|
1349
|
+
search: $e,
|
|
1350
|
+
reset: Ee,
|
|
1351
|
+
disabled: P(a),
|
|
1352
|
+
collapsed: b.value,
|
|
1353
|
+
toggleCollapse: Fe
|
|
878
1354
|
}, () => [
|
|
879
|
-
|
|
1355
|
+
Q.value ? (c(), z(P(re), {
|
|
880
1356
|
key: 0,
|
|
881
1357
|
class: "jt-filter-bar__btn-collapse",
|
|
882
1358
|
border: "",
|
|
883
|
-
onClick:
|
|
1359
|
+
onClick: Fe
|
|
884
1360
|
}, {
|
|
885
1361
|
icon: j(() => [
|
|
886
|
-
|
|
887
|
-
class:
|
|
888
|
-
src: P(
|
|
1362
|
+
T("img", {
|
|
1363
|
+
class: te(["jt-filter-bar__icon-arrow", { "is-collapsed": b.value }]),
|
|
1364
|
+
src: P(d2),
|
|
889
1365
|
alt: ""
|
|
890
|
-
}, null, 10,
|
|
1366
|
+
}, null, 10, m2)
|
|
891
1367
|
]),
|
|
892
1368
|
default: j(() => [
|
|
893
|
-
|
|
1369
|
+
T("span", null, I(b.value ? P(O)("common.展开") : P(O)("common.收起")), 1)
|
|
894
1370
|
]),
|
|
895
1371
|
_: 1
|
|
896
|
-
})) :
|
|
897
|
-
|
|
1372
|
+
})) : J("", !0),
|
|
1373
|
+
q(P(re), {
|
|
898
1374
|
class: "jt-filter-bar__btn-reset",
|
|
899
|
-
disabled: P(
|
|
1375
|
+
disabled: P(a),
|
|
900
1376
|
border: "",
|
|
901
|
-
onClick:
|
|
1377
|
+
onClick: Ee
|
|
902
1378
|
}, {
|
|
903
1379
|
icon: j(() => [
|
|
904
|
-
|
|
905
|
-
src: P(
|
|
1380
|
+
T("img", {
|
|
1381
|
+
src: P(u2),
|
|
906
1382
|
alt: ""
|
|
907
|
-
}, null, 8,
|
|
1383
|
+
}, null, 8, f2)
|
|
908
1384
|
]),
|
|
909
1385
|
default: j(() => [
|
|
910
|
-
|
|
1386
|
+
T("span", null, I(M.value.resetBtnText ?? P(O)("common.重置")), 1)
|
|
911
1387
|
]),
|
|
912
1388
|
_: 1
|
|
913
1389
|
}, 8, ["disabled"]),
|
|
914
|
-
|
|
1390
|
+
q(P(re), {
|
|
915
1391
|
class: "jt-filter-bar__btn-query",
|
|
916
1392
|
type: "primary",
|
|
917
|
-
disabled: P(
|
|
918
|
-
onClick:
|
|
1393
|
+
disabled: P(a),
|
|
1394
|
+
onClick: $e
|
|
919
1395
|
}, {
|
|
920
1396
|
icon: j(() => [
|
|
921
|
-
|
|
922
|
-
src: P(
|
|
1397
|
+
T("img", {
|
|
1398
|
+
src: P(nt),
|
|
923
1399
|
alt: ""
|
|
924
|
-
}, null, 8,
|
|
1400
|
+
}, null, 8, h2)
|
|
925
1401
|
]),
|
|
926
1402
|
default: j(() => [
|
|
927
|
-
|
|
1403
|
+
T("span", null, I(M.value.searchBtnText ?? P(O)("common.查询")), 1)
|
|
928
1404
|
]),
|
|
929
1405
|
_: 1
|
|
930
1406
|
}, 8, ["disabled"])
|
|
@@ -933,16 +1409,16 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
933
1409
|
]),
|
|
934
1410
|
_: 2
|
|
935
1411
|
}, [
|
|
936
|
-
|
|
937
|
-
name:
|
|
1412
|
+
W(E.value, (N) => ({
|
|
1413
|
+
name: N.prop,
|
|
938
1414
|
fn: j(() => [
|
|
939
|
-
|
|
940
|
-
value: f.value[
|
|
941
|
-
column:
|
|
942
|
-
setValue: (
|
|
943
|
-
search:
|
|
944
|
-
reset:
|
|
945
|
-
disabled: P(
|
|
1415
|
+
$(d.$slots, `${N.prop}-search`, {
|
|
1416
|
+
value: f.value[N.prop],
|
|
1417
|
+
column: N,
|
|
1418
|
+
setValue: (ve) => ue(N.prop, ve),
|
|
1419
|
+
search: $e,
|
|
1420
|
+
reset: Ee,
|
|
1421
|
+
disabled: P(a)
|
|
946
1422
|
}, void 0, !0)
|
|
947
1423
|
])
|
|
948
1424
|
}))
|
|
@@ -953,45 +1429,45 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
953
1429
|
], 6);
|
|
954
1430
|
};
|
|
955
1431
|
}
|
|
956
|
-
}), Kt = /* @__PURE__ */ Z(Zt, [["__scopeId", "data-v-313da8c4"]]), Rt = "data:image/svg+xml,%3csvg%20width='120'%20height='120'%20viewBox='0%200%20120%20120'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M59.2176%2014.6739C69.4236%2014.6739%2078.8356%2018.0259%2086.3776%2023.6739H83.3436C81.9076%2023.6739%2080.7436%2024.8379%2080.7436%2026.2739V26.4739C80.7436%2027.9099%2081.9076%2029.0739%2083.3436%2029.0739H92.3796C94.0936%2030.9219%2095.6496%2032.9119%2097.0296%2035.0259H101.32C102.866%2035.0259%20104.12%2036.2799%20104.12%2037.8259V37.9819C104.12%2039.2599%20103.264%2040.3379%20102.094%2040.6739H98.1436C96.3756%2040.6739%2094.9436%2042.1059%2094.9436%2043.8739V44.8739C94.9436%2046.6419%2096.3756%2048.0739%2098.1436%2048.0739H111.724C113.114%2048.4219%20114.144%2049.6799%20114.144%2051.1779V51.3559C114.144%2053.1239%20112.712%2054.5559%20110.944%2054.5559H103.908C104.048%2055.9779%20104.12%2057.4179%20104.12%2058.8739C104.12%2083.2839%2084.0156%20103.074%2059.2176%20103.074C39.3816%20103.074%2022.5496%2090.4139%2016.6076%2072.8539H14.9216C14.2416%2072.8539%2013.6876%2072.3019%2013.6876%2071.6199C13.6876%2071.0999%2014.0096%2070.6559%2014.4656%2070.4739H16.5436C17.9796%2070.4739%2019.1436%2069.3099%2019.1436%2067.8739V67.6739C19.1436%2066.2379%2017.9796%2065.0739%2016.5436%2065.0739H14.7536C14.7516%2065.0639%2014.7496%2065.0519%2014.7496%2065.0419H10.3136C9.17958%2065.0419%208.25958%2064.1219%208.25958%2062.9859C8.25958%2061.8499%209.17958%2060.9299%2010.3136%2060.9299H14.3636C14.3316%2060.2479%2014.3156%2059.5639%2014.3156%2058.8739C14.3156%2052.3479%2015.7516%2046.1519%2018.3316%2040.5759L11.1436%2040.5779C8.05158%2040.5779%205.54358%2038.0699%205.54358%2034.9779V34.6639C5.54358%2031.6799%207.87758%2029.2399%2010.8216%2029.0739H36.1436C37.2476%2029.0739%2038.1436%2028.1779%2038.1436%2027.0739C38.1436%2025.9699%2037.2476%2025.0739%2036.1436%2025.0739H30.2816C30.3316%2025.0339%2030.3796%2024.9919%2030.4276%2024.9519L27.5136%2024.9539C25.4136%2024.9539%2023.7136%2023.2519%2023.7136%2021.1539V20.9399C23.7136%2018.8419%2025.4136%2017.1399%2027.5136%2017.1399H44.3896C49.0316%2015.5419%2054.0216%2014.6739%2059.2176%2014.6739Z'%20fill='%23737373'%20fill-opacity='0.04'/%3e%3cpath%20d='M35.7497%2077.9519C35.7737%2078.0439%2035.8037%2078.1439%2035.8377%2078.2499L35.9077%2078.5299C35.9317%2078.6239%2035.9437%2078.6999%2035.9437%2078.7579C35.9437%2079.0839%2035.8557%2079.3739%2035.6797%2079.6259C35.5057%2079.8759%2035.2757%2080.0599%2034.9957%2080.1779C34.8897%2080.1899%2034.7797%2080.1959%2034.6617%2080.1959C34.5677%2080.2059%2034.4637%2080.2119%2034.3457%2080.2119H34.0117L31.2737%2080.2479V83.1759C31.2737%2083.6079%2031.2817%2084.0419%2031.2997%2084.4819C31.3177%2084.9199%2031.3377%2085.3139%2031.3597%2085.6639C31.3837%2086.0859%2031.4137%2086.4879%2031.4477%2086.8739H28.9197L28.9717%2086.1899C28.9837%2085.9219%2028.9957%2085.5559%2029.0077%2085.0939C29.0197%2084.6339%2029.0257%2084.0159%2029.0257%2083.2459V80.5639C28.8257%2080.7379%2028.6037%2080.8259%2028.3577%2080.8259C28.1597%2080.8259%2027.9857%2080.7799%2027.8397%2080.6859C27.6937%2080.5919%2027.5737%2080.4639%2027.4797%2080.2999L25.4957%2080.1959C25.1097%2080.1019%2024.7877%2079.9059%2024.5297%2079.6079C24.2717%2079.3099%2024.1437%2078.9559%2024.1437%2078.5479C24.1437%2078.4779%2024.1497%2078.4119%2024.1617%2078.3539C24.1737%2078.2959%2024.1897%2078.2379%2024.2137%2078.1799L24.6537%2077.1619C24.6757%2076.9059%2024.7497%2076.6659%2024.8717%2076.4439C24.9957%2076.2219%2025.1497%2076.0279%2025.3377%2075.8659L28.0937%2070.7639H28.1117C28.3337%2070.3559%2028.5977%2070.0039%2028.9017%2069.7119C29.2057%2069.4199%2029.5997%2069.2739%2030.0797%2069.2739C30.4997%2069.2739%2030.8777%2069.3859%2031.2117%2069.6079C31.5457%2069.8299%2031.7937%2070.1219%2031.9577%2070.4839L34.1697%2074.8139C34.5677%2074.9539%2034.8957%2075.1999%2035.1537%2075.5499C35.4117%2075.8999%2035.5397%2076.3039%2035.5397%2076.7599C35.5397%2076.9459%2035.5097%2077.1439%2035.4517%2077.3559L35.7497%2077.9519Z'%20fill='url(%23paint0_linear_4883_1471)'/%3e%3cpath%20d='M97.7498%2077.9519C97.7738%2078.0439%2097.8038%2078.1439%2097.8378%2078.2499L97.9078%2078.5299C97.9318%2078.6239%2097.9438%2078.6999%2097.9438%2078.7579C97.9438%2079.0839%2097.8558%2079.3739%2097.6798%2079.6259C97.5058%2079.8759%2097.2758%2080.0599%2096.9958%2080.1779C96.8898%2080.1899%2096.7798%2080.1959%2096.6618%2080.1959C96.5678%2080.2059%2096.4638%2080.2119%2096.3458%2080.2119H96.0118L93.2738%2080.2479V83.1759C93.2738%2083.6079%2093.2818%2084.0419%2093.2998%2084.4819C93.3178%2084.9199%2093.3378%2085.3139%2093.3598%2085.6639C93.3838%2086.0859%2093.4138%2086.4879%2093.4478%2086.8739H90.9198L90.9718%2086.1899C90.9838%2085.9219%2090.9958%2085.5559%2091.0078%2085.0939C91.0198%2084.6339%2091.0258%2084.0159%2091.0258%2083.2459V80.5639C90.8258%2080.7379%2090.6038%2080.8259%2090.3578%2080.8259C90.1598%2080.8259%2089.9858%2080.7799%2089.8398%2080.6859C89.6938%2080.5919%2089.5738%2080.4639%2089.4798%2080.2999L87.4958%2080.1959C87.1098%2080.1019%2086.7878%2079.9059%2086.5298%2079.6079C86.2718%2079.3099%2086.1438%2078.9559%2086.1438%2078.5479C86.1438%2078.4779%2086.1498%2078.4119%2086.1618%2078.3539C86.1738%2078.2959%2086.1898%2078.2379%2086.2138%2078.1799L86.6538%2077.1619C86.6758%2076.9059%2086.7498%2076.6659%2086.8718%2076.4439C86.9958%2076.2219%2087.1498%2076.0279%2087.3378%2075.8659L90.0938%2070.7639H90.1118C90.3338%2070.3559%2090.5978%2070.0039%2090.9018%2069.7119C91.2058%2069.4199%2091.5998%2069.2739%2092.0798%2069.2739C92.4998%2069.2739%2092.8778%2069.3859%2093.2118%2069.6079C93.5458%2069.8299%2093.7938%2070.1219%2093.9578%2070.4839L96.1698%2074.8139C96.5678%2074.9539%2096.8958%2075.1999%2097.1538%2075.5499C97.4118%2075.8999%2097.5398%2076.3039%2097.5398%2076.7599C97.5398%2076.9459%2097.5098%2077.1439%2097.4518%2077.3559L97.7498%2077.9519Z'%20fill='url(%23paint1_linear_4883_1471)'/%3e%3cpath%20d='M90.3937%2079.8779C90.4117%2079.9519%2090.4337%2080.0279%2090.4617%2080.1119L90.5157%2080.3319C90.5337%2080.4039%2090.5437%2080.4639%2090.5437%2080.5099C90.5437%2080.7659%2090.4757%2080.9939%2090.3377%2081.1899C90.2017%2081.3879%2090.0237%2081.5319%2089.8037%2081.6239C89.7217%2081.6319%2089.6357%2081.6379%2089.5437%2081.6379C89.4717%2081.6459%2089.3897%2081.6499%2089.2977%2081.6499H89.0377L86.9018%2081.6779V83.9739C86.9018%2084.3119%2086.9098%2084.6539%2086.9218%2084.9979C86.9358%2085.3419%2086.9518%2085.6499%2086.9698%2085.9259C86.9898%2086.2559%2087.0118%2086.5719%2087.0398%2086.8739H85.0677L85.1078%2086.3379C85.1178%2086.1279%2085.1277%2085.8399%2085.1357%2085.4779C85.1457%2085.1159%2085.1497%2084.6339%2085.1497%2084.0279V81.9259C84.9937%2082.0639%2084.8217%2082.1319%2084.6297%2082.1319C84.4737%2082.1319%2084.3398%2082.0959%2084.2258%2082.0219C84.1118%2081.9479%2084.0178%2081.8479%2083.9458%2081.7199L82.3977%2081.6379C82.0957%2081.5639%2081.8458%2081.4099%2081.6458%2081.1759C81.4438%2080.9439%2081.3438%2080.6659%2081.3438%2080.3459C81.3438%2080.2899%2081.3478%2080.2399%2081.3578%2080.1939C81.3658%2080.1479%2081.3797%2080.1019%2081.3977%2080.0559L81.7417%2079.2599C81.7597%2079.0579%2081.8157%2078.8699%2081.9117%2078.6959C82.0077%2078.5219%2082.1277%2078.3699%2082.2737%2078.2419L84.4237%2074.2419H84.4377C84.6117%2073.9219%2084.8157%2073.6459%2085.0537%2073.4179C85.2917%2073.1879%2085.5978%2073.0739%2085.9718%2073.0739C86.2998%2073.0739%2086.5937%2073.1619%2086.8537%2073.3359C87.1137%2073.5099%2087.3077%2073.7379%2087.4357%2074.0219L89.1617%2077.4179C89.4717%2077.5279%2089.7278%2077.7199%2089.9278%2077.9939C90.1278%2078.2699%2090.2297%2078.5859%2090.2297%2078.9439C90.2297%2079.0899%2090.2057%2079.2459%2090.1597%2079.4099L90.3937%2079.8779Z'%20fill='url(%23paint2_linear_4883_1471)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.6439%2082.2739C68.9199%2082.2739%2079.9739%2083.2759%2087.7019%2084.8739C95.2599%2084.9259%20101.344%2087.1879%20101.344%2089.9739C101.344%2092.1819%2097.5219%2094.0619%2092.1739%2094.7719C90.8979%2095.1479%2089.4599%2095.5039%2087.8819%2095.8359C87.9239%2096.0459%2087.9439%2096.2599%2087.9439%2096.4739C87.9439%20101.334%2077.3779%20105.274%2064.3439%20105.274C52.6179%20105.274%2042.8879%20102.084%2041.0539%2097.9059C25.4079%2096.7179%2014.3439%2093.7939%2014.3439%2090.3739C14.3439%2085.8999%2033.2819%2082.2739%2056.6439%2082.2739Z'%20fill='%23E9E9E9'/%3e%3cpath%20d='M58.0273%2082.2809C64.5825%2082.3213%2070.7608%2082.6464%2076.2343%2083.195L97.1259%2093.6325C95.7272%2094.1309%2094.0439%2094.5238%2092.1738%2094.7721C90.8978%2095.1481%2089.4597%2095.5036%2087.8818%2095.8356C87.9238%2096.0456%2087.9443%2096.2603%2087.9443%2096.4743C87.9439%20100.708%2079.9256%20104.242%2069.2431%20105.083L54.6757%2086.276L58.0273%2082.2809Z'%20fill='url(%23paint3_linear_4883_1471)'%20fill-opacity='0.5'/%3e%3cpath%20d='M77.7438%2067.8159L57.5438%2065.2739V75.3519L77.4218%2077.6739L77.7438%2067.8159Z'%20fill='%23AEAEAE'/%3e%3cpath%20d='M41.5436%2068.5619L57.5416%2065.2739L57.5436%2076.6059L41.5436%2079.8739V68.5619Z'%20fill='%23CECECE'/%3e%3cpath%20d='M60.3437%2072.9079L77.5437%2068.4739V89.4399L60.3437%2093.8739V72.9079Z'%20fill='%23D7D7D7'/%3e%3cpath%20d='M41.7437%2069.0739L60.5437%2072.8239L60.4337%2093.8739L41.7437%2089.6979V69.0739Z'%20fill='%23CECECE'/%3e%3cpath%20d='M60.5437%2072.9099L41.5777%2068.8739L37.5437%2076.3079L56.8317%2080.8739L60.5437%2072.9099Z'%20fill='%23D7D7D7'/%3e%3cpath%20d='M60.5438%2072.8179L77.7618%2068.0739L82.1438%2075.4559L65.6538%2080.8739L60.5438%2072.8179Z'%20fill='%23CECECE'/%3e%3cpath%20d='M42.062%2038.1742C42.1135%2038.1007%2042.2149%2038.0829%2042.2886%2038.1341C42.3624%2038.1857%2042.3811%2038.2878%2042.3296%2038.3617C39.9019%2041.8373%2039.232%2044.83%2040.2397%2047.3656C41.2511%2049.9102%2043.9737%2052.054%2048.4761%2053.7718C48.5599%2053.804%2048.6018%2053.8978%2048.5698%2053.9818C48.5378%2054.0658%2048.4439%2054.1083%2048.3599%2054.0765C43.8303%2052.3483%2040.9997%2050.1595%2039.937%2047.4857C38.8708%2044.8028%2039.6058%2041.6905%2042.062%2038.1742Z'%20fill='%23CACACA'/%3e%3cpath%20d='M40.4131%2052.6189C40.4832%2052.5626%2040.5862%2052.5734%2040.6426%2052.6434C42.2903%2054.692%2043.7498%2055.6628%2045.0196%2055.6629C45.1096%2055.6629%2045.1827%2055.7359%2045.1827%2055.826C45.1826%2055.916%2045.1096%2055.9891%2045.0196%2055.9891C43.5895%2055.989%2042.0449%2054.9075%2040.3887%2052.8484C40.3324%2052.7784%2040.3432%2052.6754%2040.4131%2052.6189Z'%20fill='%23CACACA'/%3e%3cpath%20d='M80.3842%2029.1448C80.4739%2029.1419%2080.5489%2029.2122%2080.5521%2029.302C80.6644%2032.4732%2079.2269%2035.1621%2076.2728%2037.3636C73.3255%2039.5599%2068.8634%2041.2767%2062.9027%2042.5237C62.8148%2042.542%2062.729%2042.4855%2062.7103%2042.3977C62.6919%2042.3096%2062.7482%2042.2228%2062.8363%2042.2044C68.7773%2040.9615%2073.1854%2039.2578%2076.0775%2037.1028C78.9628%2034.9528%2080.3347%2032.3585%2080.2269%2029.3138C80.2238%2029.2238%2080.2942%2029.148%2080.3842%2029.1448Z'%20fill='%23CACACA'/%3e%3cpath%20d='M81.8727%2037.0029C81.9417%2036.9451%2082.0444%2036.9544%2082.1022%2037.0234C82.16%2037.0924%2082.1516%2037.195%2082.0827%2037.2529C80.6178%2038.481%2079.307%2039.4062%2078.152%2040.0254C76.9989%2040.6435%2075.9886%2040.9629%2075.1276%2040.9629C75.0376%2040.9629%2074.9645%2040.8898%2074.9645%2040.7998C74.9646%2040.7098%2075.0376%2040.6367%2075.1276%2040.6367C75.9126%2040.6367%2076.8675%2040.3441%2077.9977%2039.7383C79.1262%2039.1334%2080.4177%2038.2227%2081.8727%2037.0029Z'%20fill='%23CACACA'/%3e%3cpath%20d='M63.0449%2052.3659C66.6916%2050.8715%2071.4018%2050.4806%2077.1631%2051.1765C77.2524%2051.1873%2077.3163%2051.2679%2077.3056%2051.3572C77.2948%2051.4466%2077.2134%2051.5105%2077.124%2051.4997C71.3933%2050.8076%2066.7452%2051.2022%2063.1689%2052.6677C59.5985%2054.1309%2057.0867%2056.6654%2055.6269%2060.279C55.5932%2060.3625%2055.4975%2060.4026%2055.414%2060.3689C55.3309%2060.335%2055.2907%2060.2403%2055.3242%2060.157C56.8165%2056.4627%2059.3924%2053.8628%2063.0449%2052.3659Z'%20fill='%23CACACA'/%3e%3cpath%20d='M41.9276%2043.0699C48.7156%2044.1339%2051.4956%2046.0119%2050.2636%2048.7059C49.0316%2051.3999%2046.2536%2049.5199%2041.9276%2043.0699Z'%20fill='url(%23paint4_linear_4883_1471)'/%3e%3cpath%20d='M66.3096%2037.1279C67.3036%2033.6119%2069.8996%2032.4399%2074.0976%2033.6119C73.9176%2035.2259%2071.3216%2036.3979%2066.3096%2037.1279Z'%20fill='url(%23paint5_linear_4883_1471)'/%3e%3cpath%20d='M57.2056%2062.8179C60.3056%2056.7879%2064.6376%2055.0699%2070.2036%2057.6659C67.6076%2062.4679%2063.2756%2064.1859%2057.2056%2062.8179Z'%20fill='url(%23paint6_linear_4883_1471)'/%3e%3cpath%20d='M68.287%2035.6826C68.3714%2035.6515%2068.4658%2035.6949%2068.497%2035.7793C68.528%2035.8637%2068.4846%2035.9581%2068.4003%2035.9892C67.2135%2036.4256%2066.2397%2037.4297%2065.4911%2039.0332C65.4529%2039.1145%2065.3558%2039.1493%2065.2743%2039.1113C65.193%2039.0731%2065.1581%2038.9759%2065.1962%2038.8945C65.9675%2037.2424%2066.994%2036.1582%2068.287%2035.6826Z'%20fill='%23D4D4D4'/%3e%3cpath%20d='M50.3844%2052.0076C50.3844%2050.8199%2050.2086%2049.9078%2049.8708%2049.2576C49.5363%2048.6141%2049.0412%2048.2226%2048.3805%2048.0691C48.2929%2048.0486%2048.2381%2047.9605%2048.2585%2047.8728C48.2789%2047.7851%2048.3671%2047.7303%2048.4548%2047.7507C49.214%2047.9272%2049.7843%2048.3846%2050.1598%2049.1072C50.5316%2049.8227%2050.7106%2050.794%2050.7106%2052.0076C50.7106%2052.0976%2050.6376%2052.1706%2050.5475%2052.1706C50.4575%2052.1706%2050.3844%2052.0976%2050.3844%2052.0076Z'%20fill='%23CBCBCB'/%3e%3cpath%20d='M60.6755%2061.2808C60.7656%2061.2808%2060.8386%2061.3539%2060.8386%2061.4439C60.8386%2061.534%2060.7656%2061.607%2060.6755%2061.607C58.7044%2061.6071%2057.1513%2062.6619%2056.0203%2064.8218C55.9785%2064.9014%2055.8802%2064.9317%2055.8005%2064.8902C55.7208%2064.8485%2055.6896%2064.7502%2055.7312%2064.6705C56.9041%2062.4306%2058.5549%2061.2809%2060.6755%2061.2808Z'%20fill='%23BABABA'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_4883_1471'%20x1='35.0608'%20y1='86.6627'%20x2='28.9554'%20y2='86.7577'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E1E1E1'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23E1E1E1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_4883_1471'%20x1='97.0609'%20y1='86.6627'%20x2='90.9555'%20y2='86.7577'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E1E1E1'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23E1E1E1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_4883_1471'%20x1='89.8554'%20y1='86.7083'%20x2='85.0952'%20y2='86.7819'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E1E1E1'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23E1E1E1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_4883_1471'%20x1='78.1564'%20y1='97.3592'%20x2='78.1564'%20y2='76.5193'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23737373'%20stop-opacity='0.1'/%3e%3cstop%20offset='1'%20stop-color='%23737373'%20stop-opacity='0.2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_4883_1471'%20x1='41.8088'%20y1='42.9696'%20x2='51.3217'%20y2='46.884'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23B2B2B2'/%3e%3cstop%20offset='1'%20stop-color='%23DFDFDF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_4883_1471'%20x1='66.965'%20y1='35.6317'%20x2='72.8981'%20y2='32.1976'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23EAEAEA'/%3e%3cstop%20offset='1'%20stop-color='%23BDBDBD'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint6_linear_4883_1471'%20x1='58.2994'%20y1='60.7529'%20x2='68.1575'%20y2='54.898'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='1.19209e-07'%20stop-color='%23CECECE'/%3e%3cstop%20offset='1'%20stop-color='%23AEAEAE'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Ut = ["aria-label"], Wt = ["src"], Gt = { class: "jt-empty-state__description" }, Nt = {
|
|
1432
|
+
}), y2 = /* @__PURE__ */ K(v2, [["__scopeId", "data-v-313da8c4"]]), g2 = "data:image/svg+xml,%3csvg%20width='120'%20height='120'%20viewBox='0%200%20120%20120'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M59.2176%2014.6739C69.4236%2014.6739%2078.8356%2018.0259%2086.3776%2023.6739H83.3436C81.9076%2023.6739%2080.7436%2024.8379%2080.7436%2026.2739V26.4739C80.7436%2027.9099%2081.9076%2029.0739%2083.3436%2029.0739H92.3796C94.0936%2030.9219%2095.6496%2032.9119%2097.0296%2035.0259H101.32C102.866%2035.0259%20104.12%2036.2799%20104.12%2037.8259V37.9819C104.12%2039.2599%20103.264%2040.3379%20102.094%2040.6739H98.1436C96.3756%2040.6739%2094.9436%2042.1059%2094.9436%2043.8739V44.8739C94.9436%2046.6419%2096.3756%2048.0739%2098.1436%2048.0739H111.724C113.114%2048.4219%20114.144%2049.6799%20114.144%2051.1779V51.3559C114.144%2053.1239%20112.712%2054.5559%20110.944%2054.5559H103.908C104.048%2055.9779%20104.12%2057.4179%20104.12%2058.8739C104.12%2083.2839%2084.0156%20103.074%2059.2176%20103.074C39.3816%20103.074%2022.5496%2090.4139%2016.6076%2072.8539H14.9216C14.2416%2072.8539%2013.6876%2072.3019%2013.6876%2071.6199C13.6876%2071.0999%2014.0096%2070.6559%2014.4656%2070.4739H16.5436C17.9796%2070.4739%2019.1436%2069.3099%2019.1436%2067.8739V67.6739C19.1436%2066.2379%2017.9796%2065.0739%2016.5436%2065.0739H14.7536C14.7516%2065.0639%2014.7496%2065.0519%2014.7496%2065.0419H10.3136C9.17958%2065.0419%208.25958%2064.1219%208.25958%2062.9859C8.25958%2061.8499%209.17958%2060.9299%2010.3136%2060.9299H14.3636C14.3316%2060.2479%2014.3156%2059.5639%2014.3156%2058.8739C14.3156%2052.3479%2015.7516%2046.1519%2018.3316%2040.5759L11.1436%2040.5779C8.05158%2040.5779%205.54358%2038.0699%205.54358%2034.9779V34.6639C5.54358%2031.6799%207.87758%2029.2399%2010.8216%2029.0739H36.1436C37.2476%2029.0739%2038.1436%2028.1779%2038.1436%2027.0739C38.1436%2025.9699%2037.2476%2025.0739%2036.1436%2025.0739H30.2816C30.3316%2025.0339%2030.3796%2024.9919%2030.4276%2024.9519L27.5136%2024.9539C25.4136%2024.9539%2023.7136%2023.2519%2023.7136%2021.1539V20.9399C23.7136%2018.8419%2025.4136%2017.1399%2027.5136%2017.1399H44.3896C49.0316%2015.5419%2054.0216%2014.6739%2059.2176%2014.6739Z'%20fill='%23737373'%20fill-opacity='0.04'/%3e%3cpath%20d='M35.7497%2077.9519C35.7737%2078.0439%2035.8037%2078.1439%2035.8377%2078.2499L35.9077%2078.5299C35.9317%2078.6239%2035.9437%2078.6999%2035.9437%2078.7579C35.9437%2079.0839%2035.8557%2079.3739%2035.6797%2079.6259C35.5057%2079.8759%2035.2757%2080.0599%2034.9957%2080.1779C34.8897%2080.1899%2034.7797%2080.1959%2034.6617%2080.1959C34.5677%2080.2059%2034.4637%2080.2119%2034.3457%2080.2119H34.0117L31.2737%2080.2479V83.1759C31.2737%2083.6079%2031.2817%2084.0419%2031.2997%2084.4819C31.3177%2084.9199%2031.3377%2085.3139%2031.3597%2085.6639C31.3837%2086.0859%2031.4137%2086.4879%2031.4477%2086.8739H28.9197L28.9717%2086.1899C28.9837%2085.9219%2028.9957%2085.5559%2029.0077%2085.0939C29.0197%2084.6339%2029.0257%2084.0159%2029.0257%2083.2459V80.5639C28.8257%2080.7379%2028.6037%2080.8259%2028.3577%2080.8259C28.1597%2080.8259%2027.9857%2080.7799%2027.8397%2080.6859C27.6937%2080.5919%2027.5737%2080.4639%2027.4797%2080.2999L25.4957%2080.1959C25.1097%2080.1019%2024.7877%2079.9059%2024.5297%2079.6079C24.2717%2079.3099%2024.1437%2078.9559%2024.1437%2078.5479C24.1437%2078.4779%2024.1497%2078.4119%2024.1617%2078.3539C24.1737%2078.2959%2024.1897%2078.2379%2024.2137%2078.1799L24.6537%2077.1619C24.6757%2076.9059%2024.7497%2076.6659%2024.8717%2076.4439C24.9957%2076.2219%2025.1497%2076.0279%2025.3377%2075.8659L28.0937%2070.7639H28.1117C28.3337%2070.3559%2028.5977%2070.0039%2028.9017%2069.7119C29.2057%2069.4199%2029.5997%2069.2739%2030.0797%2069.2739C30.4997%2069.2739%2030.8777%2069.3859%2031.2117%2069.6079C31.5457%2069.8299%2031.7937%2070.1219%2031.9577%2070.4839L34.1697%2074.8139C34.5677%2074.9539%2034.8957%2075.1999%2035.1537%2075.5499C35.4117%2075.8999%2035.5397%2076.3039%2035.5397%2076.7599C35.5397%2076.9459%2035.5097%2077.1439%2035.4517%2077.3559L35.7497%2077.9519Z'%20fill='url(%23paint0_linear_4883_1471)'/%3e%3cpath%20d='M97.7498%2077.9519C97.7738%2078.0439%2097.8038%2078.1439%2097.8378%2078.2499L97.9078%2078.5299C97.9318%2078.6239%2097.9438%2078.6999%2097.9438%2078.7579C97.9438%2079.0839%2097.8558%2079.3739%2097.6798%2079.6259C97.5058%2079.8759%2097.2758%2080.0599%2096.9958%2080.1779C96.8898%2080.1899%2096.7798%2080.1959%2096.6618%2080.1959C96.5678%2080.2059%2096.4638%2080.2119%2096.3458%2080.2119H96.0118L93.2738%2080.2479V83.1759C93.2738%2083.6079%2093.2818%2084.0419%2093.2998%2084.4819C93.3178%2084.9199%2093.3378%2085.3139%2093.3598%2085.6639C93.3838%2086.0859%2093.4138%2086.4879%2093.4478%2086.8739H90.9198L90.9718%2086.1899C90.9838%2085.9219%2090.9958%2085.5559%2091.0078%2085.0939C91.0198%2084.6339%2091.0258%2084.0159%2091.0258%2083.2459V80.5639C90.8258%2080.7379%2090.6038%2080.8259%2090.3578%2080.8259C90.1598%2080.8259%2089.9858%2080.7799%2089.8398%2080.6859C89.6938%2080.5919%2089.5738%2080.4639%2089.4798%2080.2999L87.4958%2080.1959C87.1098%2080.1019%2086.7878%2079.9059%2086.5298%2079.6079C86.2718%2079.3099%2086.1438%2078.9559%2086.1438%2078.5479C86.1438%2078.4779%2086.1498%2078.4119%2086.1618%2078.3539C86.1738%2078.2959%2086.1898%2078.2379%2086.2138%2078.1799L86.6538%2077.1619C86.6758%2076.9059%2086.7498%2076.6659%2086.8718%2076.4439C86.9958%2076.2219%2087.1498%2076.0279%2087.3378%2075.8659L90.0938%2070.7639H90.1118C90.3338%2070.3559%2090.5978%2070.0039%2090.9018%2069.7119C91.2058%2069.4199%2091.5998%2069.2739%2092.0798%2069.2739C92.4998%2069.2739%2092.8778%2069.3859%2093.2118%2069.6079C93.5458%2069.8299%2093.7938%2070.1219%2093.9578%2070.4839L96.1698%2074.8139C96.5678%2074.9539%2096.8958%2075.1999%2097.1538%2075.5499C97.4118%2075.8999%2097.5398%2076.3039%2097.5398%2076.7599C97.5398%2076.9459%2097.5098%2077.1439%2097.4518%2077.3559L97.7498%2077.9519Z'%20fill='url(%23paint1_linear_4883_1471)'/%3e%3cpath%20d='M90.3937%2079.8779C90.4117%2079.9519%2090.4337%2080.0279%2090.4617%2080.1119L90.5157%2080.3319C90.5337%2080.4039%2090.5437%2080.4639%2090.5437%2080.5099C90.5437%2080.7659%2090.4757%2080.9939%2090.3377%2081.1899C90.2017%2081.3879%2090.0237%2081.5319%2089.8037%2081.6239C89.7217%2081.6319%2089.6357%2081.6379%2089.5437%2081.6379C89.4717%2081.6459%2089.3897%2081.6499%2089.2977%2081.6499H89.0377L86.9018%2081.6779V83.9739C86.9018%2084.3119%2086.9098%2084.6539%2086.9218%2084.9979C86.9358%2085.3419%2086.9518%2085.6499%2086.9698%2085.9259C86.9898%2086.2559%2087.0118%2086.5719%2087.0398%2086.8739H85.0677L85.1078%2086.3379C85.1178%2086.1279%2085.1277%2085.8399%2085.1357%2085.4779C85.1457%2085.1159%2085.1497%2084.6339%2085.1497%2084.0279V81.9259C84.9937%2082.0639%2084.8217%2082.1319%2084.6297%2082.1319C84.4737%2082.1319%2084.3398%2082.0959%2084.2258%2082.0219C84.1118%2081.9479%2084.0178%2081.8479%2083.9458%2081.7199L82.3977%2081.6379C82.0957%2081.5639%2081.8458%2081.4099%2081.6458%2081.1759C81.4438%2080.9439%2081.3438%2080.6659%2081.3438%2080.3459C81.3438%2080.2899%2081.3478%2080.2399%2081.3578%2080.1939C81.3658%2080.1479%2081.3797%2080.1019%2081.3977%2080.0559L81.7417%2079.2599C81.7597%2079.0579%2081.8157%2078.8699%2081.9117%2078.6959C82.0077%2078.5219%2082.1277%2078.3699%2082.2737%2078.2419L84.4237%2074.2419H84.4377C84.6117%2073.9219%2084.8157%2073.6459%2085.0537%2073.4179C85.2917%2073.1879%2085.5978%2073.0739%2085.9718%2073.0739C86.2998%2073.0739%2086.5937%2073.1619%2086.8537%2073.3359C87.1137%2073.5099%2087.3077%2073.7379%2087.4357%2074.0219L89.1617%2077.4179C89.4717%2077.5279%2089.7278%2077.7199%2089.9278%2077.9939C90.1278%2078.2699%2090.2297%2078.5859%2090.2297%2078.9439C90.2297%2079.0899%2090.2057%2079.2459%2090.1597%2079.4099L90.3937%2079.8779Z'%20fill='url(%23paint2_linear_4883_1471)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.6439%2082.2739C68.9199%2082.2739%2079.9739%2083.2759%2087.7019%2084.8739C95.2599%2084.9259%20101.344%2087.1879%20101.344%2089.9739C101.344%2092.1819%2097.5219%2094.0619%2092.1739%2094.7719C90.8979%2095.1479%2089.4599%2095.5039%2087.8819%2095.8359C87.9239%2096.0459%2087.9439%2096.2599%2087.9439%2096.4739C87.9439%20101.334%2077.3779%20105.274%2064.3439%20105.274C52.6179%20105.274%2042.8879%20102.084%2041.0539%2097.9059C25.4079%2096.7179%2014.3439%2093.7939%2014.3439%2090.3739C14.3439%2085.8999%2033.2819%2082.2739%2056.6439%2082.2739Z'%20fill='%23E9E9E9'/%3e%3cpath%20d='M58.0273%2082.2809C64.5825%2082.3213%2070.7608%2082.6464%2076.2343%2083.195L97.1259%2093.6325C95.7272%2094.1309%2094.0439%2094.5238%2092.1738%2094.7721C90.8978%2095.1481%2089.4597%2095.5036%2087.8818%2095.8356C87.9238%2096.0456%2087.9443%2096.2603%2087.9443%2096.4743C87.9439%20100.708%2079.9256%20104.242%2069.2431%20105.083L54.6757%2086.276L58.0273%2082.2809Z'%20fill='url(%23paint3_linear_4883_1471)'%20fill-opacity='0.5'/%3e%3cpath%20d='M77.7438%2067.8159L57.5438%2065.2739V75.3519L77.4218%2077.6739L77.7438%2067.8159Z'%20fill='%23AEAEAE'/%3e%3cpath%20d='M41.5436%2068.5619L57.5416%2065.2739L57.5436%2076.6059L41.5436%2079.8739V68.5619Z'%20fill='%23CECECE'/%3e%3cpath%20d='M60.3437%2072.9079L77.5437%2068.4739V89.4399L60.3437%2093.8739V72.9079Z'%20fill='%23D7D7D7'/%3e%3cpath%20d='M41.7437%2069.0739L60.5437%2072.8239L60.4337%2093.8739L41.7437%2089.6979V69.0739Z'%20fill='%23CECECE'/%3e%3cpath%20d='M60.5437%2072.9099L41.5777%2068.8739L37.5437%2076.3079L56.8317%2080.8739L60.5437%2072.9099Z'%20fill='%23D7D7D7'/%3e%3cpath%20d='M60.5438%2072.8179L77.7618%2068.0739L82.1438%2075.4559L65.6538%2080.8739L60.5438%2072.8179Z'%20fill='%23CECECE'/%3e%3cpath%20d='M42.062%2038.1742C42.1135%2038.1007%2042.2149%2038.0829%2042.2886%2038.1341C42.3624%2038.1857%2042.3811%2038.2878%2042.3296%2038.3617C39.9019%2041.8373%2039.232%2044.83%2040.2397%2047.3656C41.2511%2049.9102%2043.9737%2052.054%2048.4761%2053.7718C48.5599%2053.804%2048.6018%2053.8978%2048.5698%2053.9818C48.5378%2054.0658%2048.4439%2054.1083%2048.3599%2054.0765C43.8303%2052.3483%2040.9997%2050.1595%2039.937%2047.4857C38.8708%2044.8028%2039.6058%2041.6905%2042.062%2038.1742Z'%20fill='%23CACACA'/%3e%3cpath%20d='M40.4131%2052.6189C40.4832%2052.5626%2040.5862%2052.5734%2040.6426%2052.6434C42.2903%2054.692%2043.7498%2055.6628%2045.0196%2055.6629C45.1096%2055.6629%2045.1827%2055.7359%2045.1827%2055.826C45.1826%2055.916%2045.1096%2055.9891%2045.0196%2055.9891C43.5895%2055.989%2042.0449%2054.9075%2040.3887%2052.8484C40.3324%2052.7784%2040.3432%2052.6754%2040.4131%2052.6189Z'%20fill='%23CACACA'/%3e%3cpath%20d='M80.3842%2029.1448C80.4739%2029.1419%2080.5489%2029.2122%2080.5521%2029.302C80.6644%2032.4732%2079.2269%2035.1621%2076.2728%2037.3636C73.3255%2039.5599%2068.8634%2041.2767%2062.9027%2042.5237C62.8148%2042.542%2062.729%2042.4855%2062.7103%2042.3977C62.6919%2042.3096%2062.7482%2042.2228%2062.8363%2042.2044C68.7773%2040.9615%2073.1854%2039.2578%2076.0775%2037.1028C78.9628%2034.9528%2080.3347%2032.3585%2080.2269%2029.3138C80.2238%2029.2238%2080.2942%2029.148%2080.3842%2029.1448Z'%20fill='%23CACACA'/%3e%3cpath%20d='M81.8727%2037.0029C81.9417%2036.9451%2082.0444%2036.9544%2082.1022%2037.0234C82.16%2037.0924%2082.1516%2037.195%2082.0827%2037.2529C80.6178%2038.481%2079.307%2039.4062%2078.152%2040.0254C76.9989%2040.6435%2075.9886%2040.9629%2075.1276%2040.9629C75.0376%2040.9629%2074.9645%2040.8898%2074.9645%2040.7998C74.9646%2040.7098%2075.0376%2040.6367%2075.1276%2040.6367C75.9126%2040.6367%2076.8675%2040.3441%2077.9977%2039.7383C79.1262%2039.1334%2080.4177%2038.2227%2081.8727%2037.0029Z'%20fill='%23CACACA'/%3e%3cpath%20d='M63.0449%2052.3659C66.6916%2050.8715%2071.4018%2050.4806%2077.1631%2051.1765C77.2524%2051.1873%2077.3163%2051.2679%2077.3056%2051.3572C77.2948%2051.4466%2077.2134%2051.5105%2077.124%2051.4997C71.3933%2050.8076%2066.7452%2051.2022%2063.1689%2052.6677C59.5985%2054.1309%2057.0867%2056.6654%2055.6269%2060.279C55.5932%2060.3625%2055.4975%2060.4026%2055.414%2060.3689C55.3309%2060.335%2055.2907%2060.2403%2055.3242%2060.157C56.8165%2056.4627%2059.3924%2053.8628%2063.0449%2052.3659Z'%20fill='%23CACACA'/%3e%3cpath%20d='M41.9276%2043.0699C48.7156%2044.1339%2051.4956%2046.0119%2050.2636%2048.7059C49.0316%2051.3999%2046.2536%2049.5199%2041.9276%2043.0699Z'%20fill='url(%23paint4_linear_4883_1471)'/%3e%3cpath%20d='M66.3096%2037.1279C67.3036%2033.6119%2069.8996%2032.4399%2074.0976%2033.6119C73.9176%2035.2259%2071.3216%2036.3979%2066.3096%2037.1279Z'%20fill='url(%23paint5_linear_4883_1471)'/%3e%3cpath%20d='M57.2056%2062.8179C60.3056%2056.7879%2064.6376%2055.0699%2070.2036%2057.6659C67.6076%2062.4679%2063.2756%2064.1859%2057.2056%2062.8179Z'%20fill='url(%23paint6_linear_4883_1471)'/%3e%3cpath%20d='M68.287%2035.6826C68.3714%2035.6515%2068.4658%2035.6949%2068.497%2035.7793C68.528%2035.8637%2068.4846%2035.9581%2068.4003%2035.9892C67.2135%2036.4256%2066.2397%2037.4297%2065.4911%2039.0332C65.4529%2039.1145%2065.3558%2039.1493%2065.2743%2039.1113C65.193%2039.0731%2065.1581%2038.9759%2065.1962%2038.8945C65.9675%2037.2424%2066.994%2036.1582%2068.287%2035.6826Z'%20fill='%23D4D4D4'/%3e%3cpath%20d='M50.3844%2052.0076C50.3844%2050.8199%2050.2086%2049.9078%2049.8708%2049.2576C49.5363%2048.6141%2049.0412%2048.2226%2048.3805%2048.0691C48.2929%2048.0486%2048.2381%2047.9605%2048.2585%2047.8728C48.2789%2047.7851%2048.3671%2047.7303%2048.4548%2047.7507C49.214%2047.9272%2049.7843%2048.3846%2050.1598%2049.1072C50.5316%2049.8227%2050.7106%2050.794%2050.7106%2052.0076C50.7106%2052.0976%2050.6376%2052.1706%2050.5475%2052.1706C50.4575%2052.1706%2050.3844%2052.0976%2050.3844%2052.0076Z'%20fill='%23CBCBCB'/%3e%3cpath%20d='M60.6755%2061.2808C60.7656%2061.2808%2060.8386%2061.3539%2060.8386%2061.4439C60.8386%2061.534%2060.7656%2061.607%2060.6755%2061.607C58.7044%2061.6071%2057.1513%2062.6619%2056.0203%2064.8218C55.9785%2064.9014%2055.8802%2064.9317%2055.8005%2064.8902C55.7208%2064.8485%2055.6896%2064.7502%2055.7312%2064.6705C56.9041%2062.4306%2058.5549%2061.2809%2060.6755%2061.2808Z'%20fill='%23BABABA'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_4883_1471'%20x1='35.0608'%20y1='86.6627'%20x2='28.9554'%20y2='86.7577'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E1E1E1'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23E1E1E1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_4883_1471'%20x1='97.0609'%20y1='86.6627'%20x2='90.9555'%20y2='86.7577'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E1E1E1'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23E1E1E1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_4883_1471'%20x1='89.8554'%20y1='86.7083'%20x2='85.0952'%20y2='86.7819'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E1E1E1'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23E1E1E1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_4883_1471'%20x1='78.1564'%20y1='97.3592'%20x2='78.1564'%20y2='76.5193'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23737373'%20stop-opacity='0.1'/%3e%3cstop%20offset='1'%20stop-color='%23737373'%20stop-opacity='0.2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_4883_1471'%20x1='41.8088'%20y1='42.9696'%20x2='51.3217'%20y2='46.884'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23B2B2B2'/%3e%3cstop%20offset='1'%20stop-color='%23DFDFDF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_4883_1471'%20x1='66.965'%20y1='35.6317'%20x2='72.8981'%20y2='32.1976'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23EAEAEA'/%3e%3cstop%20offset='1'%20stop-color='%23BDBDBD'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint6_linear_4883_1471'%20x1='58.2994'%20y1='60.7529'%20x2='68.1575'%20y2='54.898'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='1.19209e-07'%20stop-color='%23CECECE'/%3e%3cstop%20offset='1'%20stop-color='%23AEAEAE'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", C2 = ["aria-label"], _2 = ["src"], b2 = { class: "jt-empty-state__description" }, w2 = {
|
|
957
1433
|
key: 0,
|
|
958
1434
|
class: "jt-empty-state__actions"
|
|
959
|
-
},
|
|
1435
|
+
}, $2 = /* @__PURE__ */ H({
|
|
960
1436
|
name: "JtEmptyState",
|
|
961
1437
|
__name: "index",
|
|
962
1438
|
props: {
|
|
963
|
-
description: { default:
|
|
1439
|
+
description: { default: O("common.暂无数据", "暂无数据") },
|
|
964
1440
|
imageSize: { default: 120 }
|
|
965
1441
|
},
|
|
966
1442
|
setup(l) {
|
|
967
|
-
const
|
|
968
|
-
"--jt-empty-state-image-size": typeof
|
|
1443
|
+
const o = l, e = m(() => ({
|
|
1444
|
+
"--jt-empty-state-image-size": typeof o.imageSize == "number" ? `${o.imageSize}px` : o.imageSize
|
|
969
1445
|
}));
|
|
970
|
-
return (
|
|
1446
|
+
return (t, s) => (c(), w("section", {
|
|
971
1447
|
class: "jt-empty-state",
|
|
972
1448
|
role: "status",
|
|
973
|
-
"aria-label":
|
|
974
|
-
style:
|
|
1449
|
+
"aria-label": t.description,
|
|
1450
|
+
style: ie(e.value)
|
|
975
1451
|
}, [
|
|
976
|
-
|
|
977
|
-
class:
|
|
1452
|
+
T("div", {
|
|
1453
|
+
class: te(["jt-empty-state__image", { "jt-empty-state__image--default": !t.$slots.image }])
|
|
978
1454
|
}, [
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
src: P(
|
|
1455
|
+
$(t.$slots, "image", {}, () => [
|
|
1456
|
+
T("img", {
|
|
1457
|
+
src: P(g2),
|
|
982
1458
|
alt: ""
|
|
983
|
-
}, null, 8,
|
|
1459
|
+
}, null, 8, _2)
|
|
984
1460
|
], !0)
|
|
985
1461
|
], 2),
|
|
986
|
-
|
|
987
|
-
|
|
1462
|
+
$(t.$slots, "default", {}, () => [
|
|
1463
|
+
T("p", b2, I(t.description), 1)
|
|
988
1464
|
], !0),
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
])) :
|
|
992
|
-
], 12,
|
|
1465
|
+
t.$slots.actions ? (c(), w("div", w2, [
|
|
1466
|
+
$(t.$slots, "actions", {}, void 0, !0)
|
|
1467
|
+
])) : J("", !0)
|
|
1468
|
+
], 12, C2));
|
|
993
1469
|
}
|
|
994
|
-
}),
|
|
1470
|
+
}), L2 = /* @__PURE__ */ K($2, [["__scopeId", "data-v-d0dab198"]]), k2 = { key: 1 }, x2 = { key: 2 }, j2 = { key: 3 }, S2 = /* @__PURE__ */ H({
|
|
995
1471
|
name: "JtTable",
|
|
996
1472
|
__name: "JtTable",
|
|
997
1473
|
props: {
|
|
@@ -1000,118 +1476,119 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1000
1476
|
option: {},
|
|
1001
1477
|
tableEvents: {}
|
|
1002
1478
|
},
|
|
1003
|
-
setup(l, { expose:
|
|
1004
|
-
const
|
|
1005
|
-
() =>
|
|
1006
|
-
), f = m(() =>
|
|
1007
|
-
function u(
|
|
1008
|
-
return !!
|
|
1479
|
+
setup(l, { expose: o }) {
|
|
1480
|
+
const e = l, t = he(), s = R(), n = m(() => e.option ?? {}), i = m(
|
|
1481
|
+
() => n.value.emptyText ?? O("common.暂无数据")
|
|
1482
|
+
), f = m(() => e.columns.filter((p) => !p.hide)), a = m(() => n.value.menuFixed ?? "right");
|
|
1483
|
+
function u(p) {
|
|
1484
|
+
return !!t[`${p}-header`];
|
|
1009
1485
|
}
|
|
1010
|
-
function
|
|
1011
|
-
return !!
|
|
1486
|
+
function g(p) {
|
|
1487
|
+
return !!t[`${p}-data`];
|
|
1012
1488
|
}
|
|
1013
|
-
function
|
|
1489
|
+
function C(p) {
|
|
1014
1490
|
return {
|
|
1015
|
-
width:
|
|
1016
|
-
minWidth:
|
|
1017
|
-
align:
|
|
1018
|
-
fixed:
|
|
1019
|
-
sortable:
|
|
1020
|
-
showOverflowTooltip:
|
|
1021
|
-
...
|
|
1491
|
+
width: p.width,
|
|
1492
|
+
minWidth: p.minWidth,
|
|
1493
|
+
align: p.align || "center",
|
|
1494
|
+
fixed: p.fixed,
|
|
1495
|
+
sortable: p.sortable,
|
|
1496
|
+
showOverflowTooltip: p.showOverflowTooltip ?? _(p),
|
|
1497
|
+
...p.columnOptions
|
|
1022
1498
|
};
|
|
1023
1499
|
}
|
|
1024
|
-
function
|
|
1025
|
-
return !
|
|
1500
|
+
function _(p) {
|
|
1501
|
+
return !g(p.prop) && !M(p.columnOptions?.type);
|
|
1026
1502
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return !M(
|
|
1503
|
+
function B(p) {
|
|
1504
|
+
return !M(p.columnOptions?.type);
|
|
1029
1505
|
}
|
|
1030
|
-
function M(
|
|
1031
|
-
return
|
|
1506
|
+
function M(p) {
|
|
1507
|
+
return p === "selection" || p === "index" || p === "expand";
|
|
1032
1508
|
}
|
|
1033
|
-
function p
|
|
1034
|
-
return
|
|
1509
|
+
function b(p, r) {
|
|
1510
|
+
return p.find((h) => h.value === r)?.label ?? String(r ?? "");
|
|
1035
1511
|
}
|
|
1036
|
-
return
|
|
1037
|
-
const h =
|
|
1038
|
-
return c(),
|
|
1512
|
+
return o({ tableRef: s }), (p, r) => {
|
|
1513
|
+
const h = vt, S = ht;
|
|
1514
|
+
return c(), z(S, A({
|
|
1039
1515
|
ref_key: "tableRef",
|
|
1040
|
-
ref:
|
|
1041
|
-
data:
|
|
1042
|
-
"row-key":
|
|
1043
|
-
"empty-text":
|
|
1044
|
-
stripe:
|
|
1516
|
+
ref: s,
|
|
1517
|
+
data: p.data,
|
|
1518
|
+
"row-key": n.value.rowKey ?? "id",
|
|
1519
|
+
"empty-text": n.value.emptyText,
|
|
1520
|
+
stripe: n.value.tableProps?.stripe ?? !0,
|
|
1521
|
+
border: n.value.tableProps?.border ?? !0,
|
|
1045
1522
|
class: "jt-table"
|
|
1046
|
-
},
|
|
1523
|
+
}, n.value.tableProps, fe(p.tableEvents)), {
|
|
1047
1524
|
empty: j(() => [
|
|
1048
|
-
|
|
1049
|
-
|
|
1525
|
+
$(p.$slots, "empty", {}, () => [
|
|
1526
|
+
q(L2, { description: i.value }, null, 8, ["description"])
|
|
1050
1527
|
], !0)
|
|
1051
1528
|
]),
|
|
1052
1529
|
default: j(() => [
|
|
1053
|
-
|
|
1530
|
+
n.value.selection ? (c(), z(h, {
|
|
1054
1531
|
key: 0,
|
|
1055
1532
|
type: "selection",
|
|
1056
1533
|
width: "55",
|
|
1057
1534
|
align: "center"
|
|
1058
|
-
})) :
|
|
1059
|
-
|
|
1535
|
+
})) : J("", !0),
|
|
1536
|
+
n.value.index ? (c(), z(h, {
|
|
1060
1537
|
key: 1,
|
|
1061
1538
|
type: "index",
|
|
1062
|
-
label:
|
|
1063
|
-
"min-width":
|
|
1539
|
+
label: n.value.indexLabel ?? P(O)("common.序号"),
|
|
1540
|
+
"min-width": n.value.indexWidth ?? 80,
|
|
1064
1541
|
align: "center"
|
|
1065
|
-
}, null, 8, ["label", "min-width"])) :
|
|
1066
|
-
(c(!0),
|
|
1067
|
-
key:
|
|
1068
|
-
prop:
|
|
1069
|
-
label:
|
|
1070
|
-
formatter: !
|
|
1542
|
+
}, null, 8, ["label", "min-width"])) : J("", !0),
|
|
1543
|
+
(c(!0), w(G, null, W(f.value, (x) => (c(), z(h, A({
|
|
1544
|
+
key: x.prop,
|
|
1545
|
+
prop: x.prop,
|
|
1546
|
+
label: x.label,
|
|
1547
|
+
formatter: !g(x.prop) && !x.dicData ? x.formatter : void 0,
|
|
1071
1548
|
ref_for: !0
|
|
1072
|
-
},
|
|
1073
|
-
u(
|
|
1549
|
+
}, C(x)), ae({ _: 2 }, [
|
|
1550
|
+
u(x.prop) ? {
|
|
1074
1551
|
name: "header",
|
|
1075
|
-
fn: j((
|
|
1076
|
-
|
|
1552
|
+
fn: j((y) => [
|
|
1553
|
+
$(p.$slots, `${x.prop}-header`, A({ ref_for: !0 }, y), void 0, !0)
|
|
1077
1554
|
]),
|
|
1078
1555
|
key: "0"
|
|
1079
1556
|
} : void 0,
|
|
1080
|
-
|
|
1557
|
+
B(x) ? {
|
|
1081
1558
|
name: "default",
|
|
1082
|
-
fn: j((
|
|
1083
|
-
|
|
1559
|
+
fn: j((y) => [
|
|
1560
|
+
g(x.prop) ? $(p.$slots, `${x.prop}-data`, A({
|
|
1084
1561
|
key: 0,
|
|
1085
1562
|
ref_for: !0
|
|
1086
|
-
},
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
)), 1)) : (c(),
|
|
1563
|
+
}, y), void 0, !0) : x.dicData ? (c(), w("span", k2, I(b(x.dicData, y.row[x.prop])), 1)) : x.formatter ? (c(), w("span", x2, I(x.formatter(
|
|
1564
|
+
y.row,
|
|
1565
|
+
y.column,
|
|
1566
|
+
y.row[x.prop],
|
|
1567
|
+
y.$index
|
|
1568
|
+
)), 1)) : (c(), w("span", j2, I(y.row[x.prop]), 1))
|
|
1092
1569
|
]),
|
|
1093
1570
|
key: "1"
|
|
1094
1571
|
} : void 0
|
|
1095
1572
|
]), 1040, ["prop", "label", "formatter"]))), 128)),
|
|
1096
|
-
|
|
1573
|
+
n.value.menu ? (c(), z(h, {
|
|
1097
1574
|
key: 2,
|
|
1098
|
-
label:
|
|
1099
|
-
width:
|
|
1100
|
-
"min-width":
|
|
1101
|
-
align:
|
|
1102
|
-
fixed:
|
|
1575
|
+
label: n.value.menuLabel ?? P(O)("common.操作"),
|
|
1576
|
+
width: n.value.menuWidth,
|
|
1577
|
+
"min-width": n.value.menuMinWidth,
|
|
1578
|
+
align: n.value.menuAlign ?? "center",
|
|
1579
|
+
fixed: a.value
|
|
1103
1580
|
}, {
|
|
1104
|
-
default: j((
|
|
1105
|
-
|
|
1581
|
+
default: j((x) => [
|
|
1582
|
+
$(p.$slots, "menu", le(ne(x)), void 0, !0)
|
|
1106
1583
|
]),
|
|
1107
1584
|
_: 3
|
|
1108
|
-
}, 8, ["label", "width", "min-width", "align", "fixed"])) :
|
|
1585
|
+
}, 8, ["label", "width", "min-width", "align", "fixed"])) : J("", !0)
|
|
1109
1586
|
]),
|
|
1110
1587
|
_: 3
|
|
1111
|
-
}, 16, ["data", "row-key", "empty-text", "stripe"]);
|
|
1588
|
+
}, 16, ["data", "row-key", "empty-text", "stripe", "border"]);
|
|
1112
1589
|
};
|
|
1113
1590
|
}
|
|
1114
|
-
}),
|
|
1591
|
+
}), B2 = /* @__PURE__ */ K(S2, [["__scopeId", "data-v-ebce75a9"]]), T2 = { class: "jt-pagination" }, E2 = { class: "jt-pagination__count" }, M2 = /* @__PURE__ */ H({
|
|
1115
1592
|
name: "JtPagination",
|
|
1116
1593
|
__name: "JtPagination",
|
|
1117
1594
|
props: {
|
|
@@ -1121,33 +1598,33 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1121
1598
|
option: {}
|
|
1122
1599
|
},
|
|
1123
1600
|
emits: ["update:currentPage", "update:pageSize", "current-change", "page-change", "size-change"],
|
|
1124
|
-
setup(l, { emit:
|
|
1125
|
-
const
|
|
1126
|
-
function
|
|
1127
|
-
|
|
1128
|
-
}
|
|
1129
|
-
return (
|
|
1130
|
-
const
|
|
1131
|
-
return c(),
|
|
1132
|
-
|
|
1133
|
-
"current-page":
|
|
1134
|
-
"page-size":
|
|
1135
|
-
"page-sizes":
|
|
1136
|
-
total:
|
|
1137
|
-
layout:
|
|
1138
|
-
"onUpdate:currentPage": f[0] || (f[0] = (u) =>
|
|
1139
|
-
"onUpdate:pageSize": f[1] || (f[1] = (u) =>
|
|
1140
|
-
onCurrentChange:
|
|
1141
|
-
onSizeChange: f[2] || (f[2] = (u) =>
|
|
1601
|
+
setup(l, { emit: o }) {
|
|
1602
|
+
const e = l, t = m(() => e.option ?? {}), s = o;
|
|
1603
|
+
function n(i) {
|
|
1604
|
+
s("current-change", i), s("page-change", i);
|
|
1605
|
+
}
|
|
1606
|
+
return (i, f) => {
|
|
1607
|
+
const a = yt;
|
|
1608
|
+
return c(), w("div", T2, [
|
|
1609
|
+
q(a, {
|
|
1610
|
+
"current-page": i.currentPage,
|
|
1611
|
+
"page-size": i.pageSize,
|
|
1612
|
+
"page-sizes": t.value.pageSizes ?? [10, 20, 50, 100],
|
|
1613
|
+
total: i.total,
|
|
1614
|
+
layout: t.value.paginationLayout ?? "sizes, prev, pager, next, jumper",
|
|
1615
|
+
"onUpdate:currentPage": f[0] || (f[0] = (u) => i.$emit("update:currentPage", u)),
|
|
1616
|
+
"onUpdate:pageSize": f[1] || (f[1] = (u) => i.$emit("update:pageSize", u)),
|
|
1617
|
+
onCurrentChange: n,
|
|
1618
|
+
onSizeChange: f[2] || (f[2] = (u) => i.$emit("size-change", u))
|
|
1142
1619
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"]),
|
|
1143
|
-
|
|
1620
|
+
T("span", E2, I(P(O)("common.共{total}条记录", "共 {total} 条记录", { total: i.total })), 1)
|
|
1144
1621
|
]);
|
|
1145
1622
|
};
|
|
1146
1623
|
}
|
|
1147
|
-
}),
|
|
1624
|
+
}), P2 = /* @__PURE__ */ K(M2, [["__scopeId", "data-v-03d564ec"]]), V2 = { class: "jt-crud-table" }, I2 = { class: "filter-bar-box" }, D2 = { class: "jt-crud-table__result" }, O2 = { class: "jt-crud-table__table-group" }, F2 = {
|
|
1148
1625
|
key: 0,
|
|
1149
1626
|
class: "jt-crud-table__toolbar"
|
|
1150
|
-
},
|
|
1627
|
+
}, z2 = /* @__PURE__ */ H({
|
|
1151
1628
|
name: "JtCrudTable",
|
|
1152
1629
|
__name: "JtCrudTable",
|
|
1153
1630
|
props: /* @__PURE__ */ me({
|
|
@@ -1167,126 +1644,126 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1167
1644
|
searchModelModifiers: {}
|
|
1168
1645
|
}),
|
|
1169
1646
|
emits: /* @__PURE__ */ me(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
|
|
1170
|
-
setup(l, { expose:
|
|
1171
|
-
const
|
|
1172
|
-
() =>
|
|
1647
|
+
setup(l, { expose: o, emit: e }) {
|
|
1648
|
+
const t = l, s = e, n = ye(l, "currentPage"), i = ye(l, "pageSize"), f = ye(l, "searchModel"), a = he(), u = R(), g = R(), C = m(() => t.option), _ = m(() => C.value.searchShow !== !1), B = m(
|
|
1649
|
+
() => C.value.paginationShow !== !1
|
|
1173
1650
|
), M = m(
|
|
1174
|
-
() =>
|
|
1651
|
+
() => t.columns.filter((L) => L.search && !!a[`${L.prop}-search`])
|
|
1652
|
+
), b = m(
|
|
1653
|
+
() => t.columns.filter((L) => !L.hide && !!a[`${L.prop}-header`])
|
|
1175
1654
|
), p = m(
|
|
1176
|
-
() =>
|
|
1177
|
-
), d = m(
|
|
1178
|
-
() => e.columns.filter((B) => !B.hide && !!n[`${B.prop}-data`])
|
|
1655
|
+
() => t.columns.filter((L) => !L.hide && !!a[`${L.prop}-data`])
|
|
1179
1656
|
);
|
|
1180
|
-
function
|
|
1181
|
-
const
|
|
1182
|
-
return
|
|
1183
|
-
|
|
1184
|
-
}),
|
|
1657
|
+
function r() {
|
|
1658
|
+
const L = {};
|
|
1659
|
+
return t.columns.forEach((D) => {
|
|
1660
|
+
D.search && (L[D.prop] = void 0);
|
|
1661
|
+
}), L;
|
|
1185
1662
|
}
|
|
1186
1663
|
function h() {
|
|
1187
|
-
|
|
1664
|
+
s("search", { ...f.value });
|
|
1188
1665
|
}
|
|
1189
|
-
function
|
|
1190
|
-
f.value =
|
|
1666
|
+
function S() {
|
|
1667
|
+
f.value = r(), s("reset");
|
|
1191
1668
|
}
|
|
1192
|
-
function
|
|
1193
|
-
|
|
1669
|
+
function x() {
|
|
1670
|
+
g.value?.searchLoading();
|
|
1194
1671
|
}
|
|
1195
|
-
function
|
|
1196
|
-
|
|
1672
|
+
function y() {
|
|
1673
|
+
g.value?.searchDone();
|
|
1197
1674
|
}
|
|
1198
|
-
return
|
|
1675
|
+
return o({
|
|
1199
1676
|
/** 获取内部 el-table 实例 */
|
|
1200
1677
|
tableRef: m(() => u.value?.tableRef),
|
|
1201
1678
|
/** 获取内部筛选条实例 */
|
|
1202
|
-
filterBarRef:
|
|
1679
|
+
filterBarRef: g,
|
|
1203
1680
|
/** 开启筛选表单禁用。 */
|
|
1204
|
-
searchLoading:
|
|
1681
|
+
searchLoading: x,
|
|
1205
1682
|
/** 关闭筛选表单禁用。 */
|
|
1206
|
-
searchDone:
|
|
1207
|
-
}), (
|
|
1208
|
-
const
|
|
1209
|
-
return c(),
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1683
|
+
searchDone: y
|
|
1684
|
+
}), (L, D) => {
|
|
1685
|
+
const v = gt;
|
|
1686
|
+
return c(), w("div", V2, [
|
|
1687
|
+
$(L.$slots, "header", {}, void 0, !0),
|
|
1688
|
+
T("div", I2, [
|
|
1689
|
+
_.value ? (c(), z(y2, {
|
|
1213
1690
|
key: 0,
|
|
1214
1691
|
ref_key: "filterBarRef",
|
|
1215
|
-
ref:
|
|
1692
|
+
ref: g,
|
|
1216
1693
|
modelValue: f.value,
|
|
1217
|
-
"onUpdate:modelValue":
|
|
1218
|
-
columns:
|
|
1219
|
-
option:
|
|
1694
|
+
"onUpdate:modelValue": D[0] || (D[0] = (k) => f.value = k),
|
|
1695
|
+
columns: L.columns,
|
|
1696
|
+
option: C.value,
|
|
1220
1697
|
onSearch: h,
|
|
1221
|
-
onReset:
|
|
1222
|
-
},
|
|
1223
|
-
|
|
1224
|
-
name: `${
|
|
1225
|
-
fn: j((
|
|
1226
|
-
|
|
1698
|
+
onReset: S
|
|
1699
|
+
}, ae({ _: 2 }, [
|
|
1700
|
+
W(M.value, (k) => ({
|
|
1701
|
+
name: `${k.prop}-search`,
|
|
1702
|
+
fn: j((F) => [
|
|
1703
|
+
$(L.$slots, `${k.prop}-search`, le(ne(F)), void 0, !0)
|
|
1227
1704
|
])
|
|
1228
1705
|
}))
|
|
1229
|
-
]), 1032, ["modelValue", "columns", "option"])) :
|
|
1706
|
+
]), 1032, ["modelValue", "columns", "option"])) : J("", !0)
|
|
1230
1707
|
]),
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
P(
|
|
1234
|
-
|
|
1235
|
-
])) :
|
|
1236
|
-
|
|
1708
|
+
T("div", D2, [
|
|
1709
|
+
T("div", O2, [
|
|
1710
|
+
P(a).toolbar ? (c(), w("div", F2, [
|
|
1711
|
+
$(L.$slots, "toolbar", {}, void 0, !0)
|
|
1712
|
+
])) : J("", !0),
|
|
1713
|
+
qe((c(), z(B2, {
|
|
1237
1714
|
ref_key: "jtTableRef",
|
|
1238
1715
|
ref: u,
|
|
1239
|
-
data:
|
|
1240
|
-
columns:
|
|
1241
|
-
option:
|
|
1242
|
-
"table-events":
|
|
1243
|
-
},
|
|
1244
|
-
P(
|
|
1716
|
+
data: L.data,
|
|
1717
|
+
columns: L.columns,
|
|
1718
|
+
option: C.value,
|
|
1719
|
+
"table-events": L.tableEvents
|
|
1720
|
+
}, ae({ _: 2 }, [
|
|
1721
|
+
P(a).empty ? {
|
|
1245
1722
|
name: "empty",
|
|
1246
1723
|
fn: j(() => [
|
|
1247
|
-
|
|
1724
|
+
$(L.$slots, "empty", {}, void 0, !0)
|
|
1248
1725
|
]),
|
|
1249
1726
|
key: "0"
|
|
1250
1727
|
} : void 0,
|
|
1251
|
-
|
|
1252
|
-
name: `${
|
|
1253
|
-
fn: j((
|
|
1254
|
-
|
|
1728
|
+
W(b.value, (k) => ({
|
|
1729
|
+
name: `${k.prop}-header`,
|
|
1730
|
+
fn: j((F) => [
|
|
1731
|
+
$(L.$slots, `${k.prop}-header`, le(ne(F)), void 0, !0)
|
|
1255
1732
|
])
|
|
1256
1733
|
})),
|
|
1257
|
-
|
|
1258
|
-
name: `${
|
|
1259
|
-
fn: j((
|
|
1260
|
-
|
|
1734
|
+
W(p.value, (k) => ({
|
|
1735
|
+
name: `${k.prop}-data`,
|
|
1736
|
+
fn: j((F) => [
|
|
1737
|
+
$(L.$slots, `${k.prop}-data`, le(ne(F)), void 0, !0)
|
|
1261
1738
|
])
|
|
1262
1739
|
})),
|
|
1263
|
-
|
|
1740
|
+
C.value.menu ? {
|
|
1264
1741
|
name: "menu",
|
|
1265
|
-
fn: j((
|
|
1266
|
-
|
|
1742
|
+
fn: j((k) => [
|
|
1743
|
+
$(L.$slots, "menu", le(ne(k)), void 0, !0)
|
|
1267
1744
|
]),
|
|
1268
1745
|
key: "1"
|
|
1269
1746
|
} : void 0
|
|
1270
1747
|
]), 1032, ["data", "columns", "option", "table-events"])), [
|
|
1271
|
-
[
|
|
1748
|
+
[v, C.value.loading]
|
|
1272
1749
|
])
|
|
1273
1750
|
]),
|
|
1274
|
-
|
|
1751
|
+
B.value ? (c(), z(P2, {
|
|
1275
1752
|
key: 0,
|
|
1276
|
-
"current-page":
|
|
1277
|
-
"onUpdate:currentPage":
|
|
1278
|
-
"page-size":
|
|
1279
|
-
"onUpdate:pageSize":
|
|
1280
|
-
total:
|
|
1281
|
-
option:
|
|
1282
|
-
onPageChange:
|
|
1283
|
-
onSizeChange:
|
|
1284
|
-
}, null, 8, ["current-page", "page-size", "total", "option"])) :
|
|
1753
|
+
"current-page": n.value,
|
|
1754
|
+
"onUpdate:currentPage": D[1] || (D[1] = (k) => n.value = k),
|
|
1755
|
+
"page-size": i.value,
|
|
1756
|
+
"onUpdate:pageSize": D[2] || (D[2] = (k) => i.value = k),
|
|
1757
|
+
total: L.total,
|
|
1758
|
+
option: C.value,
|
|
1759
|
+
onPageChange: D[3] || (D[3] = (k) => L.$emit("page-change", k)),
|
|
1760
|
+
onSizeChange: D[4] || (D[4] = (k) => L.$emit("size-change", k))
|
|
1761
|
+
}, null, 8, ["current-page", "page-size", "total", "option"])) : J("", !0)
|
|
1285
1762
|
])
|
|
1286
1763
|
]);
|
|
1287
1764
|
};
|
|
1288
1765
|
}
|
|
1289
|
-
}),
|
|
1766
|
+
}), $a = /* @__PURE__ */ K(z2, [["__scopeId", "data-v-a37df21e"]]), H2 = /* @__PURE__ */ H({
|
|
1290
1767
|
name: "SvgIcon",
|
|
1291
1768
|
__name: "SvgIcon",
|
|
1292
1769
|
props: {
|
|
@@ -1294,60 +1771,60 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1294
1771
|
size: { default: "1em" }
|
|
1295
1772
|
},
|
|
1296
1773
|
setup(l) {
|
|
1297
|
-
const
|
|
1298
|
-
"--svg-icon-source": `url("${
|
|
1299
|
-
"--svg-icon-size": typeof
|
|
1774
|
+
const o = l, e = m(() => ({
|
|
1775
|
+
"--svg-icon-source": `url("${o.src}")`,
|
|
1776
|
+
"--svg-icon-size": typeof o.size == "number" ? `${o.size}px` : o.size
|
|
1300
1777
|
}));
|
|
1301
|
-
return (
|
|
1778
|
+
return (t, s) => (c(), w("span", {
|
|
1302
1779
|
class: "svg-icon",
|
|
1303
|
-
style:
|
|
1780
|
+
style: ie(e.value),
|
|
1304
1781
|
"aria-hidden": "true"
|
|
1305
1782
|
}, null, 4));
|
|
1306
1783
|
}
|
|
1307
|
-
}),
|
|
1784
|
+
}), J2 = /* @__PURE__ */ K(H2, [["__scopeId", "data-v-d11c470f"]]), A2 = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.75%208.75C3.0625%208.75%202.5%209.3125%202.5%2010C2.5%2010.6875%203.0625%2011.25%203.75%2011.25C4.4375%2011.25%205%2010.6875%205%2010C5%209.3125%204.4375%208.75%203.75%208.75ZM16.25%208.75C15.5625%208.75%2015%209.3125%2015%2010C15%2010.6875%2015.5625%2011.25%2016.25%2011.25C16.9375%2011.25%2017.5%2010.6875%2017.5%2010C17.5%209.3125%2016.9375%208.75%2016.25%208.75ZM10%208.75C9.3125%208.75%208.75%209.3125%208.75%2010C8.75%2010.6875%209.3125%2011.25%2010%2011.25C10.6875%2011.25%2011.25%2010.6875%2011.25%2010C11.25%209.3125%2010.6875%208.75%2010%208.75Z'%20fill='%23333333'/%3e%3c/svg%3e", R2 = ["aria-label", "disabled"], Z2 = /* @__PURE__ */ H({
|
|
1308
1785
|
name: "JtActionMenu",
|
|
1309
1786
|
__name: "index",
|
|
1310
1787
|
props: {
|
|
1311
1788
|
items: { default: () => [] },
|
|
1312
1789
|
disabled: { type: Boolean, default: !1 },
|
|
1313
|
-
ariaLabel: { default:
|
|
1790
|
+
ariaLabel: { default: O("common.更多操作", "更多操作") }
|
|
1314
1791
|
},
|
|
1315
1792
|
emits: ["select"],
|
|
1316
|
-
setup(l, { emit:
|
|
1317
|
-
const
|
|
1318
|
-
() =>
|
|
1793
|
+
setup(l, { emit: o }) {
|
|
1794
|
+
const e = l, t = o, s = m(
|
|
1795
|
+
() => e.items.filter((i) => i.hidden !== !0)
|
|
1319
1796
|
);
|
|
1320
|
-
function
|
|
1321
|
-
|
|
1797
|
+
function n(i) {
|
|
1798
|
+
i.hidden || i.disabled || t("select", i.key, i);
|
|
1322
1799
|
}
|
|
1323
|
-
return (
|
|
1324
|
-
const
|
|
1325
|
-
return c(),
|
|
1800
|
+
return (i, f) => {
|
|
1801
|
+
const a = wt, u = bt, g = _t, C = Ct;
|
|
1802
|
+
return c(), z(C, {
|
|
1326
1803
|
trigger: "click",
|
|
1327
1804
|
"show-arrow": !1,
|
|
1328
1805
|
placement: "bottom-end",
|
|
1329
1806
|
"popper-class": "jt-action-menu__popper",
|
|
1330
|
-
disabled:
|
|
1331
|
-
onCommand:
|
|
1807
|
+
disabled: e.disabled || s.value.length === 0,
|
|
1808
|
+
onCommand: n
|
|
1332
1809
|
}, {
|
|
1333
1810
|
dropdown: j(() => [
|
|
1334
|
-
|
|
1811
|
+
q(g, { "show-arrow": !1 }, {
|
|
1335
1812
|
default: j(() => [
|
|
1336
|
-
(c(!0),
|
|
1337
|
-
key:
|
|
1338
|
-
class:
|
|
1339
|
-
command:
|
|
1340
|
-
disabled:
|
|
1813
|
+
(c(!0), w(G, null, W(s.value, (_) => (c(), z(u, {
|
|
1814
|
+
key: _.key,
|
|
1815
|
+
class: te(["jt-action-menu__item", { "is-danger": _.danger }]),
|
|
1816
|
+
command: _,
|
|
1817
|
+
disabled: _.disabled
|
|
1341
1818
|
}, {
|
|
1342
1819
|
default: j(() => [
|
|
1343
|
-
|
|
1344
|
-
|
|
1820
|
+
$(i.$slots, "item", { item: _ }, () => [
|
|
1821
|
+
_.icon ? (c(), z(a, { key: 0 }, {
|
|
1345
1822
|
default: j(() => [
|
|
1346
|
-
(c(),
|
|
1823
|
+
(c(), z(Ie(_.icon)))
|
|
1347
1824
|
]),
|
|
1348
1825
|
_: 2
|
|
1349
|
-
}, 1024)) :
|
|
1350
|
-
|
|
1826
|
+
}, 1024)) : J("", !0),
|
|
1827
|
+
T("span", null, I(_.label), 1)
|
|
1351
1828
|
], !0)
|
|
1352
1829
|
]),
|
|
1353
1830
|
_: 2
|
|
@@ -1357,25 +1834,25 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1357
1834
|
})
|
|
1358
1835
|
]),
|
|
1359
1836
|
default: j(() => [
|
|
1360
|
-
|
|
1361
|
-
|
|
1837
|
+
$(i.$slots, "trigger", { items: s.value }, () => [
|
|
1838
|
+
T("button", {
|
|
1362
1839
|
class: "jt-action-menu__trigger",
|
|
1363
1840
|
type: "button",
|
|
1364
|
-
"aria-label":
|
|
1365
|
-
disabled:
|
|
1841
|
+
"aria-label": e.ariaLabel,
|
|
1842
|
+
disabled: e.disabled
|
|
1366
1843
|
}, [
|
|
1367
|
-
|
|
1368
|
-
src: P(
|
|
1844
|
+
q(J2, {
|
|
1845
|
+
src: P(A2),
|
|
1369
1846
|
size: 20
|
|
1370
1847
|
}, null, 8, ["src"])
|
|
1371
|
-
], 8,
|
|
1848
|
+
], 8, R2)
|
|
1372
1849
|
], !0)
|
|
1373
1850
|
]),
|
|
1374
1851
|
_: 3
|
|
1375
1852
|
}, 8, ["disabled"]);
|
|
1376
1853
|
};
|
|
1377
1854
|
}
|
|
1378
|
-
}), aa = /* @__PURE__ */ Z(y2, [["__scopeId", "data-v-72577d3d"]]), g2 = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_116_12984)'%3e%3cpath%20d='M9.79688%201.125L12.8213%203.75L15.7812%206.375V15.5625C15.7812%2016.2874%2015.1936%2016.875%2014.4688%2016.875H3.3125C2.58765%2016.875%202%2016.2874%202%2015.5625V2.4375C2%201.71265%202.58765%201.12503%203.3125%201.125H9.79688Z'%20fill='%23576A95'/%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.7973%205.78737%209.7973%205.0625L9.7973%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3crect%20x='4.62499'%20y='1.125'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='2.10938'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='3.09375'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='4.07812'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='5.0625'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='6.04688'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='7.03125'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='8.01562'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='9'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3cpath%20d='M4.62502%209.98438H6.59377V11.2969C6.59377%2011.6593%206.29995%2011.9531%205.93752%2011.9531H5.28127C4.91883%2011.9531%204.62502%2011.6593%204.62502%2011.2969V9.98438Z'%20fill='white'/%3e%3crect%20x='4.95314'%20y='10.3125'%20width='1.3125'%20height='0.65625'%20fill='%23576A95'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12984'%3e%3crect%20width='14'%20height='15.75'%20fill='white'%20transform='translate(2%201.125)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", C2 = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_116_12985)'%3e%3cpath%20d='M9.79688%201.125L12.8213%203.75L15.7812%206.375V15.5625C15.7812%2016.2874%2015.1936%2016.875%2014.4688%2016.875H3.3125C2.58765%2016.875%202%2016.2874%202%2015.5625V2.4375C2%201.71265%202.58765%201.12503%203.3125%201.125H9.79688Z'%20fill='%2323B08D'/%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.79729%205.78737%209.79729%205.0625L9.7973%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3cpath%20d='M8.9075%2010.7278H8.87375L7.59125%2012.6094H5.97969L8.03844%209.68156L5.9375%206.70312H7.53219L8.87375%208.63531H8.9075L10.2491%206.70312H11.8437L9.75125%209.68156L11.81%2012.6094H10.19L8.9075%2010.7278Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12985'%3e%3crect%20width='14'%20height='15.75'%20fill='white'%20transform='translate(2%201.125)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", _2 = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.7454%206.375L11.1873%206.375C10.4624%206.375%209.87481%205.78737%209.87481%205.0625L9.87481%201.125L12.899%203.75L15.7454%206.375Z'%20fill='%23E78B7F'/%3e%3cpath%20d='M5.61656%208.43881H6.15403V10.6576C6.15403%2011.0343%206.07594%2011.3099%205.91975%2011.4937C5.74519%2011.6866%205.46956%2011.7831%205.08828%2011.7831C4.75753%2011.7831%204.50488%2011.6912%204.33491%2011.5074C4.16035%2011.3237%204.07306%2011.071%204.07306%2010.7495V10.6438H4.61053V10.7449C4.61053%2011.1216%204.77131%2011.3099%205.09747%2011.3099C5.27663%2011.3099%205.40985%2011.2548%205.49253%2011.1491C5.57522%2011.0435%205.61656%2010.8735%205.61656%2010.6392V8.43881ZM6.79755%208.43881H8.1573C8.94743%208.43881%209.34708%208.77416%209.34708%209.44484C9.34708%2010.1201%208.94743%2010.4601%208.14811%2010.4601H7.33502V11.7188H6.79755V8.43881ZM7.33502%208.89819V10.0007H8.11596C8.35483%2010.0007%208.5294%209.95475%208.63965%209.87206C8.7499%209.78478%208.80502%209.64238%208.80502%209.44484C8.80502%209.24731%208.7453%209.1095%208.63505%209.02681C8.5248%208.93953%208.35024%208.89819%208.11596%208.89819H7.33502ZM11.2318%208.3745C11.6544%208.3745%2011.9852%208.46638%2012.2286%208.65472C12.4629%208.83847%2012.6099%209.1095%2012.6696%209.477H12.1276C12.0816%209.26569%2011.9806%209.1095%2011.8336%209.00384C11.682%208.89819%2011.4798%208.84766%2011.2318%208.84766C10.924%208.84766%2010.6805%208.94872%2010.5014%209.16003C10.3038%209.38053%2010.2074%209.68831%2010.2074%2010.0926C10.2074%2010.4784%2010.2947%2010.777%2010.4692%2010.9838C10.6576%2011.2043%2010.9516%2011.3145%2011.3512%2011.3145C11.5074%2011.3145%2011.6544%2011.2961%2011.7922%2011.2594C11.9208%2011.2226%2012.0357%2011.1721%2012.1459%2011.1078V10.4325H11.2777V9.97313H12.6834V11.3604C12.5088%2011.4983%2012.3113%2011.5993%2012.0862%2011.6728C11.8473%2011.7463%2011.5855%2011.7831%2011.2915%2011.7831C10.7678%2011.7831%2010.3636%2011.6177%2010.0742%2011.2869C9.80312%2010.9792%209.6699%2010.5795%209.6699%2010.0926C9.6699%209.60103%209.80312%209.19678%2010.0742%208.87981C10.359%208.53988%2010.7448%208.3745%2011.2318%208.3745Z'%20fill='white'/%3e%3cpath%20d='M15.7813%206.37537V15.5621C15.7813%2016.287%2015.1933%2016.875%2014.4684%2016.875H3.31287C2.588%2016.875%202.00001%2016.287%202.00001%2015.5621V2.43787C2.00001%201.713%202.588%201.125%203.31287%201.125H9.87501L15.7813%206.37537Z'%20fill='%23E60000'/%3e%3cg%20clip-path='url(%23clip0_116_12983)'%3e%3cpath%20d='M10.854%208.25822C11.4331%208.23023%2011.8857%207.70539%2011.8524%207.09657C11.8258%206.52974%2011.3931%206.07487%2010.854%206.04688C10.275%206.07487%209.82239%206.59971%209.85567%207.20853C9.8823%207.77537%2010.3149%208.23023%2010.854%208.25822ZM10.9405%209.39889C10.9073%209.3499%2010.8673%209.30791%2010.8207%209.27292C10.5745%209.08398%2010.235%209.13996%2010.0553%209.39889L9.76249%209.82576C9.70925%209.90274%209.60941%209.91673%209.54286%209.86075C9.52954%209.85375%209.51623%209.83975%209.50958%209.82576L8.47129%208.3422C8.43801%208.29321%208.39808%208.25123%208.35149%208.21624C8.23834%208.12526%208.09192%208.09027%207.94549%208.11127C7.80572%208.13226%207.67261%208.21624%207.59274%208.3422L5.71584%2011.0294C5.53614%2011.2883%205.58938%2011.6452%205.82899%2011.8342C5.92217%2011.9041%206.03531%2011.9461%206.15512%2011.9461H11.6594C11.7659%2011.9461%2011.8657%2011.9041%2011.9522%2011.8342C12.1918%2011.6452%2012.2451%2011.2813%2012.0654%2011.0294L10.9405%209.39889Z'%20fill='white'/%3e%3c/g%3e%3cpath%20d='M15.7813%206.37501L11.2232%206.37501C10.4983%206.37501%209.9107%205.78738%209.9107%205.06251L9.9107%201.12501L12.9349%203.75001L15.7813%206.37501Z'%20fill='white'%20fill-opacity='0.4'/%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12983'%3e%3crect%20width='6.5625'%20height='5.90625'%20fill='white'%20transform='translate(5.60939%206.04688)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", b2 = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.797%201.125L12.8215%203.74963L15.7812%206.37537V15.5621C15.7812%2016.287%2015.1933%2016.875%2014.4684%2016.875H3.31287C2.58799%2016.875%202%2016.287%202%2015.5621V2.43787C2%201.71299%202.58799%201.125%203.31287%201.125H9.797Z'%20fill='%23FF5E00'/%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.79729%205.78737%209.79729%205.0625L9.79729%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3cpath%20d='M12.1742%2011.8432C11.5493%2011.7975%2010.9476%2011.569%2010.4616%2011.1579C9.51279%2011.3635%208.61023%2011.6604%207.70767%2012.0259C6.99025%2013.2823%206.31912%2013.9219%205.74055%2013.9219C5.62484%2013.9219%205.48599%2013.899%205.39342%2013.8305C5.13885%2013.7163%204.99999%2013.465%204.99999%2013.2137C4.99999%2013.0082%205.04628%2012.4371%207.24482%2011.5005C7.75396%2010.5868%208.14738%209.65022%208.47137%208.66797C8.19366%208.11974%207.59196%206.772%208.00852%206.0867C8.14738%205.83543%208.42509%205.69837%208.72594%205.72121C8.95737%205.72121%209.18879%205.83543%209.32765%206.01817C9.6285%206.42935%209.60536%207.29739%209.21194%208.5766C9.58222%209.26189%2010.0682%209.87865%2010.6468%2010.404C11.1328%2010.3127%2011.6188%2010.2441%2012.1048%2010.2441C13.1925%2010.267%2013.3545%2010.7695%2013.3313%2011.0665C13.3313%2011.8432%2012.5676%2011.8432%2012.1742%2011.8432ZM5.69427%2013.2594L5.7637%2013.2366C6.08769%2013.1224%206.34226%2012.8939%206.5274%2012.597C6.18026%2012.734%205.90255%2012.9625%205.69427%2013.2594ZM8.77223%206.40651H8.7028C8.67966%206.40651%208.63337%206.40651%208.61023%206.42935C8.51766%206.81768%208.58709%207.22886%208.74909%207.59435C8.88794%207.20601%208.88794%206.79484%208.77223%206.40651ZM8.93423%209.71875L8.91108%209.76444L8.88794%209.74159C8.67966%2010.267%208.44823%2010.7924%208.19366%2011.2949L8.23995%2011.2721V11.3178C8.74909%2011.135%209.30451%2010.9751%209.81364%2010.8609L9.7905%2010.8381H9.85993C9.51279%2010.4954%209.18879%2010.1071%208.93423%209.71875ZM12.0816%2010.9294C11.8733%2010.9294%2011.6882%2010.9294%2011.4799%2010.9751C11.7113%2011.0893%2011.9428%2011.135%2012.1742%2011.1579C12.3362%2011.1807%2012.4982%2011.1579%2012.637%2011.1122C12.637%2011.0436%2012.5445%2010.9294%2012.0816%2010.9294Z'%20fill='white'/%3e%3c/svg%3e", w2 = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_116_12982)'%3e%3cpath%20d='M9.797%201.125L12.8215%203.74964L15.7813%206.37537V15.5621C15.7813%2016.287%2015.1933%2016.875%2014.4684%2016.875H3.31287C2.588%2016.875%202.00001%2016.287%202.00001%2015.5621V2.43787C2.00001%201.713%202.588%201.125%203.31287%201.125H9.797Z'%20fill='%23165DFF'/%3e%3cg%20clip-path='url(%23clip1_116_12982)'%3e%3cpath%20d='M11.2235%206.70312L10.2584%2010.5773L9.42526%207.20938H8.35602L7.52285%2010.5773L6.55776%206.70312H5.26635L6.73828%2012.6094H7.02295H8.0297H8.08524L8.89064%209.36797L9.68909%2012.6094H9.75158H10.7583H11.0361L12.5149%206.70312H11.2235Z'%20fill='white'/%3e%3c/g%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.79729%205.78737%209.79729%205.0625L9.7973%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12982'%3e%3crect%20width='14'%20height='15.75'%20fill='white'%20transform='translate(2%201.125)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_116_12982'%3e%3crect%20width='7.24858'%20height='5.90625'%20fill='white'%20transform='translate(5.26635%206.70312)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", $2 = {
|
|
1855
|
+
}), La = /* @__PURE__ */ K(Z2, [["__scopeId", "data-v-72577d3d"]]), K2 = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_116_12984)'%3e%3cpath%20d='M9.79688%201.125L12.8213%203.75L15.7812%206.375V15.5625C15.7812%2016.2874%2015.1936%2016.875%2014.4688%2016.875H3.3125C2.58765%2016.875%202%2016.2874%202%2015.5625V2.4375C2%201.71265%202.58765%201.12503%203.3125%201.125H9.79688Z'%20fill='%23576A95'/%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.7973%205.78737%209.7973%205.0625L9.7973%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3crect%20x='4.62499'%20y='1.125'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='2.10938'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='3.09375'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='4.07812'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='5.0625'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='6.04688'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='7.03125'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='5.60939'%20y='8.01562'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3crect%20x='4.62502'%20y='9'%20width='0.984375'%20height='0.984375'%20fill='white'/%3e%3cpath%20d='M4.62502%209.98438H6.59377V11.2969C6.59377%2011.6593%206.29995%2011.9531%205.93752%2011.9531H5.28127C4.91883%2011.9531%204.62502%2011.6593%204.62502%2011.2969V9.98438Z'%20fill='white'/%3e%3crect%20x='4.95314'%20y='10.3125'%20width='1.3125'%20height='0.65625'%20fill='%23576A95'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12984'%3e%3crect%20width='14'%20height='15.75'%20fill='white'%20transform='translate(2%201.125)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", U2 = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_116_12985)'%3e%3cpath%20d='M9.79688%201.125L12.8213%203.75L15.7812%206.375V15.5625C15.7812%2016.2874%2015.1936%2016.875%2014.4688%2016.875H3.3125C2.58765%2016.875%202%2016.2874%202%2015.5625V2.4375C2%201.71265%202.58765%201.12503%203.3125%201.125H9.79688Z'%20fill='%2323B08D'/%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.79729%205.78737%209.79729%205.0625L9.7973%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3cpath%20d='M8.9075%2010.7278H8.87375L7.59125%2012.6094H5.97969L8.03844%209.68156L5.9375%206.70312H7.53219L8.87375%208.63531H8.9075L10.2491%206.70312H11.8437L9.75125%209.68156L11.81%2012.6094H10.19L8.9075%2010.7278Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12985'%3e%3crect%20width='14'%20height='15.75'%20fill='white'%20transform='translate(2%201.125)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", W2 = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.7454%206.375L11.1873%206.375C10.4624%206.375%209.87481%205.78737%209.87481%205.0625L9.87481%201.125L12.899%203.75L15.7454%206.375Z'%20fill='%23E78B7F'/%3e%3cpath%20d='M5.61656%208.43881H6.15403V10.6576C6.15403%2011.0343%206.07594%2011.3099%205.91975%2011.4937C5.74519%2011.6866%205.46956%2011.7831%205.08828%2011.7831C4.75753%2011.7831%204.50488%2011.6912%204.33491%2011.5074C4.16035%2011.3237%204.07306%2011.071%204.07306%2010.7495V10.6438H4.61053V10.7449C4.61053%2011.1216%204.77131%2011.3099%205.09747%2011.3099C5.27663%2011.3099%205.40985%2011.2548%205.49253%2011.1491C5.57522%2011.0435%205.61656%2010.8735%205.61656%2010.6392V8.43881ZM6.79755%208.43881H8.1573C8.94743%208.43881%209.34708%208.77416%209.34708%209.44484C9.34708%2010.1201%208.94743%2010.4601%208.14811%2010.4601H7.33502V11.7188H6.79755V8.43881ZM7.33502%208.89819V10.0007H8.11596C8.35483%2010.0007%208.5294%209.95475%208.63965%209.87206C8.7499%209.78478%208.80502%209.64238%208.80502%209.44484C8.80502%209.24731%208.7453%209.1095%208.63505%209.02681C8.5248%208.93953%208.35024%208.89819%208.11596%208.89819H7.33502ZM11.2318%208.3745C11.6544%208.3745%2011.9852%208.46638%2012.2286%208.65472C12.4629%208.83847%2012.6099%209.1095%2012.6696%209.477H12.1276C12.0816%209.26569%2011.9806%209.1095%2011.8336%209.00384C11.682%208.89819%2011.4798%208.84766%2011.2318%208.84766C10.924%208.84766%2010.6805%208.94872%2010.5014%209.16003C10.3038%209.38053%2010.2074%209.68831%2010.2074%2010.0926C10.2074%2010.4784%2010.2947%2010.777%2010.4692%2010.9838C10.6576%2011.2043%2010.9516%2011.3145%2011.3512%2011.3145C11.5074%2011.3145%2011.6544%2011.2961%2011.7922%2011.2594C11.9208%2011.2226%2012.0357%2011.1721%2012.1459%2011.1078V10.4325H11.2777V9.97313H12.6834V11.3604C12.5088%2011.4983%2012.3113%2011.5993%2012.0862%2011.6728C11.8473%2011.7463%2011.5855%2011.7831%2011.2915%2011.7831C10.7678%2011.7831%2010.3636%2011.6177%2010.0742%2011.2869C9.80312%2010.9792%209.6699%2010.5795%209.6699%2010.0926C9.6699%209.60103%209.80312%209.19678%2010.0742%208.87981C10.359%208.53988%2010.7448%208.3745%2011.2318%208.3745Z'%20fill='white'/%3e%3cpath%20d='M15.7813%206.37537V15.5621C15.7813%2016.287%2015.1933%2016.875%2014.4684%2016.875H3.31287C2.588%2016.875%202.00001%2016.287%202.00001%2015.5621V2.43787C2.00001%201.713%202.588%201.125%203.31287%201.125H9.87501L15.7813%206.37537Z'%20fill='%23E60000'/%3e%3cg%20clip-path='url(%23clip0_116_12983)'%3e%3cpath%20d='M10.854%208.25822C11.4331%208.23023%2011.8857%207.70539%2011.8524%207.09657C11.8258%206.52974%2011.3931%206.07487%2010.854%206.04688C10.275%206.07487%209.82239%206.59971%209.85567%207.20853C9.8823%207.77537%2010.3149%208.23023%2010.854%208.25822ZM10.9405%209.39889C10.9073%209.3499%2010.8673%209.30791%2010.8207%209.27292C10.5745%209.08398%2010.235%209.13996%2010.0553%209.39889L9.76249%209.82576C9.70925%209.90274%209.60941%209.91673%209.54286%209.86075C9.52954%209.85375%209.51623%209.83975%209.50958%209.82576L8.47129%208.3422C8.43801%208.29321%208.39808%208.25123%208.35149%208.21624C8.23834%208.12526%208.09192%208.09027%207.94549%208.11127C7.80572%208.13226%207.67261%208.21624%207.59274%208.3422L5.71584%2011.0294C5.53614%2011.2883%205.58938%2011.6452%205.82899%2011.8342C5.92217%2011.9041%206.03531%2011.9461%206.15512%2011.9461H11.6594C11.7659%2011.9461%2011.8657%2011.9041%2011.9522%2011.8342C12.1918%2011.6452%2012.2451%2011.2813%2012.0654%2011.0294L10.9405%209.39889Z'%20fill='white'/%3e%3c/g%3e%3cpath%20d='M15.7813%206.37501L11.2232%206.37501C10.4983%206.37501%209.9107%205.78738%209.9107%205.06251L9.9107%201.12501L12.9349%203.75001L15.7813%206.37501Z'%20fill='white'%20fill-opacity='0.4'/%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12983'%3e%3crect%20width='6.5625'%20height='5.90625'%20fill='white'%20transform='translate(5.60939%206.04688)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", N2 = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.797%201.125L12.8215%203.74963L15.7812%206.37537V15.5621C15.7812%2016.287%2015.1933%2016.875%2014.4684%2016.875H3.31287C2.58799%2016.875%202%2016.287%202%2015.5621V2.43787C2%201.71299%202.58799%201.125%203.31287%201.125H9.797Z'%20fill='%23FF5E00'/%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.79729%205.78737%209.79729%205.0625L9.79729%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3cpath%20d='M12.1742%2011.8432C11.5493%2011.7975%2010.9476%2011.569%2010.4616%2011.1579C9.51279%2011.3635%208.61023%2011.6604%207.70767%2012.0259C6.99025%2013.2823%206.31912%2013.9219%205.74055%2013.9219C5.62484%2013.9219%205.48599%2013.899%205.39342%2013.8305C5.13885%2013.7163%204.99999%2013.465%204.99999%2013.2137C4.99999%2013.0082%205.04628%2012.4371%207.24482%2011.5005C7.75396%2010.5868%208.14738%209.65022%208.47137%208.66797C8.19366%208.11974%207.59196%206.772%208.00852%206.0867C8.14738%205.83543%208.42509%205.69837%208.72594%205.72121C8.95737%205.72121%209.18879%205.83543%209.32765%206.01817C9.6285%206.42935%209.60536%207.29739%209.21194%208.5766C9.58222%209.26189%2010.0682%209.87865%2010.6468%2010.404C11.1328%2010.3127%2011.6188%2010.2441%2012.1048%2010.2441C13.1925%2010.267%2013.3545%2010.7695%2013.3313%2011.0665C13.3313%2011.8432%2012.5676%2011.8432%2012.1742%2011.8432ZM5.69427%2013.2594L5.7637%2013.2366C6.08769%2013.1224%206.34226%2012.8939%206.5274%2012.597C6.18026%2012.734%205.90255%2012.9625%205.69427%2013.2594ZM8.77223%206.40651H8.7028C8.67966%206.40651%208.63337%206.40651%208.61023%206.42935C8.51766%206.81768%208.58709%207.22886%208.74909%207.59435C8.88794%207.20601%208.88794%206.79484%208.77223%206.40651ZM8.93423%209.71875L8.91108%209.76444L8.88794%209.74159C8.67966%2010.267%208.44823%2010.7924%208.19366%2011.2949L8.23995%2011.2721V11.3178C8.74909%2011.135%209.30451%2010.9751%209.81364%2010.8609L9.7905%2010.8381H9.85993C9.51279%2010.4954%209.18879%2010.1071%208.93423%209.71875ZM12.0816%2010.9294C11.8733%2010.9294%2011.6882%2010.9294%2011.4799%2010.9751C11.7113%2011.0893%2011.9428%2011.135%2012.1742%2011.1579C12.3362%2011.1807%2012.4982%2011.1579%2012.637%2011.1122C12.637%2011.0436%2012.5445%2010.9294%2012.0816%2010.9294Z'%20fill='white'/%3e%3c/svg%3e", q2 = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_116_12982)'%3e%3cpath%20d='M9.797%201.125L12.8215%203.74964L15.7813%206.37537V15.5621C15.7813%2016.287%2015.1933%2016.875%2014.4684%2016.875H3.31287C2.588%2016.875%202.00001%2016.287%202.00001%2015.5621V2.43787C2.00001%201.713%202.588%201.125%203.31287%201.125H9.797Z'%20fill='%23165DFF'/%3e%3cg%20clip-path='url(%23clip1_116_12982)'%3e%3cpath%20d='M11.2235%206.70312L10.2584%2010.5773L9.42526%207.20938H8.35602L7.52285%2010.5773L6.55776%206.70312H5.26635L6.73828%2012.6094H7.02295H8.0297H8.08524L8.89064%209.36797L9.68909%2012.6094H9.75158H10.7583H11.0361L12.5149%206.70312H11.2235Z'%20fill='white'/%3e%3c/g%3e%3cpath%20d='M15.7813%206.375L11.1098%206.375C10.3849%206.375%209.79729%205.78737%209.79729%205.0625L9.7973%201.125L12.8799%203.75L15.7813%206.375Z'%20fill='white'%20fill-opacity='0.4'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_116_12982'%3e%3crect%20width='14'%20height='15.75'%20fill='white'%20transform='translate(2%201.125)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_116_12982'%3e%3crect%20width='7.24858'%20height='5.90625'%20fill='white'%20transform='translate(5.26635%206.70312)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", G2 = {
|
|
1379
1856
|
pdf: "pdf",
|
|
1380
1857
|
xls: "excel",
|
|
1381
1858
|
xlsx: "excel",
|
|
@@ -1395,13 +1872,13 @@ const zt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1395
1872
|
bmp: "image",
|
|
1396
1873
|
svg: "image"
|
|
1397
1874
|
};
|
|
1398
|
-
function
|
|
1399
|
-
if (
|
|
1875
|
+
function Q2(l, o) {
|
|
1876
|
+
if (o) return o;
|
|
1400
1877
|
if (!l) return;
|
|
1401
|
-
const
|
|
1402
|
-
return
|
|
1878
|
+
const e = l.split(/[?#]/, 1)[0], t = e.includes(".") ? e.split(".").pop()?.toLowerCase() : void 0;
|
|
1879
|
+
return t ? G2[t] : void 0;
|
|
1403
1880
|
}
|
|
1404
|
-
const
|
|
1881
|
+
const X2 = ["aria-label"], Y2 = ["src"], e0 = /* @__PURE__ */ H({
|
|
1405
1882
|
name: "JtFileIcon",
|
|
1406
1883
|
__name: "index",
|
|
1407
1884
|
props: {
|
|
@@ -1410,198 +1887,128 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
|
|
|
1410
1887
|
size: { default: 18 }
|
|
1411
1888
|
},
|
|
1412
1889
|
setup(l) {
|
|
1413
|
-
const
|
|
1414
|
-
pdf:
|
|
1415
|
-
excel:
|
|
1416
|
-
word:
|
|
1417
|
-
archive:
|
|
1418
|
-
image:
|
|
1419
|
-
},
|
|
1420
|
-
() =>
|
|
1421
|
-
),
|
|
1422
|
-
() =>
|
|
1423
|
-
),
|
|
1424
|
-
"--jt-file-icon-size": typeof
|
|
1890
|
+
const o = l, e = {
|
|
1891
|
+
pdf: N2,
|
|
1892
|
+
excel: U2,
|
|
1893
|
+
word: q2,
|
|
1894
|
+
archive: K2,
|
|
1895
|
+
image: W2
|
|
1896
|
+
}, t = m(() => Q2(o.name, o.type)), s = m(
|
|
1897
|
+
() => t.value ? e[t.value] : void 0
|
|
1898
|
+
), n = m(
|
|
1899
|
+
() => o.name ? O("common.{name}文件图标", "{name} 文件图标", { name: o.name }) : O("common.文件图标", "文件图标")
|
|
1900
|
+
), i = m(() => ({
|
|
1901
|
+
"--jt-file-icon-size": typeof o.size == "number" ? `${o.size}px` : o.size
|
|
1425
1902
|
}));
|
|
1426
|
-
return (f,
|
|
1903
|
+
return (f, a) => (c(), w("span", {
|
|
1427
1904
|
class: "jt-file-icon",
|
|
1428
1905
|
role: "img",
|
|
1429
|
-
"aria-label":
|
|
1430
|
-
style:
|
|
1906
|
+
"aria-label": n.value,
|
|
1907
|
+
style: ie(i.value)
|
|
1431
1908
|
}, [
|
|
1432
|
-
|
|
1909
|
+
s.value ? (c(), w("img", {
|
|
1433
1910
|
key: 0,
|
|
1434
|
-
src:
|
|
1911
|
+
src: s.value,
|
|
1435
1912
|
alt: "",
|
|
1436
1913
|
"aria-hidden": "true"
|
|
1437
|
-
}, null, 8,
|
|
1914
|
+
}, null, 8, Y2)) : $(f.$slots, o.name, {
|
|
1438
1915
|
key: 1,
|
|
1439
|
-
type:
|
|
1916
|
+
type: t.value
|
|
1440
1917
|
}, void 0, !0)
|
|
1441
|
-
], 12,
|
|
1918
|
+
], 12, X2));
|
|
1442
1919
|
}
|
|
1443
|
-
}),
|
|
1920
|
+
}), t0 = /* @__PURE__ */ K(e0, [["__scopeId", "data-v-989a66a3"]]), a0 = {
|
|
1444
1921
|
key: 0,
|
|
1445
1922
|
class: "jt-attachment-list"
|
|
1446
|
-
},
|
|
1923
|
+
}, o0 = { class: "jt-attachment-list__identity" }, l0 = ["title"], n0 = {
|
|
1447
1924
|
key: 0,
|
|
1448
1925
|
class: "jt-attachment-list__description"
|
|
1449
|
-
},
|
|
1926
|
+
}, s0 = {
|
|
1450
1927
|
key: 0,
|
|
1451
1928
|
class: "jt-attachment-list__actions"
|
|
1452
|
-
},
|
|
1929
|
+
}, r0 = {
|
|
1453
1930
|
key: 1,
|
|
1454
1931
|
class: "jt-attachment-list__empty"
|
|
1455
|
-
},
|
|
1932
|
+
}, i0 = /* @__PURE__ */ H({
|
|
1456
1933
|
name: "JtAttachmentList",
|
|
1457
1934
|
__name: "index",
|
|
1458
1935
|
props: {
|
|
1459
1936
|
files: {},
|
|
1460
|
-
emptyText: { default:
|
|
1937
|
+
emptyText: { default: O("common.暂无附件", "暂无附件") }
|
|
1461
1938
|
},
|
|
1462
1939
|
emits: ["preview", "download", "remove"],
|
|
1463
|
-
setup(l, { emit:
|
|
1464
|
-
const
|
|
1465
|
-
function
|
|
1466
|
-
|
|
1940
|
+
setup(l, { emit: o }) {
|
|
1941
|
+
const e = l, t = o;
|
|
1942
|
+
function s(f) {
|
|
1943
|
+
t("preview", f);
|
|
1467
1944
|
}
|
|
1468
|
-
function
|
|
1469
|
-
|
|
1945
|
+
function n(f) {
|
|
1946
|
+
t("download", f);
|
|
1470
1947
|
}
|
|
1471
|
-
function
|
|
1472
|
-
|
|
1948
|
+
function i(f) {
|
|
1949
|
+
t("remove", f);
|
|
1473
1950
|
}
|
|
1474
|
-
return (f,
|
|
1475
|
-
(c(!0),
|
|
1951
|
+
return (f, a) => e.files.length ? (c(), w("ul", a0, [
|
|
1952
|
+
(c(!0), w(G, null, W(e.files, (u) => (c(), w("li", {
|
|
1476
1953
|
key: u.id,
|
|
1477
1954
|
class: "jt-attachment-list__item"
|
|
1478
1955
|
}, [
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1956
|
+
$(f.$slots, "item", { file: u }, () => [
|
|
1957
|
+
T("span", o0, [
|
|
1958
|
+
q(t0, {
|
|
1482
1959
|
name: u.name,
|
|
1483
1960
|
type: u.type
|
|
1484
1961
|
}, null, 8, ["name", "type"]),
|
|
1485
|
-
|
|
1486
|
-
class:
|
|
1962
|
+
T("span", {
|
|
1963
|
+
class: te(["jt-attachment-list__name", { "is-disabled": u.disabled }]),
|
|
1487
1964
|
title: u.name
|
|
1488
|
-
}, I(u.name), 11,
|
|
1489
|
-
u.description ? (c(),
|
|
1965
|
+
}, I(u.name), 11, l0),
|
|
1966
|
+
u.description ? (c(), w("span", n0, I(u.description), 1)) : J("", !0)
|
|
1490
1967
|
])
|
|
1491
1968
|
], !0),
|
|
1492
|
-
f.$slots.actions ? (c(),
|
|
1493
|
-
|
|
1969
|
+
f.$slots.actions ? (c(), w("span", s0, [
|
|
1970
|
+
$(f.$slots, "actions", {
|
|
1494
1971
|
file: u,
|
|
1495
|
-
preview: () =>
|
|
1496
|
-
download: () =>
|
|
1497
|
-
remove: () =>
|
|
1972
|
+
preview: () => s(u),
|
|
1973
|
+
download: () => n(u),
|
|
1974
|
+
remove: () => i(u)
|
|
1498
1975
|
}, void 0, !0)
|
|
1499
|
-
])) :
|
|
1976
|
+
])) : J("", !0)
|
|
1500
1977
|
]))), 128))
|
|
1501
|
-
])) : (c(),
|
|
1502
|
-
|
|
1503
|
-
|
|
1978
|
+
])) : (c(), w("div", r0, [
|
|
1979
|
+
$(f.$slots, "empty", {}, () => [
|
|
1980
|
+
ee(I(e.emptyText), 1)
|
|
1504
1981
|
], !0)
|
|
1505
1982
|
]));
|
|
1506
1983
|
}
|
|
1507
|
-
}),
|
|
1984
|
+
}), ka = /* @__PURE__ */ K(i0, [["__scopeId", "data-v-9f6adbeb"]]), c0 = {
|
|
1508
1985
|
key: 0,
|
|
1509
1986
|
class: "jt-card__title"
|
|
1510
|
-
},
|
|
1987
|
+
}, d0 = {
|
|
1511
1988
|
key: 1,
|
|
1512
1989
|
class: "jt-card__content"
|
|
1513
|
-
},
|
|
1990
|
+
}, u0 = /* @__PURE__ */ H({
|
|
1514
1991
|
name: "JtCard",
|
|
1515
1992
|
__name: "index",
|
|
1516
1993
|
props: {
|
|
1517
1994
|
title: {}
|
|
1518
1995
|
},
|
|
1519
1996
|
setup(l) {
|
|
1520
|
-
const
|
|
1521
|
-
return (
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1997
|
+
const o = l, e = he(), t = m(() => !!(o.title || e.title)), s = m(() => !!(e.content || e.default));
|
|
1998
|
+
return (n, i) => (c(), w("div", A({ class: "jt-card" }, n.$attrs), [
|
|
1999
|
+
t.value ? (c(), w("div", c0, [
|
|
2000
|
+
$(n.$slots, "title", {}, () => [
|
|
2001
|
+
T("span", null, I(n.title), 1)
|
|
1525
2002
|
], !0)
|
|
1526
|
-
])) :
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
2003
|
+
])) : J("", !0),
|
|
2004
|
+
s.value ? (c(), w("div", d0, [
|
|
2005
|
+
$(n.$slots, "content", {}, () => [
|
|
2006
|
+
$(n.$slots, "default", {}, void 0, !0)
|
|
1530
2007
|
], !0)
|
|
1531
|
-
])) :
|
|
2008
|
+
])) : J("", !0)
|
|
1532
2009
|
], 16));
|
|
1533
2010
|
}
|
|
1534
|
-
}),
|
|
1535
|
-
key: 0,
|
|
1536
|
-
class: "jt-choice-card__description"
|
|
1537
|
-
}, K2 = /* @__PURE__ */ H({
|
|
1538
|
-
name: "JtChoiceCardGroup",
|
|
1539
|
-
__name: "index",
|
|
1540
|
-
props: {
|
|
1541
|
-
modelValue: {},
|
|
1542
|
-
options: { default: () => [] },
|
|
1543
|
-
ariaLabel: { default: D("common.卡片单选", "卡片单选") }
|
|
1544
|
-
},
|
|
1545
|
-
emits: ["update:modelValue", "change"],
|
|
1546
|
-
setup(l, { emit: a }) {
|
|
1547
|
-
const t = l, e = a, i = R(), o = m(
|
|
1548
|
-
() => t.options.flatMap((u, _) => u.disabled ? [] : [_])
|
|
1549
|
-
);
|
|
1550
|
-
function r(u) {
|
|
1551
|
-
u.disabled || u.value === t.modelValue || (e("update:modelValue", u.value), e("change", u.value, u));
|
|
1552
|
-
}
|
|
1553
|
-
function f(u, _) {
|
|
1554
|
-
return u.disabled ? -1 : u.value === t.modelValue || t.modelValue === void 0 && _ === o.value[0] ? 0 : -1;
|
|
1555
|
-
}
|
|
1556
|
-
function n(u, _, b) {
|
|
1557
|
-
if (u.key === "Enter" || u.key === " ") {
|
|
1558
|
-
u.preventDefault(), r(_);
|
|
1559
|
-
return;
|
|
1560
|
-
}
|
|
1561
|
-
const S = {
|
|
1562
|
-
ArrowRight: 1,
|
|
1563
|
-
ArrowDown: 1,
|
|
1564
|
-
ArrowLeft: -1,
|
|
1565
|
-
ArrowUp: -1
|
|
1566
|
-
}[u.key];
|
|
1567
|
-
if (!S || o.value.length === 0) return;
|
|
1568
|
-
u.preventDefault();
|
|
1569
|
-
const p = (Math.max(o.value.indexOf(b), 0) + S + o.value.length) % o.value.length, d = o.value[p], g = t.options[d];
|
|
1570
|
-
i.value?.querySelector(`[data-jt-choice-card-index="${d}"]`)?.focus(), g && r(g);
|
|
1571
|
-
}
|
|
1572
|
-
return (u, _) => (c(), y("div", {
|
|
1573
|
-
ref_key: "groupRef",
|
|
1574
|
-
ref: i,
|
|
1575
|
-
class: "jt-choice-card-group",
|
|
1576
|
-
role: "radiogroup",
|
|
1577
|
-
"aria-label": t.ariaLabel
|
|
1578
|
-
}, [
|
|
1579
|
-
(c(!0), y(X, null, q(t.options, (b, v) => (c(), y("button", {
|
|
1580
|
-
key: b.value,
|
|
1581
|
-
class: Y(["jt-choice-card", { "is-selected": b.value === t.modelValue }]),
|
|
1582
|
-
type: "button",
|
|
1583
|
-
role: "radio",
|
|
1584
|
-
"data-jt-choice-card-index": v,
|
|
1585
|
-
"aria-checked": b.value === t.modelValue ? "true" : "false",
|
|
1586
|
-
"aria-disabled": b.disabled ? "true" : "false",
|
|
1587
|
-
disabled: b.disabled,
|
|
1588
|
-
tabindex: f(b, v),
|
|
1589
|
-
onClick: (S) => r(b),
|
|
1590
|
-
onKeydown: (S) => n(S, b, v)
|
|
1591
|
-
}, [
|
|
1592
|
-
w(u.$slots, "option", {
|
|
1593
|
-
option: b,
|
|
1594
|
-
selected: b.value === t.modelValue
|
|
1595
|
-
}, () => [
|
|
1596
|
-
x("span", A2, [
|
|
1597
|
-
x("span", F2, I(b.label), 1),
|
|
1598
|
-
b.description ? (c(), y("span", Z2, I(b.description), 1)) : z("", !0)
|
|
1599
|
-
])
|
|
1600
|
-
], !0)
|
|
1601
|
-
], 42, J2))), 128))
|
|
1602
|
-
], 8, O2));
|
|
1603
|
-
}
|
|
1604
|
-
}), na = /* @__PURE__ */ Z(K2, [["__scopeId", "data-v-897eb9f2"]]), R2 = { class: "jt-descriptions__label" }, U2 = { class: "jt-descriptions__value" }, W2 = /* @__PURE__ */ H({
|
|
2011
|
+
}), xa = /* @__PURE__ */ K(u0, [["__scopeId", "data-v-e4895e88"]]), p0 = { class: "jt-descriptions__label" }, m0 = { class: "jt-descriptions__value" }, f0 = /* @__PURE__ */ H({
|
|
1605
2012
|
name: "JtDescriptions",
|
|
1606
2013
|
__name: "index",
|
|
1607
2014
|
props: {
|
|
@@ -1611,46 +2018,46 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
|
|
|
1611
2018
|
emptyText: { default: "--" }
|
|
1612
2019
|
},
|
|
1613
2020
|
setup(l) {
|
|
1614
|
-
const
|
|
1615
|
-
"--jt-descriptions-columns":
|
|
1616
|
-
"--jt-descriptions-label-width": typeof
|
|
2021
|
+
const o = l, e = m(() => o.items.filter((i) => !i.hidden)), t = m(() => ({
|
|
2022
|
+
"--jt-descriptions-columns": o.columns,
|
|
2023
|
+
"--jt-descriptions-label-width": typeof o.labelWidth == "number" ? `${o.labelWidth}px` : o.labelWidth
|
|
1617
2024
|
}));
|
|
1618
|
-
function i
|
|
1619
|
-
const f = Math.trunc(
|
|
1620
|
-
return Math.min(Math.max(f, 1),
|
|
2025
|
+
function s(i) {
|
|
2026
|
+
const f = Math.trunc(i ?? 1);
|
|
2027
|
+
return Math.min(Math.max(f, 1), o.columns);
|
|
1621
2028
|
}
|
|
1622
|
-
function
|
|
1623
|
-
return
|
|
2029
|
+
function n(i) {
|
|
2030
|
+
return i != null && i !== "";
|
|
1624
2031
|
}
|
|
1625
|
-
return (
|
|
2032
|
+
return (i, f) => (c(), w("dl", {
|
|
1626
2033
|
class: "jt-descriptions",
|
|
1627
|
-
style:
|
|
2034
|
+
style: ie(t.value)
|
|
1628
2035
|
}, [
|
|
1629
|
-
(c(!0),
|
|
1630
|
-
key:
|
|
2036
|
+
(c(!0), w(G, null, W(e.value, (a) => (c(), w("div", {
|
|
2037
|
+
key: a.key,
|
|
1631
2038
|
class: "jt-descriptions__item",
|
|
1632
|
-
style:
|
|
2039
|
+
style: ie({ gridColumn: `span ${s(a.span)}` })
|
|
1633
2040
|
}, [
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
2041
|
+
$(i.$slots, "item", { item: a }, () => [
|
|
2042
|
+
T("dt", p0, [
|
|
2043
|
+
$(i.$slots, `${a.key}-label`, { item: a }, () => [
|
|
2044
|
+
ee(I(a.label), 1)
|
|
1638
2045
|
], !0)
|
|
1639
2046
|
]),
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
2047
|
+
T("dd", m0, [
|
|
2048
|
+
$(i.$slots, `${a.key}-value`, { item: a }, () => [
|
|
2049
|
+
ee(I(n(a.value) ? a.value : o.emptyText), 1)
|
|
1643
2050
|
], !0)
|
|
1644
2051
|
])
|
|
1645
2052
|
], !0)
|
|
1646
2053
|
], 4))), 128))
|
|
1647
2054
|
], 4));
|
|
1648
2055
|
}
|
|
1649
|
-
}),
|
|
2056
|
+
}), ja = /* @__PURE__ */ K(f0, [["__scopeId", "data-v-9cf04a6b"]]), h0 = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.41074%208.74375C5.73618%209.06919%206.26382%209.06919%206.58926%208.74375L9.57741%205.7556C10.1024%205.23063%209.73058%204.33301%208.98816%204.33301H3.01184C2.26942%204.33301%201.89762%205.23063%202.42259%205.7556L5.41074%208.74375Z'%20fill='%23E60000'/%3e%3c/svg%3e", v0 = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.41074%208.74375C5.73618%209.06919%206.26382%209.06919%206.58926%208.74375L9.57741%205.7556C10.1024%205.23063%209.73058%204.33301%208.98816%204.33301H3.01184C2.26942%204.33301%201.89762%205.23063%202.42259%205.7556L5.41074%208.74375Z'%20fill='%23333333'/%3e%3c/svg%3e", y0 = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.91074%206.58926C8.23618%206.26382%208.23618%205.73618%207.91074%205.41074L4.92259%202.42259C4.39762%201.89762%203.5%202.26942%203.5%203.01184L3.5%208.98816C3.5%209.73058%204.39762%2010.1024%204.92259%209.57741L7.91074%206.58926Z'%20fill='%23333333'/%3e%3c/svg%3e", g0 = { class: "jt-tree__node" }, C0 = ["aria-label", "onClick"], _0 = ["src"], b0 = {
|
|
1650
2057
|
key: 1,
|
|
1651
2058
|
class: "jt-tree__toggle-placeholder",
|
|
1652
2059
|
"aria-hidden": "true"
|
|
1653
|
-
},
|
|
2060
|
+
}, w0 = { class: "jt-tree__content" }, $0 = { class: "jt-tree__label" }, L0 = /* @__PURE__ */ H({
|
|
1654
2061
|
name: "JtTree",
|
|
1655
2062
|
inheritAttrs: !1,
|
|
1656
2063
|
__name: "index",
|
|
@@ -1664,129 +2071,129 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
|
|
|
1664
2071
|
indent: { default: 20 },
|
|
1665
2072
|
highlightCurrent: { type: Boolean, default: !0 },
|
|
1666
2073
|
expandOnClickNode: { type: Boolean, default: !1 },
|
|
1667
|
-
ariaLabel: { default:
|
|
2074
|
+
ariaLabel: { default: O("common.组织树", "组织树") }
|
|
1668
2075
|
},
|
|
1669
2076
|
emits: ["update:currentKey", "current-change"],
|
|
1670
|
-
setup(l, { expose:
|
|
1671
|
-
const
|
|
1672
|
-
function
|
|
1673
|
-
return
|
|
1674
|
-
}
|
|
1675
|
-
function f(
|
|
1676
|
-
if (
|
|
1677
|
-
|
|
2077
|
+
setup(l, { expose: o, emit: e }) {
|
|
2078
|
+
const t = l, s = e, n = R();
|
|
2079
|
+
function i(_) {
|
|
2080
|
+
return _.expanded ? _.isCurrent ? h0 : v0 : y0;
|
|
2081
|
+
}
|
|
2082
|
+
function f(_) {
|
|
2083
|
+
if (_.expanded) {
|
|
2084
|
+
_.collapse();
|
|
1678
2085
|
return;
|
|
1679
2086
|
}
|
|
1680
|
-
|
|
2087
|
+
_.expand();
|
|
1681
2088
|
}
|
|
1682
|
-
function
|
|
1683
|
-
const M =
|
|
1684
|
-
M !==
|
|
2089
|
+
function a(_, B) {
|
|
2090
|
+
const M = B?.key;
|
|
2091
|
+
M !== t.currentKey && s("update:currentKey", M), s("current-change", _, B);
|
|
1685
2092
|
}
|
|
1686
2093
|
pe(
|
|
1687
|
-
() =>
|
|
1688
|
-
(
|
|
2094
|
+
() => t.currentKey,
|
|
2095
|
+
(_) => n.value?.setCurrentKey(_ ?? null),
|
|
1689
2096
|
{ flush: "post" }
|
|
1690
2097
|
);
|
|
1691
|
-
function u(
|
|
1692
|
-
return
|
|
2098
|
+
function u(_) {
|
|
2099
|
+
return n.value?.getNode(_);
|
|
1693
2100
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return
|
|
2101
|
+
function g() {
|
|
2102
|
+
return n.value?.getCurrentNode();
|
|
1696
2103
|
}
|
|
1697
|
-
function
|
|
1698
|
-
|
|
2104
|
+
function C(_) {
|
|
2105
|
+
n.value?.filter(_);
|
|
1699
2106
|
}
|
|
1700
|
-
return
|
|
1701
|
-
treeRef:
|
|
2107
|
+
return o({
|
|
2108
|
+
treeRef: n,
|
|
1702
2109
|
getNode: u,
|
|
1703
|
-
getCurrentNode:
|
|
1704
|
-
filter:
|
|
1705
|
-
}), (
|
|
1706
|
-
const M =
|
|
1707
|
-
return c(),
|
|
2110
|
+
getCurrentNode: g,
|
|
2111
|
+
filter: C
|
|
2112
|
+
}), (_, B) => {
|
|
2113
|
+
const M = $t;
|
|
2114
|
+
return c(), z(M, A({
|
|
1708
2115
|
ref_key: "treeRef",
|
|
1709
|
-
ref:
|
|
2116
|
+
ref: n,
|
|
1710
2117
|
class: "jt-tree"
|
|
1711
|
-
},
|
|
1712
|
-
data:
|
|
1713
|
-
"node-key":
|
|
1714
|
-
props:
|
|
1715
|
-
lazy:
|
|
1716
|
-
load:
|
|
1717
|
-
indent:
|
|
1718
|
-
"current-node-key":
|
|
1719
|
-
"highlight-current":
|
|
1720
|
-
"expand-on-click-node":
|
|
1721
|
-
"aria-label":
|
|
1722
|
-
onCurrentChange:
|
|
2118
|
+
}, _.$attrs, {
|
|
2119
|
+
data: t.data,
|
|
2120
|
+
"node-key": t.nodeKey,
|
|
2121
|
+
props: t.props,
|
|
2122
|
+
lazy: t.lazy,
|
|
2123
|
+
load: t.load,
|
|
2124
|
+
indent: t.indent,
|
|
2125
|
+
"current-node-key": t.currentKey,
|
|
2126
|
+
"highlight-current": t.highlightCurrent,
|
|
2127
|
+
"expand-on-click-node": t.expandOnClickNode,
|
|
2128
|
+
"aria-label": t.ariaLabel,
|
|
2129
|
+
onCurrentChange: a
|
|
1723
2130
|
}), {
|
|
1724
|
-
default: j(({ node:
|
|
1725
|
-
|
|
1726
|
-
|
|
2131
|
+
default: j(({ node: b, data: p }) => [
|
|
2132
|
+
T("div", g0, [
|
|
2133
|
+
b.isLeaf ? (c(), w("span", b0)) : (c(), w("button", {
|
|
1727
2134
|
key: 0,
|
|
1728
2135
|
class: "jt-tree__toggle",
|
|
1729
2136
|
type: "button",
|
|
1730
|
-
"aria-label":
|
|
1731
|
-
onClick:
|
|
2137
|
+
"aria-label": b.expanded ? P(O)("common.收起{label}", "收起{label}", { label: b.label }) : P(O)("common.展开{label}", "展开{label}", { label: b.label }),
|
|
2138
|
+
onClick: de((r) => f(b), ["stop"])
|
|
1732
2139
|
}, [
|
|
1733
|
-
|
|
2140
|
+
T("img", {
|
|
1734
2141
|
class: "jt-tree__toggle-icon",
|
|
1735
|
-
src:
|
|
2142
|
+
src: i(b),
|
|
1736
2143
|
alt: "",
|
|
1737
2144
|
"aria-hidden": "true"
|
|
1738
|
-
}, null, 8,
|
|
1739
|
-
], 8,
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
node:
|
|
1743
|
-
data:
|
|
2145
|
+
}, null, 8, _0)
|
|
2146
|
+
], 8, C0)),
|
|
2147
|
+
T("div", w0, [
|
|
2148
|
+
$(_.$slots, "default", {
|
|
2149
|
+
node: b,
|
|
2150
|
+
data: p
|
|
1744
2151
|
}, () => [
|
|
1745
|
-
|
|
2152
|
+
T("span", $0, I(b.label), 1)
|
|
1746
2153
|
], !0)
|
|
1747
2154
|
]),
|
|
1748
|
-
|
|
2155
|
+
_.$slots.actions ? (c(), w("div", {
|
|
1749
2156
|
key: 2,
|
|
1750
2157
|
class: "jt-tree__actions",
|
|
1751
|
-
onClick:
|
|
2158
|
+
onClick: B[0] || (B[0] = de(() => {
|
|
1752
2159
|
}, ["stop"])),
|
|
1753
|
-
onKeydown:
|
|
2160
|
+
onKeydown: B[1] || (B[1] = de(() => {
|
|
1754
2161
|
}, ["stop"]))
|
|
1755
2162
|
}, [
|
|
1756
|
-
|
|
1757
|
-
node:
|
|
1758
|
-
data:
|
|
2163
|
+
$(_.$slots, "actions", {
|
|
2164
|
+
node: b,
|
|
2165
|
+
data: p
|
|
1759
2166
|
}, void 0, !0)
|
|
1760
|
-
], 32)) :
|
|
2167
|
+
], 32)) : J("", !0)
|
|
1761
2168
|
])
|
|
1762
2169
|
]),
|
|
1763
2170
|
_: 3
|
|
1764
2171
|
}, 16, ["data", "node-key", "props", "lazy", "load", "indent", "current-node-key", "highlight-current", "expand-on-click-node", "aria-label"]);
|
|
1765
2172
|
};
|
|
1766
2173
|
}
|
|
1767
|
-
}),
|
|
2174
|
+
}), k0 = /* @__PURE__ */ K(L0, [["__scopeId", "data-v-c1752a93"]]), x0 = ["aria-label"], j0 = {
|
|
1768
2175
|
key: 0,
|
|
1769
2176
|
class: "jt-department-tree__search"
|
|
1770
|
-
},
|
|
2177
|
+
}, S0 = ["src"], B0 = {
|
|
1771
2178
|
key: 1,
|
|
1772
2179
|
class: "jt-department-tree__current",
|
|
1773
2180
|
"aria-live": "polite"
|
|
1774
|
-
},
|
|
2181
|
+
}, T0 = { class: "jt-department-tree__current-label" }, E0 = { class: "jt-department-tree__current-path" }, M0 = { class: "jt-department-tree__current-name" }, P0 = {
|
|
1775
2182
|
key: 0,
|
|
1776
2183
|
class: "jt-department-tree__current-separator",
|
|
1777
2184
|
"aria-hidden": "true"
|
|
1778
|
-
},
|
|
2185
|
+
}, V0 = { class: "jt-department-tree__tree" }, I0 = /* @__PURE__ */ H({
|
|
1779
2186
|
name: "JtDepartmentTree",
|
|
1780
2187
|
inheritAttrs: !1,
|
|
1781
2188
|
__name: "index",
|
|
1782
2189
|
props: /* @__PURE__ */ me({
|
|
1783
2190
|
showSearch: { type: Boolean, default: !0 },
|
|
1784
|
-
searchPlaceholder: { default:
|
|
1785
|
-
searchButtonText: { default:
|
|
2191
|
+
searchPlaceholder: { default: O("common.请输入名称或者ID", "请输入名称或者ID") },
|
|
2192
|
+
searchButtonText: { default: O("common.搜索", "搜索") },
|
|
1786
2193
|
showCurrentPath: { type: Boolean, default: !0 },
|
|
1787
2194
|
displayFullPath: { type: Boolean, default: !0 },
|
|
1788
2195
|
nodeLabelEllipsis: { type: Boolean, default: !0 },
|
|
1789
|
-
currentPathLabel: { default:
|
|
2196
|
+
currentPathLabel: { default: O("common.当前选中", "当前选中") },
|
|
1790
2197
|
defaultExpandAll: { type: Boolean, default: !1 },
|
|
1791
2198
|
defaultExpandedKeys: { default: () => [] },
|
|
1792
2199
|
data: { default: () => [] },
|
|
@@ -1802,166 +2209,166 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
|
|
|
1802
2209
|
indent: { default: 20 },
|
|
1803
2210
|
highlightCurrent: { type: Boolean, default: !0 },
|
|
1804
2211
|
expandOnClickNode: { type: Boolean, default: !1 },
|
|
1805
|
-
ariaLabel: { default:
|
|
2212
|
+
ariaLabel: { default: O("common.组织树", "组织树") }
|
|
1806
2213
|
}, {
|
|
1807
2214
|
searchValue: { default: "" },
|
|
1808
2215
|
searchValueModifiers: {}
|
|
1809
2216
|
}),
|
|
1810
2217
|
emits: /* @__PURE__ */ me(["update:currentKey", "current-change", "node-click", "search"], ["update:searchValue"]),
|
|
1811
|
-
setup(l, { expose:
|
|
1812
|
-
const
|
|
1813
|
-
() =>
|
|
2218
|
+
setup(l, { expose: o, emit: e }) {
|
|
2219
|
+
const t = l, s = ye(l, "searchValue"), n = e, i = R(), f = R([]), a = m(
|
|
2220
|
+
() => t.displayFullPath ? f.value : f.value.slice(-1)
|
|
1814
2221
|
);
|
|
1815
2222
|
function u(h) {
|
|
1816
|
-
|
|
1817
|
-
}
|
|
1818
|
-
function _() {
|
|
1819
|
-
const h = i.value.trim();
|
|
1820
|
-
o("search", h);
|
|
1821
|
-
}
|
|
1822
|
-
function b(h) {
|
|
1823
|
-
const E = [];
|
|
1824
|
-
let C = h;
|
|
1825
|
-
for (; C && Number(C.level ?? 0) > 0; )
|
|
1826
|
-
E.unshift({
|
|
1827
|
-
key: C.key ?? `${C.level}-${C.label ?? ""}`,
|
|
1828
|
-
label: String(C.label ?? "")
|
|
1829
|
-
}), C = C.parent;
|
|
1830
|
-
f.value = E.filter((V) => V.label);
|
|
1831
|
-
}
|
|
1832
|
-
function v(h, E) {
|
|
1833
|
-
b(E), o("current-change", h, E);
|
|
2223
|
+
s.value = String(h ?? "");
|
|
1834
2224
|
}
|
|
1835
|
-
function
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
2225
|
+
function g() {
|
|
2226
|
+
const h = s.value.trim();
|
|
2227
|
+
n("search", h);
|
|
2228
|
+
}
|
|
2229
|
+
function C(h) {
|
|
2230
|
+
const S = [];
|
|
2231
|
+
let x = h;
|
|
2232
|
+
for (; x && Number(x.level ?? 0) > 0; )
|
|
2233
|
+
S.unshift({
|
|
2234
|
+
key: x.key ?? `${x.level}-${x.label ?? ""}`,
|
|
2235
|
+
label: String(x.label ?? "")
|
|
2236
|
+
}), x = x.parent;
|
|
2237
|
+
f.value = S.filter((y) => y.label);
|
|
2238
|
+
}
|
|
2239
|
+
function _(h, S) {
|
|
2240
|
+
C(S), n("current-change", h, S);
|
|
2241
|
+
}
|
|
2242
|
+
function B(h) {
|
|
2243
|
+
n("update:currentKey", h);
|
|
2244
|
+
}
|
|
2245
|
+
function M(h, S, x) {
|
|
2246
|
+
C(S), n("node-click", h, S, x);
|
|
2247
|
+
}
|
|
2248
|
+
async function b(h) {
|
|
2249
|
+
if (await je(), h !== t.currentKey) return;
|
|
1843
2250
|
if (h == null || h === "") {
|
|
1844
2251
|
f.value = [];
|
|
1845
2252
|
return;
|
|
1846
2253
|
}
|
|
1847
|
-
const
|
|
1848
|
-
if (!
|
|
2254
|
+
const S = i.value?.getNode(h);
|
|
2255
|
+
if (!S) {
|
|
1849
2256
|
f.value = [];
|
|
1850
2257
|
return;
|
|
1851
2258
|
}
|
|
1852
|
-
|
|
2259
|
+
C(S);
|
|
1853
2260
|
}
|
|
1854
2261
|
pe(
|
|
1855
|
-
[() =>
|
|
2262
|
+
[() => t.currentKey, () => t.data],
|
|
1856
2263
|
([h]) => {
|
|
1857
|
-
|
|
2264
|
+
b(h);
|
|
1858
2265
|
},
|
|
1859
2266
|
{ flush: "post", immediate: !0 }
|
|
1860
2267
|
);
|
|
1861
|
-
function
|
|
1862
|
-
return
|
|
2268
|
+
function p(h) {
|
|
2269
|
+
return i.value?.getNode(h);
|
|
1863
2270
|
}
|
|
1864
|
-
function
|
|
1865
|
-
return
|
|
1866
|
-
}
|
|
1867
|
-
return
|
|
1868
|
-
treeRef:
|
|
1869
|
-
getNode:
|
|
1870
|
-
getCurrentNode:
|
|
1871
|
-
}), (h,
|
|
1872
|
-
class: ["jt-department-tree", { "is-node-label-ellipsis-disabled": !
|
|
2271
|
+
function r() {
|
|
2272
|
+
return i.value?.getCurrentNode();
|
|
2273
|
+
}
|
|
2274
|
+
return o({
|
|
2275
|
+
treeRef: i,
|
|
2276
|
+
getNode: p,
|
|
2277
|
+
getCurrentNode: r
|
|
2278
|
+
}), (h, S) => (c(), w("section", A({
|
|
2279
|
+
class: ["jt-department-tree", { "is-node-label-ellipsis-disabled": !t.nodeLabelEllipsis }]
|
|
1873
2280
|
}, h.$attrs, {
|
|
1874
|
-
"aria-label":
|
|
2281
|
+
"aria-label": t.ariaLabel
|
|
1875
2282
|
}), [
|
|
1876
|
-
|
|
1877
|
-
|
|
2283
|
+
t.showSearch ? (c(), w("div", j0, [
|
|
2284
|
+
T("img", {
|
|
1878
2285
|
class: "jt-department-tree__search-icon",
|
|
1879
|
-
src: P(
|
|
2286
|
+
src: P(nt),
|
|
1880
2287
|
alt: "",
|
|
1881
2288
|
"aria-hidden": "true"
|
|
1882
|
-
}, null, 8,
|
|
1883
|
-
|
|
2289
|
+
}, null, 8, S0),
|
|
2290
|
+
q(ge, {
|
|
1884
2291
|
class: "jt-department-tree__search-input",
|
|
1885
|
-
"model-value":
|
|
1886
|
-
placeholder:
|
|
1887
|
-
"aria-label":
|
|
2292
|
+
"model-value": s.value,
|
|
2293
|
+
placeholder: t.searchPlaceholder,
|
|
2294
|
+
"aria-label": t.searchPlaceholder,
|
|
1888
2295
|
clearable: "",
|
|
1889
2296
|
"onUpdate:modelValue": u,
|
|
1890
|
-
onEnter:
|
|
1891
|
-
onClear:
|
|
2297
|
+
onEnter: g,
|
|
2298
|
+
onClear: g
|
|
1892
2299
|
}, null, 8, ["model-value", "placeholder", "aria-label"]),
|
|
1893
|
-
|
|
2300
|
+
q(re, {
|
|
1894
2301
|
class: "jt-department-tree__search-button",
|
|
1895
2302
|
type: "primary",
|
|
1896
2303
|
plain: "",
|
|
1897
|
-
onClick:
|
|
2304
|
+
onClick: g
|
|
1898
2305
|
}, {
|
|
1899
2306
|
default: j(() => [
|
|
1900
|
-
|
|
2307
|
+
ee(I(t.searchButtonText), 1)
|
|
1901
2308
|
]),
|
|
1902
2309
|
_: 1
|
|
1903
2310
|
})
|
|
1904
|
-
])) :
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
items:
|
|
2311
|
+
])) : J("", !0),
|
|
2312
|
+
t.showCurrentPath && a.value.length ? (c(), w("div", B0, [
|
|
2313
|
+
T("div", T0, I(t.currentPathLabel) + ": ", 1),
|
|
2314
|
+
T("div", E0, [
|
|
2315
|
+
$(h.$slots, "current-path", {
|
|
2316
|
+
items: a.value,
|
|
1910
2317
|
fullItems: f.value,
|
|
1911
2318
|
currentItem: f.value[f.value.length - 1],
|
|
1912
|
-
displayFullPath:
|
|
2319
|
+
displayFullPath: t.displayFullPath
|
|
1913
2320
|
}, () => [
|
|
1914
|
-
(c(!0),
|
|
1915
|
-
key: `${String(
|
|
1916
|
-
class:
|
|
1917
|
-
"is-current":
|
|
2321
|
+
(c(!0), w(G, null, W(a.value, (x, y) => (c(), w("span", {
|
|
2322
|
+
key: `${String(x.key)}-${y}`,
|
|
2323
|
+
class: te(["jt-department-tree__current-item", {
|
|
2324
|
+
"is-current": y === a.value.length - 1
|
|
1918
2325
|
}])
|
|
1919
2326
|
}, [
|
|
1920
|
-
|
|
1921
|
-
|
|
2327
|
+
T("span", M0, I(x.label), 1),
|
|
2328
|
+
y < a.value.length - 1 ? (c(), w("span", P0, " / ")) : J("", !0)
|
|
1922
2329
|
], 2))), 128))
|
|
1923
2330
|
], !0)
|
|
1924
2331
|
])
|
|
1925
|
-
])) :
|
|
1926
|
-
|
|
1927
|
-
|
|
2332
|
+
])) : J("", !0),
|
|
2333
|
+
T("div", V0, [
|
|
2334
|
+
q(k0, {
|
|
1928
2335
|
ref_key: "treeRef",
|
|
1929
|
-
ref:
|
|
1930
|
-
data:
|
|
1931
|
-
"node-key":
|
|
1932
|
-
"current-key":
|
|
1933
|
-
props:
|
|
1934
|
-
lazy:
|
|
1935
|
-
load:
|
|
1936
|
-
indent:
|
|
1937
|
-
"highlight-current":
|
|
1938
|
-
"expand-on-click-node":
|
|
1939
|
-
"aria-label":
|
|
1940
|
-
"default-expand-all":
|
|
1941
|
-
"default-expanded-keys":
|
|
1942
|
-
"onUpdate:currentKey":
|
|
1943
|
-
onCurrentChange:
|
|
2336
|
+
ref: i,
|
|
2337
|
+
data: t.data,
|
|
2338
|
+
"node-key": t.nodeKey,
|
|
2339
|
+
"current-key": t.currentKey,
|
|
2340
|
+
props: t.props,
|
|
2341
|
+
lazy: t.lazy,
|
|
2342
|
+
load: t.load,
|
|
2343
|
+
indent: t.indent,
|
|
2344
|
+
"highlight-current": t.highlightCurrent,
|
|
2345
|
+
"expand-on-click-node": t.expandOnClickNode,
|
|
2346
|
+
"aria-label": t.ariaLabel,
|
|
2347
|
+
"default-expand-all": t.defaultExpandAll,
|
|
2348
|
+
"default-expanded-keys": t.defaultExpandedKeys,
|
|
2349
|
+
"onUpdate:currentKey": B,
|
|
2350
|
+
onCurrentChange: _,
|
|
1944
2351
|
onNodeClick: M
|
|
1945
|
-
},
|
|
2352
|
+
}, ae({ _: 2 }, [
|
|
1946
2353
|
h.$slots.default ? {
|
|
1947
2354
|
name: "default",
|
|
1948
|
-
fn: j((
|
|
1949
|
-
|
|
2355
|
+
fn: j((x) => [
|
|
2356
|
+
$(h.$slots, "default", le(ne(x)), void 0, !0)
|
|
1950
2357
|
]),
|
|
1951
2358
|
key: "0"
|
|
1952
2359
|
} : void 0,
|
|
1953
2360
|
h.$slots.actions ? {
|
|
1954
2361
|
name: "actions",
|
|
1955
|
-
fn: j((
|
|
1956
|
-
|
|
2362
|
+
fn: j((x) => [
|
|
2363
|
+
$(h.$slots, "actions", le(ne(x)), void 0, !0)
|
|
1957
2364
|
]),
|
|
1958
2365
|
key: "1"
|
|
1959
2366
|
} : void 0
|
|
1960
2367
|
]), 1032, ["data", "node-key", "current-key", "props", "lazy", "load", "indent", "highlight-current", "expand-on-click-node", "aria-label", "default-expand-all", "default-expanded-keys"])
|
|
1961
2368
|
])
|
|
1962
|
-
], 16,
|
|
2369
|
+
], 16, x0));
|
|
1963
2370
|
}
|
|
1964
|
-
}),
|
|
2371
|
+
}), Sa = /* @__PURE__ */ K(I0, [["__scopeId", "data-v-357c06a4"]]), D0 = { class: "jt-collapsible-layout__sidebar-content" }, O0 = { class: "jt-collapsible-layout__content" }, F0 = /* @__PURE__ */ H({
|
|
1965
2372
|
name: "JtCollapsibleLayout",
|
|
1966
2373
|
inheritAttrs: !1,
|
|
1967
2374
|
__name: "index",
|
|
@@ -1978,58 +2385,58 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
|
|
|
1978
2385
|
}),
|
|
1979
2386
|
emits: ["update:expanded"],
|
|
1980
2387
|
setup(l) {
|
|
1981
|
-
const
|
|
1982
|
-
function
|
|
1983
|
-
return typeof
|
|
2388
|
+
const o = l, e = ye(l, "expanded");
|
|
2389
|
+
function t(a) {
|
|
2390
|
+
return typeof a == "number" ? `${a}px` : a;
|
|
1984
2391
|
}
|
|
1985
|
-
function
|
|
1986
|
-
return typeof
|
|
2392
|
+
function s(a) {
|
|
2393
|
+
return typeof a == "number" ? `${a}ms` : a;
|
|
1987
2394
|
}
|
|
1988
|
-
const
|
|
1989
|
-
const
|
|
1990
|
-
"--jt-collapsible-layout-transition-duration":
|
|
1991
|
-
|
|
2395
|
+
const n = m(() => {
|
|
2396
|
+
const a = {
|
|
2397
|
+
"--jt-collapsible-layout-transition-duration": s(
|
|
2398
|
+
o.transitionDuration
|
|
1992
2399
|
)
|
|
1993
2400
|
};
|
|
1994
|
-
return
|
|
1995
|
-
|
|
1996
|
-
)),
|
|
1997
|
-
|
|
1998
|
-
)),
|
|
2401
|
+
return o.collapsedLength !== void 0 && (a["--jt-collapsible-layout-collapsed-length"] = t(
|
|
2402
|
+
o.collapsedLength
|
|
2403
|
+
)), o.expandedLength !== void 0 && (a["--jt-collapsible-layout-expanded-length"] = t(
|
|
2404
|
+
o.expandedLength
|
|
2405
|
+
)), a;
|
|
1999
2406
|
});
|
|
2000
|
-
function
|
|
2001
|
-
|
|
2407
|
+
function i() {
|
|
2408
|
+
o.expandOnSidebarClick && (e.value = !0);
|
|
2002
2409
|
}
|
|
2003
2410
|
function f() {
|
|
2004
|
-
|
|
2411
|
+
o.collapseOnOutsideClick && (e.value = !1);
|
|
2005
2412
|
}
|
|
2006
|
-
return (
|
|
2413
|
+
return (a, u) => (c(), w("div", A({
|
|
2007
2414
|
class: ["jt-collapsible-layout", [
|
|
2008
|
-
`is-placement-${
|
|
2009
|
-
{ "is-expanded":
|
|
2415
|
+
`is-placement-${o.placement}`,
|
|
2416
|
+
{ "is-expanded": e.value }
|
|
2010
2417
|
]],
|
|
2011
|
-
style:
|
|
2012
|
-
},
|
|
2013
|
-
|
|
2418
|
+
style: n.value
|
|
2419
|
+
}, a.$attrs), [
|
|
2420
|
+
qe((c(), w("aside", {
|
|
2014
2421
|
class: "jt-collapsible-layout__sidebar",
|
|
2015
|
-
onClickCapture:
|
|
2422
|
+
onClickCapture: i
|
|
2016
2423
|
}, [
|
|
2017
|
-
|
|
2018
|
-
|
|
2424
|
+
T("div", D0, [
|
|
2425
|
+
$(a.$slots, "sidebar", { expanded: e.value }, void 0, !0)
|
|
2019
2426
|
])
|
|
2020
2427
|
], 32)), [
|
|
2021
|
-
[P(
|
|
2428
|
+
[P(Dt), f]
|
|
2022
2429
|
]),
|
|
2023
|
-
|
|
2024
|
-
|
|
2430
|
+
T("section", O0, [
|
|
2431
|
+
$(a.$slots, "default", {}, void 0, !0)
|
|
2025
2432
|
])
|
|
2026
2433
|
], 16));
|
|
2027
2434
|
}
|
|
2028
|
-
}),
|
|
2435
|
+
}), Ba = /* @__PURE__ */ K(F0, [["__scopeId", "data-v-83b53fd0"]]), z0 = "data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='28'%20height='28'%20rx='14'%20fill='%23F9F9F9'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.7286%207.21096C20.0215%206.91825%2020.4963%206.91814%2020.7892%207.21096C21.082%207.50379%2021.0819%207.9786%2020.7892%208.2715L15.0607%2014L20.7892%2019.7285C21.082%2020.0214%2021.0819%2020.4962%2020.7892%2020.7891C20.4963%2021.082%2020.0215%2021.082%2019.7286%2020.7891L14.0001%2015.0606L8.2716%2020.7891C7.97871%2021.082%207.50394%2021.082%207.21105%2020.7891C6.91817%2020.4962%206.91816%2020.0214%207.21105%2019.7285L12.9396%2014L7.21105%208.2715C6.91816%207.97861%206.91816%207.50385%207.21105%207.21096C7.50396%206.91825%207.97876%206.91812%208.2716%207.21096L14.0001%2012.9395L19.7286%207.21096Z'%20fill='%23666666'/%3e%3c/svg%3e", H0 = { class: "jt-dialog__header" }, J0 = { class: "jt-dialog__title" }, A0 = {
|
|
2029
2436
|
key: 0,
|
|
2030
2437
|
class: "jt-dialog__icon",
|
|
2031
2438
|
"aria-hidden": "true"
|
|
2032
|
-
},
|
|
2439
|
+
}, R0 = ["aria-label", "disabled"], Z0 = { class: "jt-dialog__body" }, K0 = { class: "jt-dialog__footer" }, Ta = /* @__PURE__ */ H({
|
|
2033
2440
|
name: "JtDialog",
|
|
2034
2441
|
__name: "index",
|
|
2035
2442
|
props: /* @__PURE__ */ me({
|
|
@@ -2063,8 +2470,8 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
|
|
|
2063
2470
|
ariaLevel: {},
|
|
2064
2471
|
title: { default: "" },
|
|
2065
2472
|
width: { default: "default" },
|
|
2066
|
-
cancelText: { default:
|
|
2067
|
-
confirmText: { default:
|
|
2473
|
+
cancelText: { default: O("common.取消") },
|
|
2474
|
+
confirmText: { default: O("common.确认") },
|
|
2068
2475
|
confirmLoading: { type: Boolean, default: !1 },
|
|
2069
2476
|
showFooter: { type: Boolean, default: !0 },
|
|
2070
2477
|
footerLayout: { default: "stretch" }
|
|
@@ -2073,11 +2480,11 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
|
|
|
2073
2480
|
modelModifiers: {}
|
|
2074
2481
|
}),
|
|
2075
2482
|
emits: /* @__PURE__ */ me(["cancel", "confirm", "close"], ["update:modelValue"]),
|
|
2076
|
-
setup(l, { emit:
|
|
2077
|
-
const
|
|
2483
|
+
setup(l, { emit: o }) {
|
|
2484
|
+
const e = l, t = ye(l, "modelValue"), s = R(), n = o, i = {
|
|
2078
2485
|
default: "517px",
|
|
2079
2486
|
form: "642px"
|
|
2080
|
-
},
|
|
2487
|
+
}, f = /* @__PURE__ */ new Set([
|
|
2081
2488
|
"title",
|
|
2082
2489
|
"width",
|
|
2083
2490
|
"cancelText",
|
|
@@ -2085,73 +2492,75 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
|
|
|
2085
2492
|
"confirmLoading",
|
|
2086
2493
|
"showFooter",
|
|
2087
2494
|
"footerLayout"
|
|
2088
|
-
]),
|
|
2089
|
-
function
|
|
2090
|
-
return typeof p == "string" && p in
|
|
2495
|
+
]), a = _e();
|
|
2496
|
+
function u(p) {
|
|
2497
|
+
return typeof p == "string" && p in i ? i[p] : p;
|
|
2091
2498
|
}
|
|
2092
|
-
const
|
|
2499
|
+
const g = m(() => {
|
|
2093
2500
|
const {
|
|
2094
2501
|
title: p,
|
|
2095
|
-
width:
|
|
2096
|
-
cancelText:
|
|
2097
|
-
confirmText:
|
|
2098
|
-
confirmLoading:
|
|
2099
|
-
showFooter:
|
|
2100
|
-
footerLayout:
|
|
2101
|
-
...
|
|
2102
|
-
} =
|
|
2502
|
+
width: r,
|
|
2503
|
+
cancelText: h,
|
|
2504
|
+
confirmText: S,
|
|
2505
|
+
confirmLoading: x,
|
|
2506
|
+
showFooter: y,
|
|
2507
|
+
footerLayout: L,
|
|
2508
|
+
...D
|
|
2509
|
+
} = e;
|
|
2103
2510
|
return {
|
|
2104
|
-
...
|
|
2105
|
-
...
|
|
2106
|
-
width:
|
|
2511
|
+
...De(a, f),
|
|
2512
|
+
...D,
|
|
2513
|
+
width: u(r),
|
|
2107
2514
|
showClose: !1
|
|
2108
2515
|
};
|
|
2109
|
-
}),
|
|
2110
|
-
function
|
|
2111
|
-
|
|
2112
|
-
}
|
|
2113
|
-
function S() {
|
|
2114
|
-
i("cancel"), v();
|
|
2516
|
+
}), C = m(() => Oe(a)), _ = m(() => `jt-dialog--footer-${e.footerLayout}`);
|
|
2517
|
+
function B() {
|
|
2518
|
+
s.value?.handleClose();
|
|
2115
2519
|
}
|
|
2116
2520
|
function M() {
|
|
2117
|
-
t.
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2521
|
+
n("cancel"), t.value = !1;
|
|
2522
|
+
}
|
|
2523
|
+
function b() {
|
|
2524
|
+
e.confirmLoading || n("confirm");
|
|
2525
|
+
}
|
|
2526
|
+
return (p, r) => {
|
|
2527
|
+
const h = Lt;
|
|
2528
|
+
return c(), z(h, A({
|
|
2529
|
+
ref_key: "dialogRef",
|
|
2530
|
+
ref: s,
|
|
2531
|
+
modelValue: t.value,
|
|
2532
|
+
"onUpdate:modelValue": r[0] || (r[0] = (S) => t.value = S),
|
|
2533
|
+
class: ["jt-dialog", _.value]
|
|
2534
|
+
}, g.value, fe(C.value), {
|
|
2535
|
+
onClose: r[1] || (r[1] = (S) => n("close"))
|
|
2536
|
+
}), ae({
|
|
2128
2537
|
header: j(() => [
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
p.$slots.icon ? (c(),
|
|
2133
|
-
|
|
2134
|
-
])) :
|
|
2135
|
-
|
|
2538
|
+
$(p.$slots, "header", { close: B }, () => [
|
|
2539
|
+
T("header", H0, [
|
|
2540
|
+
T("div", J0, [
|
|
2541
|
+
p.$slots.icon ? (c(), w("span", A0, [
|
|
2542
|
+
$(p.$slots, "icon")
|
|
2543
|
+
])) : J("", !0),
|
|
2544
|
+
T("span", null, I(p.title), 1)
|
|
2136
2545
|
]),
|
|
2137
|
-
|
|
2546
|
+
T("button", {
|
|
2138
2547
|
type: "button",
|
|
2139
2548
|
class: "jt-dialog__close",
|
|
2140
|
-
"aria-label": P(
|
|
2549
|
+
"aria-label": P(O)("common.关闭", "关闭"),
|
|
2141
2550
|
disabled: p.confirmLoading,
|
|
2142
|
-
onClick:
|
|
2143
|
-
},
|
|
2144
|
-
|
|
2145
|
-
src:
|
|
2551
|
+
onClick: B
|
|
2552
|
+
}, r[2] || (r[2] = [
|
|
2553
|
+
T("img", {
|
|
2554
|
+
src: z0,
|
|
2146
2555
|
alt: ""
|
|
2147
2556
|
}, null, -1)
|
|
2148
|
-
]), 8,
|
|
2557
|
+
]), 8, R0)
|
|
2149
2558
|
])
|
|
2150
2559
|
])
|
|
2151
2560
|
]),
|
|
2152
2561
|
default: j(() => [
|
|
2153
|
-
|
|
2154
|
-
|
|
2562
|
+
T("section", Z0, [
|
|
2563
|
+
$(p.$slots, "default")
|
|
2155
2564
|
])
|
|
2156
2565
|
]),
|
|
2157
2566
|
_: 2
|
|
@@ -2159,31 +2568,31 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
|
|
|
2159
2568
|
p.showFooter ? {
|
|
2160
2569
|
name: "footer",
|
|
2161
2570
|
fn: j(() => [
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
cancel:
|
|
2165
|
-
confirm:
|
|
2571
|
+
T("footer", K0, [
|
|
2572
|
+
$(p.$slots, "footer", {
|
|
2573
|
+
cancel: M,
|
|
2574
|
+
confirm: b
|
|
2166
2575
|
}, () => [
|
|
2167
|
-
|
|
2576
|
+
q(re, {
|
|
2168
2577
|
size: "middle",
|
|
2169
2578
|
gray: "",
|
|
2170
2579
|
disabled: p.confirmLoading,
|
|
2171
|
-
onClick:
|
|
2580
|
+
onClick: M
|
|
2172
2581
|
}, {
|
|
2173
2582
|
default: j(() => [
|
|
2174
|
-
|
|
2583
|
+
ee(I(p.cancelText), 1)
|
|
2175
2584
|
]),
|
|
2176
2585
|
_: 1
|
|
2177
2586
|
}, 8, ["disabled"]),
|
|
2178
|
-
|
|
2587
|
+
q(re, {
|
|
2179
2588
|
size: "middle",
|
|
2180
2589
|
type: "primary",
|
|
2181
2590
|
loading: p.confirmLoading,
|
|
2182
2591
|
disabled: p.confirmLoading,
|
|
2183
|
-
onClick:
|
|
2592
|
+
onClick: b
|
|
2184
2593
|
}, {
|
|
2185
2594
|
default: j(() => [
|
|
2186
|
-
|
|
2595
|
+
ee(I(p.confirmText), 1)
|
|
2187
2596
|
]),
|
|
2188
2597
|
_: 1
|
|
2189
2598
|
}, 8, ["loading", "disabled"])
|
|
@@ -2195,7 +2604,7 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
|
|
|
2195
2604
|
]), 1040, ["modelValue", "class"]);
|
|
2196
2605
|
};
|
|
2197
2606
|
}
|
|
2198
|
-
}),
|
|
2607
|
+
}), U0 = { class: "jt-drawer__body" }, W0 = { class: "jt-drawer__footer" }, N0 = { class: "jt-drawer__footer-actions" }, Ea = /* @__PURE__ */ H({
|
|
2199
2608
|
name: "JtDrawer",
|
|
2200
2609
|
__name: "index",
|
|
2201
2610
|
props: {
|
|
@@ -2235,82 +2644,85 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
|
|
|
2235
2644
|
title: {},
|
|
2236
2645
|
ariaLevel: {},
|
|
2237
2646
|
size: { default: "default" },
|
|
2238
|
-
cancelText: { default:
|
|
2239
|
-
confirmText: { default:
|
|
2647
|
+
cancelText: { default: O("common.取消") },
|
|
2648
|
+
confirmText: { default: O("common.确认") },
|
|
2240
2649
|
confirmLoading: { type: Boolean, default: !1 },
|
|
2241
|
-
showFooter: { type: Boolean, default: !0 }
|
|
2650
|
+
showFooter: { type: Boolean, default: !0 },
|
|
2651
|
+
buttonSize: { default: "large" }
|
|
2242
2652
|
},
|
|
2243
2653
|
emits: ["cancel", "confirm"],
|
|
2244
|
-
setup(l, { emit:
|
|
2245
|
-
const
|
|
2654
|
+
setup(l, { emit: o }) {
|
|
2655
|
+
const e = /* @__PURE__ */ new Set([
|
|
2246
2656
|
"cancelText",
|
|
2247
2657
|
"confirmText",
|
|
2248
2658
|
"confirmLoading",
|
|
2249
|
-
"showFooter"
|
|
2250
|
-
|
|
2659
|
+
"showFooter",
|
|
2660
|
+
"buttonSize"
|
|
2661
|
+
]), t = l, s = o, n = _e(), i = m(() => {
|
|
2251
2662
|
const {
|
|
2252
|
-
cancelText:
|
|
2663
|
+
cancelText: a,
|
|
2253
2664
|
confirmText: u,
|
|
2254
|
-
confirmLoading:
|
|
2255
|
-
showFooter:
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2665
|
+
confirmLoading: g,
|
|
2666
|
+
showFooter: C,
|
|
2667
|
+
buttonSize: _,
|
|
2668
|
+
size: B,
|
|
2669
|
+
...M
|
|
2670
|
+
} = t;
|
|
2259
2671
|
return {
|
|
2260
|
-
...
|
|
2261
|
-
...
|
|
2672
|
+
...De(n, e),
|
|
2673
|
+
...M,
|
|
2262
2674
|
// 尺寸值由 class 中的 CSS 变量提供,让消费项目的 px-to-rem 插件能够转换。
|
|
2263
2675
|
// 两档使用不同变量引用,切换 size 时仍会触发 ElDrawer 的尺寸更新。
|
|
2264
|
-
size: `var(--jt-drawer-size-${
|
|
2676
|
+
size: `var(--jt-drawer-size-${B})`,
|
|
2265
2677
|
withHeader: !1,
|
|
2266
|
-
modalClass: ["jt-drawer-modal",
|
|
2678
|
+
modalClass: ["jt-drawer-modal", M.modalClass].filter(Boolean).join(" ")
|
|
2267
2679
|
};
|
|
2268
|
-
}), f = m(() =>
|
|
2269
|
-
return (
|
|
2270
|
-
const
|
|
2271
|
-
return c(),
|
|
2272
|
-
class: ["jt-drawer", `jt-drawer--${
|
|
2680
|
+
}), f = m(() => Oe(n));
|
|
2681
|
+
return (a, u) => {
|
|
2682
|
+
const g = kt;
|
|
2683
|
+
return c(), z(g, A({
|
|
2684
|
+
class: ["jt-drawer", `jt-drawer--${t.size}`],
|
|
2273
2685
|
"lock-model": ""
|
|
2274
|
-
},
|
|
2686
|
+
}, i.value, fe(f.value)), ae({
|
|
2275
2687
|
default: j(() => [
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2688
|
+
T("section", U0, [
|
|
2689
|
+
$(a.$slots, "body", {}, () => [
|
|
2690
|
+
$(a.$slots, "default")
|
|
2279
2691
|
])
|
|
2280
2692
|
])
|
|
2281
2693
|
]),
|
|
2282
2694
|
_: 2
|
|
2283
2695
|
}, [
|
|
2284
|
-
|
|
2696
|
+
a.showFooter ? {
|
|
2285
2697
|
name: "footer",
|
|
2286
2698
|
fn: j(() => [
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2699
|
+
T("footer", W0, [
|
|
2700
|
+
$(a.$slots, "footer", {}, () => [
|
|
2701
|
+
T("div", N0, [
|
|
2702
|
+
q(re, {
|
|
2291
2703
|
class: "jt-drawer__footer-button",
|
|
2292
|
-
size:
|
|
2293
|
-
disabled:
|
|
2294
|
-
onClick: u[0] || (u[0] = (
|
|
2704
|
+
size: a.buttonSize,
|
|
2705
|
+
disabled: a.confirmLoading,
|
|
2706
|
+
onClick: u[0] || (u[0] = (C) => s("cancel"))
|
|
2295
2707
|
}, {
|
|
2296
2708
|
default: j(() => [
|
|
2297
|
-
|
|
2709
|
+
ee(I(a.cancelText), 1)
|
|
2298
2710
|
]),
|
|
2299
2711
|
_: 1
|
|
2300
|
-
}, 8, ["disabled"]),
|
|
2301
|
-
|
|
2712
|
+
}, 8, ["size", "disabled"]),
|
|
2713
|
+
q(re, {
|
|
2302
2714
|
class: "jt-drawer__footer-button",
|
|
2303
|
-
size:
|
|
2715
|
+
size: a.buttonSize,
|
|
2304
2716
|
type: "primary",
|
|
2305
|
-
loading:
|
|
2306
|
-
disabled:
|
|
2307
|
-
onClick: u[1] || (u[1] = (
|
|
2717
|
+
loading: a.confirmLoading,
|
|
2718
|
+
disabled: a.confirmLoading,
|
|
2719
|
+
onClick: u[1] || (u[1] = (C) => s("confirm"))
|
|
2308
2720
|
}, {
|
|
2309
2721
|
default: j(() => [
|
|
2310
|
-
|
|
2722
|
+
ee(I(a.confirmText), 1)
|
|
2311
2723
|
]),
|
|
2312
2724
|
_: 1
|
|
2313
|
-
}, 8, ["loading", "disabled"])
|
|
2725
|
+
}, 8, ["size", "loading", "disabled"])
|
|
2314
2726
|
])
|
|
2315
2727
|
])
|
|
2316
2728
|
])
|
|
@@ -2320,11 +2732,11 @@ const x2 = ["aria-label"], k2 = ["src"], j2 = /* @__PURE__ */ H({
|
|
|
2320
2732
|
]), 1040, ["class"]);
|
|
2321
2733
|
};
|
|
2322
2734
|
}
|
|
2323
|
-
}),
|
|
2324
|
-
function
|
|
2325
|
-
return
|
|
2735
|
+
}), q0 = (l) => l.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2736
|
+
function G0(l, o) {
|
|
2737
|
+
return o ? l.split(new RegExp(`(${q0(o)})`, "gi")).reduce((e, t, s) => (t && e.push({ text: t, matched: s % 2 === 1 }), e), []) : [{ text: l, matched: !1 }];
|
|
2326
2738
|
}
|
|
2327
|
-
const
|
|
2739
|
+
const Q0 = /* @__PURE__ */ H({
|
|
2328
2740
|
name: "JtHighlightText",
|
|
2329
2741
|
// Fragment 没有可承接 attribute 的根节点;样式应由真实父 DOM 自然继承。
|
|
2330
2742
|
inheritAttrs: !1,
|
|
@@ -2334,46 +2746,46 @@ const T0 = /* @__PURE__ */ H({
|
|
|
2334
2746
|
keyword: {}
|
|
2335
2747
|
},
|
|
2336
2748
|
setup(l) {
|
|
2337
|
-
const
|
|
2338
|
-
() =>
|
|
2749
|
+
const o = l, e = m(
|
|
2750
|
+
() => G0(o.text, o.keyword)
|
|
2339
2751
|
);
|
|
2340
|
-
return (
|
|
2341
|
-
key:
|
|
2342
|
-
class:
|
|
2343
|
-
}, I(
|
|
2752
|
+
return (t, s) => (c(!0), w(G, null, W(e.value, (n, i) => (c(), w("span", {
|
|
2753
|
+
key: i,
|
|
2754
|
+
class: te(["jt-highlight-text__segment", { "jt-highlight-text__match": n.matched }])
|
|
2755
|
+
}, I(n.text), 3))), 128));
|
|
2344
2756
|
}
|
|
2345
|
-
}),
|
|
2757
|
+
}), Ma = /* @__PURE__ */ K(Q0, [["__scopeId", "data-v-8384af5f"]]), X0 = ["aria-label"], Y0 = { class: "jt-status-stamp__band" }, ea = /* @__PURE__ */ H({
|
|
2346
2758
|
name: "JtStatusStamp",
|
|
2347
2759
|
__name: "index",
|
|
2348
2760
|
props: {
|
|
2349
2761
|
status: {}
|
|
2350
2762
|
},
|
|
2351
2763
|
setup(l) {
|
|
2352
|
-
const
|
|
2353
|
-
"pending-start":
|
|
2354
|
-
processing:
|
|
2355
|
-
approved:
|
|
2356
|
-
returned:
|
|
2357
|
-
rejected:
|
|
2358
|
-
})[
|
|
2359
|
-
return (
|
|
2360
|
-
class:
|
|
2764
|
+
const o = l, e = m(() => ({
|
|
2765
|
+
"pending-start": O("common.待发起"),
|
|
2766
|
+
processing: O("common.审批中"),
|
|
2767
|
+
approved: O("common.已通过"),
|
|
2768
|
+
returned: O("common.已退回"),
|
|
2769
|
+
rejected: O("common.已拒绝")
|
|
2770
|
+
})[o.status]);
|
|
2771
|
+
return (t, s) => (c(), w("div", {
|
|
2772
|
+
class: te(["jt-status-stamp", `jt-status-stamp--${t.status}`]),
|
|
2361
2773
|
role: "status",
|
|
2362
|
-
"aria-label":
|
|
2774
|
+
"aria-label": e.value
|
|
2363
2775
|
}, [
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2776
|
+
T("span", Y0, [
|
|
2777
|
+
$(t.$slots, "default", {}, () => [
|
|
2778
|
+
ee(I(e.value), 1)
|
|
2367
2779
|
], !0)
|
|
2368
2780
|
])
|
|
2369
|
-
], 10,
|
|
2781
|
+
], 10, X0));
|
|
2370
2782
|
}
|
|
2371
|
-
}),
|
|
2783
|
+
}), Pa = /* @__PURE__ */ K(ea, [["__scopeId", "data-v-965a9ba6"]]), st = Symbol("JtTabContext"), rt = Symbol(
|
|
2372
2784
|
"JtTabRovingContext"
|
|
2373
|
-
),
|
|
2785
|
+
), ta = {
|
|
2374
2786
|
key: 0,
|
|
2375
2787
|
class: "jt-tab__extra"
|
|
2376
|
-
},
|
|
2788
|
+
}, aa = 4, oa = /* @__PURE__ */ H({
|
|
2377
2789
|
name: "JtTab",
|
|
2378
2790
|
__name: "index",
|
|
2379
2791
|
props: {
|
|
@@ -2383,127 +2795,127 @@ const T0 = /* @__PURE__ */ H({
|
|
|
2383
2795
|
inset: { type: Boolean }
|
|
2384
2796
|
},
|
|
2385
2797
|
emits: ["update:modelValue", "change"],
|
|
2386
|
-
setup(l, { emit:
|
|
2387
|
-
const
|
|
2388
|
-
() =>
|
|
2389
|
-
),
|
|
2390
|
-
`jt-tab--type-${
|
|
2391
|
-
`jt-tab--size-${
|
|
2392
|
-
{ "jt-tab--inset":
|
|
2798
|
+
setup(l, { emit: o }) {
|
|
2799
|
+
const e = l, t = o, s = he(), n = m(() => e.modelValue), i = m(() => e.type), f = m(() => e.size), a = St([]), u = m(
|
|
2800
|
+
() => a.find((E) => !E.getDisabled())?.getValue()
|
|
2801
|
+
), g = R(), C = R(!1), _ = R(!1), B = m(() => [
|
|
2802
|
+
`jt-tab--type-${e.type}`,
|
|
2803
|
+
`jt-tab--size-${e.size}`,
|
|
2804
|
+
{ "jt-tab--inset": e.type === "line" && e.inset !== !1 }
|
|
2393
2805
|
]);
|
|
2394
|
-
let M = 0,
|
|
2395
|
-
function E
|
|
2396
|
-
|
|
2397
|
-
}
|
|
2398
|
-
function
|
|
2399
|
-
const
|
|
2400
|
-
return
|
|
2401
|
-
const
|
|
2402
|
-
|
|
2806
|
+
let M = 0, b = 0, p = !1, r = null, h;
|
|
2807
|
+
function S(E) {
|
|
2808
|
+
E !== e.modelValue && (t("update:modelValue", E), t("change", E));
|
|
2809
|
+
}
|
|
2810
|
+
function x(E, U) {
|
|
2811
|
+
const X = { getValue: E, getDisabled: U };
|
|
2812
|
+
return a.push(X), () => {
|
|
2813
|
+
const se = a.indexOf(X);
|
|
2814
|
+
se >= 0 && a.splice(se, 1);
|
|
2403
2815
|
};
|
|
2404
2816
|
}
|
|
2405
|
-
function
|
|
2406
|
-
return u.value ===
|
|
2817
|
+
function y(E) {
|
|
2818
|
+
return u.value === E;
|
|
2407
2819
|
}
|
|
2408
|
-
|
|
2409
|
-
modelValue:
|
|
2410
|
-
type:
|
|
2820
|
+
Je(st, {
|
|
2821
|
+
modelValue: n,
|
|
2822
|
+
type: i,
|
|
2411
2823
|
size: f,
|
|
2412
|
-
activate:
|
|
2413
|
-
}),
|
|
2414
|
-
registerItem:
|
|
2415
|
-
isFirstEnabled:
|
|
2824
|
+
activate: S
|
|
2825
|
+
}), Je(rt, {
|
|
2826
|
+
registerItem: x,
|
|
2827
|
+
isFirstEnabled: y
|
|
2416
2828
|
});
|
|
2417
|
-
function
|
|
2418
|
-
const
|
|
2419
|
-
return
|
|
2420
|
-
}
|
|
2421
|
-
function
|
|
2422
|
-
const
|
|
2423
|
-
if (!
|
|
2424
|
-
const
|
|
2829
|
+
function L() {
|
|
2830
|
+
const E = g.value, U = !!(E && E.scrollWidth > E.clientWidth);
|
|
2831
|
+
return C.value = U, U;
|
|
2832
|
+
}
|
|
2833
|
+
function D(E) {
|
|
2834
|
+
const U = g.value;
|
|
2835
|
+
if (!U || !L()) return !1;
|
|
2836
|
+
const X = U.querySelector(
|
|
2425
2837
|
'[data-jt-tab-item="true"][aria-selected="true"]'
|
|
2426
2838
|
);
|
|
2427
|
-
if (!
|
|
2428
|
-
const
|
|
2429
|
-
return
|
|
2839
|
+
if (!X) return !1;
|
|
2840
|
+
const se = X.offsetLeft - (U.clientWidth - X.offsetWidth) / 2, ue = U.scrollWidth - U.clientWidth, Ce = Math.min(Math.max(se, 0), ue);
|
|
2841
|
+
return U.scrollTo({ left: Ce, behavior: E }), !0;
|
|
2430
2842
|
}
|
|
2431
|
-
async function
|
|
2432
|
-
await
|
|
2843
|
+
async function v(E) {
|
|
2844
|
+
await je(), D(E);
|
|
2433
2845
|
}
|
|
2434
|
-
function
|
|
2435
|
-
|
|
2846
|
+
function k(E) {
|
|
2847
|
+
E && r !== null && E.pointerId !== r || (window.removeEventListener("pointermove", F), window.removeEventListener("pointerup", k), window.removeEventListener("pointercancel", k), r = null, _.value = !1);
|
|
2436
2848
|
}
|
|
2437
|
-
function
|
|
2438
|
-
const
|
|
2439
|
-
if (!
|
|
2440
|
-
if (
|
|
2441
|
-
|
|
2849
|
+
function F(E) {
|
|
2850
|
+
const U = g.value;
|
|
2851
|
+
if (!U || r !== E.pointerId) return;
|
|
2852
|
+
if (E.pointerType === "mouse" && E.buttons !== 1) {
|
|
2853
|
+
k(E);
|
|
2442
2854
|
return;
|
|
2443
2855
|
}
|
|
2444
|
-
const
|
|
2445
|
-
!
|
|
2856
|
+
const X = E.clientX - M;
|
|
2857
|
+
!p && Math.abs(X) < aa || (p = !0, _.value = !0, U.scrollLeft = b - X, E.preventDefault());
|
|
2446
2858
|
}
|
|
2447
|
-
function
|
|
2448
|
-
const
|
|
2449
|
-
|
|
2859
|
+
function Y(E) {
|
|
2860
|
+
const U = g.value;
|
|
2861
|
+
E.pointerType === "mouse" && (E.button !== 0 || E.buttons !== 1) || !U || !L() || (r = E.pointerId, M = E.clientX, b = U.scrollLeft, p = !1, _.value = !0, window.addEventListener("pointermove", F), window.addEventListener("pointerup", k), window.addEventListener("pointercancel", k));
|
|
2450
2862
|
}
|
|
2451
|
-
function
|
|
2452
|
-
|
|
2863
|
+
function Q(E) {
|
|
2864
|
+
p && (E.preventDefault(), E.stopPropagation(), p = !1);
|
|
2453
2865
|
}
|
|
2454
|
-
function
|
|
2455
|
-
const
|
|
2866
|
+
function oe(E) {
|
|
2867
|
+
const X = {
|
|
2456
2868
|
ArrowRight: 1,
|
|
2457
2869
|
ArrowDown: 1,
|
|
2458
2870
|
ArrowLeft: -1,
|
|
2459
2871
|
ArrowUp: -1
|
|
2460
|
-
}[
|
|
2461
|
-
if (!
|
|
2462
|
-
const Ce =
|
|
2872
|
+
}[E.key], se = E.key === "Home", ue = E.key === "End";
|
|
2873
|
+
if (!X && !se && !ue) return;
|
|
2874
|
+
const Ce = E.currentTarget, ce = Array.from(
|
|
2463
2875
|
Ce.querySelectorAll(
|
|
2464
2876
|
'[data-jt-tab-item="true"]:not([aria-disabled="true"])'
|
|
2465
2877
|
)
|
|
2466
|
-
),
|
|
2467
|
-
(
|
|
2878
|
+
), Se = ce.findIndex(
|
|
2879
|
+
(we) => we === document.activeElement
|
|
2468
2880
|
);
|
|
2469
|
-
if (!
|
|
2470
|
-
|
|
2471
|
-
const
|
|
2472
|
-
|
|
2881
|
+
if (!ce.length) return;
|
|
2882
|
+
E.preventDefault();
|
|
2883
|
+
const Be = se ? 0 : ue ? ce.length - 1 : (Math.max(Se, 0) + X + ce.length) % ce.length, be = ce[Be];
|
|
2884
|
+
be?.focus(), be?.click();
|
|
2473
2885
|
}
|
|
2474
2886
|
return pe(
|
|
2475
|
-
() =>
|
|
2887
|
+
() => e.modelValue,
|
|
2476
2888
|
() => {
|
|
2477
|
-
|
|
2889
|
+
v("smooth");
|
|
2478
2890
|
}
|
|
2479
|
-
),
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
}), h.observe(
|
|
2483
|
-
}),
|
|
2484
|
-
|
|
2485
|
-
}), (
|
|
2486
|
-
class: ["jt-tab",
|
|
2891
|
+
), Bt(() => {
|
|
2892
|
+
L(), v("auto"), !(typeof ResizeObserver > "u" || !g.value) && (h = new ResizeObserver(() => {
|
|
2893
|
+
L(), v("auto");
|
|
2894
|
+
}), h.observe(g.value));
|
|
2895
|
+
}), Ve(() => {
|
|
2896
|
+
k(), h?.disconnect();
|
|
2897
|
+
}), (E, U) => (c(), w("div", A({
|
|
2898
|
+
class: ["jt-tab", B.value],
|
|
2487
2899
|
role: "tablist"
|
|
2488
|
-
},
|
|
2489
|
-
|
|
2900
|
+
}, E.$attrs, { onKeydown: oe }), [
|
|
2901
|
+
T("div", {
|
|
2490
2902
|
ref_key: "listRef",
|
|
2491
|
-
ref:
|
|
2492
|
-
class:
|
|
2493
|
-
"is-scrollable":
|
|
2494
|
-
"is-dragging":
|
|
2903
|
+
ref: g,
|
|
2904
|
+
class: te(["jt-tab__list", {
|
|
2905
|
+
"is-scrollable": C.value,
|
|
2906
|
+
"is-dragging": _.value
|
|
2495
2907
|
}]),
|
|
2496
|
-
onPointerdown:
|
|
2497
|
-
onClickCapture:
|
|
2908
|
+
onPointerdown: Y,
|
|
2909
|
+
onClickCapture: Q
|
|
2498
2910
|
}, [
|
|
2499
|
-
|
|
2911
|
+
$(E.$slots, "default", {}, void 0, !0)
|
|
2500
2912
|
], 34),
|
|
2501
|
-
P(
|
|
2502
|
-
|
|
2503
|
-
])) :
|
|
2913
|
+
P(s).extra ? (c(), w("div", ta, [
|
|
2914
|
+
$(E.$slots, "extra", {}, void 0, !0)
|
|
2915
|
+
])) : J("", !0)
|
|
2504
2916
|
], 16));
|
|
2505
2917
|
}
|
|
2506
|
-
}),
|
|
2918
|
+
}), Va = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-8bfa7d26"]]), la = ["aria-selected", "aria-disabled", "tabindex", "disabled", "onKeydown"], na = /* @__PURE__ */ H({
|
|
2507
2919
|
name: "JtTabItem",
|
|
2508
2920
|
__name: "JtTabItem",
|
|
2509
2921
|
props: {
|
|
@@ -2511,42 +2923,42 @@ const T0 = /* @__PURE__ */ H({
|
|
|
2511
2923
|
disabled: { type: Boolean, default: !1 }
|
|
2512
2924
|
},
|
|
2513
2925
|
setup(l) {
|
|
2514
|
-
const
|
|
2515
|
-
() =>
|
|
2516
|
-
() =>
|
|
2517
|
-
), u = m(() =>
|
|
2518
|
-
`jt-tab__item--type-${
|
|
2926
|
+
const o = l, e = Ae(st, null), t = Ae(rt, null), s = m(() => e?.modelValue.value === o.value), n = m(() => o.disabled || !e), i = m(() => e?.type.value ?? "line"), f = m(() => e?.size.value ?? "default"), a = t?.registerItem(
|
|
2927
|
+
() => o.value,
|
|
2928
|
+
() => n.value
|
|
2929
|
+
), u = m(() => n.value ? -1 : s.value || e?.modelValue.value === void 0 && t?.isFirstEnabled(o.value) ? 0 : -1), g = m(() => [
|
|
2930
|
+
`jt-tab__item--type-${i.value}`,
|
|
2519
2931
|
`jt-tab__item--size-${f.value}`,
|
|
2520
2932
|
{
|
|
2521
|
-
"is-active":
|
|
2522
|
-
"is-disabled":
|
|
2933
|
+
"is-active": s.value,
|
|
2934
|
+
"is-disabled": n.value
|
|
2523
2935
|
}
|
|
2524
2936
|
]);
|
|
2525
|
-
function
|
|
2526
|
-
|
|
2937
|
+
function C() {
|
|
2938
|
+
n.value || e?.activate(o.value);
|
|
2527
2939
|
}
|
|
2528
|
-
return
|
|
2529
|
-
class:
|
|
2940
|
+
return Ve(() => a?.()), (_, B) => (c(), w("button", {
|
|
2941
|
+
class: te(["jt-tab__item", g.value]),
|
|
2530
2942
|
type: "button",
|
|
2531
2943
|
role: "tab",
|
|
2532
2944
|
"data-jt-tab-item": "true",
|
|
2533
|
-
"aria-selected":
|
|
2534
|
-
"aria-disabled":
|
|
2945
|
+
"aria-selected": s.value,
|
|
2946
|
+
"aria-disabled": n.value || void 0,
|
|
2535
2947
|
tabindex: u.value,
|
|
2536
|
-
disabled:
|
|
2537
|
-
onClick:
|
|
2948
|
+
disabled: n.value,
|
|
2949
|
+
onClick: C,
|
|
2538
2950
|
onKeydown: [
|
|
2539
|
-
|
|
2540
|
-
|
|
2951
|
+
Re(de(C, ["prevent"]), ["enter"]),
|
|
2952
|
+
Re(de(C, ["prevent"]), ["space"])
|
|
2541
2953
|
]
|
|
2542
2954
|
}, [
|
|
2543
|
-
|
|
2544
|
-
], 42,
|
|
2955
|
+
$(_.$slots, "default", {}, void 0, !0)
|
|
2956
|
+
], 42, la));
|
|
2545
2957
|
}
|
|
2546
|
-
}),
|
|
2958
|
+
}), Ia = /* @__PURE__ */ K(na, [["__scopeId", "data-v-09d5cdf2"]]), sa = {
|
|
2547
2959
|
key: 0,
|
|
2548
2960
|
class: "jt-tree-table-layout__tree"
|
|
2549
|
-
},
|
|
2961
|
+
}, ra = { class: "jt-tree-table-layout__content" }, ia = /* @__PURE__ */ H({
|
|
2550
2962
|
name: "JtTreeTableLayout",
|
|
2551
2963
|
__name: "index",
|
|
2552
2964
|
props: {
|
|
@@ -2555,35 +2967,35 @@ const T0 = /* @__PURE__ */ H({
|
|
|
2555
2967
|
collapsed: { type: Boolean, default: !1 }
|
|
2556
2968
|
},
|
|
2557
2969
|
setup(l) {
|
|
2558
|
-
const
|
|
2559
|
-
function
|
|
2560
|
-
return typeof
|
|
2970
|
+
const o = l;
|
|
2971
|
+
function e(s) {
|
|
2972
|
+
return typeof s == "number" ? `${s}px` : s;
|
|
2561
2973
|
}
|
|
2562
|
-
const
|
|
2974
|
+
const t = m(
|
|
2563
2975
|
() => ({
|
|
2564
|
-
"--jt-tree-table-layout-tree-width":
|
|
2565
|
-
"--jt-tree-table-layout-gap":
|
|
2976
|
+
"--jt-tree-table-layout-tree-width": e(o.treeWidth),
|
|
2977
|
+
"--jt-tree-table-layout-gap": e(o.gap)
|
|
2566
2978
|
})
|
|
2567
2979
|
);
|
|
2568
|
-
return (
|
|
2569
|
-
class:
|
|
2570
|
-
style:
|
|
2980
|
+
return (s, n) => (c(), w("div", {
|
|
2981
|
+
class: te(["jt-tree-table-layout", { "is-collapsed": o.collapsed }]),
|
|
2982
|
+
style: ie(t.value)
|
|
2571
2983
|
}, [
|
|
2572
|
-
|
|
2573
|
-
|
|
2984
|
+
o.collapsed ? J("", !0) : (c(), w("aside", sa, [
|
|
2985
|
+
$(s.$slots, "tree", {}, void 0, !0)
|
|
2574
2986
|
])),
|
|
2575
|
-
|
|
2576
|
-
|
|
2987
|
+
T("div", ra, [
|
|
2988
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
2577
2989
|
])
|
|
2578
2990
|
], 6));
|
|
2579
2991
|
}
|
|
2580
|
-
}),
|
|
2992
|
+
}), Da = /* @__PURE__ */ K(ia, [["__scopeId", "data-v-28a5e162"]]), ca = { class: "jt-page-header__title" }, da = { key: 0 }, ua = { key: 2 }, pa = {
|
|
2581
2993
|
key: 0,
|
|
2582
2994
|
class: "jt-page-header__description"
|
|
2583
|
-
},
|
|
2995
|
+
}, ma = {
|
|
2584
2996
|
key: 0,
|
|
2585
2997
|
class: "jt-page-header__operates"
|
|
2586
|
-
},
|
|
2998
|
+
}, fa = /* @__PURE__ */ H({
|
|
2587
2999
|
name: "JtPageHeader",
|
|
2588
3000
|
__name: "index",
|
|
2589
3001
|
props: {
|
|
@@ -2594,88 +3006,91 @@ const T0 = /* @__PURE__ */ H({
|
|
|
2594
3006
|
operates: { default: () => [] }
|
|
2595
3007
|
},
|
|
2596
3008
|
emits: ["operate-click"],
|
|
2597
|
-
setup(l, { emit:
|
|
2598
|
-
const
|
|
2599
|
-
`jt-page-header--size-${
|
|
2600
|
-
{ "jt-page-header--gray":
|
|
3009
|
+
setup(l, { emit: o }) {
|
|
3010
|
+
const e = l, t = o, s = he(), n = m(() => e.operates.length > 0 || !!s.operates), i = m(() => [
|
|
3011
|
+
`jt-page-header--size-${e.size}`,
|
|
3012
|
+
{ "jt-page-header--gray": e.gray }
|
|
2601
3013
|
]);
|
|
2602
|
-
function f(
|
|
2603
|
-
|
|
2604
|
-
}
|
|
2605
|
-
return (
|
|
2606
|
-
class: ["jt-page-header",
|
|
2607
|
-
},
|
|
2608
|
-
|
|
2609
|
-
P(
|
|
2610
|
-
|
|
2611
|
-
], !0) : P(
|
|
2612
|
-
|
|
2613
|
-
|
|
3014
|
+
function f(a, u) {
|
|
3015
|
+
a.onClick?.(a, u), t("operate-click", a, u);
|
|
3016
|
+
}
|
|
3017
|
+
return (a, u) => (c(), w("div", A({
|
|
3018
|
+
class: ["jt-page-header", i.value]
|
|
3019
|
+
}, a.$attrs), [
|
|
3020
|
+
T("div", ca, [
|
|
3021
|
+
P(s).title ? $(a.$slots, "title", { key: 0 }, () => [
|
|
3022
|
+
a.title ? (c(), w("span", da, I(a.title), 1)) : J("", !0)
|
|
3023
|
+
], !0) : P(s).default ? $(a.$slots, "default", { key: 1 }, void 0, !0) : a.title ? (c(), w("span", ua, I(a.title), 1)) : J("", !0),
|
|
3024
|
+
$(a.$slots, "description", {}, () => [
|
|
3025
|
+
a.description ? (c(), w("span", pa, I(a.description), 1)) : J("", !0)
|
|
2614
3026
|
], !0)
|
|
2615
3027
|
]),
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
(c(!0),
|
|
2619
|
-
key:
|
|
3028
|
+
n.value ? (c(), w("div", ma, [
|
|
3029
|
+
$(a.$slots, "operates", { operates: a.operates }, () => [
|
|
3030
|
+
(c(!0), w(G, null, W(a.operates, (g) => (c(), z(P(re), A({
|
|
3031
|
+
key: g.key ?? g.label,
|
|
2620
3032
|
ref_for: !0
|
|
2621
|
-
},
|
|
2622
|
-
type:
|
|
2623
|
-
disabled:
|
|
2624
|
-
loading:
|
|
2625
|
-
plain:
|
|
2626
|
-
text:
|
|
2627
|
-
link:
|
|
2628
|
-
icon:
|
|
2629
|
-
onClick: (
|
|
3033
|
+
}, g.buttonProps, {
|
|
3034
|
+
type: g.type,
|
|
3035
|
+
disabled: g.disabled,
|
|
3036
|
+
loading: g.loading,
|
|
3037
|
+
plain: g.plain,
|
|
3038
|
+
text: g.text,
|
|
3039
|
+
link: g.link,
|
|
3040
|
+
icon: g.icon,
|
|
3041
|
+
onClick: (C) => f(g, C)
|
|
2630
3042
|
}), {
|
|
2631
3043
|
default: j(() => [
|
|
2632
|
-
|
|
3044
|
+
T("span", null, I(g.label), 1)
|
|
2633
3045
|
]),
|
|
2634
3046
|
_: 2
|
|
2635
3047
|
}, 1040, ["type", "disabled", "loading", "plain", "text", "link", "icon", "onClick"]))), 128))
|
|
2636
3048
|
], !0)
|
|
2637
|
-
])) :
|
|
3049
|
+
])) : J("", !0)
|
|
2638
3050
|
], 16));
|
|
2639
3051
|
}
|
|
2640
|
-
}),
|
|
3052
|
+
}), Oa = /* @__PURE__ */ K(fa, [["__scopeId", "data-v-6831eb88"]]);
|
|
2641
3053
|
export {
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
3054
|
+
La as JtActionMenu,
|
|
3055
|
+
ka as JtAttachmentList,
|
|
3056
|
+
re as JtButton,
|
|
3057
|
+
xa as JtCard,
|
|
3058
|
+
Ht as JtCascader,
|
|
3059
|
+
o2 as JtChoiceCardGroup,
|
|
3060
|
+
Ba as JtCollapsibleLayout,
|
|
3061
|
+
$a as JtCrudTable,
|
|
3062
|
+
Ot as JtDatePicker,
|
|
3063
|
+
Sa as JtDepartmentTree,
|
|
3064
|
+
ja as JtDescriptions,
|
|
3065
|
+
Ta as JtDialog,
|
|
3066
|
+
Ea as JtDrawer,
|
|
3067
|
+
L2 as JtEmptyState,
|
|
3068
|
+
t0 as JtFileIcon,
|
|
3069
|
+
y2 as JtFilterBar,
|
|
3070
|
+
wa as JtForm,
|
|
3071
|
+
ba as JtFormItem,
|
|
3072
|
+
lt as JtFormItems,
|
|
3073
|
+
Jt as JtHeaderSearchSelect,
|
|
3074
|
+
Ma as JtHighlightText,
|
|
3075
|
+
ge as JtInput,
|
|
3076
|
+
Wa as JtOverflowTooltipText,
|
|
3077
|
+
Oa as JtPageHeader,
|
|
3078
|
+
P2 as JtPagination,
|
|
3079
|
+
_a as JtPersonSelect,
|
|
3080
|
+
Gt as JtSearchSelect,
|
|
3081
|
+
Xe as JtSelect,
|
|
3082
|
+
Pa as JtStatusStamp,
|
|
3083
|
+
Va as JtTab,
|
|
3084
|
+
Ia as JtTabItem,
|
|
3085
|
+
B2 as JtTable,
|
|
3086
|
+
k0 as JtTree,
|
|
3087
|
+
Da as JtTreeTableLayout,
|
|
3088
|
+
Ha as getJtLocale,
|
|
3089
|
+
Ja as install,
|
|
3090
|
+
Aa as installLocale,
|
|
3091
|
+
Ra as normalizeLocale,
|
|
3092
|
+
Na as openJtConfirmDialog,
|
|
3093
|
+
Za as resetJtLocale,
|
|
3094
|
+
Q2 as resolveJtFileType,
|
|
3095
|
+
Ka as setJtLocale
|
|
2681
3096
|
};
|