@jt-home/mfe-components 1.2.0-beta.20260717064421 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package/index.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import { t as
|
|
2
|
+
import { t as B } from "./locale/index.mjs";
|
|
3
3
|
import { getLocale as mo, install as fo, installLocale as ho, normalizeLocale as vo, resetLocale as go, setLocale as _o } from "./locale/index.mjs";
|
|
4
4
|
import { ElButton as qe, ElIcon as He, ElCascader as Ye, ElDatePicker as Xe, ElInput as Qe, ElSelect as e2, ElOption as t2, ElFormItem as o2, ElForm as a2, ElTable as n2, ElTableColumn as l2, ElPagination as s2, ElLoadingDirective as r2, ElDropdown as i2, ElDropdownMenu as c2, ElDropdownItem as d2, ElDialog as u2, ElDrawer as p2, ElTooltip as m2, ElTree as f2 } from "element-plus/es";
|
|
5
|
-
import { defineComponent as I, useAttrs as Te, computed as
|
|
5
|
+
import { defineComponent as I, useAttrs as Te, computed as p, openBlock as u, createBlock as P, mergeProps as O, toHandlers as ne, withCtx as L, renderSlot as _, resolveDynamicComponent as Ce, createCommentVNode as D, ref as A, watch as ce, mergeDefaults as h2, withKeys as Se, createElementBlock as w, Fragment as oe, renderList as G, useSlots as le, normalizeStyle as ee, createSlots as ae, unref as V, nextTick as ge, normalizeClass as q, createVNode as W, withModifiers as ie, createElementVNode as b, toDisplayString as T, normalizeProps as ue, guardReactiveProps as pe, useModel as ve, withDirectives as v2, mergeModels as _e, createTextVNode as Y, onMounted as Je, onBeforeUnmount as Oe, h as Ie, provide as g2, inject as _2 } from "vue";
|
|
6
6
|
import { cascaderEmits as C2, inputEmits as Ee, selectEmits as ze, ElMessageBox as y2 } from "element-plus";
|
|
7
7
|
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const Me = 2, b2 = 3;
|
|
9
|
-
function w2(
|
|
10
|
-
return
|
|
9
|
+
function w2(c) {
|
|
10
|
+
return c.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
11
11
|
}
|
|
12
|
-
function Ze(
|
|
13
|
-
if (!
|
|
12
|
+
function Ze(c) {
|
|
13
|
+
if (!c.startsWith("on") || c.length <= Me)
|
|
14
14
|
return !1;
|
|
15
|
-
const e =
|
|
15
|
+
const e = c.charCodeAt(Me);
|
|
16
16
|
return e < 97 || e > 122;
|
|
17
17
|
}
|
|
18
|
-
function L2(
|
|
19
|
-
if (
|
|
20
|
-
return
|
|
21
|
-
const [e, t] =
|
|
18
|
+
function L2(c) {
|
|
19
|
+
if (c.startsWith("on-"))
|
|
20
|
+
return c.slice(b2);
|
|
21
|
+
const [e, t] = c.slice(Me).split(":"), o = w2(e);
|
|
22
22
|
return t ? `${o}:${t}` : o;
|
|
23
23
|
}
|
|
24
|
-
function ye(
|
|
24
|
+
function ye(c, e = /* @__PURE__ */ new Set()) {
|
|
25
25
|
return Object.fromEntries(
|
|
26
|
-
Object.entries(
|
|
26
|
+
Object.entries(c).filter(([t, o]) => !e.has(t) && Ze(t) && typeof o == "function").map(([t, o]) => [L2(t), o])
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
function be(
|
|
29
|
+
function be(c, e = /* @__PURE__ */ new Set()) {
|
|
30
30
|
return Object.fromEntries(
|
|
31
|
-
Object.entries(
|
|
31
|
+
Object.entries(c).filter(([t]) => !e.has(t) && !Ze(t))
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
const $2 = /* @__PURE__ */ I({
|
|
@@ -56,44 +56,44 @@ const $2 = /* @__PURE__ */ I({
|
|
|
56
56
|
size: {},
|
|
57
57
|
gray: { type: Boolean }
|
|
58
58
|
},
|
|
59
|
-
setup(
|
|
60
|
-
const e =
|
|
61
|
-
[`jt-button--size-${
|
|
59
|
+
setup(c) {
|
|
60
|
+
const e = c, t = Te(), o = p(() => e.type === "primary"), s = p(() => e.plain === !0), r = p(() => e.size ?? "default"), a = p(() => ({
|
|
61
|
+
[`jt-button--size-${r.value}`]: !0,
|
|
62
62
|
"jt-button--type-primary": o.value,
|
|
63
|
-
"jt-button--plain":
|
|
63
|
+
"jt-button--plain": s.value,
|
|
64
64
|
"jt-button--gray": e.gray,
|
|
65
65
|
"jt-button--border": !0
|
|
66
|
-
})),
|
|
67
|
-
const { gray:
|
|
66
|
+
})), d = p(() => {
|
|
67
|
+
const { gray: n, icon: g, size: C, ...v } = e;
|
|
68
68
|
return {
|
|
69
69
|
...be(t),
|
|
70
|
-
...
|
|
70
|
+
...v
|
|
71
71
|
};
|
|
72
|
-
}),
|
|
73
|
-
return (
|
|
74
|
-
const
|
|
75
|
-
return
|
|
76
|
-
class: ["jt-button",
|
|
77
|
-
},
|
|
72
|
+
}), i = p(() => ye(t));
|
|
73
|
+
return (n, g) => {
|
|
74
|
+
const C = He, v = qe;
|
|
75
|
+
return u(), P(v, O({
|
|
76
|
+
class: ["jt-button", a.value]
|
|
77
|
+
}, d.value, ne(i.value)), {
|
|
78
78
|
default: L(() => [
|
|
79
|
-
|
|
79
|
+
n.$slots.icon ? (u(), P(C, {
|
|
80
80
|
key: 0,
|
|
81
81
|
class: "jt-button__icon"
|
|
82
82
|
}, {
|
|
83
83
|
default: L(() => [
|
|
84
|
-
|
|
84
|
+
_(n.$slots, "icon", {}, void 0, !0)
|
|
85
85
|
]),
|
|
86
86
|
_: 3
|
|
87
|
-
})) : e.icon ? (
|
|
87
|
+
})) : e.icon ? (u(), P(C, {
|
|
88
88
|
key: 1,
|
|
89
89
|
class: "jt-button__icon"
|
|
90
90
|
}, {
|
|
91
91
|
default: L(() => [
|
|
92
|
-
(
|
|
92
|
+
(u(), P(Ce(e.icon)))
|
|
93
93
|
]),
|
|
94
94
|
_: 1
|
|
95
95
|
})) : D("", !0),
|
|
96
|
-
|
|
96
|
+
_(n.$slots, "default", {}, void 0, !0)
|
|
97
97
|
]),
|
|
98
98
|
_: 3
|
|
99
99
|
}, 16, ["class"]);
|
|
@@ -105,13 +105,13 @@ const $2 = /* @__PURE__ */ I({
|
|
|
105
105
|
clearable: !0,
|
|
106
106
|
persistent: !0
|
|
107
107
|
};
|
|
108
|
-
function De(
|
|
108
|
+
function De(c) {
|
|
109
109
|
return Object.fromEntries(
|
|
110
|
-
Object.entries(
|
|
110
|
+
Object.entries(c).filter(([, e]) => e !== void 0)
|
|
111
111
|
);
|
|
112
112
|
}
|
|
113
|
-
function k2(
|
|
114
|
-
const e = De(
|
|
113
|
+
function k2(c) {
|
|
114
|
+
const e = De(c);
|
|
115
115
|
return e.props && (e.props = De(
|
|
116
116
|
e.props
|
|
117
117
|
)), e;
|
|
@@ -159,60 +159,60 @@ const j2 = /* @__PURE__ */ I({
|
|
|
159
159
|
options: {}
|
|
160
160
|
}, x2),
|
|
161
161
|
emits: C2,
|
|
162
|
-
setup(
|
|
163
|
-
const t =
|
|
164
|
-
const
|
|
165
|
-
if (!
|
|
166
|
-
const { placeholder:
|
|
167
|
-
return
|
|
168
|
-
}),
|
|
162
|
+
setup(c, { emit: e }) {
|
|
163
|
+
const t = c, o = p(() => {
|
|
164
|
+
const m = k2(t);
|
|
165
|
+
if (!m.disabled) return m;
|
|
166
|
+
const { placeholder: h, ...F } = m;
|
|
167
|
+
return F;
|
|
168
|
+
}), s = A(t.modelValue);
|
|
169
169
|
ce(
|
|
170
170
|
() => t.modelValue,
|
|
171
|
-
(
|
|
172
|
-
|
|
171
|
+
(m) => {
|
|
172
|
+
s.value = m;
|
|
173
173
|
},
|
|
174
174
|
{ deep: !0 }
|
|
175
175
|
);
|
|
176
|
-
const
|
|
177
|
-
function
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
function
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
function
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
function
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
function
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
function
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
function
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
function
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
function
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
return (
|
|
205
|
-
const
|
|
206
|
-
return
|
|
207
|
-
"model-value":
|
|
208
|
-
"onUpdate:modelValue":
|
|
209
|
-
onChange:
|
|
210
|
-
onFocus:
|
|
211
|
-
onBlur:
|
|
212
|
-
onClear:
|
|
213
|
-
onVisibleChange:
|
|
214
|
-
onExpandChange:
|
|
215
|
-
onRemoveTag:
|
|
176
|
+
const r = e;
|
|
177
|
+
function a(m, ...h) {
|
|
178
|
+
r(m, ...h);
|
|
179
|
+
}
|
|
180
|
+
function d(m) {
|
|
181
|
+
s.value = m, a("update:modelValue", m);
|
|
182
|
+
}
|
|
183
|
+
function i(m) {
|
|
184
|
+
a("change", m);
|
|
185
|
+
}
|
|
186
|
+
function n(m) {
|
|
187
|
+
a("focus", m);
|
|
188
|
+
}
|
|
189
|
+
function g(m) {
|
|
190
|
+
a("blur", m);
|
|
191
|
+
}
|
|
192
|
+
function C() {
|
|
193
|
+
a("clear");
|
|
194
|
+
}
|
|
195
|
+
function v(m) {
|
|
196
|
+
a("visibleChange", m);
|
|
197
|
+
}
|
|
198
|
+
function S(m) {
|
|
199
|
+
a("expandChange", m);
|
|
200
|
+
}
|
|
201
|
+
function j(m) {
|
|
202
|
+
a("removeTag", m);
|
|
203
|
+
}
|
|
204
|
+
return (m, h) => {
|
|
205
|
+
const F = Ye;
|
|
206
|
+
return u(), P(F, O({ class: "jt-cascader jt-form-control" }, o.value, {
|
|
207
|
+
"model-value": s.value,
|
|
208
|
+
"onUpdate:modelValue": d,
|
|
209
|
+
onChange: i,
|
|
210
|
+
onFocus: n,
|
|
211
|
+
onBlur: g,
|
|
212
|
+
onClear: C,
|
|
213
|
+
onVisibleChange: v,
|
|
214
|
+
onExpandChange: S,
|
|
215
|
+
onRemoveTag: j
|
|
216
216
|
}), null, 16, ["model-value"]);
|
|
217
217
|
};
|
|
218
218
|
}
|
|
@@ -269,26 +269,26 @@ const j2 = /* @__PURE__ */ I({
|
|
|
269
269
|
isRange: { type: Boolean },
|
|
270
270
|
preservePlaceholderWhenDisabled: { type: Boolean }
|
|
271
271
|
},
|
|
272
|
-
setup(
|
|
273
|
-
const e =
|
|
274
|
-
const { preservePlaceholderWhenDisabled:
|
|
275
|
-
if (e.disabled && !
|
|
276
|
-
const { placeholder:
|
|
277
|
-
return
|
|
272
|
+
setup(c) {
|
|
273
|
+
const e = c, t = p(() => {
|
|
274
|
+
const { preservePlaceholderWhenDisabled: s, ...r } = e;
|
|
275
|
+
if (e.disabled && !s) {
|
|
276
|
+
const { placeholder: a, startPlaceholder: d, endPlaceholder: i, ...n } = r;
|
|
277
|
+
return n;
|
|
278
278
|
}
|
|
279
279
|
return {
|
|
280
|
-
...
|
|
281
|
-
startPlaceholder: e.startPlaceholder ?? (o(e.type) ?
|
|
282
|
-
endPlaceholder: e.endPlaceholder ?? (o(e.type) ?
|
|
280
|
+
...r,
|
|
281
|
+
startPlaceholder: e.startPlaceholder ?? (o(e.type) ? B("common.开始日期") : void 0),
|
|
282
|
+
endPlaceholder: e.endPlaceholder ?? (o(e.type) ? B("common.结束日期") : void 0)
|
|
283
283
|
};
|
|
284
284
|
});
|
|
285
|
-
function o(
|
|
286
|
-
return
|
|
285
|
+
function o(s) {
|
|
286
|
+
return s?.includes("range") ?? !1;
|
|
287
287
|
}
|
|
288
|
-
return (
|
|
289
|
-
const
|
|
290
|
-
return
|
|
291
|
-
"onUpdate:modelValue":
|
|
288
|
+
return (s, r) => {
|
|
289
|
+
const a = Xe;
|
|
290
|
+
return u(), P(a, O({ class: "jt-date-picker jt-form-control" }, t.value, {
|
|
291
|
+
"onUpdate:modelValue": r[0] || (r[0] = (d) => s.$emit("update:modelValue", d))
|
|
292
292
|
}), null, 16);
|
|
293
293
|
};
|
|
294
294
|
}
|
|
@@ -335,26 +335,26 @@ const j2 = /* @__PURE__ */ I({
|
|
|
335
335
|
...Ee,
|
|
336
336
|
enter: () => !0
|
|
337
337
|
},
|
|
338
|
-
setup(
|
|
339
|
-
const t =
|
|
340
|
-
const { preservePlaceholderWhenDisabled:
|
|
341
|
-
...
|
|
338
|
+
setup(c, { emit: e }) {
|
|
339
|
+
const t = c, o = p(() => {
|
|
340
|
+
const { preservePlaceholderWhenDisabled: a, placeholder: d, ...i } = t, n = {
|
|
341
|
+
...i,
|
|
342
342
|
// 未显式配置 placeholder 时,每次渲染按当前语言重新读取默认文案。
|
|
343
|
-
placeholder:
|
|
343
|
+
placeholder: d ?? B("common.请输入")
|
|
344
344
|
};
|
|
345
|
-
return !t.disabled ||
|
|
346
|
-
Object.entries(
|
|
345
|
+
return !t.disabled || a ? n : Object.fromEntries(
|
|
346
|
+
Object.entries(n).filter(([g]) => g !== "placeholder")
|
|
347
347
|
);
|
|
348
|
-
}),
|
|
349
|
-
Object.keys(Ee).map((
|
|
350
|
-
|
|
351
|
-
(...
|
|
348
|
+
}), s = e, r = p(() => Object.fromEntries(
|
|
349
|
+
Object.keys(Ee).map((a) => [
|
|
350
|
+
a,
|
|
351
|
+
(...d) => s(a, ...d)
|
|
352
352
|
])
|
|
353
353
|
));
|
|
354
|
-
return (
|
|
355
|
-
const
|
|
356
|
-
return
|
|
357
|
-
onKeyup:
|
|
354
|
+
return (a, d) => {
|
|
355
|
+
const i = Qe;
|
|
356
|
+
return u(), P(i, O({ class: "jt-input jt-form-control" }, o.value, ne(r.value), {
|
|
357
|
+
onKeyup: d[0] || (d[0] = Se((n) => s("enter"), ["enter"]))
|
|
358
358
|
}), null, 16);
|
|
359
359
|
};
|
|
360
360
|
}
|
|
@@ -417,28 +417,28 @@ const j2 = /* @__PURE__ */ I({
|
|
|
417
417
|
props: {}
|
|
418
418
|
},
|
|
419
419
|
emits: ze,
|
|
420
|
-
setup(
|
|
421
|
-
const t =
|
|
422
|
-
const { options:
|
|
423
|
-
return t.disabled && !
|
|
424
|
-
...
|
|
420
|
+
setup(c, { emit: e }) {
|
|
421
|
+
const t = c, o = p(() => {
|
|
422
|
+
const { options: a, placeholder: d, preservePlaceholderWhenDisabled: i, ...n } = t;
|
|
423
|
+
return t.disabled && !i ? n : {
|
|
424
|
+
...n,
|
|
425
425
|
// 未显式配置 placeholder 时,每次渲染按当前语言重新读取默认文案。
|
|
426
|
-
placeholder:
|
|
426
|
+
placeholder: d ?? B("common.请选择")
|
|
427
427
|
};
|
|
428
|
-
}),
|
|
429
|
-
Object.keys(ze).map((
|
|
430
|
-
|
|
431
|
-
(...
|
|
428
|
+
}), s = e, r = p(() => Object.fromEntries(
|
|
429
|
+
Object.keys(ze).map((a) => [
|
|
430
|
+
a,
|
|
431
|
+
(...d) => s(a, ...d)
|
|
432
432
|
])
|
|
433
433
|
));
|
|
434
|
-
return (
|
|
435
|
-
const
|
|
436
|
-
return
|
|
434
|
+
return (a, d) => {
|
|
435
|
+
const i = t2, n = e2;
|
|
436
|
+
return u(), P(n, O({ class: "jt-select jt-form-control" }, o.value, ne(r.value)), {
|
|
437
437
|
default: L(() => [
|
|
438
|
-
(
|
|
439
|
-
key:
|
|
438
|
+
(u(!0), w(oe, null, G(a.options ?? [], (g) => (u(), P(i, O({
|
|
439
|
+
key: g.value,
|
|
440
440
|
ref_for: !0
|
|
441
|
-
},
|
|
441
|
+
}, g), null, 16))), 128))
|
|
442
442
|
]),
|
|
443
443
|
_: 1
|
|
444
444
|
}, 16);
|
|
@@ -453,115 +453,115 @@ const j2 = /* @__PURE__ */ I({
|
|
|
453
453
|
gridColumns: {},
|
|
454
454
|
span: {}
|
|
455
455
|
},
|
|
456
|
-
setup(
|
|
457
|
-
const e = le(), t =
|
|
456
|
+
setup(c) {
|
|
457
|
+
const e = le(), t = c, o = {
|
|
458
458
|
input: Be,
|
|
459
459
|
select: F2,
|
|
460
460
|
cascader: j2,
|
|
461
461
|
"date-picker": S2
|
|
462
|
-
},
|
|
462
|
+
}, s = {
|
|
463
463
|
"remote-select": "select",
|
|
464
464
|
date: "date-picker",
|
|
465
465
|
daterange: "date-picker",
|
|
466
466
|
"date-range": "date-picker",
|
|
467
467
|
dateRange: "date-picker"
|
|
468
|
-
},
|
|
469
|
-
const { itemType:
|
|
470
|
-
if (
|
|
471
|
-
if (typeof
|
|
472
|
-
const
|
|
473
|
-
return
|
|
474
|
-
`[JtFormItems] 不支持的 itemType: "${
|
|
468
|
+
}, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), a = Object.keys(o), d = /* @__PURE__ */ new Map(), i = p(() => t.configs.filter((f) => f.show !== !1)), n = (f) => {
|
|
469
|
+
const { itemType: x } = f;
|
|
470
|
+
if (!x) return Be;
|
|
471
|
+
if (typeof x != "string") return x;
|
|
472
|
+
const U = s[x] ?? x;
|
|
473
|
+
return a.includes(U) ? o[U] : (console.error(
|
|
474
|
+
`[JtFormItems] 不支持的 itemType: "${x}",支持的类型: ${a.join(", ")}`
|
|
475
475
|
), Be);
|
|
476
|
-
},
|
|
477
|
-
const
|
|
476
|
+
}, g = (f) => {
|
|
477
|
+
const x = be(f, r);
|
|
478
478
|
return f.itemType === "select" || f.itemType === "remote-select" || f.itemType === "cascader" ? {
|
|
479
|
-
|
|
479
|
+
...x,
|
|
480
480
|
options: f.options
|
|
481
|
-
} :
|
|
482
|
-
|
|
481
|
+
} : H(f.itemType) ? {
|
|
482
|
+
...x,
|
|
483
483
|
type: "daterange"
|
|
484
|
-
} :
|
|
485
|
-
},
|
|
484
|
+
} : x;
|
|
485
|
+
}, C = (f) => ye(f, r), v = (f) => ({
|
|
486
486
|
rules: f.rules,
|
|
487
487
|
...f.formItemProps
|
|
488
|
-
}),
|
|
489
|
-
t.formData[f] =
|
|
488
|
+
}), S = (f, x) => {
|
|
489
|
+
t.formData[f] = x;
|
|
490
490
|
};
|
|
491
|
-
function
|
|
492
|
-
return (
|
|
493
|
-
if (
|
|
494
|
-
|
|
491
|
+
function j(f) {
|
|
492
|
+
return (x) => {
|
|
493
|
+
if (x) {
|
|
494
|
+
d.set(f, x);
|
|
495
495
|
return;
|
|
496
496
|
}
|
|
497
|
-
|
|
497
|
+
d.delete(f);
|
|
498
498
|
};
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function m(f, x) {
|
|
501
501
|
ge(() => {
|
|
502
|
-
|
|
502
|
+
d.get(f)?.validate(x).catch(() => {
|
|
503
503
|
});
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
|
-
const
|
|
507
|
-
const
|
|
508
|
-
(
|
|
506
|
+
const h = (f) => Math.min(Math.max(Math.trunc(f || 4), 1), 24), F = p(() => h(t.gridColumns)), J = (f) => Math.min(Math.max(Math.trunc(f || 1), 1), F.value), X = p(() => {
|
|
507
|
+
const x = i.value.reduce(
|
|
508
|
+
(U, $) => U + J(t.span || $.span),
|
|
509
509
|
0
|
|
510
|
-
) %
|
|
511
|
-
return
|
|
512
|
-
gridColumn: `1 / span ${
|
|
510
|
+
) % F.value;
|
|
511
|
+
return x === 0 ? {
|
|
512
|
+
gridColumn: `1 / span ${F.value}`
|
|
513
513
|
} : {
|
|
514
|
-
gridColumn: `${
|
|
514
|
+
gridColumn: `${x + 1} / span ${F.value - x}`
|
|
515
515
|
};
|
|
516
|
-
}),
|
|
517
|
-
gridColumn: `span ${
|
|
516
|
+
}), M = (f) => ({
|
|
517
|
+
gridColumn: `span ${J(t.span || f.span)}`
|
|
518
518
|
});
|
|
519
|
-
function
|
|
519
|
+
function H(f) {
|
|
520
520
|
return f === "daterange" || f === "date-range" || f === "dateRange";
|
|
521
521
|
}
|
|
522
|
-
return (f,
|
|
523
|
-
const
|
|
524
|
-
return
|
|
522
|
+
return (f, x) => {
|
|
523
|
+
const U = o2;
|
|
524
|
+
return u(), w("div", {
|
|
525
525
|
class: "jt-form-items",
|
|
526
|
-
style: ee({ "--jt-form-columns":
|
|
526
|
+
style: ee({ "--jt-form-columns": F.value })
|
|
527
527
|
}, [
|
|
528
|
-
(
|
|
529
|
-
key:
|
|
528
|
+
(u(!0), w(oe, null, G(i.value, ($) => (u(), P(U, O({
|
|
529
|
+
key: $.prop,
|
|
530
530
|
ref_for: !0,
|
|
531
|
-
ref:
|
|
531
|
+
ref: j($.prop),
|
|
532
532
|
class: "jt-form-items__item",
|
|
533
|
-
style:
|
|
534
|
-
label:
|
|
535
|
-
prop:
|
|
536
|
-
},
|
|
533
|
+
style: M($),
|
|
534
|
+
label: $.label,
|
|
535
|
+
prop: $.prop
|
|
536
|
+
}, v($)), ae({
|
|
537
537
|
default: L(() => [
|
|
538
|
-
|
|
538
|
+
$.showSlot ? _(f.$slots, $.prop, { key: 0 }, void 0, !0) : (u(), P(Ce(n($)), O({
|
|
539
539
|
key: 1,
|
|
540
|
-
"model-value": f.formData[
|
|
540
|
+
"model-value": f.formData[$.prop],
|
|
541
541
|
ref_for: !0
|
|
542
|
-
},
|
|
543
|
-
"onUpdate:modelValue": (
|
|
544
|
-
onChange: () =>
|
|
545
|
-
onBlur: () =>
|
|
542
|
+
}, g($), ne(C($)), {
|
|
543
|
+
"onUpdate:modelValue": (y) => S($.prop, y),
|
|
544
|
+
onChange: () => m($.prop, "change"),
|
|
545
|
+
onBlur: () => m($.prop, "blur")
|
|
546
546
|
}), null, 16, ["model-value", "onUpdate:modelValue", "onChange", "onBlur"]))
|
|
547
547
|
]),
|
|
548
548
|
_: 2
|
|
549
549
|
}, [
|
|
550
|
-
|
|
550
|
+
V(e)[`${$.prop}-label`] ? {
|
|
551
551
|
name: "label",
|
|
552
|
-
fn: L((
|
|
553
|
-
|
|
552
|
+
fn: L((y) => [
|
|
553
|
+
_(f.$slots, `${$.prop}-label`, O({ ref_for: !0 }, y), void 0, !0)
|
|
554
554
|
]),
|
|
555
555
|
key: "0"
|
|
556
556
|
} : void 0
|
|
557
557
|
]), 1040, ["style", "label", "prop"]))), 128)),
|
|
558
|
-
f.$slots.actions ? (
|
|
558
|
+
f.$slots.actions ? (u(), P(U, {
|
|
559
559
|
key: 0,
|
|
560
560
|
class: "jt-form-items__actions",
|
|
561
|
-
style: ee(
|
|
561
|
+
style: ee(X.value)
|
|
562
562
|
}, {
|
|
563
563
|
default: L(() => [
|
|
564
|
-
|
|
564
|
+
_(f.$slots, "actions", {}, void 0, !0)
|
|
565
565
|
]),
|
|
566
566
|
_: 3
|
|
567
567
|
}, 8, ["style"])) : D("", !0)
|
|
@@ -570,15 +570,15 @@ const j2 = /* @__PURE__ */ I({
|
|
|
570
570
|
}
|
|
571
571
|
}), P2 = /* @__PURE__ */ E(V2, [["__scopeId", "data-v-6eea0475"]]);
|
|
572
572
|
function I2() {
|
|
573
|
-
const
|
|
573
|
+
const c = A(!1);
|
|
574
574
|
function e() {
|
|
575
|
-
|
|
575
|
+
c.value = !0;
|
|
576
576
|
}
|
|
577
577
|
function t() {
|
|
578
|
-
|
|
578
|
+
c.value = !1;
|
|
579
579
|
}
|
|
580
580
|
return {
|
|
581
|
-
searchDisabled:
|
|
581
|
+
searchDisabled: c,
|
|
582
582
|
searchLoading: e,
|
|
583
583
|
searchDone: t
|
|
584
584
|
};
|
|
@@ -592,278 +592,278 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
592
592
|
modelValue: {}
|
|
593
593
|
},
|
|
594
594
|
emits: ["update:modelValue", "search", "reset"],
|
|
595
|
-
setup(
|
|
596
|
-
const o =
|
|
597
|
-
() => o.columns.filter((
|
|
598
|
-
),
|
|
599
|
-
() => Math.max(1,
|
|
600
|
-
),
|
|
601
|
-
() => Math.max(1,
|
|
602
|
-
),
|
|
603
|
-
() => Math.max(1,
|
|
604
|
-
),
|
|
605
|
-
() =>
|
|
606
|
-
),
|
|
607
|
-
() => Ge(
|
|
608
|
-
),
|
|
609
|
-
() =>
|
|
610
|
-
),
|
|
611
|
-
() => Pe(
|
|
612
|
-
),
|
|
613
|
-
() => Pe(
|
|
614
|
-
),
|
|
615
|
-
() => Ne(
|
|
616
|
-
),
|
|
617
|
-
if (!
|
|
618
|
-
let
|
|
619
|
-
return
|
|
620
|
-
const z = ke(
|
|
621
|
-
return
|
|
595
|
+
setup(c, { expose: e, emit: t }) {
|
|
596
|
+
const o = c, s = t, r = A(), a = le(), d = A({}), { searchDisabled: i, searchLoading: n, searchDone: g } = I2(), C = A({}), v = A({}), S = /* @__PURE__ */ new Map(), j = p(() => o.option), m = A(j.value.searchCollapsed ?? !0), h = p(
|
|
597
|
+
() => o.columns.filter((l) => l.search === !0)
|
|
598
|
+
), F = p(
|
|
599
|
+
() => Math.max(1, j.value.searchSpan ?? 4)
|
|
600
|
+
), J = p(
|
|
601
|
+
() => Math.max(1, j.value.searchCollapsedRows ?? 1)
|
|
602
|
+
), X = p(() => F.value), M = p(
|
|
603
|
+
() => Math.max(1, X.value * J.value)
|
|
604
|
+
), H = p(() => F.value), f = p(
|
|
605
|
+
() => K.value ? "264px" : "174px"
|
|
606
|
+
), x = p(
|
|
607
|
+
() => Ge(j.value.searchLabelWidth ?? 84)
|
|
608
|
+
), U = p(
|
|
609
|
+
() => j.value.searchLabelPosition ?? "top"
|
|
610
|
+
), $ = p(
|
|
611
|
+
() => Pe(j.value.searchGutter, 16)
|
|
612
|
+
), y = p(
|
|
613
|
+
() => Pe(j.value.searchRowGap, 10)
|
|
614
|
+
), Z = p(
|
|
615
|
+
() => Ne(j.value.searchPadding ?? "0 12px")
|
|
616
|
+
), K = p(() => j.value.searchCollapse === !1 ? !1 : je(h.value) > M.value), N = p(() => {
|
|
617
|
+
if (!K.value || !m.value) return h.value;
|
|
618
|
+
let l = 0;
|
|
619
|
+
return h.value.filter((k) => {
|
|
620
|
+
const z = ke(k);
|
|
621
|
+
return l + z > M.value ? !1 : (l += z, !0);
|
|
622
622
|
});
|
|
623
|
-
}), se =
|
|
624
|
-
() =>
|
|
625
|
-
), de =
|
|
626
|
-
const
|
|
627
|
-
return
|
|
628
|
-
}), te =
|
|
629
|
-
const
|
|
630
|
-
return `${Math.min(
|
|
631
|
-
}), we =
|
|
632
|
-
() =>
|
|
623
|
+
}), se = p(
|
|
624
|
+
() => N.value.filter((l) => !!a[`${l.prop}-search`])
|
|
625
|
+
), de = p(() => {
|
|
626
|
+
const l = je(N.value);
|
|
627
|
+
return N.value.length > 0 && N.value.length <= 2 && l < F.value;
|
|
628
|
+
}), te = p(() => {
|
|
629
|
+
const l = je(N.value);
|
|
630
|
+
return `${Math.min(F.value, l + 1)}`;
|
|
631
|
+
}), we = p(
|
|
632
|
+
() => N.value.map((l) => fe(l))
|
|
633
633
|
);
|
|
634
634
|
ce(
|
|
635
|
-
() =>
|
|
636
|
-
(
|
|
637
|
-
typeof
|
|
635
|
+
() => j.value.searchCollapsed,
|
|
636
|
+
(l) => {
|
|
637
|
+
typeof l == "boolean" && (m.value = l);
|
|
638
638
|
}
|
|
639
639
|
), ce(
|
|
640
640
|
() => o.modelValue,
|
|
641
|
-
(
|
|
642
|
-
|
|
641
|
+
(l) => {
|
|
642
|
+
d.value = { ...l };
|
|
643
643
|
},
|
|
644
644
|
{ deep: !0, immediate: !0 }
|
|
645
645
|
);
|
|
646
|
-
function me(
|
|
647
|
-
if (
|
|
648
|
-
const z = { ...
|
|
649
|
-
|
|
646
|
+
function me(l, k) {
|
|
647
|
+
if (i.value) return;
|
|
648
|
+
const z = { ...d.value, [l]: k };
|
|
649
|
+
d.value = z, s("update:modelValue", z);
|
|
650
650
|
}
|
|
651
|
-
function fe(
|
|
652
|
-
const
|
|
651
|
+
function fe(l) {
|
|
652
|
+
const k = l.searchProps ?? {}, z = l.searchType ?? "input", R = Le(l, k);
|
|
653
653
|
return {
|
|
654
|
-
...
|
|
655
|
-
...
|
|
656
|
-
prop:
|
|
657
|
-
label:
|
|
658
|
-
span: ke(
|
|
654
|
+
...k,
|
|
655
|
+
...R,
|
|
656
|
+
prop: l.prop,
|
|
657
|
+
label: l.searchLabel ?? l.label,
|
|
658
|
+
span: ke(l),
|
|
659
659
|
itemType: z,
|
|
660
660
|
// 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
|
|
661
|
-
showSlot: !!
|
|
662
|
-
options: Ae(
|
|
663
|
-
placeholder:
|
|
664
|
-
valueFormat:
|
|
665
|
-
disabled:
|
|
666
|
-
loading: We(
|
|
667
|
-
preservePlaceholderWhenDisabled:
|
|
661
|
+
showSlot: !!a[`${l.prop}-search`],
|
|
662
|
+
options: Ae(l, k),
|
|
663
|
+
placeholder: k.placeholder ?? l.searchPlaceholder,
|
|
664
|
+
valueFormat: k.valueFormat ?? l.searchValueFormat,
|
|
665
|
+
disabled: i.value || k.disabled === !0,
|
|
666
|
+
loading: We(l, k),
|
|
667
|
+
preservePlaceholderWhenDisabled: i.value,
|
|
668
668
|
formItemProps: {
|
|
669
|
-
required:
|
|
670
|
-
class: ["jt-filter-bar__item", { "is-required":
|
|
669
|
+
required: l.searchRequired,
|
|
670
|
+
class: ["jt-filter-bar__item", { "is-required": l.searchRequired }]
|
|
671
671
|
},
|
|
672
672
|
// 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
|
|
673
673
|
onEnter: (...re) => {
|
|
674
|
-
$e(
|
|
674
|
+
$e(k.onEnter, ...re), he();
|
|
675
675
|
},
|
|
676
676
|
// JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
|
|
677
677
|
"onUpdate:modelValue": (re) => {
|
|
678
|
-
$e(
|
|
678
|
+
$e(k["onUpdate:modelValue"], re), me(l.prop, re);
|
|
679
679
|
}
|
|
680
680
|
};
|
|
681
681
|
}
|
|
682
|
-
function Le(
|
|
683
|
-
if (
|
|
684
|
-
const z =
|
|
682
|
+
function Le(l, k) {
|
|
683
|
+
if (l.searchType !== "remote-select") return {};
|
|
684
|
+
const z = l.searchRemoteMethod ? (R) => Ue(l, R) : k.remoteMethod;
|
|
685
685
|
return {
|
|
686
686
|
// remote-select 明确进入 Element Plus 远程搜索模式,避免调用方重复配置 remote。
|
|
687
|
-
remote:
|
|
688
|
-
filterable:
|
|
687
|
+
remote: k.remote ?? !!z,
|
|
688
|
+
filterable: k.filterable ?? !0,
|
|
689
689
|
remoteMethod: z
|
|
690
690
|
};
|
|
691
691
|
}
|
|
692
|
-
function Ae(
|
|
693
|
-
return
|
|
692
|
+
function Ae(l, k) {
|
|
693
|
+
return l.searchType === "remote-select" && Object.prototype.hasOwnProperty.call(C.value, l.prop) ? C.value[l.prop] : k.options ?? l.searchOptions ?? l.dicData;
|
|
694
694
|
}
|
|
695
|
-
function We(
|
|
696
|
-
return
|
|
695
|
+
function We(l, k) {
|
|
696
|
+
return l.searchLoading !== void 0 ? l.searchLoading : k.loading !== void 0 ? k.loading : l.searchType === "remote-select" && l.searchRemoteMethod ? v.value[l.prop] === !0 : k.loading;
|
|
697
697
|
}
|
|
698
|
-
async function Ue(
|
|
699
|
-
if (!
|
|
700
|
-
const z = (
|
|
701
|
-
|
|
698
|
+
async function Ue(l, k) {
|
|
699
|
+
if (!l.searchRemoteMethod) return;
|
|
700
|
+
const z = (S.get(l.prop) ?? 0) + 1;
|
|
701
|
+
S.set(l.prop, z), l.searchLoading === void 0 && (v.value = { ...v.value, [l.prop]: !0 });
|
|
702
702
|
try {
|
|
703
|
-
const
|
|
704
|
-
if (
|
|
705
|
-
if (!Fe(
|
|
703
|
+
const R = await l.searchRemoteMethod(k, l);
|
|
704
|
+
if (S.get(l.prop) !== z || R === void 0) return;
|
|
705
|
+
if (!Fe(R)) {
|
|
706
706
|
console.warn(
|
|
707
|
-
`[JtFilterBar] ${
|
|
707
|
+
`[JtFilterBar] ${l.prop} 的 searchRemoteMethod 应返回 JtDicItem[] 或 void,请在业务方法内把接口响应映射为 { label, value } 选项。`
|
|
708
708
|
);
|
|
709
709
|
return;
|
|
710
710
|
}
|
|
711
|
-
|
|
712
|
-
} catch (
|
|
713
|
-
console.error("[JtFilterBar] searchRemoteMethod 执行失败",
|
|
711
|
+
C.value = { ...C.value, [l.prop]: R };
|
|
712
|
+
} catch (R) {
|
|
713
|
+
console.error("[JtFilterBar] searchRemoteMethod 执行失败", R);
|
|
714
714
|
} finally {
|
|
715
|
-
|
|
715
|
+
S.get(l.prop) === z && l.searchLoading === void 0 && (v.value = { ...v.value, [l.prop]: !1 });
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
|
-
function Fe(
|
|
719
|
-
return Array.isArray(
|
|
718
|
+
function Fe(l) {
|
|
719
|
+
return Array.isArray(l) && l.every(Ke);
|
|
720
720
|
}
|
|
721
|
-
function Ke(
|
|
722
|
-
if (!
|
|
723
|
-
const
|
|
724
|
-
return typeof
|
|
721
|
+
function Ke(l) {
|
|
722
|
+
if (!l || typeof l != "object") return !1;
|
|
723
|
+
const k = l, z = typeof k.value, R = k.children;
|
|
724
|
+
return typeof k.label == "string" && (z === "string" || z === "number" || z === "boolean") && (k.disabled === void 0 || typeof k.disabled == "boolean") && (R === void 0 || Fe(R));
|
|
725
725
|
}
|
|
726
|
-
function $e(
|
|
727
|
-
if (Array.isArray(
|
|
728
|
-
|
|
726
|
+
function $e(l, ...k) {
|
|
727
|
+
if (Array.isArray(l)) {
|
|
728
|
+
l.forEach((z) => $e(z, ...k));
|
|
729
729
|
return;
|
|
730
730
|
}
|
|
731
|
-
typeof
|
|
731
|
+
typeof l == "function" && l(...k);
|
|
732
732
|
}
|
|
733
733
|
async function he() {
|
|
734
|
-
if (!
|
|
735
|
-
if (
|
|
734
|
+
if (!i.value) {
|
|
735
|
+
if (r.value)
|
|
736
736
|
try {
|
|
737
|
-
await
|
|
737
|
+
await r.value.validate();
|
|
738
738
|
} catch {
|
|
739
739
|
return;
|
|
740
740
|
}
|
|
741
|
-
|
|
741
|
+
s("search");
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
function xe() {
|
|
745
|
-
|
|
745
|
+
i.value || s("reset");
|
|
746
746
|
}
|
|
747
747
|
function Ve() {
|
|
748
|
-
|
|
748
|
+
m.value = !m.value;
|
|
749
749
|
}
|
|
750
|
-
function ke(
|
|
751
|
-
return Math.min(
|
|
750
|
+
function ke(l) {
|
|
751
|
+
return Math.min(F.value, Math.max(1, l.searchSpan ?? 1));
|
|
752
752
|
}
|
|
753
|
-
function je(
|
|
754
|
-
return
|
|
753
|
+
function je(l) {
|
|
754
|
+
return l.reduce((k, z) => k + ke(z), 0);
|
|
755
755
|
}
|
|
756
|
-
function Ge(
|
|
757
|
-
return typeof
|
|
756
|
+
function Ge(l) {
|
|
757
|
+
return typeof l == "number" ? `${l}px` : l;
|
|
758
758
|
}
|
|
759
|
-
function Pe(
|
|
760
|
-
return typeof
|
|
759
|
+
function Pe(l, k) {
|
|
760
|
+
return typeof l == "number" ? l : k;
|
|
761
761
|
}
|
|
762
|
-
function Ne(
|
|
763
|
-
return typeof
|
|
762
|
+
function Ne(l) {
|
|
763
|
+
return typeof l == "number" ? `${l}px` : l;
|
|
764
764
|
}
|
|
765
765
|
return e({
|
|
766
766
|
/** 内部 Element Plus Form 实例,保留给业务侧做校验、重置等原生表单操作。 */
|
|
767
|
-
formRef:
|
|
767
|
+
formRef: r,
|
|
768
768
|
/** 当前筛选表单禁用态。 */
|
|
769
|
-
searchDisabled:
|
|
769
|
+
searchDisabled: i,
|
|
770
770
|
/** 开启筛选表单禁用。 */
|
|
771
|
-
searchLoading:
|
|
771
|
+
searchLoading: n,
|
|
772
772
|
/** 关闭筛选表单禁用。 */
|
|
773
|
-
searchDone:
|
|
774
|
-
}), (
|
|
773
|
+
searchDone: g
|
|
774
|
+
}), (l, k) => {
|
|
775
775
|
const z = a2;
|
|
776
|
-
return
|
|
777
|
-
class:
|
|
778
|
-
`is-label-${
|
|
776
|
+
return u(), w("div", {
|
|
777
|
+
class: q(["jt-filter-bar", [
|
|
778
|
+
`is-label-${U.value}`,
|
|
779
779
|
{ "is-single-filter": de.value }
|
|
780
780
|
]]),
|
|
781
781
|
style: ee({
|
|
782
|
-
"--jt-filter-columns":
|
|
783
|
-
"--jt-filter-field-columns":
|
|
782
|
+
"--jt-filter-columns": F.value,
|
|
783
|
+
"--jt-filter-field-columns": H.value,
|
|
784
784
|
"--jt-filter-btns-width": f.value,
|
|
785
785
|
"--jt-filter-actions-start": te.value,
|
|
786
|
-
"--jt-filter-label-width":
|
|
787
|
-
"--jt-filter-column-gap": `${
|
|
788
|
-
"--jt-filter-row-gap": `${
|
|
789
|
-
"--jt-filter-padding":
|
|
786
|
+
"--jt-filter-label-width": x.value,
|
|
787
|
+
"--jt-filter-column-gap": `${$.value}px`,
|
|
788
|
+
"--jt-filter-row-gap": `${y.value}px`,
|
|
789
|
+
"--jt-filter-padding": Z.value
|
|
790
790
|
})
|
|
791
791
|
}, [
|
|
792
|
-
|
|
792
|
+
W(z, {
|
|
793
793
|
ref_key: "formRef",
|
|
794
|
-
ref:
|
|
794
|
+
ref: r,
|
|
795
795
|
class: "jt-filter-bar__form",
|
|
796
|
-
model:
|
|
797
|
-
"label-position":
|
|
798
|
-
"label-width":
|
|
799
|
-
disabled:
|
|
800
|
-
onSubmit:
|
|
796
|
+
model: d.value,
|
|
797
|
+
"label-position": U.value,
|
|
798
|
+
"label-width": x.value,
|
|
799
|
+
disabled: V(i),
|
|
800
|
+
onSubmit: k[0] || (k[0] = ie(() => {
|
|
801
801
|
}, ["prevent"]))
|
|
802
802
|
}, {
|
|
803
803
|
default: L(() => [
|
|
804
|
-
|
|
804
|
+
W(V(P2), {
|
|
805
805
|
configs: we.value,
|
|
806
|
-
"form-data":
|
|
806
|
+
"form-data": d.value,
|
|
807
807
|
style: { "--jt-form-label-gap": "6px", "--jt-form-column-gap": "16px", "--jt-form-row-gap": "10px" }
|
|
808
808
|
}, ae({
|
|
809
809
|
actions: L(() => [
|
|
810
|
-
|
|
811
|
-
|
|
810
|
+
b("div", H2, [
|
|
811
|
+
_(l.$slots, "search-menu", {
|
|
812
812
|
search: he,
|
|
813
813
|
reset: xe,
|
|
814
|
-
disabled:
|
|
815
|
-
collapsed:
|
|
814
|
+
disabled: V(i),
|
|
815
|
+
collapsed: m.value,
|
|
816
816
|
toggleCollapse: Ve
|
|
817
817
|
}, () => [
|
|
818
|
-
|
|
818
|
+
K.value ? (u(), P(V(Q), {
|
|
819
819
|
key: 0,
|
|
820
820
|
class: "jt-filter-bar__btn-collapse",
|
|
821
821
|
border: "",
|
|
822
822
|
onClick: Ve
|
|
823
823
|
}, {
|
|
824
824
|
icon: L(() => [
|
|
825
|
-
|
|
826
|
-
class:
|
|
827
|
-
src:
|
|
825
|
+
b("img", {
|
|
826
|
+
class: q(["jt-filter-bar__icon-arrow", { "is-collapsed": m.value }]),
|
|
827
|
+
src: V(E2),
|
|
828
828
|
alt: ""
|
|
829
829
|
}, null, 10, J2)
|
|
830
830
|
]),
|
|
831
831
|
default: L(() => [
|
|
832
|
-
|
|
832
|
+
b("span", null, T(m.value ? V(B)("common.展开") : V(B)("common.收起")), 1)
|
|
833
833
|
]),
|
|
834
834
|
_: 1
|
|
835
835
|
})) : D("", !0),
|
|
836
|
-
|
|
836
|
+
W(V(Q), {
|
|
837
837
|
class: "jt-filter-bar__btn-reset",
|
|
838
|
-
disabled:
|
|
838
|
+
disabled: V(i),
|
|
839
839
|
border: "",
|
|
840
840
|
onClick: xe
|
|
841
841
|
}, {
|
|
842
842
|
icon: L(() => [
|
|
843
|
-
|
|
844
|
-
src:
|
|
843
|
+
b("img", {
|
|
844
|
+
src: V(z2),
|
|
845
845
|
alt: ""
|
|
846
846
|
}, null, 8, O2)
|
|
847
847
|
]),
|
|
848
848
|
default: L(() => [
|
|
849
|
-
|
|
849
|
+
b("span", null, T(j.value.resetBtnText ?? V(B)("common.重置")), 1)
|
|
850
850
|
]),
|
|
851
851
|
_: 1
|
|
852
852
|
}, 8, ["disabled"]),
|
|
853
|
-
|
|
853
|
+
W(V(Q), {
|
|
854
854
|
class: "jt-filter-bar__btn-query",
|
|
855
855
|
type: "primary",
|
|
856
|
-
disabled:
|
|
856
|
+
disabled: V(i),
|
|
857
857
|
onClick: he
|
|
858
858
|
}, {
|
|
859
859
|
icon: L(() => [
|
|
860
|
-
|
|
861
|
-
src:
|
|
860
|
+
b("img", {
|
|
861
|
+
src: V(D2),
|
|
862
862
|
alt: ""
|
|
863
863
|
}, null, 8, Z2)
|
|
864
864
|
]),
|
|
865
865
|
default: L(() => [
|
|
866
|
-
|
|
866
|
+
b("span", null, T(j.value.searchBtnText ?? V(B)("common.查询")), 1)
|
|
867
867
|
]),
|
|
868
868
|
_: 1
|
|
869
869
|
}, 8, ["disabled"])
|
|
@@ -872,16 +872,16 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
872
872
|
]),
|
|
873
873
|
_: 2
|
|
874
874
|
}, [
|
|
875
|
-
|
|
876
|
-
name:
|
|
875
|
+
G(se.value, (R) => ({
|
|
876
|
+
name: R.prop,
|
|
877
877
|
fn: L(() => [
|
|
878
|
-
|
|
879
|
-
value:
|
|
880
|
-
column:
|
|
881
|
-
setValue: (re) => me(
|
|
878
|
+
_(l.$slots, `${R.prop}-search`, {
|
|
879
|
+
value: d.value[R.prop],
|
|
880
|
+
column: R,
|
|
881
|
+
setValue: (re) => me(R.prop, re),
|
|
882
882
|
search: he,
|
|
883
883
|
reset: xe,
|
|
884
|
-
disabled:
|
|
884
|
+
disabled: V(i)
|
|
885
885
|
}, void 0, !0)
|
|
886
886
|
])
|
|
887
887
|
}))
|
|
@@ -892,7 +892,45 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
892
892
|
], 6);
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
|
-
}), A2 = /* @__PURE__ */ E(R2, [["__scopeId", "data-v-313da8c4"]]), W2 = { key: 1 }, U2 = { key: 2 }, K2 = { key: 3 }, G2 = /* @__PURE__ */ I({
|
|
895
|
+
}), A2 = /* @__PURE__ */ E(R2, [["__scopeId", "data-v-313da8c4"]]), W2 = "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.2179%2014.6719C69.4239%2014.6719%2078.836%2018.0239%2086.378%2023.6719H83.3439C81.9079%2023.6719%2080.7439%2024.8359%2080.7439%2026.2719V26.4719C80.7439%2027.9079%2081.9079%2029.0719%2083.3439%2029.0719H92.3799C94.0939%2030.9199%2095.6499%2032.9099%2097.0299%2035.0239H101.32C102.866%2035.0239%20104.12%2036.2779%20104.12%2037.8239V37.9799C104.12%2039.2579%20103.264%2040.3359%20102.094%2040.6719H98.1439C96.3759%2040.6719%2094.9439%2042.1039%2094.9439%2043.8719V44.8719C94.9439%2046.6399%2096.3759%2048.0719%2098.1439%2048.0719H111.724C113.114%2048.4199%20114.144%2049.6779%20114.144%2051.1759V51.3539C114.144%2053.1219%20112.712%2054.5539%20110.944%2054.5539H103.908C104.048%2055.9759%20104.12%2057.4159%20104.12%2058.8719C104.12%2083.2819%2084.0159%20103.072%2059.2179%20103.072C39.3819%20103.072%2022.5499%2090.4119%2016.6079%2072.8519H14.9219C14.2419%2072.8519%2013.6879%2072.2999%2013.6879%2071.6179C13.6879%2071.0979%2014.0099%2070.6539%2014.4659%2070.4719H16.5439C17.9799%2070.4719%2019.1439%2069.3079%2019.1439%2067.8719V67.6719C19.1439%2066.2359%2017.9799%2065.0719%2016.5439%2065.0719H14.7539C14.7519%2065.0619%2014.7499%2065.0499%2014.7499%2065.0399H10.3139C9.17994%2065.0399%208.25995%2064.1199%208.25995%2062.9839C8.25995%2061.8479%209.17994%2060.9279%2010.3139%2060.9279H14.3639C14.3319%2060.2459%2014.3159%2059.5619%2014.3159%2058.8719C14.3159%2052.3459%2015.7519%2046.1499%2018.3319%2040.5739L11.1439%2040.5759C8.05195%2040.5759%205.54395%2038.0679%205.54395%2034.9759V34.6619C5.54395%2031.6779%207.87795%2029.2379%2010.8219%2029.0719H36.1439C37.2479%2029.0719%2038.1439%2028.1759%2038.1439%2027.0719C38.1439%2025.9679%2037.2479%2025.0719%2036.1439%2025.0719H30.2819C30.3319%2025.0319%2030.3799%2024.9899%2030.4279%2024.9499L27.5139%2024.9519C25.4139%2024.9519%2023.7139%2023.2499%2023.7139%2021.1519V20.9379C23.7139%2018.8399%2025.4139%2017.1379%2027.5139%2017.1379H44.3899C49.0319%2015.5399%2054.0219%2014.6719%2059.2179%2014.6719Z'%20fill='%23E60000'%20fill-opacity='0.04'/%3e%3cpath%20d='M35.7505%2077.9514C35.7745%2078.0434%2035.8045%2078.1434%2035.8385%2078.2494L35.9085%2078.5294C35.9325%2078.6234%2035.9445%2078.6994%2035.9445%2078.7574C35.9445%2079.0834%2035.8565%2079.3734%2035.6805%2079.6254C35.5065%2079.8754%2035.2765%2080.0594%2034.9965%2080.1774C34.8905%2080.1894%2034.7805%2080.1954%2034.6625%2080.1954C34.5685%2080.2054%2034.4645%2080.2114%2034.3465%2080.2114H34.0125L31.2745%2080.2474V83.1754C31.2745%2083.6074%2031.2825%2084.0414%2031.3005%2084.4814C31.3185%2084.9194%2031.3385%2085.3134%2031.3605%2085.6634C31.3845%2086.0854%2031.4145%2086.4874%2031.4485%2086.8734H28.9205L28.9725%2086.1894C28.9845%2085.9214%2028.9965%2085.5554%2029.0085%2085.0934C29.0205%2084.6334%2029.0265%2084.0154%2029.0265%2083.2454V80.5634C28.8265%2080.7374%2028.6045%2080.8254%2028.3585%2080.8254C28.1605%2080.8254%2027.9865%2080.7794%2027.8405%2080.6854C27.6945%2080.5914%2027.5745%2080.4634%2027.4805%2080.2994L25.4965%2080.1954C25.1105%2080.1014%2024.7885%2079.9054%2024.5305%2079.6074C24.2725%2079.3094%2024.1445%2078.9554%2024.1445%2078.5474C24.1445%2078.4774%2024.1505%2078.4114%2024.1625%2078.3534C24.1745%2078.2954%2024.1905%2078.2374%2024.2145%2078.1794L24.6545%2077.1614C24.6765%2076.9054%2024.7505%2076.6654%2024.8725%2076.4434C24.9965%2076.2214%2025.1505%2076.0274%2025.3385%2075.8654L28.0945%2070.7634H28.1125C28.3345%2070.3554%2028.5985%2070.0034%2028.9025%2069.7114C29.2065%2069.4194%2029.6005%2069.2734%2030.0805%2069.2734C30.5005%2069.2734%2030.8785%2069.3854%2031.2125%2069.6074C31.5465%2069.8294%2031.7945%2070.1214%2031.9585%2070.4834L34.1705%2074.8134C34.5685%2074.9534%2034.8965%2075.1994%2035.1545%2075.5494C35.4125%2075.8994%2035.5405%2076.3034%2035.5405%2076.7594C35.5405%2076.9454%2035.5105%2077.1434%2035.4525%2077.3554L35.7505%2077.9514Z'%20fill='url(%23paint0_linear_2264_15691)'/%3e%3cpath%20d='M97.7505%2077.9514C97.7745%2078.0434%2097.8045%2078.1434%2097.8385%2078.2494L97.9085%2078.5294C97.9325%2078.6234%2097.9445%2078.6994%2097.9445%2078.7574C97.9445%2079.0834%2097.8565%2079.3734%2097.6805%2079.6254C97.5065%2079.8754%2097.2765%2080.0594%2096.9965%2080.1774C96.8905%2080.1894%2096.7805%2080.1954%2096.6625%2080.1954C96.5685%2080.2054%2096.4645%2080.2114%2096.3465%2080.2114H96.0125L93.2745%2080.2474V83.1754C93.2745%2083.6074%2093.2825%2084.0414%2093.3005%2084.4814C93.3185%2084.9194%2093.3385%2085.3134%2093.3605%2085.6634C93.3845%2086.0854%2093.4145%2086.4874%2093.4485%2086.8734H90.9205L90.9725%2086.1894C90.9845%2085.9214%2090.9965%2085.5554%2091.0085%2085.0934C91.0205%2084.6334%2091.0265%2084.0154%2091.0265%2083.2454V80.5634C90.8265%2080.7374%2090.6045%2080.8254%2090.3585%2080.8254C90.1605%2080.8254%2089.9865%2080.7794%2089.8405%2080.6854C89.6945%2080.5914%2089.5745%2080.4634%2089.4805%2080.2994L87.4965%2080.1954C87.1105%2080.1014%2086.7885%2079.9054%2086.5305%2079.6074C86.2725%2079.3094%2086.1445%2078.9554%2086.1445%2078.5474C86.1445%2078.4774%2086.1505%2078.4114%2086.1625%2078.3534C86.1745%2078.2954%2086.1905%2078.2374%2086.2145%2078.1794L86.6545%2077.1614C86.6765%2076.9054%2086.7505%2076.6654%2086.8725%2076.4434C86.9965%2076.2214%2087.1505%2076.0274%2087.3385%2075.8654L90.0945%2070.7634H90.1125C90.3345%2070.3554%2090.5985%2070.0034%2090.9025%2069.7114C91.2065%2069.4194%2091.6005%2069.2734%2092.0805%2069.2734C92.5005%2069.2734%2092.8785%2069.3854%2093.2125%2069.6074C93.5465%2069.8294%2093.7945%2070.1214%2093.9585%2070.4834L96.1705%2074.8134C96.5685%2074.9534%2096.8965%2075.1994%2097.1545%2075.5494C97.4125%2075.8994%2097.5405%2076.3034%2097.5405%2076.7594C97.5405%2076.9454%2097.5105%2077.1434%2097.4525%2077.3554L97.7505%2077.9514Z'%20fill='url(%23paint1_linear_2264_15691)'/%3e%3cpath%20d='M90.3947%2079.8743C90.4127%2079.9483%2090.4347%2080.0243%2090.4627%2080.1083L90.5167%2080.3283C90.5347%2080.4003%2090.5447%2080.4603%2090.5447%2080.5063C90.5447%2080.7623%2090.4767%2080.9903%2090.3387%2081.1863C90.2027%2081.3843%2090.0247%2081.5283%2089.8047%2081.6203C89.7227%2081.6283%2089.6367%2081.6343%2089.5447%2081.6343C89.4727%2081.6423%2089.3907%2081.6463%2089.2987%2081.6463H89.0387L86.9027%2081.6743V83.9703C86.9027%2084.3083%2086.9107%2084.6503%2086.9227%2084.9943C86.9367%2085.3383%2086.9527%2085.6463%2086.9707%2085.9223C86.9907%2086.2523%2087.0127%2086.5683%2087.0407%2086.8703H85.0687L85.1087%2086.3343C85.1187%2086.1243%2085.1287%2085.8363%2085.1367%2085.4743C85.1467%2085.1123%2085.1507%2084.6303%2085.1507%2084.0243V81.9223C84.9947%2082.0603%2084.8227%2082.1283%2084.6307%2082.1283C84.4747%2082.1283%2084.3407%2082.0923%2084.2267%2082.0183C84.1127%2081.9443%2084.0187%2081.8443%2083.9467%2081.7163L82.3987%2081.6343C82.0967%2081.5603%2081.8467%2081.4063%2081.6467%2081.1723C81.4447%2080.9403%2081.3447%2080.6623%2081.3447%2080.3423C81.3447%2080.2863%2081.3487%2080.2363%2081.3587%2080.1903C81.3667%2080.1443%2081.3807%2080.0983%2081.3987%2080.0523L81.7427%2079.2563C81.7607%2079.0543%2081.8167%2078.8663%2081.9127%2078.6923C82.0087%2078.5183%2082.1287%2078.3663%2082.2747%2078.2383L84.4247%2074.2383H84.4387C84.6127%2073.9183%2084.8167%2073.6423%2085.0547%2073.4143C85.2927%2073.1843%2085.5987%2073.0703%2085.9727%2073.0703C86.3007%2073.0703%2086.5947%2073.1583%2086.8547%2073.3323C87.1147%2073.5063%2087.3087%2073.7343%2087.4367%2074.0183L89.1627%2077.4143C89.4727%2077.5243%2089.7287%2077.7163%2089.9287%2077.9903C90.1287%2078.2663%2090.2307%2078.5823%2090.2307%2078.9403C90.2307%2079.0863%2090.2067%2079.2423%2090.1607%2079.4063L90.3947%2079.8743Z'%20fill='url(%23paint2_linear_2264_15691)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.6437%2082.2734C68.9198%2082.2734%2079.9738%2083.2754%2087.7018%2084.8734C95.2598%2084.9254%20101.344%2087.1874%20101.344%2089.9734C101.344%2092.1814%2097.5218%2094.0614%2092.1738%2094.7714C90.8978%2095.1474%2089.4598%2095.5034%2087.8818%2095.8354C87.9238%2096.0454%2087.9437%2096.2594%2087.9437%2096.4734C87.9437%20101.333%2077.3778%20105.273%2064.3438%20105.273C52.6178%20105.273%2042.8878%20102.083%2041.0538%2097.9054C25.4078%2096.7174%2014.3438%2093.7934%2014.3438%2090.3734C14.3438%2085.8994%2033.2818%2082.2734%2056.6437%2082.2734Z'%20fill='%23FFD4D4'/%3e%3cpath%20d='M58.0273%2082.2812C64.5826%2082.3216%2070.7608%2082.6467%2076.2344%2083.1953L97.126%2093.6328C95.7272%2094.1312%2094.044%2094.5242%2092.1738%2094.7725C90.8979%2095.1484%2089.4598%2095.504%2087.8818%2095.8359C87.9238%2096.0459%2087.9443%2096.2606%2087.9443%2096.4746C87.9439%20100.708%2079.9257%20104.242%2069.2432%20105.083L54.6758%2086.2764L58.0273%2082.2812Z'%20fill='url(%23paint3_linear_2264_15691)'%20fill-opacity='0.5'/%3e%3cpath%20d='M77.7439%2067.8154L57.5439%2065.2734V75.3514L77.4219%2077.6734L77.7439%2067.8154Z'%20fill='%23EB7171'/%3e%3cpath%20d='M41.5439%2068.5614L57.5419%2065.2734L57.5439%2076.6054L41.5439%2079.8734V68.5614Z'%20fill='%23FF9D9D'/%3e%3cpath%20d='M60.3438%2072.9106L77.5437%2068.4766V89.4426L60.3438%2093.8766V72.9106Z'%20fill='%23FFAFAF'/%3e%3cpath%20d='M41.7441%2069.0703L60.5441%2072.8203L60.4341%2093.8703L41.7441%2089.6943V69.0703Z'%20fill='%23FF9D9D'/%3e%3cpath%20d='M60.5439%2072.911L41.5779%2068.875L37.5439%2076.309L56.8319%2080.875L60.5439%2072.911Z'%20fill='%23FFAFAF'/%3e%3cpath%20d='M60.5439%2072.8143L77.7619%2068.0703L82.1439%2075.4523L65.6539%2080.8703L60.5439%2072.8143Z'%20fill='%23FF9D9D'/%3e%3cpath%20d='M42.1962%2038.2656C37.3122%2045.2576%2039.3862%2050.4756%2048.4182%2053.9216'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M40.5166%2052.7422C42.1686%2054.7962%2043.6706%2055.8222%2045.0206%2055.8222'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M80.3901%2029.3047C80.6101%2035.5207%2074.7721%2039.8707%2062.8701%2042.3607'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M81.9779%2037.125C79.0579%2039.573%2076.7739%2040.797%2075.1279%2040.797'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M77.1446%2051.3323C65.6526%2049.9443%2058.4286%2052.9043%2055.4766%2060.2123'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M41.9277%2043.0703C48.7157%2044.1343%2051.4957%2046.0123%2050.2637%2048.7063C49.0317%2051.4003%2046.2537%2049.5203%2041.9277%2043.0703Z'%20fill='url(%23paint4_linear_2264_15691)'/%3e%3cpath%20d='M66.3105%2037.1274C67.3045%2033.6114%2069.9005%2032.4394%2074.0985%2033.6114C73.9185%2035.2254%2071.3225%2036.3974%2066.3105%2037.1274Z'%20fill='url(%23paint5_linear_2264_15691)'/%3e%3cpath%20d='M57.2061%2062.8159C60.3061%2056.7859%2064.6381%2055.0679%2070.2041%2057.6639C67.6081%2062.4659%2063.2761%2064.1839%2057.2061%2062.8159Z'%20fill='url(%23paint6_linear_2264_15691)'/%3e%3cpath%20d='M65.3438%2038.9639C66.1038%2037.3359%2067.1038%2036.2919%2068.3438%2035.8359'%20stroke='%23FFA9A9'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M48.418%2047.9062C49.838%2048.2363%2050.548%2049.6023%2050.548%2052.0043'%20stroke='%23FF9898'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M55.876%2064.7395C57.028%2062.5395%2058.63%2061.4375%2060.676%2061.4375'%20stroke='%23FF7676'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2264_15691'%20x1='35.0617'%20y1='86.6622'%20x2='28.9562'%20y2='86.7572'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFC3CE'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23FFC3C3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2264_15691'%20x1='97.0617'%20y1='86.6622'%20x2='90.9562'%20y2='86.7572'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFC3CE'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23FFC3C3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2264_15691'%20x1='89.8564'%20y1='86.7047'%20x2='85.0962'%20y2='86.7783'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFC3CE'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23FFC3C3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2264_15691'%20x1='78.1565'%20y1='97.3596'%20x2='78.1565'%20y2='76.5197'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E60000'%20stop-opacity='0.1'/%3e%3cstop%20offset='1'%20stop-color='%23E60000'%20stop-opacity='0.2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_2264_15691'%20x1='41.809'%20y1='42.97'%20x2='51.3219'%20y2='46.8844'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF6666'/%3e%3cstop%20offset='1'%20stop-color='%23FFBEBE'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_2264_15691'%20x1='66.9659'%20y1='35.6311'%20x2='72.8991'%20y2='32.1971'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFD6D6'/%3e%3cstop%20offset='1'%20stop-color='%23FF7B7B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint6_linear_2264_15691'%20x1='58.2999'%20y1='60.7509'%20x2='68.158'%20y2='54.896'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='1.19209e-07'%20stop-color='%23FF9D9D'/%3e%3cstop%20offset='1'%20stop-color='%23EB7171'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", U2 = ["aria-label"], K2 = ["src"], G2 = { class: "jt-empty-state__description" }, N2 = {
|
|
896
|
+
key: 0,
|
|
897
|
+
class: "jt-empty-state__actions"
|
|
898
|
+
}, q2 = /* @__PURE__ */ I({
|
|
899
|
+
name: "JtEmptyState",
|
|
900
|
+
__name: "index",
|
|
901
|
+
props: {
|
|
902
|
+
description: { default: B("common.暂无数据", "暂无数据") },
|
|
903
|
+
imageSize: { default: 120 }
|
|
904
|
+
},
|
|
905
|
+
setup(c) {
|
|
906
|
+
const e = c, t = p(() => ({
|
|
907
|
+
"--jt-empty-state-image-size": typeof e.imageSize == "number" ? `${e.imageSize}px` : e.imageSize
|
|
908
|
+
}));
|
|
909
|
+
return (o, s) => (u(), w("section", {
|
|
910
|
+
class: "jt-empty-state",
|
|
911
|
+
role: "status",
|
|
912
|
+
"aria-label": o.description,
|
|
913
|
+
style: ee(t.value)
|
|
914
|
+
}, [
|
|
915
|
+
b("div", {
|
|
916
|
+
class: q(["jt-empty-state__image", { "jt-empty-state__image--default": !o.$slots.image }])
|
|
917
|
+
}, [
|
|
918
|
+
_(o.$slots, "image", {}, () => [
|
|
919
|
+
b("img", {
|
|
920
|
+
src: V(W2),
|
|
921
|
+
alt: ""
|
|
922
|
+
}, null, 8, K2)
|
|
923
|
+
], !0)
|
|
924
|
+
], 2),
|
|
925
|
+
_(o.$slots, "default", {}, () => [
|
|
926
|
+
b("p", G2, T(o.description), 1)
|
|
927
|
+
], !0),
|
|
928
|
+
o.$slots.actions ? (u(), w("div", N2, [
|
|
929
|
+
_(o.$slots, "actions", {}, void 0, !0)
|
|
930
|
+
])) : D("", !0)
|
|
931
|
+
], 12, U2));
|
|
932
|
+
}
|
|
933
|
+
}), Y2 = /* @__PURE__ */ E(q2, [["__scopeId", "data-v-bb00a314"]]), X2 = { key: 1 }, Q2 = { key: 2 }, e0 = { key: 3 }, t0 = /* @__PURE__ */ I({
|
|
896
934
|
name: "JtTable",
|
|
897
935
|
__name: "JtTable",
|
|
898
936
|
props: {
|
|
@@ -901,102 +939,109 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
901
939
|
option: {},
|
|
902
940
|
tableEvents: {}
|
|
903
941
|
},
|
|
904
|
-
setup(
|
|
905
|
-
const t =
|
|
906
|
-
|
|
907
|
-
|
|
942
|
+
setup(c, { expose: e }) {
|
|
943
|
+
const t = c, o = le(), s = A(), r = p(() => t.option ?? {}), a = p(
|
|
944
|
+
() => r.value.emptyText ?? B("common.暂无数据")
|
|
945
|
+
), d = p(() => t.columns.filter((h) => !h.hide)), i = p(() => r.value.menuFixed ?? "right");
|
|
946
|
+
function n(h) {
|
|
947
|
+
return !!o[`${h}-header`];
|
|
908
948
|
}
|
|
909
|
-
function
|
|
910
|
-
return !!o[`${
|
|
949
|
+
function g(h) {
|
|
950
|
+
return !!o[`${h}-data`];
|
|
911
951
|
}
|
|
912
|
-
function
|
|
952
|
+
function C(h) {
|
|
913
953
|
return {
|
|
914
|
-
width:
|
|
915
|
-
minWidth:
|
|
916
|
-
align:
|
|
917
|
-
fixed:
|
|
918
|
-
sortable:
|
|
919
|
-
showOverflowTooltip:
|
|
920
|
-
...
|
|
954
|
+
width: h.width,
|
|
955
|
+
minWidth: h.minWidth,
|
|
956
|
+
align: h.align || "center",
|
|
957
|
+
fixed: h.fixed,
|
|
958
|
+
sortable: h.sortable,
|
|
959
|
+
showOverflowTooltip: h.showOverflowTooltip ?? v(h),
|
|
960
|
+
...h.columnOptions
|
|
921
961
|
};
|
|
922
962
|
}
|
|
923
|
-
function
|
|
924
|
-
return !
|
|
963
|
+
function v(h) {
|
|
964
|
+
return !g(h.prop) && !j(h.columnOptions?.type);
|
|
925
965
|
}
|
|
926
|
-
function h
|
|
927
|
-
return !
|
|
966
|
+
function S(h) {
|
|
967
|
+
return !j(h.columnOptions?.type);
|
|
928
968
|
}
|
|
929
|
-
function
|
|
930
|
-
return
|
|
969
|
+
function j(h) {
|
|
970
|
+
return h === "selection" || h === "index" || h === "expand";
|
|
931
971
|
}
|
|
932
|
-
function
|
|
933
|
-
return
|
|
972
|
+
function m(h, F) {
|
|
973
|
+
return h.find((J) => J.value === F)?.label ?? String(F ?? "");
|
|
934
974
|
}
|
|
935
|
-
return e({ tableRef:
|
|
936
|
-
const
|
|
937
|
-
return
|
|
975
|
+
return e({ tableRef: s }), (h, F) => {
|
|
976
|
+
const J = l2, X = n2;
|
|
977
|
+
return u(), P(X, O({
|
|
938
978
|
ref_key: "tableRef",
|
|
939
|
-
ref:
|
|
940
|
-
data:
|
|
941
|
-
"row-key":
|
|
942
|
-
"empty-text":
|
|
943
|
-
stripe:
|
|
979
|
+
ref: s,
|
|
980
|
+
data: h.data,
|
|
981
|
+
"row-key": r.value.rowKey ?? "id",
|
|
982
|
+
"empty-text": r.value.emptyText,
|
|
983
|
+
stripe: r.value.tableProps?.stripe ?? !0,
|
|
944
984
|
class: "jt-table"
|
|
945
|
-
},
|
|
985
|
+
}, r.value.tableProps, ne(h.tableEvents)), {
|
|
986
|
+
empty: L(() => [
|
|
987
|
+
_(h.$slots, "empty", {}, () => [
|
|
988
|
+
W(Y2, { description: a.value }, null, 8, ["description"])
|
|
989
|
+
], !0)
|
|
990
|
+
]),
|
|
946
991
|
default: L(() => [
|
|
947
|
-
|
|
992
|
+
r.value.selection ? (u(), P(J, {
|
|
948
993
|
key: 0,
|
|
949
994
|
type: "selection",
|
|
950
995
|
width: "55",
|
|
951
996
|
align: "center"
|
|
952
997
|
})) : D("", !0),
|
|
953
|
-
|
|
998
|
+
r.value.index ? (u(), P(J, {
|
|
954
999
|
key: 1,
|
|
955
1000
|
type: "index",
|
|
956
|
-
label:
|
|
1001
|
+
label: r.value.indexLabel ?? V(B)("common.序号"),
|
|
957
1002
|
width: "60",
|
|
958
1003
|
align: "center"
|
|
959
1004
|
}, null, 8, ["label"])) : D("", !0),
|
|
960
|
-
(
|
|
961
|
-
key:
|
|
962
|
-
prop:
|
|
963
|
-
label:
|
|
964
|
-
formatter: !
|
|
1005
|
+
(u(!0), w(oe, null, G(d.value, (M) => (u(), P(J, O({
|
|
1006
|
+
key: M.prop,
|
|
1007
|
+
prop: M.prop,
|
|
1008
|
+
label: M.label,
|
|
1009
|
+
formatter: !g(M.prop) && !M.dicData ? M.formatter : void 0,
|
|
965
1010
|
ref_for: !0
|
|
966
|
-
},
|
|
967
|
-
|
|
1011
|
+
}, C(M)), ae({ _: 2 }, [
|
|
1012
|
+
n(M.prop) ? {
|
|
968
1013
|
name: "header",
|
|
969
1014
|
fn: L((H) => [
|
|
970
|
-
|
|
1015
|
+
_(h.$slots, `${M.prop}-header`, O({ ref_for: !0 }, H), void 0, !0)
|
|
971
1016
|
]),
|
|
972
1017
|
key: "0"
|
|
973
1018
|
} : void 0,
|
|
974
|
-
|
|
1019
|
+
S(M) ? {
|
|
975
1020
|
name: "default",
|
|
976
1021
|
fn: L((H) => [
|
|
977
|
-
|
|
1022
|
+
g(M.prop) ? _(h.$slots, `${M.prop}-data`, O({
|
|
978
1023
|
key: 0,
|
|
979
1024
|
ref_for: !0
|
|
980
|
-
}, H), void 0, !0) :
|
|
1025
|
+
}, H), void 0, !0) : M.dicData ? (u(), w("span", X2, T(m(M.dicData, H.row[M.prop])), 1)) : M.formatter ? (u(), w("span", Q2, T(M.formatter(
|
|
981
1026
|
H.row,
|
|
982
1027
|
H.column,
|
|
983
|
-
H.row[
|
|
1028
|
+
H.row[M.prop],
|
|
984
1029
|
H.$index
|
|
985
|
-
)), 1)) : (
|
|
1030
|
+
)), 1)) : (u(), w("span", e0, T(H.row[M.prop]), 1))
|
|
986
1031
|
]),
|
|
987
1032
|
key: "1"
|
|
988
1033
|
} : void 0
|
|
989
1034
|
]), 1040, ["prop", "label", "formatter"]))), 128)),
|
|
990
|
-
|
|
1035
|
+
r.value.menu ? (u(), P(J, {
|
|
991
1036
|
key: 2,
|
|
992
|
-
label:
|
|
993
|
-
width:
|
|
994
|
-
"min-width":
|
|
995
|
-
align:
|
|
996
|
-
fixed:
|
|
1037
|
+
label: r.value.menuLabel ?? V(B)("common.操作"),
|
|
1038
|
+
width: r.value.menuWidth,
|
|
1039
|
+
"min-width": r.value.menuMinWidth,
|
|
1040
|
+
align: r.value.menuAlign ?? "center",
|
|
1041
|
+
fixed: i.value
|
|
997
1042
|
}, {
|
|
998
|
-
default: L((
|
|
999
|
-
|
|
1043
|
+
default: L((M) => [
|
|
1044
|
+
_(h.$slots, "menu", ue(pe(M)), void 0, !0)
|
|
1000
1045
|
]),
|
|
1001
1046
|
_: 3
|
|
1002
1047
|
}, 8, ["label", "width", "min-width", "align", "fixed"])) : D("", !0)
|
|
@@ -1005,7 +1050,7 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1005
1050
|
}, 16, ["data", "row-key", "empty-text", "stripe"]);
|
|
1006
1051
|
};
|
|
1007
1052
|
}
|
|
1008
|
-
}),
|
|
1053
|
+
}), o0 = /* @__PURE__ */ E(t0, [["__scopeId", "data-v-f0175193"]]), a0 = { class: "jt-pagination" }, n0 = { class: "jt-pagination__count" }, l0 = /* @__PURE__ */ I({
|
|
1009
1054
|
name: "JtPagination",
|
|
1010
1055
|
__name: "JtPagination",
|
|
1011
1056
|
props: {
|
|
@@ -1015,33 +1060,33 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1015
1060
|
option: {}
|
|
1016
1061
|
},
|
|
1017
1062
|
emits: ["update:currentPage", "update:pageSize", "current-change", "page-change", "size-change"],
|
|
1018
|
-
setup(
|
|
1019
|
-
const t =
|
|
1020
|
-
function
|
|
1021
|
-
|
|
1022
|
-
}
|
|
1023
|
-
return (
|
|
1024
|
-
const
|
|
1025
|
-
return
|
|
1026
|
-
|
|
1027
|
-
"current-page":
|
|
1028
|
-
"page-size":
|
|
1063
|
+
setup(c, { emit: e }) {
|
|
1064
|
+
const t = c, o = p(() => t.option ?? {}), s = e;
|
|
1065
|
+
function r(a) {
|
|
1066
|
+
s("current-change", a), s("page-change", a);
|
|
1067
|
+
}
|
|
1068
|
+
return (a, d) => {
|
|
1069
|
+
const i = s2;
|
|
1070
|
+
return u(), w("div", a0, [
|
|
1071
|
+
W(i, {
|
|
1072
|
+
"current-page": a.currentPage,
|
|
1073
|
+
"page-size": a.pageSize,
|
|
1029
1074
|
"page-sizes": o.value.pageSizes ?? [10, 20, 50, 100],
|
|
1030
|
-
total:
|
|
1075
|
+
total: a.total,
|
|
1031
1076
|
layout: o.value.paginationLayout ?? "sizes, prev, pager, next, jumper",
|
|
1032
|
-
"onUpdate:currentPage":
|
|
1033
|
-
"onUpdate:pageSize":
|
|
1034
|
-
onCurrentChange:
|
|
1035
|
-
onSizeChange:
|
|
1077
|
+
"onUpdate:currentPage": d[0] || (d[0] = (n) => a.$emit("update:currentPage", n)),
|
|
1078
|
+
"onUpdate:pageSize": d[1] || (d[1] = (n) => a.$emit("update:pageSize", n)),
|
|
1079
|
+
onCurrentChange: r,
|
|
1080
|
+
onSizeChange: d[2] || (d[2] = (n) => a.$emit("size-change", n))
|
|
1036
1081
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"]),
|
|
1037
|
-
|
|
1082
|
+
b("span", n0, T(V(B)("common.共{total}条记录", "共 {total} 条记录", { total: a.total })), 1)
|
|
1038
1083
|
]);
|
|
1039
1084
|
};
|
|
1040
1085
|
}
|
|
1041
|
-
}),
|
|
1086
|
+
}), s0 = /* @__PURE__ */ E(l0, [["__scopeId", "data-v-03d564ec"]]), r0 = { class: "jt-crud-table" }, i0 = { class: "filter-bar-box" }, c0 = { class: "jt-crud-table__result" }, d0 = { class: "jt-crud-table__table-group" }, u0 = {
|
|
1042
1087
|
key: 0,
|
|
1043
1088
|
class: "jt-crud-table__toolbar"
|
|
1044
|
-
},
|
|
1089
|
+
}, p0 = /* @__PURE__ */ I({
|
|
1045
1090
|
name: "JtCrudTable",
|
|
1046
1091
|
__name: "JtCrudTable",
|
|
1047
1092
|
props: /* @__PURE__ */ _e({
|
|
@@ -1061,179 +1106,186 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1061
1106
|
searchModelModifiers: {}
|
|
1062
1107
|
}),
|
|
1063
1108
|
emits: /* @__PURE__ */ _e(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
|
|
1064
|
-
setup(
|
|
1065
|
-
const o =
|
|
1066
|
-
() =>
|
|
1067
|
-
),
|
|
1068
|
-
() => o.columns.filter((f) => f.search && !!
|
|
1069
|
-
),
|
|
1070
|
-
() => o.columns.filter((f) => !f.hide && !!
|
|
1071
|
-
),
|
|
1072
|
-
() => o.columns.filter((f) => !f.hide && !!
|
|
1109
|
+
setup(c, { expose: e, emit: t }) {
|
|
1110
|
+
const o = c, s = t, r = ve(c, "currentPage"), a = ve(c, "pageSize"), d = ve(c, "searchModel"), i = le(), n = A(), g = A(), C = p(() => o.option), v = p(() => C.value.searchShow !== !1), S = p(
|
|
1111
|
+
() => C.value.paginationShow !== !1
|
|
1112
|
+
), j = p(
|
|
1113
|
+
() => o.columns.filter((f) => f.search && !!i[`${f.prop}-search`])
|
|
1114
|
+
), m = p(
|
|
1115
|
+
() => o.columns.filter((f) => !f.hide && !!i[`${f.prop}-header`])
|
|
1116
|
+
), h = p(
|
|
1117
|
+
() => o.columns.filter((f) => !f.hide && !!i[`${f.prop}-data`])
|
|
1073
1118
|
);
|
|
1074
|
-
function
|
|
1119
|
+
function F() {
|
|
1075
1120
|
const f = {};
|
|
1076
|
-
return o.columns.forEach((
|
|
1077
|
-
|
|
1121
|
+
return o.columns.forEach((x) => {
|
|
1122
|
+
x.search && (f[x.prop] = void 0);
|
|
1078
1123
|
}), f;
|
|
1079
1124
|
}
|
|
1080
|
-
function
|
|
1081
|
-
|
|
1125
|
+
function J() {
|
|
1126
|
+
s("search", { ...d.value });
|
|
1082
1127
|
}
|
|
1083
|
-
function
|
|
1084
|
-
|
|
1128
|
+
function X() {
|
|
1129
|
+
d.value = F(), s("reset");
|
|
1085
1130
|
}
|
|
1086
|
-
function
|
|
1087
|
-
|
|
1131
|
+
function M() {
|
|
1132
|
+
g.value?.searchLoading();
|
|
1088
1133
|
}
|
|
1089
|
-
function
|
|
1090
|
-
|
|
1134
|
+
function H() {
|
|
1135
|
+
g.value?.searchDone();
|
|
1091
1136
|
}
|
|
1092
1137
|
return e({
|
|
1093
1138
|
/** 获取内部 el-table 实例 */
|
|
1094
|
-
tableRef:
|
|
1139
|
+
tableRef: p(() => n.value?.tableRef),
|
|
1095
1140
|
/** 获取内部筛选条实例 */
|
|
1096
|
-
filterBarRef:
|
|
1141
|
+
filterBarRef: g,
|
|
1097
1142
|
/** 开启筛选表单禁用。 */
|
|
1098
|
-
searchLoading:
|
|
1143
|
+
searchLoading: M,
|
|
1099
1144
|
/** 关闭筛选表单禁用。 */
|
|
1100
|
-
searchDone:
|
|
1101
|
-
}), (f,
|
|
1102
|
-
const
|
|
1103
|
-
return
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1145
|
+
searchDone: H
|
|
1146
|
+
}), (f, x) => {
|
|
1147
|
+
const U = r2;
|
|
1148
|
+
return u(), w("div", r0, [
|
|
1149
|
+
_(f.$slots, "header", {}, void 0, !0),
|
|
1150
|
+
b("div", i0, [
|
|
1151
|
+
v.value ? (u(), P(A2, {
|
|
1107
1152
|
key: 0,
|
|
1108
1153
|
ref_key: "filterBarRef",
|
|
1109
|
-
ref:
|
|
1110
|
-
modelValue:
|
|
1111
|
-
"onUpdate:modelValue":
|
|
1154
|
+
ref: g,
|
|
1155
|
+
modelValue: d.value,
|
|
1156
|
+
"onUpdate:modelValue": x[0] || (x[0] = ($) => d.value = $),
|
|
1112
1157
|
columns: f.columns,
|
|
1113
|
-
option:
|
|
1114
|
-
onSearch:
|
|
1115
|
-
onReset:
|
|
1158
|
+
option: C.value,
|
|
1159
|
+
onSearch: J,
|
|
1160
|
+
onReset: X
|
|
1116
1161
|
}, ae({ _: 2 }, [
|
|
1117
|
-
|
|
1118
|
-
name: `${
|
|
1119
|
-
fn: L((
|
|
1120
|
-
|
|
1162
|
+
G(j.value, ($) => ({
|
|
1163
|
+
name: `${$.prop}-search`,
|
|
1164
|
+
fn: L((y) => [
|
|
1165
|
+
_(f.$slots, `${$.prop}-search`, ue(pe(y)), void 0, !0)
|
|
1121
1166
|
])
|
|
1122
1167
|
}))
|
|
1123
1168
|
]), 1032, ["modelValue", "columns", "option"])) : D("", !0)
|
|
1124
1169
|
]),
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1170
|
+
b("div", c0, [
|
|
1171
|
+
b("div", d0, [
|
|
1172
|
+
V(i).toolbar ? (u(), w("div", u0, [
|
|
1173
|
+
_(f.$slots, "toolbar", {}, void 0, !0)
|
|
1129
1174
|
])) : D("", !0),
|
|
1130
|
-
v2((
|
|
1175
|
+
v2((u(), P(o0, {
|
|
1131
1176
|
ref_key: "jtTableRef",
|
|
1132
|
-
ref:
|
|
1177
|
+
ref: n,
|
|
1133
1178
|
data: f.data,
|
|
1134
1179
|
columns: f.columns,
|
|
1135
|
-
option:
|
|
1180
|
+
option: C.value,
|
|
1136
1181
|
"table-events": f.tableEvents
|
|
1137
1182
|
}, ae({ _: 2 }, [
|
|
1138
|
-
|
|
1139
|
-
name:
|
|
1140
|
-
fn: L((
|
|
1141
|
-
|
|
1183
|
+
V(i).empty ? {
|
|
1184
|
+
name: "empty",
|
|
1185
|
+
fn: L(() => [
|
|
1186
|
+
_(f.$slots, "empty", {}, void 0, !0)
|
|
1187
|
+
]),
|
|
1188
|
+
key: "0"
|
|
1189
|
+
} : void 0,
|
|
1190
|
+
G(m.value, ($) => ({
|
|
1191
|
+
name: `${$.prop}-header`,
|
|
1192
|
+
fn: L((y) => [
|
|
1193
|
+
_(f.$slots, `${$.prop}-header`, ue(pe(y)), void 0, !0)
|
|
1142
1194
|
])
|
|
1143
1195
|
})),
|
|
1144
|
-
|
|
1145
|
-
name: `${
|
|
1146
|
-
fn: L((
|
|
1147
|
-
|
|
1196
|
+
G(h.value, ($) => ({
|
|
1197
|
+
name: `${$.prop}-data`,
|
|
1198
|
+
fn: L((y) => [
|
|
1199
|
+
_(f.$slots, `${$.prop}-data`, ue(pe(y)), void 0, !0)
|
|
1148
1200
|
])
|
|
1149
1201
|
})),
|
|
1150
|
-
|
|
1202
|
+
C.value.menu ? {
|
|
1151
1203
|
name: "menu",
|
|
1152
|
-
fn: L((
|
|
1153
|
-
|
|
1204
|
+
fn: L(($) => [
|
|
1205
|
+
_(f.$slots, "menu", ue(pe($)), void 0, !0)
|
|
1154
1206
|
]),
|
|
1155
|
-
key: "
|
|
1207
|
+
key: "1"
|
|
1156
1208
|
} : void 0
|
|
1157
1209
|
]), 1032, ["data", "columns", "option", "table-events"])), [
|
|
1158
|
-
[
|
|
1210
|
+
[U, C.value.loading]
|
|
1159
1211
|
])
|
|
1160
1212
|
]),
|
|
1161
|
-
|
|
1213
|
+
S.value ? (u(), P(s0, {
|
|
1162
1214
|
key: 0,
|
|
1163
|
-
"current-page":
|
|
1164
|
-
"onUpdate:currentPage":
|
|
1165
|
-
"page-size":
|
|
1166
|
-
"onUpdate:pageSize":
|
|
1215
|
+
"current-page": r.value,
|
|
1216
|
+
"onUpdate:currentPage": x[1] || (x[1] = ($) => r.value = $),
|
|
1217
|
+
"page-size": a.value,
|
|
1218
|
+
"onUpdate:pageSize": x[2] || (x[2] = ($) => a.value = $),
|
|
1167
1219
|
total: f.total,
|
|
1168
|
-
option:
|
|
1169
|
-
onPageChange:
|
|
1170
|
-
onSizeChange:
|
|
1220
|
+
option: C.value,
|
|
1221
|
+
onPageChange: x[3] || (x[3] = ($) => f.$emit("page-change", $)),
|
|
1222
|
+
onSizeChange: x[4] || (x[4] = ($) => f.$emit("size-change", $))
|
|
1171
1223
|
}, null, 8, ["current-page", "page-size", "total", "option"])) : D("", !0)
|
|
1172
1224
|
])
|
|
1173
1225
|
]);
|
|
1174
1226
|
};
|
|
1175
1227
|
}
|
|
1176
|
-
}),
|
|
1228
|
+
}), Gt = /* @__PURE__ */ E(p0, [["__scopeId", "data-v-a37df21e"]]), m0 = /* @__PURE__ */ I({
|
|
1177
1229
|
name: "SvgIcon",
|
|
1178
1230
|
__name: "SvgIcon",
|
|
1179
1231
|
props: {
|
|
1180
1232
|
src: {},
|
|
1181
1233
|
size: { default: "1em" }
|
|
1182
1234
|
},
|
|
1183
|
-
setup(
|
|
1184
|
-
const e =
|
|
1235
|
+
setup(c) {
|
|
1236
|
+
const e = c, t = p(() => ({
|
|
1185
1237
|
"--svg-icon-source": `url("${e.src}")`,
|
|
1186
1238
|
"--svg-icon-size": typeof e.size == "number" ? `${e.size}px` : e.size
|
|
1187
1239
|
}));
|
|
1188
|
-
return (o,
|
|
1240
|
+
return (o, s) => (u(), w("span", {
|
|
1189
1241
|
class: "svg-icon",
|
|
1190
1242
|
style: ee(t.value),
|
|
1191
1243
|
"aria-hidden": "true"
|
|
1192
1244
|
}, null, 4));
|
|
1193
1245
|
}
|
|
1194
|
-
}),
|
|
1246
|
+
}), f0 = /* @__PURE__ */ E(m0, [["__scopeId", "data-v-d11c470f"]]), h0 = "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", v0 = ["aria-label", "disabled"], g0 = /* @__PURE__ */ I({
|
|
1195
1247
|
name: "JtActionMenu",
|
|
1196
1248
|
__name: "index",
|
|
1197
1249
|
props: {
|
|
1198
1250
|
items: { default: () => [] },
|
|
1199
1251
|
disabled: { type: Boolean, default: !1 },
|
|
1200
|
-
ariaLabel: { default:
|
|
1252
|
+
ariaLabel: { default: B("common.更多操作", "更多操作") }
|
|
1201
1253
|
},
|
|
1202
1254
|
emits: ["select"],
|
|
1203
|
-
setup(
|
|
1204
|
-
const t =
|
|
1205
|
-
() => t.items.filter((
|
|
1255
|
+
setup(c, { emit: e }) {
|
|
1256
|
+
const t = c, o = e, s = p(
|
|
1257
|
+
() => t.items.filter((a) => a.hidden !== !0)
|
|
1206
1258
|
);
|
|
1207
|
-
function
|
|
1208
|
-
|
|
1259
|
+
function r(a) {
|
|
1260
|
+
a.hidden || a.disabled || o("select", a.key, a);
|
|
1209
1261
|
}
|
|
1210
|
-
return (
|
|
1211
|
-
const
|
|
1212
|
-
return
|
|
1262
|
+
return (a, d) => {
|
|
1263
|
+
const i = He, n = d2, g = c2, C = i2;
|
|
1264
|
+
return u(), P(C, {
|
|
1213
1265
|
trigger: "click",
|
|
1214
1266
|
placement: "bottom-end",
|
|
1215
1267
|
"popper-class": "jt-action-menu__popper",
|
|
1216
|
-
disabled: t.disabled ||
|
|
1217
|
-
onCommand:
|
|
1268
|
+
disabled: t.disabled || s.value.length === 0,
|
|
1269
|
+
onCommand: r
|
|
1218
1270
|
}, {
|
|
1219
1271
|
dropdown: L(() => [
|
|
1220
|
-
|
|
1272
|
+
W(g, null, {
|
|
1221
1273
|
default: L(() => [
|
|
1222
|
-
(
|
|
1223
|
-
key:
|
|
1224
|
-
class:
|
|
1225
|
-
command:
|
|
1226
|
-
disabled:
|
|
1274
|
+
(u(!0), w(oe, null, G(s.value, (v) => (u(), P(n, {
|
|
1275
|
+
key: v.key,
|
|
1276
|
+
class: q(["jt-action-menu__item", { "is-danger": v.danger }]),
|
|
1277
|
+
command: v,
|
|
1278
|
+
disabled: v.disabled
|
|
1227
1279
|
}, {
|
|
1228
1280
|
default: L(() => [
|
|
1229
|
-
|
|
1230
|
-
|
|
1281
|
+
_(a.$slots, "item", { item: v }, () => [
|
|
1282
|
+
v.icon ? (u(), P(i, { key: 0 }, {
|
|
1231
1283
|
default: L(() => [
|
|
1232
|
-
(
|
|
1284
|
+
(u(), P(Ce(v.icon)))
|
|
1233
1285
|
]),
|
|
1234
1286
|
_: 2
|
|
1235
1287
|
}, 1024)) : D("", !0),
|
|
1236
|
-
|
|
1288
|
+
b("span", null, T(v.label), 1)
|
|
1237
1289
|
], !0)
|
|
1238
1290
|
]),
|
|
1239
1291
|
_: 2
|
|
@@ -1243,25 +1295,25 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1243
1295
|
})
|
|
1244
1296
|
]),
|
|
1245
1297
|
default: L(() => [
|
|
1246
|
-
|
|
1247
|
-
|
|
1298
|
+
_(a.$slots, "trigger", { items: s.value }, () => [
|
|
1299
|
+
b("button", {
|
|
1248
1300
|
class: "jt-action-menu__trigger",
|
|
1249
1301
|
type: "button",
|
|
1250
1302
|
"aria-label": t.ariaLabel,
|
|
1251
1303
|
disabled: t.disabled
|
|
1252
1304
|
}, [
|
|
1253
|
-
|
|
1254
|
-
src:
|
|
1305
|
+
W(f0, {
|
|
1306
|
+
src: V(h0),
|
|
1255
1307
|
size: 20
|
|
1256
1308
|
}, null, 8, ["src"])
|
|
1257
|
-
], 8,
|
|
1309
|
+
], 8, v0)
|
|
1258
1310
|
], !0)
|
|
1259
1311
|
]),
|
|
1260
1312
|
_: 3
|
|
1261
1313
|
}, 8, ["disabled"]);
|
|
1262
1314
|
};
|
|
1263
1315
|
}
|
|
1264
|
-
}), Gt = /* @__PURE__ */ E(d0, [["__scopeId", "data-v-bede50b0"]]), u0 = "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", p0 = "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", m0 = "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", f0 = "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", h0 = "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", v0 = {
|
|
1316
|
+
}), Nt = /* @__PURE__ */ E(g0, [["__scopeId", "data-v-a054596c"]]), _0 = "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", C0 = "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", y0 = "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", b0 = "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", w0 = "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", L0 = {
|
|
1265
1317
|
pdf: "pdf",
|
|
1266
1318
|
xls: "excel",
|
|
1267
1319
|
xlsx: "excel",
|
|
@@ -1281,13 +1333,13 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1281
1333
|
bmp: "image",
|
|
1282
1334
|
svg: "image"
|
|
1283
1335
|
};
|
|
1284
|
-
function
|
|
1336
|
+
function $0(c, e) {
|
|
1285
1337
|
if (e) return e;
|
|
1286
|
-
if (!
|
|
1287
|
-
const t =
|
|
1288
|
-
return o ?
|
|
1338
|
+
if (!c) return;
|
|
1339
|
+
const t = c.split(/[?#]/, 1)[0], o = t.includes(".") ? t.split(".").pop()?.toLowerCase() : void 0;
|
|
1340
|
+
return o ? L0[o] : void 0;
|
|
1289
1341
|
}
|
|
1290
|
-
const
|
|
1342
|
+
const x0 = ["aria-label"], k0 = ["src"], j0 = /* @__PURE__ */ I({
|
|
1291
1343
|
name: "JtFileIcon",
|
|
1292
1344
|
__name: "index",
|
|
1293
1345
|
props: {
|
|
@@ -1295,199 +1347,199 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ I({
|
|
|
1295
1347
|
type: {},
|
|
1296
1348
|
size: { default: 18 }
|
|
1297
1349
|
},
|
|
1298
|
-
setup(
|
|
1299
|
-
const e =
|
|
1300
|
-
pdf:
|
|
1301
|
-
excel:
|
|
1302
|
-
word:
|
|
1303
|
-
archive:
|
|
1304
|
-
image:
|
|
1305
|
-
}, o =
|
|
1350
|
+
setup(c) {
|
|
1351
|
+
const e = c, t = {
|
|
1352
|
+
pdf: b0,
|
|
1353
|
+
excel: C0,
|
|
1354
|
+
word: w0,
|
|
1355
|
+
archive: _0,
|
|
1356
|
+
image: y0
|
|
1357
|
+
}, o = p(() => $0(e.name, e.type)), s = p(
|
|
1306
1358
|
() => o.value ? t[o.value] : void 0
|
|
1307
|
-
),
|
|
1308
|
-
() => e.name ?
|
|
1309
|
-
),
|
|
1359
|
+
), r = p(
|
|
1360
|
+
() => e.name ? B("common.{name}文件图标", "{name} 文件图标", { name: e.name }) : B("common.文件图标", "文件图标")
|
|
1361
|
+
), a = p(() => ({
|
|
1310
1362
|
"--jt-file-icon-size": typeof e.size == "number" ? `${e.size}px` : e.size
|
|
1311
1363
|
}));
|
|
1312
|
-
return (
|
|
1364
|
+
return (d, i) => (u(), w("span", {
|
|
1313
1365
|
class: "jt-file-icon",
|
|
1314
1366
|
role: "img",
|
|
1315
|
-
"aria-label":
|
|
1316
|
-
style: ee(
|
|
1367
|
+
"aria-label": r.value,
|
|
1368
|
+
style: ee(a.value)
|
|
1317
1369
|
}, [
|
|
1318
|
-
|
|
1370
|
+
s.value ? (u(), w("img", {
|
|
1319
1371
|
key: 0,
|
|
1320
|
-
src:
|
|
1372
|
+
src: s.value,
|
|
1321
1373
|
alt: "",
|
|
1322
1374
|
"aria-hidden": "true"
|
|
1323
|
-
}, null, 8,
|
|
1375
|
+
}, null, 8, k0)) : _(d.$slots, e.name, {
|
|
1324
1376
|
key: 1,
|
|
1325
1377
|
type: o.value
|
|
1326
1378
|
}, void 0, !0)
|
|
1327
|
-
], 12,
|
|
1379
|
+
], 12, x0));
|
|
1328
1380
|
}
|
|
1329
|
-
}),
|
|
1381
|
+
}), B0 = /* @__PURE__ */ E(j0, [["__scopeId", "data-v-989a66a3"]]), S0 = {
|
|
1330
1382
|
key: 0,
|
|
1331
1383
|
class: "jt-attachment-list"
|
|
1332
|
-
},
|
|
1384
|
+
}, M0 = { class: "jt-attachment-list__identity" }, T0 = ["title"], F0 = {
|
|
1333
1385
|
key: 0,
|
|
1334
1386
|
class: "jt-attachment-list__description"
|
|
1335
|
-
},
|
|
1387
|
+
}, V0 = {
|
|
1336
1388
|
key: 0,
|
|
1337
1389
|
class: "jt-attachment-list__actions"
|
|
1338
|
-
},
|
|
1390
|
+
}, P0 = {
|
|
1339
1391
|
key: 1,
|
|
1340
1392
|
class: "jt-attachment-list__empty"
|
|
1341
|
-
},
|
|
1393
|
+
}, I0 = /* @__PURE__ */ I({
|
|
1342
1394
|
name: "JtAttachmentList",
|
|
1343
1395
|
__name: "index",
|
|
1344
1396
|
props: {
|
|
1345
1397
|
files: {},
|
|
1346
|
-
emptyText: { default:
|
|
1398
|
+
emptyText: { default: B("common.暂无附件", "暂无附件") }
|
|
1347
1399
|
},
|
|
1348
1400
|
emits: ["preview", "download", "remove"],
|
|
1349
|
-
setup(
|
|
1350
|
-
const t =
|
|
1351
|
-
function
|
|
1352
|
-
o("preview",
|
|
1401
|
+
setup(c, { emit: e }) {
|
|
1402
|
+
const t = c, o = e;
|
|
1403
|
+
function s(d) {
|
|
1404
|
+
o("preview", d);
|
|
1353
1405
|
}
|
|
1354
|
-
function
|
|
1355
|
-
o("download",
|
|
1406
|
+
function r(d) {
|
|
1407
|
+
o("download", d);
|
|
1356
1408
|
}
|
|
1357
|
-
function
|
|
1358
|
-
o("remove",
|
|
1409
|
+
function a(d) {
|
|
1410
|
+
o("remove", d);
|
|
1359
1411
|
}
|
|
1360
|
-
return (
|
|
1361
|
-
(
|
|
1362
|
-
key:
|
|
1412
|
+
return (d, i) => t.files.length ? (u(), w("ul", S0, [
|
|
1413
|
+
(u(!0), w(oe, null, G(t.files, (n) => (u(), w("li", {
|
|
1414
|
+
key: n.id,
|
|
1363
1415
|
class: "jt-attachment-list__item"
|
|
1364
1416
|
}, [
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
name:
|
|
1369
|
-
type:
|
|
1417
|
+
_(d.$slots, "item", { file: n }, () => [
|
|
1418
|
+
b("span", M0, [
|
|
1419
|
+
W(B0, {
|
|
1420
|
+
name: n.name,
|
|
1421
|
+
type: n.type
|
|
1370
1422
|
}, null, 8, ["name", "type"]),
|
|
1371
|
-
|
|
1372
|
-
class:
|
|
1373
|
-
title:
|
|
1374
|
-
}, T(
|
|
1375
|
-
|
|
1423
|
+
b("span", {
|
|
1424
|
+
class: q(["jt-attachment-list__name", { "is-disabled": n.disabled }]),
|
|
1425
|
+
title: n.name
|
|
1426
|
+
}, T(n.name), 11, T0),
|
|
1427
|
+
n.description ? (u(), w("span", F0, T(n.description), 1)) : D("", !0)
|
|
1376
1428
|
])
|
|
1377
1429
|
], !0),
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
file:
|
|
1381
|
-
preview: () =>
|
|
1382
|
-
download: () =>
|
|
1383
|
-
remove: () => n
|
|
1430
|
+
d.$slots.actions ? (u(), w("span", V0, [
|
|
1431
|
+
_(d.$slots, "actions", {
|
|
1432
|
+
file: n,
|
|
1433
|
+
preview: () => s(n),
|
|
1434
|
+
download: () => r(n),
|
|
1435
|
+
remove: () => a(n)
|
|
1384
1436
|
}, void 0, !0)
|
|
1385
1437
|
])) : D("", !0)
|
|
1386
1438
|
]))), 128))
|
|
1387
|
-
])) : (
|
|
1388
|
-
|
|
1389
|
-
|
|
1439
|
+
])) : (u(), w("div", P0, [
|
|
1440
|
+
_(d.$slots, "empty", {}, () => [
|
|
1441
|
+
Y(T(t.emptyText), 1)
|
|
1390
1442
|
], !0)
|
|
1391
1443
|
]));
|
|
1392
1444
|
}
|
|
1393
|
-
}),
|
|
1445
|
+
}), qt = /* @__PURE__ */ E(I0, [["__scopeId", "data-v-9f6adbeb"]]), E0 = {
|
|
1394
1446
|
key: 0,
|
|
1395
1447
|
class: "jt-card__title"
|
|
1396
|
-
},
|
|
1448
|
+
}, z0 = {
|
|
1397
1449
|
key: 1,
|
|
1398
1450
|
class: "jt-card__content"
|
|
1399
|
-
},
|
|
1451
|
+
}, D0 = /* @__PURE__ */ I({
|
|
1400
1452
|
name: "JtCard",
|
|
1401
1453
|
__name: "index",
|
|
1402
1454
|
props: {
|
|
1403
1455
|
title: {}
|
|
1404
1456
|
},
|
|
1405
|
-
setup(
|
|
1406
|
-
const e =
|
|
1407
|
-
return (
|
|
1408
|
-
o.value ? (
|
|
1409
|
-
|
|
1410
|
-
|
|
1457
|
+
setup(c) {
|
|
1458
|
+
const e = c, t = le(), o = p(() => !!(e.title || t.title)), s = p(() => !!(t.content || t.default));
|
|
1459
|
+
return (r, a) => (u(), w("div", O({ class: "jt-card" }, r.$attrs), [
|
|
1460
|
+
o.value ? (u(), w("div", E0, [
|
|
1461
|
+
_(r.$slots, "title", {}, () => [
|
|
1462
|
+
b("span", null, T(r.title), 1)
|
|
1411
1463
|
], !0)
|
|
1412
1464
|
])) : D("", !0),
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1465
|
+
s.value ? (u(), w("div", z0, [
|
|
1466
|
+
_(r.$slots, "content", {}, () => [
|
|
1467
|
+
_(r.$slots, "default", {}, void 0, !0)
|
|
1416
1468
|
], !0)
|
|
1417
1469
|
])) : D("", !0)
|
|
1418
1470
|
], 16));
|
|
1419
1471
|
}
|
|
1420
|
-
}),
|
|
1472
|
+
}), Yt = /* @__PURE__ */ E(D0, [["__scopeId", "data-v-e4895e88"]]), H0 = ["aria-label"], J0 = ["data-jt-choice-card-index", "aria-checked", "aria-disabled", "disabled", "tabindex", "onClick", "onKeydown"], O0 = { class: "jt-choice-card__copy" }, Z0 = { class: "jt-choice-card__label" }, R0 = {
|
|
1421
1473
|
key: 0,
|
|
1422
1474
|
class: "jt-choice-card__description"
|
|
1423
|
-
},
|
|
1475
|
+
}, A0 = /* @__PURE__ */ I({
|
|
1424
1476
|
name: "JtChoiceCardGroup",
|
|
1425
1477
|
__name: "index",
|
|
1426
1478
|
props: {
|
|
1427
1479
|
modelValue: {},
|
|
1428
1480
|
options: { default: () => [] },
|
|
1429
|
-
ariaLabel: { default:
|
|
1481
|
+
ariaLabel: { default: B("common.卡片单选", "卡片单选") }
|
|
1430
1482
|
},
|
|
1431
1483
|
emits: ["update:modelValue", "change"],
|
|
1432
|
-
setup(
|
|
1433
|
-
const t =
|
|
1434
|
-
() => t.options.flatMap((
|
|
1484
|
+
setup(c, { emit: e }) {
|
|
1485
|
+
const t = c, o = e, s = A(), r = p(
|
|
1486
|
+
() => t.options.flatMap((n, g) => n.disabled ? [] : [g])
|
|
1435
1487
|
);
|
|
1436
|
-
function n
|
|
1437
|
-
|
|
1488
|
+
function a(n) {
|
|
1489
|
+
n.disabled || n.value === t.modelValue || (o("update:modelValue", n.value), o("change", n.value, n));
|
|
1438
1490
|
}
|
|
1439
|
-
function
|
|
1440
|
-
return
|
|
1491
|
+
function d(n, g) {
|
|
1492
|
+
return n.disabled ? -1 : n.value === t.modelValue || t.modelValue === void 0 && g === r.value[0] ? 0 : -1;
|
|
1441
1493
|
}
|
|
1442
|
-
function
|
|
1443
|
-
if (
|
|
1444
|
-
|
|
1494
|
+
function i(n, g, C) {
|
|
1495
|
+
if (n.key === "Enter" || n.key === " ") {
|
|
1496
|
+
n.preventDefault(), a(g);
|
|
1445
1497
|
return;
|
|
1446
1498
|
}
|
|
1447
|
-
const
|
|
1499
|
+
const S = {
|
|
1448
1500
|
ArrowRight: 1,
|
|
1449
1501
|
ArrowDown: 1,
|
|
1450
1502
|
ArrowLeft: -1,
|
|
1451
1503
|
ArrowUp: -1
|
|
1452
|
-
}[
|
|
1453
|
-
if (!
|
|
1454
|
-
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1504
|
+
}[n.key];
|
|
1505
|
+
if (!S || r.value.length === 0) return;
|
|
1506
|
+
n.preventDefault();
|
|
1507
|
+
const m = (Math.max(r.value.indexOf(C), 0) + S + r.value.length) % r.value.length, h = r.value[m], F = t.options[h];
|
|
1508
|
+
s.value?.querySelector(`[data-jt-choice-card-index="${h}"]`)?.focus(), F && a(F);
|
|
1457
1509
|
}
|
|
1458
|
-
return (
|
|
1510
|
+
return (n, g) => (u(), w("div", {
|
|
1459
1511
|
ref_key: "groupRef",
|
|
1460
|
-
ref:
|
|
1512
|
+
ref: s,
|
|
1461
1513
|
class: "jt-choice-card-group",
|
|
1462
1514
|
role: "radiogroup",
|
|
1463
1515
|
"aria-label": t.ariaLabel
|
|
1464
1516
|
}, [
|
|
1465
|
-
(
|
|
1466
|
-
key:
|
|
1467
|
-
class:
|
|
1517
|
+
(u(!0), w(oe, null, G(t.options, (C, v) => (u(), w("button", {
|
|
1518
|
+
key: C.value,
|
|
1519
|
+
class: q(["jt-choice-card", { "is-selected": C.value === t.modelValue }]),
|
|
1468
1520
|
type: "button",
|
|
1469
1521
|
role: "radio",
|
|
1470
|
-
"data-jt-choice-card-index":
|
|
1471
|
-
"aria-checked":
|
|
1472
|
-
"aria-disabled":
|
|
1473
|
-
disabled:
|
|
1474
|
-
tabindex:
|
|
1475
|
-
onClick: (
|
|
1476
|
-
onKeydown: (
|
|
1522
|
+
"data-jt-choice-card-index": v,
|
|
1523
|
+
"aria-checked": C.value === t.modelValue ? "true" : "false",
|
|
1524
|
+
"aria-disabled": C.disabled ? "true" : "false",
|
|
1525
|
+
disabled: C.disabled,
|
|
1526
|
+
tabindex: d(C, v),
|
|
1527
|
+
onClick: (S) => a(C),
|
|
1528
|
+
onKeydown: (S) => i(S, C, v)
|
|
1477
1529
|
}, [
|
|
1478
|
-
|
|
1479
|
-
option:
|
|
1480
|
-
selected:
|
|
1530
|
+
_(n.$slots, "option", {
|
|
1531
|
+
option: C,
|
|
1532
|
+
selected: C.value === t.modelValue
|
|
1481
1533
|
}, () => [
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1534
|
+
b("span", O0, [
|
|
1535
|
+
b("span", Z0, T(C.label), 1),
|
|
1536
|
+
C.description ? (u(), w("span", R0, T(C.description), 1)) : D("", !0)
|
|
1485
1537
|
])
|
|
1486
1538
|
], !0)
|
|
1487
|
-
], 42,
|
|
1488
|
-
], 8,
|
|
1539
|
+
], 42, J0))), 128))
|
|
1540
|
+
], 8, H0));
|
|
1489
1541
|
}
|
|
1490
|
-
}),
|
|
1542
|
+
}), Xt = /* @__PURE__ */ E(A0, [["__scopeId", "data-v-897eb9f2"]]), W0 = { class: "jt-descriptions__label" }, U0 = { class: "jt-descriptions__value" }, K0 = /* @__PURE__ */ I({
|
|
1491
1543
|
name: "JtDescriptions",
|
|
1492
1544
|
__name: "index",
|
|
1493
1545
|
props: {
|
|
@@ -1496,47 +1548,47 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ I({
|
|
|
1496
1548
|
labelWidth: { default: "auto" },
|
|
1497
1549
|
emptyText: { default: "--" }
|
|
1498
1550
|
},
|
|
1499
|
-
setup(
|
|
1500
|
-
const e =
|
|
1551
|
+
setup(c) {
|
|
1552
|
+
const e = c, t = p(() => e.items.filter((a) => !a.hidden)), o = p(() => ({
|
|
1501
1553
|
"--jt-descriptions-columns": e.columns,
|
|
1502
1554
|
"--jt-descriptions-label-width": typeof e.labelWidth == "number" ? `${e.labelWidth}px` : e.labelWidth
|
|
1503
1555
|
}));
|
|
1504
|
-
function
|
|
1505
|
-
const
|
|
1506
|
-
return Math.min(Math.max(
|
|
1556
|
+
function s(a) {
|
|
1557
|
+
const d = Math.trunc(a ?? 1);
|
|
1558
|
+
return Math.min(Math.max(d, 1), e.columns);
|
|
1507
1559
|
}
|
|
1508
|
-
function
|
|
1509
|
-
return
|
|
1560
|
+
function r(a) {
|
|
1561
|
+
return a != null && a !== "";
|
|
1510
1562
|
}
|
|
1511
|
-
return (
|
|
1563
|
+
return (a, d) => (u(), w("dl", {
|
|
1512
1564
|
class: "jt-descriptions",
|
|
1513
1565
|
style: ee(o.value)
|
|
1514
1566
|
}, [
|
|
1515
|
-
(
|
|
1516
|
-
key:
|
|
1567
|
+
(u(!0), w(oe, null, G(t.value, (i) => (u(), w("div", {
|
|
1568
|
+
key: i.key,
|
|
1517
1569
|
class: "jt-descriptions__item",
|
|
1518
|
-
style: ee({ gridColumn: `span ${
|
|
1570
|
+
style: ee({ gridColumn: `span ${s(i.span)}` })
|
|
1519
1571
|
}, [
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1572
|
+
_(a.$slots, "item", { item: i }, () => [
|
|
1573
|
+
b("dt", W0, [
|
|
1574
|
+
_(a.$slots, `${i.key}-label`, { item: i }, () => [
|
|
1575
|
+
Y(T(i.label), 1)
|
|
1524
1576
|
], !0)
|
|
1525
1577
|
]),
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1578
|
+
b("dd", U0, [
|
|
1579
|
+
_(a.$slots, `${i.key}-value`, { item: i }, () => [
|
|
1580
|
+
Y(T(r(i.value) ? i.value : e.emptyText), 1)
|
|
1529
1581
|
], !0)
|
|
1530
1582
|
])
|
|
1531
1583
|
], !0)
|
|
1532
1584
|
], 4))), 128))
|
|
1533
1585
|
], 4));
|
|
1534
1586
|
}
|
|
1535
|
-
}),
|
|
1587
|
+
}), Qt = /* @__PURE__ */ E(K0, [["__scopeId", "data-v-9cf04a6b"]]), G0 = "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", N0 = { class: "jt-dialog__header" }, q0 = { class: "jt-dialog__title" }, Y0 = {
|
|
1536
1588
|
key: 0,
|
|
1537
1589
|
class: "jt-dialog__icon",
|
|
1538
1590
|
"aria-hidden": "true"
|
|
1539
|
-
},
|
|
1591
|
+
}, X0 = ["aria-label", "disabled"], Q0 = { class: "jt-dialog__body" }, et = { class: "jt-dialog__footer" }, eo = /* @__PURE__ */ I({
|
|
1540
1592
|
name: "JtDialog",
|
|
1541
1593
|
__name: "index",
|
|
1542
1594
|
props: /* @__PURE__ */ _e({
|
|
@@ -1570,8 +1622,8 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ I({
|
|
|
1570
1622
|
ariaLevel: {},
|
|
1571
1623
|
title: { default: "" },
|
|
1572
1624
|
width: { default: "default" },
|
|
1573
|
-
cancelText: { default:
|
|
1574
|
-
confirmText: { default:
|
|
1625
|
+
cancelText: { default: B("common.取消") },
|
|
1626
|
+
confirmText: { default: B("common.确认") },
|
|
1575
1627
|
confirmLoading: { type: Boolean, default: !1 },
|
|
1576
1628
|
showFooter: { type: Boolean, default: !0 },
|
|
1577
1629
|
footerLayout: { default: "stretch" }
|
|
@@ -1580,11 +1632,11 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ I({
|
|
|
1580
1632
|
modelModifiers: {}
|
|
1581
1633
|
}),
|
|
1582
1634
|
emits: /* @__PURE__ */ _e(["cancel", "confirm", "close"], ["update:modelValue"]),
|
|
1583
|
-
setup(
|
|
1584
|
-
const t =
|
|
1635
|
+
setup(c, { emit: e }) {
|
|
1636
|
+
const t = c, o = ve(c, "modelValue"), s = e, r = {
|
|
1585
1637
|
default: "517px",
|
|
1586
1638
|
form: "642px"
|
|
1587
|
-
},
|
|
1639
|
+
}, a = /* @__PURE__ */ new Set([
|
|
1588
1640
|
"title",
|
|
1589
1641
|
"width",
|
|
1590
1642
|
"cancelText",
|
|
@@ -1592,105 +1644,105 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ I({
|
|
|
1592
1644
|
"confirmLoading",
|
|
1593
1645
|
"showFooter",
|
|
1594
1646
|
"footerLayout"
|
|
1595
|
-
]),
|
|
1596
|
-
function
|
|
1597
|
-
return typeof
|
|
1647
|
+
]), d = Te();
|
|
1648
|
+
function i(m) {
|
|
1649
|
+
return typeof m == "string" && m in r ? r[m] : m;
|
|
1598
1650
|
}
|
|
1599
|
-
const
|
|
1651
|
+
const n = p(() => {
|
|
1600
1652
|
const {
|
|
1601
|
-
title:
|
|
1602
|
-
width:
|
|
1603
|
-
cancelText:
|
|
1604
|
-
confirmText:
|
|
1605
|
-
confirmLoading:
|
|
1606
|
-
showFooter:
|
|
1607
|
-
footerLayout:
|
|
1653
|
+
title: m,
|
|
1654
|
+
width: h,
|
|
1655
|
+
cancelText: F,
|
|
1656
|
+
confirmText: J,
|
|
1657
|
+
confirmLoading: X,
|
|
1658
|
+
showFooter: M,
|
|
1659
|
+
footerLayout: H,
|
|
1608
1660
|
...f
|
|
1609
1661
|
} = t;
|
|
1610
1662
|
return {
|
|
1611
|
-
...be(
|
|
1663
|
+
...be(d, a),
|
|
1612
1664
|
...f,
|
|
1613
|
-
width:
|
|
1665
|
+
width: i(h),
|
|
1614
1666
|
showClose: !1
|
|
1615
1667
|
};
|
|
1616
|
-
}),
|
|
1617
|
-
function
|
|
1668
|
+
}), g = p(() => ye(d)), C = p(() => `jt-dialog--footer-${t.footerLayout}`);
|
|
1669
|
+
function v() {
|
|
1618
1670
|
o.value = !1;
|
|
1619
1671
|
}
|
|
1620
|
-
function
|
|
1621
|
-
|
|
1672
|
+
function S() {
|
|
1673
|
+
s("cancel"), v();
|
|
1622
1674
|
}
|
|
1623
|
-
function
|
|
1624
|
-
t.confirmLoading ||
|
|
1675
|
+
function j() {
|
|
1676
|
+
t.confirmLoading || s("confirm");
|
|
1625
1677
|
}
|
|
1626
|
-
return (
|
|
1627
|
-
const
|
|
1628
|
-
return
|
|
1678
|
+
return (m, h) => {
|
|
1679
|
+
const F = u2;
|
|
1680
|
+
return u(), P(F, O({
|
|
1629
1681
|
modelValue: o.value,
|
|
1630
|
-
"onUpdate:modelValue":
|
|
1631
|
-
class: ["jt-dialog",
|
|
1632
|
-
},
|
|
1633
|
-
onClose:
|
|
1682
|
+
"onUpdate:modelValue": h[0] || (h[0] = (J) => o.value = J),
|
|
1683
|
+
class: ["jt-dialog", C.value]
|
|
1684
|
+
}, n.value, ne(g.value), {
|
|
1685
|
+
onClose: h[1] || (h[1] = (J) => s("close"))
|
|
1634
1686
|
}), ae({
|
|
1635
1687
|
header: L(() => [
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1688
|
+
_(m.$slots, "header", { close: v }, () => [
|
|
1689
|
+
b("header", N0, [
|
|
1690
|
+
b("div", q0, [
|
|
1691
|
+
m.$slots.icon ? (u(), w("span", Y0, [
|
|
1692
|
+
_(m.$slots, "icon")
|
|
1641
1693
|
])) : D("", !0),
|
|
1642
|
-
|
|
1694
|
+
b("span", null, T(m.title), 1)
|
|
1643
1695
|
]),
|
|
1644
|
-
|
|
1696
|
+
b("button", {
|
|
1645
1697
|
type: "button",
|
|
1646
1698
|
class: "jt-dialog__close",
|
|
1647
|
-
"aria-label":
|
|
1648
|
-
disabled:
|
|
1649
|
-
onClick:
|
|
1650
|
-
},
|
|
1651
|
-
|
|
1652
|
-
src:
|
|
1699
|
+
"aria-label": V(B)("common.关闭", "关闭"),
|
|
1700
|
+
disabled: m.confirmLoading,
|
|
1701
|
+
onClick: v
|
|
1702
|
+
}, h[2] || (h[2] = [
|
|
1703
|
+
b("img", {
|
|
1704
|
+
src: G0,
|
|
1653
1705
|
alt: ""
|
|
1654
1706
|
}, null, -1)
|
|
1655
|
-
]), 8,
|
|
1707
|
+
]), 8, X0)
|
|
1656
1708
|
])
|
|
1657
1709
|
])
|
|
1658
1710
|
]),
|
|
1659
1711
|
default: L(() => [
|
|
1660
|
-
|
|
1661
|
-
|
|
1712
|
+
b("section", Q0, [
|
|
1713
|
+
_(m.$slots, "default")
|
|
1662
1714
|
])
|
|
1663
1715
|
]),
|
|
1664
1716
|
_: 2
|
|
1665
1717
|
}, [
|
|
1666
|
-
|
|
1718
|
+
m.showFooter ? {
|
|
1667
1719
|
name: "footer",
|
|
1668
1720
|
fn: L(() => [
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
cancel:
|
|
1672
|
-
confirm:
|
|
1721
|
+
b("footer", et, [
|
|
1722
|
+
_(m.$slots, "footer", {
|
|
1723
|
+
cancel: S,
|
|
1724
|
+
confirm: j
|
|
1673
1725
|
}, () => [
|
|
1674
|
-
|
|
1726
|
+
W(Q, {
|
|
1675
1727
|
size: "middle",
|
|
1676
1728
|
gray: "",
|
|
1677
|
-
disabled:
|
|
1678
|
-
onClick:
|
|
1729
|
+
disabled: m.confirmLoading,
|
|
1730
|
+
onClick: S
|
|
1679
1731
|
}, {
|
|
1680
1732
|
default: L(() => [
|
|
1681
|
-
|
|
1733
|
+
Y(T(m.cancelText), 1)
|
|
1682
1734
|
]),
|
|
1683
1735
|
_: 1
|
|
1684
1736
|
}, 8, ["disabled"]),
|
|
1685
|
-
|
|
1737
|
+
W(Q, {
|
|
1686
1738
|
size: "middle",
|
|
1687
1739
|
type: "primary",
|
|
1688
|
-
loading:
|
|
1689
|
-
disabled:
|
|
1690
|
-
onClick:
|
|
1740
|
+
loading: m.confirmLoading,
|
|
1741
|
+
disabled: m.confirmLoading,
|
|
1742
|
+
onClick: j
|
|
1691
1743
|
}, {
|
|
1692
1744
|
default: L(() => [
|
|
1693
|
-
|
|
1745
|
+
Y(T(m.confirmText), 1)
|
|
1694
1746
|
]),
|
|
1695
1747
|
_: 1
|
|
1696
1748
|
}, 8, ["loading", "disabled"])
|
|
@@ -1702,7 +1754,7 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ I({
|
|
|
1702
1754
|
]), 1040, ["modelValue", "class"]);
|
|
1703
1755
|
};
|
|
1704
1756
|
}
|
|
1705
|
-
}),
|
|
1757
|
+
}), tt = { class: "jt-drawer__body" }, ot = { class: "jt-drawer__footer" }, at = { class: "jt-drawer__footer-actions" }, to = /* @__PURE__ */ I({
|
|
1706
1758
|
name: "JtDrawer",
|
|
1707
1759
|
__name: "index",
|
|
1708
1760
|
props: {
|
|
@@ -1742,13 +1794,13 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ I({
|
|
|
1742
1794
|
title: {},
|
|
1743
1795
|
ariaLevel: {},
|
|
1744
1796
|
size: { default: "default" },
|
|
1745
|
-
cancelText: { default:
|
|
1746
|
-
confirmText: { default:
|
|
1797
|
+
cancelText: { default: B("common.取消") },
|
|
1798
|
+
confirmText: { default: B("common.确认") },
|
|
1747
1799
|
confirmLoading: { type: Boolean, default: !1 },
|
|
1748
1800
|
showFooter: { type: Boolean, default: !0 }
|
|
1749
1801
|
},
|
|
1750
1802
|
emits: ["cancel", "confirm"],
|
|
1751
|
-
setup(
|
|
1803
|
+
setup(c, { emit: e }) {
|
|
1752
1804
|
const t = {
|
|
1753
1805
|
default: "838px",
|
|
1754
1806
|
large: "1242px"
|
|
@@ -1757,66 +1809,66 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ I({
|
|
|
1757
1809
|
"confirmText",
|
|
1758
1810
|
"confirmLoading",
|
|
1759
1811
|
"showFooter"
|
|
1760
|
-
]),
|
|
1812
|
+
]), s = c, r = e, a = Te(), d = p(() => {
|
|
1761
1813
|
const {
|
|
1762
|
-
cancelText:
|
|
1763
|
-
confirmText:
|
|
1764
|
-
confirmLoading:
|
|
1765
|
-
showFooter:
|
|
1766
|
-
size:
|
|
1767
|
-
...
|
|
1768
|
-
} =
|
|
1814
|
+
cancelText: n,
|
|
1815
|
+
confirmText: g,
|
|
1816
|
+
confirmLoading: C,
|
|
1817
|
+
showFooter: v,
|
|
1818
|
+
size: S,
|
|
1819
|
+
...j
|
|
1820
|
+
} = s;
|
|
1769
1821
|
return {
|
|
1770
|
-
...be(
|
|
1771
|
-
...
|
|
1772
|
-
size: t[
|
|
1822
|
+
...be(a, o),
|
|
1823
|
+
...j,
|
|
1824
|
+
size: t[S],
|
|
1773
1825
|
withHeader: !1,
|
|
1774
|
-
modalClass: ["jt-drawer-modal",
|
|
1826
|
+
modalClass: ["jt-drawer-modal", j.modalClass].filter(Boolean).join(" ")
|
|
1775
1827
|
};
|
|
1776
|
-
}),
|
|
1777
|
-
return (
|
|
1778
|
-
const
|
|
1779
|
-
return
|
|
1828
|
+
}), i = p(() => ye(a));
|
|
1829
|
+
return (n, g) => {
|
|
1830
|
+
const C = p2;
|
|
1831
|
+
return u(), P(C, O({
|
|
1780
1832
|
class: "jt-drawer",
|
|
1781
1833
|
"lock-model": ""
|
|
1782
|
-
},
|
|
1834
|
+
}, d.value, ne(i.value)), ae({
|
|
1783
1835
|
default: L(() => [
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1836
|
+
b("section", tt, [
|
|
1837
|
+
_(n.$slots, "body", {}, () => [
|
|
1838
|
+
_(n.$slots, "default")
|
|
1787
1839
|
])
|
|
1788
1840
|
])
|
|
1789
1841
|
]),
|
|
1790
1842
|
_: 2
|
|
1791
1843
|
}, [
|
|
1792
|
-
|
|
1844
|
+
n.showFooter ? {
|
|
1793
1845
|
name: "footer",
|
|
1794
1846
|
fn: L(() => [
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1847
|
+
b("footer", ot, [
|
|
1848
|
+
_(n.$slots, "footer", {}, () => [
|
|
1849
|
+
b("div", at, [
|
|
1850
|
+
W(Q, {
|
|
1799
1851
|
class: "jt-drawer__footer-button",
|
|
1800
1852
|
size: "middle",
|
|
1801
1853
|
gray: "",
|
|
1802
|
-
disabled:
|
|
1803
|
-
onClick:
|
|
1854
|
+
disabled: n.confirmLoading,
|
|
1855
|
+
onClick: g[0] || (g[0] = (v) => r("cancel"))
|
|
1804
1856
|
}, {
|
|
1805
1857
|
default: L(() => [
|
|
1806
|
-
|
|
1858
|
+
Y(T(n.cancelText), 1)
|
|
1807
1859
|
]),
|
|
1808
1860
|
_: 1
|
|
1809
1861
|
}, 8, ["disabled"]),
|
|
1810
|
-
|
|
1862
|
+
W(Q, {
|
|
1811
1863
|
class: "jt-drawer__footer-button",
|
|
1812
1864
|
size: "middle",
|
|
1813
1865
|
type: "primary",
|
|
1814
|
-
loading:
|
|
1815
|
-
disabled:
|
|
1816
|
-
onClick:
|
|
1866
|
+
loading: n.confirmLoading,
|
|
1867
|
+
disabled: n.confirmLoading,
|
|
1868
|
+
onClick: g[1] || (g[1] = (v) => r("confirm"))
|
|
1817
1869
|
}, {
|
|
1818
1870
|
default: L(() => [
|
|
1819
|
-
|
|
1871
|
+
Y(T(n.confirmText), 1)
|
|
1820
1872
|
]),
|
|
1821
1873
|
_: 1
|
|
1822
1874
|
}, 8, ["loading", "disabled"])
|
|
@@ -1829,45 +1881,7 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ I({
|
|
|
1829
1881
|
]), 1040);
|
|
1830
1882
|
};
|
|
1831
1883
|
}
|
|
1832
|
-
}), Y0 = "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.2179%2014.6719C69.4239%2014.6719%2078.836%2018.0239%2086.378%2023.6719H83.3439C81.9079%2023.6719%2080.7439%2024.8359%2080.7439%2026.2719V26.4719C80.7439%2027.9079%2081.9079%2029.0719%2083.3439%2029.0719H92.3799C94.0939%2030.9199%2095.6499%2032.9099%2097.0299%2035.0239H101.32C102.866%2035.0239%20104.12%2036.2779%20104.12%2037.8239V37.9799C104.12%2039.2579%20103.264%2040.3359%20102.094%2040.6719H98.1439C96.3759%2040.6719%2094.9439%2042.1039%2094.9439%2043.8719V44.8719C94.9439%2046.6399%2096.3759%2048.0719%2098.1439%2048.0719H111.724C113.114%2048.4199%20114.144%2049.6779%20114.144%2051.1759V51.3539C114.144%2053.1219%20112.712%2054.5539%20110.944%2054.5539H103.908C104.048%2055.9759%20104.12%2057.4159%20104.12%2058.8719C104.12%2083.2819%2084.0159%20103.072%2059.2179%20103.072C39.3819%20103.072%2022.5499%2090.4119%2016.6079%2072.8519H14.9219C14.2419%2072.8519%2013.6879%2072.2999%2013.6879%2071.6179C13.6879%2071.0979%2014.0099%2070.6539%2014.4659%2070.4719H16.5439C17.9799%2070.4719%2019.1439%2069.3079%2019.1439%2067.8719V67.6719C19.1439%2066.2359%2017.9799%2065.0719%2016.5439%2065.0719H14.7539C14.7519%2065.0619%2014.7499%2065.0499%2014.7499%2065.0399H10.3139C9.17994%2065.0399%208.25995%2064.1199%208.25995%2062.9839C8.25995%2061.8479%209.17994%2060.9279%2010.3139%2060.9279H14.3639C14.3319%2060.2459%2014.3159%2059.5619%2014.3159%2058.8719C14.3159%2052.3459%2015.7519%2046.1499%2018.3319%2040.5739L11.1439%2040.5759C8.05195%2040.5759%205.54395%2038.0679%205.54395%2034.9759V34.6619C5.54395%2031.6779%207.87795%2029.2379%2010.8219%2029.0719H36.1439C37.2479%2029.0719%2038.1439%2028.1759%2038.1439%2027.0719C38.1439%2025.9679%2037.2479%2025.0719%2036.1439%2025.0719H30.2819C30.3319%2025.0319%2030.3799%2024.9899%2030.4279%2024.9499L27.5139%2024.9519C25.4139%2024.9519%2023.7139%2023.2499%2023.7139%2021.1519V20.9379C23.7139%2018.8399%2025.4139%2017.1379%2027.5139%2017.1379H44.3899C49.0319%2015.5399%2054.0219%2014.6719%2059.2179%2014.6719Z'%20fill='%23E60000'%20fill-opacity='0.04'/%3e%3cpath%20d='M35.7505%2077.9514C35.7745%2078.0434%2035.8045%2078.1434%2035.8385%2078.2494L35.9085%2078.5294C35.9325%2078.6234%2035.9445%2078.6994%2035.9445%2078.7574C35.9445%2079.0834%2035.8565%2079.3734%2035.6805%2079.6254C35.5065%2079.8754%2035.2765%2080.0594%2034.9965%2080.1774C34.8905%2080.1894%2034.7805%2080.1954%2034.6625%2080.1954C34.5685%2080.2054%2034.4645%2080.2114%2034.3465%2080.2114H34.0125L31.2745%2080.2474V83.1754C31.2745%2083.6074%2031.2825%2084.0414%2031.3005%2084.4814C31.3185%2084.9194%2031.3385%2085.3134%2031.3605%2085.6634C31.3845%2086.0854%2031.4145%2086.4874%2031.4485%2086.8734H28.9205L28.9725%2086.1894C28.9845%2085.9214%2028.9965%2085.5554%2029.0085%2085.0934C29.0205%2084.6334%2029.0265%2084.0154%2029.0265%2083.2454V80.5634C28.8265%2080.7374%2028.6045%2080.8254%2028.3585%2080.8254C28.1605%2080.8254%2027.9865%2080.7794%2027.8405%2080.6854C27.6945%2080.5914%2027.5745%2080.4634%2027.4805%2080.2994L25.4965%2080.1954C25.1105%2080.1014%2024.7885%2079.9054%2024.5305%2079.6074C24.2725%2079.3094%2024.1445%2078.9554%2024.1445%2078.5474C24.1445%2078.4774%2024.1505%2078.4114%2024.1625%2078.3534C24.1745%2078.2954%2024.1905%2078.2374%2024.2145%2078.1794L24.6545%2077.1614C24.6765%2076.9054%2024.7505%2076.6654%2024.8725%2076.4434C24.9965%2076.2214%2025.1505%2076.0274%2025.3385%2075.8654L28.0945%2070.7634H28.1125C28.3345%2070.3554%2028.5985%2070.0034%2028.9025%2069.7114C29.2065%2069.4194%2029.6005%2069.2734%2030.0805%2069.2734C30.5005%2069.2734%2030.8785%2069.3854%2031.2125%2069.6074C31.5465%2069.8294%2031.7945%2070.1214%2031.9585%2070.4834L34.1705%2074.8134C34.5685%2074.9534%2034.8965%2075.1994%2035.1545%2075.5494C35.4125%2075.8994%2035.5405%2076.3034%2035.5405%2076.7594C35.5405%2076.9454%2035.5105%2077.1434%2035.4525%2077.3554L35.7505%2077.9514Z'%20fill='url(%23paint0_linear_2264_15691)'/%3e%3cpath%20d='M97.7505%2077.9514C97.7745%2078.0434%2097.8045%2078.1434%2097.8385%2078.2494L97.9085%2078.5294C97.9325%2078.6234%2097.9445%2078.6994%2097.9445%2078.7574C97.9445%2079.0834%2097.8565%2079.3734%2097.6805%2079.6254C97.5065%2079.8754%2097.2765%2080.0594%2096.9965%2080.1774C96.8905%2080.1894%2096.7805%2080.1954%2096.6625%2080.1954C96.5685%2080.2054%2096.4645%2080.2114%2096.3465%2080.2114H96.0125L93.2745%2080.2474V83.1754C93.2745%2083.6074%2093.2825%2084.0414%2093.3005%2084.4814C93.3185%2084.9194%2093.3385%2085.3134%2093.3605%2085.6634C93.3845%2086.0854%2093.4145%2086.4874%2093.4485%2086.8734H90.9205L90.9725%2086.1894C90.9845%2085.9214%2090.9965%2085.5554%2091.0085%2085.0934C91.0205%2084.6334%2091.0265%2084.0154%2091.0265%2083.2454V80.5634C90.8265%2080.7374%2090.6045%2080.8254%2090.3585%2080.8254C90.1605%2080.8254%2089.9865%2080.7794%2089.8405%2080.6854C89.6945%2080.5914%2089.5745%2080.4634%2089.4805%2080.2994L87.4965%2080.1954C87.1105%2080.1014%2086.7885%2079.9054%2086.5305%2079.6074C86.2725%2079.3094%2086.1445%2078.9554%2086.1445%2078.5474C86.1445%2078.4774%2086.1505%2078.4114%2086.1625%2078.3534C86.1745%2078.2954%2086.1905%2078.2374%2086.2145%2078.1794L86.6545%2077.1614C86.6765%2076.9054%2086.7505%2076.6654%2086.8725%2076.4434C86.9965%2076.2214%2087.1505%2076.0274%2087.3385%2075.8654L90.0945%2070.7634H90.1125C90.3345%2070.3554%2090.5985%2070.0034%2090.9025%2069.7114C91.2065%2069.4194%2091.6005%2069.2734%2092.0805%2069.2734C92.5005%2069.2734%2092.8785%2069.3854%2093.2125%2069.6074C93.5465%2069.8294%2093.7945%2070.1214%2093.9585%2070.4834L96.1705%2074.8134C96.5685%2074.9534%2096.8965%2075.1994%2097.1545%2075.5494C97.4125%2075.8994%2097.5405%2076.3034%2097.5405%2076.7594C97.5405%2076.9454%2097.5105%2077.1434%2097.4525%2077.3554L97.7505%2077.9514Z'%20fill='url(%23paint1_linear_2264_15691)'/%3e%3cpath%20d='M90.3947%2079.8743C90.4127%2079.9483%2090.4347%2080.0243%2090.4627%2080.1083L90.5167%2080.3283C90.5347%2080.4003%2090.5447%2080.4603%2090.5447%2080.5063C90.5447%2080.7623%2090.4767%2080.9903%2090.3387%2081.1863C90.2027%2081.3843%2090.0247%2081.5283%2089.8047%2081.6203C89.7227%2081.6283%2089.6367%2081.6343%2089.5447%2081.6343C89.4727%2081.6423%2089.3907%2081.6463%2089.2987%2081.6463H89.0387L86.9027%2081.6743V83.9703C86.9027%2084.3083%2086.9107%2084.6503%2086.9227%2084.9943C86.9367%2085.3383%2086.9527%2085.6463%2086.9707%2085.9223C86.9907%2086.2523%2087.0127%2086.5683%2087.0407%2086.8703H85.0687L85.1087%2086.3343C85.1187%2086.1243%2085.1287%2085.8363%2085.1367%2085.4743C85.1467%2085.1123%2085.1507%2084.6303%2085.1507%2084.0243V81.9223C84.9947%2082.0603%2084.8227%2082.1283%2084.6307%2082.1283C84.4747%2082.1283%2084.3407%2082.0923%2084.2267%2082.0183C84.1127%2081.9443%2084.0187%2081.8443%2083.9467%2081.7163L82.3987%2081.6343C82.0967%2081.5603%2081.8467%2081.4063%2081.6467%2081.1723C81.4447%2080.9403%2081.3447%2080.6623%2081.3447%2080.3423C81.3447%2080.2863%2081.3487%2080.2363%2081.3587%2080.1903C81.3667%2080.1443%2081.3807%2080.0983%2081.3987%2080.0523L81.7427%2079.2563C81.7607%2079.0543%2081.8167%2078.8663%2081.9127%2078.6923C82.0087%2078.5183%2082.1287%2078.3663%2082.2747%2078.2383L84.4247%2074.2383H84.4387C84.6127%2073.9183%2084.8167%2073.6423%2085.0547%2073.4143C85.2927%2073.1843%2085.5987%2073.0703%2085.9727%2073.0703C86.3007%2073.0703%2086.5947%2073.1583%2086.8547%2073.3323C87.1147%2073.5063%2087.3087%2073.7343%2087.4367%2074.0183L89.1627%2077.4143C89.4727%2077.5243%2089.7287%2077.7163%2089.9287%2077.9903C90.1287%2078.2663%2090.2307%2078.5823%2090.2307%2078.9403C90.2307%2079.0863%2090.2067%2079.2423%2090.1607%2079.4063L90.3947%2079.8743Z'%20fill='url(%23paint2_linear_2264_15691)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.6437%2082.2734C68.9198%2082.2734%2079.9738%2083.2754%2087.7018%2084.8734C95.2598%2084.9254%20101.344%2087.1874%20101.344%2089.9734C101.344%2092.1814%2097.5218%2094.0614%2092.1738%2094.7714C90.8978%2095.1474%2089.4598%2095.5034%2087.8818%2095.8354C87.9238%2096.0454%2087.9437%2096.2594%2087.9437%2096.4734C87.9437%20101.333%2077.3778%20105.273%2064.3438%20105.273C52.6178%20105.273%2042.8878%20102.083%2041.0538%2097.9054C25.4078%2096.7174%2014.3438%2093.7934%2014.3438%2090.3734C14.3438%2085.8994%2033.2818%2082.2734%2056.6437%2082.2734Z'%20fill='%23FFD4D4'/%3e%3cpath%20d='M58.0273%2082.2812C64.5826%2082.3216%2070.7608%2082.6467%2076.2344%2083.1953L97.126%2093.6328C95.7272%2094.1312%2094.044%2094.5242%2092.1738%2094.7725C90.8979%2095.1484%2089.4598%2095.504%2087.8818%2095.8359C87.9238%2096.0459%2087.9443%2096.2606%2087.9443%2096.4746C87.9439%20100.708%2079.9257%20104.242%2069.2432%20105.083L54.6758%2086.2764L58.0273%2082.2812Z'%20fill='url(%23paint3_linear_2264_15691)'%20fill-opacity='0.5'/%3e%3cpath%20d='M77.7439%2067.8154L57.5439%2065.2734V75.3514L77.4219%2077.6734L77.7439%2067.8154Z'%20fill='%23EB7171'/%3e%3cpath%20d='M41.5439%2068.5614L57.5419%2065.2734L57.5439%2076.6054L41.5439%2079.8734V68.5614Z'%20fill='%23FF9D9D'/%3e%3cpath%20d='M60.3438%2072.9106L77.5437%2068.4766V89.4426L60.3438%2093.8766V72.9106Z'%20fill='%23FFAFAF'/%3e%3cpath%20d='M41.7441%2069.0703L60.5441%2072.8203L60.4341%2093.8703L41.7441%2089.6943V69.0703Z'%20fill='%23FF9D9D'/%3e%3cpath%20d='M60.5439%2072.911L41.5779%2068.875L37.5439%2076.309L56.8319%2080.875L60.5439%2072.911Z'%20fill='%23FFAFAF'/%3e%3cpath%20d='M60.5439%2072.8143L77.7619%2068.0703L82.1439%2075.4523L65.6539%2080.8703L60.5439%2072.8143Z'%20fill='%23FF9D9D'/%3e%3cpath%20d='M42.1962%2038.2656C37.3122%2045.2576%2039.3862%2050.4756%2048.4182%2053.9216'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M40.5166%2052.7422C42.1686%2054.7962%2043.6706%2055.8222%2045.0206%2055.8222'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M80.3901%2029.3047C80.6101%2035.5207%2074.7721%2039.8707%2062.8701%2042.3607'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M81.9779%2037.125C79.0579%2039.573%2076.7739%2040.797%2075.1279%2040.797'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M77.1446%2051.3323C65.6526%2049.9443%2058.4286%2052.9043%2055.4766%2060.2123'%20stroke='%23FF9696'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M41.9277%2043.0703C48.7157%2044.1343%2051.4957%2046.0123%2050.2637%2048.7063C49.0317%2051.4003%2046.2537%2049.5203%2041.9277%2043.0703Z'%20fill='url(%23paint4_linear_2264_15691)'/%3e%3cpath%20d='M66.3105%2037.1274C67.3045%2033.6114%2069.9005%2032.4394%2074.0985%2033.6114C73.9185%2035.2254%2071.3225%2036.3974%2066.3105%2037.1274Z'%20fill='url(%23paint5_linear_2264_15691)'/%3e%3cpath%20d='M57.2061%2062.8159C60.3061%2056.7859%2064.6381%2055.0679%2070.2041%2057.6639C67.6081%2062.4659%2063.2761%2064.1839%2057.2061%2062.8159Z'%20fill='url(%23paint6_linear_2264_15691)'/%3e%3cpath%20d='M65.3438%2038.9639C66.1038%2037.3359%2067.1038%2036.2919%2068.3438%2035.8359'%20stroke='%23FFA9A9'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M48.418%2047.9062C49.838%2048.2363%2050.548%2049.6023%2050.548%2052.0043'%20stroke='%23FF9898'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cpath%20d='M55.876%2064.7395C57.028%2062.5395%2058.63%2061.4375%2060.676%2061.4375'%20stroke='%23FF7676'%20stroke-width='0.326087'%20stroke-linecap='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2264_15691'%20x1='35.0617'%20y1='86.6622'%20x2='28.9562'%20y2='86.7572'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFC3CE'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23FFC3C3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2264_15691'%20x1='97.0617'%20y1='86.6622'%20x2='90.9562'%20y2='86.7572'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFC3CE'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23FFC3C3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2264_15691'%20x1='89.8564'%20y1='86.7047'%20x2='85.0962'%20y2='86.7783'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFC3CE'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23FFC3C3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2264_15691'%20x1='78.1565'%20y1='97.3596'%20x2='78.1565'%20y2='76.5197'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E60000'%20stop-opacity='0.1'/%3e%3cstop%20offset='1'%20stop-color='%23E60000'%20stop-opacity='0.2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_2264_15691'%20x1='41.809'%20y1='42.97'%20x2='51.3219'%20y2='46.8844'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF6666'/%3e%3cstop%20offset='1'%20stop-color='%23FFBEBE'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_2264_15691'%20x1='66.9659'%20y1='35.6311'%20x2='72.8991'%20y2='32.1971'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFD6D6'/%3e%3cstop%20offset='1'%20stop-color='%23FF7B7B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint6_linear_2264_15691'%20x1='58.2999'%20y1='60.7509'%20x2='68.158'%20y2='54.896'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='1.19209e-07'%20stop-color='%23FF9D9D'/%3e%3cstop%20offset='1'%20stop-color='%23EB7171'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", X0 = ["aria-label"], Q0 = ["src"], et = { class: "jt-empty-state__description" }, tt = {
|
|
1833
|
-
key: 0,
|
|
1834
|
-
class: "jt-empty-state__actions"
|
|
1835
|
-
}, ot = /* @__PURE__ */ I({
|
|
1836
|
-
name: "JtEmptyState",
|
|
1837
|
-
__name: "index",
|
|
1838
|
-
props: {
|
|
1839
|
-
description: { default: j("common.暂无数据", "暂无数据") },
|
|
1840
|
-
imageSize: { default: 120 }
|
|
1841
|
-
},
|
|
1842
|
-
setup(d) {
|
|
1843
|
-
const e = d, t = m(() => ({
|
|
1844
|
-
"--jt-empty-state-image-size": typeof e.imageSize == "number" ? `${e.imageSize}px` : e.imageSize
|
|
1845
|
-
}));
|
|
1846
|
-
return (o, r) => (p(), b("section", {
|
|
1847
|
-
class: "jt-empty-state",
|
|
1848
|
-
role: "status",
|
|
1849
|
-
"aria-label": o.description,
|
|
1850
|
-
style: ee(t.value)
|
|
1851
|
-
}, [
|
|
1852
|
-
y("div", {
|
|
1853
|
-
class: Y(["jt-empty-state__image", { "jt-empty-state__image--default": !o.$slots.image }])
|
|
1854
|
-
}, [
|
|
1855
|
-
C(o.$slots, "image", {}, () => [
|
|
1856
|
-
y("img", {
|
|
1857
|
-
src: P(Y0),
|
|
1858
|
-
alt: ""
|
|
1859
|
-
}, null, 8, Q0)
|
|
1860
|
-
], !0)
|
|
1861
|
-
], 2),
|
|
1862
|
-
C(o.$slots, "default", {}, () => [
|
|
1863
|
-
y("p", et, T(o.description), 1)
|
|
1864
|
-
], !0),
|
|
1865
|
-
o.$slots.actions ? (p(), b("div", tt, [
|
|
1866
|
-
C(o.$slots, "actions", {}, void 0, !0)
|
|
1867
|
-
])) : D("", !0)
|
|
1868
|
-
], 12, X0));
|
|
1869
|
-
}
|
|
1870
|
-
}), to = /* @__PURE__ */ E(ot, [["__scopeId", "data-v-bb00a314"]]), at = /* @__PURE__ */ I({
|
|
1884
|
+
}), nt = /* @__PURE__ */ I({
|
|
1871
1885
|
name: "JtOverflowTooltipText",
|
|
1872
1886
|
__name: "index",
|
|
1873
1887
|
props: {
|
|
@@ -1880,46 +1894,46 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ I({
|
|
|
1880
1894
|
textClass: { default: "jt-overflow-tooltip-text--default" },
|
|
1881
1895
|
textStyle: {}
|
|
1882
1896
|
},
|
|
1883
|
-
setup(
|
|
1884
|
-
const e =
|
|
1885
|
-
let
|
|
1886
|
-
const
|
|
1897
|
+
setup(c) {
|
|
1898
|
+
const e = c, t = A(null), o = A(!1);
|
|
1899
|
+
let s = null;
|
|
1900
|
+
const r = p(() => ({
|
|
1887
1901
|
maxWidth: typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth,
|
|
1888
1902
|
...e.textStyle
|
|
1889
1903
|
}));
|
|
1890
|
-
function
|
|
1891
|
-
const
|
|
1892
|
-
|
|
1904
|
+
function a() {
|
|
1905
|
+
const d = t.value;
|
|
1906
|
+
d && (o.value = d.scrollWidth > d.clientWidth || d.scrollHeight > d.clientHeight);
|
|
1893
1907
|
}
|
|
1894
1908
|
return Je(async () => {
|
|
1895
|
-
await ge(),
|
|
1909
|
+
await ge(), a(), !(!window.ResizeObserver || !t.value) && (s = new ResizeObserver(a), s.observe(t.value));
|
|
1896
1910
|
}), Oe(() => {
|
|
1897
|
-
|
|
1911
|
+
s?.disconnect();
|
|
1898
1912
|
}), ce(
|
|
1899
1913
|
() => [e.content, e.maxWidth, e.textStyle],
|
|
1900
1914
|
async () => {
|
|
1901
|
-
await ge(),
|
|
1915
|
+
await ge(), a();
|
|
1902
1916
|
},
|
|
1903
1917
|
{ deep: !0 }
|
|
1904
|
-
), (
|
|
1905
|
-
const
|
|
1906
|
-
return
|
|
1918
|
+
), (d, i) => {
|
|
1919
|
+
const n = m2;
|
|
1920
|
+
return u(), P(n, O({
|
|
1907
1921
|
disabled: !o.value || !e.content,
|
|
1908
1922
|
content: e.content,
|
|
1909
1923
|
placement: e.placement,
|
|
1910
1924
|
effect: e.effect,
|
|
1911
1925
|
"popper-class": e.popperClass,
|
|
1912
1926
|
"show-arrow": !1
|
|
1913
|
-
},
|
|
1927
|
+
}, d.$attrs), {
|
|
1914
1928
|
default: L(() => [
|
|
1915
|
-
(
|
|
1929
|
+
(u(), P(Ce(e.tag), {
|
|
1916
1930
|
ref_key: "textRef",
|
|
1917
1931
|
ref: t,
|
|
1918
|
-
class:
|
|
1919
|
-
style: ee(
|
|
1932
|
+
class: q(["jt-overflow-tooltip-text", e.textClass]),
|
|
1933
|
+
style: ee(r.value)
|
|
1920
1934
|
}, {
|
|
1921
1935
|
default: L(() => [
|
|
1922
|
-
|
|
1936
|
+
Y(T(e.content), 1)
|
|
1923
1937
|
]),
|
|
1924
1938
|
_: 1
|
|
1925
1939
|
}, 8, ["class", "style"]))
|
|
@@ -1928,109 +1942,109 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ I({
|
|
|
1928
1942
|
}, 16, ["disabled", "content", "placement", "effect", "popper-class"]);
|
|
1929
1943
|
};
|
|
1930
1944
|
}
|
|
1931
|
-
}), oo = /* @__PURE__ */ E(
|
|
1945
|
+
}), oo = /* @__PURE__ */ E(nt, [["__scopeId", "data-v-3e8ed286"]]), lt = "data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%202C6.04082%202%202%206.04082%202%2011C2%2015.9592%206.04082%2020%2011%2020C15.9592%2020%2020%2015.9592%2020%2011C20%206.04082%2015.9592%202%2011%202ZM10.2653%207.78572C10.2653%207.41837%2010.5408%207.05102%2011%207.05102C11.4592%207.05102%2011.7347%207.32653%2011.7347%207.78572V11.4592C11.7347%2011.8265%2011.4592%2012.1939%2011%2012.1939C10.5408%2012.1939%2010.2653%2011.9184%2010.2653%2011.4592V7.78572ZM11%2015.1327C10.5408%2015.1327%2010.0816%2014.6735%2010.0816%2014.2143C10.0816%2013.7551%2010.5408%2013.2959%2011%2013.2959C11.4592%2013.2959%2011.9184%2013.7551%2011.9184%2014.2143C11.9184%2014.6735%2011.4592%2015.1327%2011%2015.1327Z'%20fill='%23E60000'/%3e%3c/svg%3e", st = "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%20d='M19.7294%207.21079C20.0223%206.91808%2020.4971%206.91797%2020.79%207.21079C21.0828%207.50362%2021.0827%207.97843%2020.79%208.27134L15.0615%2013.9999L20.79%2019.7284C21.0828%2020.0212%2021.0827%2020.496%2020.79%2020.7889C20.4971%2021.0818%2020.0223%2021.0818%2019.7294%2020.7889L14.0009%2015.0604L8.2724%2020.7889C7.97952%2021.0818%207.50475%2021.0818%207.21186%2020.7889C6.91898%2020.496%206.91897%2020.0213%207.21186%2019.7284L12.9404%2013.9999L7.21186%208.27134C6.91896%207.97844%206.91896%207.50368%207.21186%207.21079C7.50477%206.91808%207.97957%206.91796%208.2724%207.21079L14.0009%2012.9393L19.7294%207.21079Z'%20fill='%23666666'/%3e%3c/svg%3e", rt = { class: "jt-confirm-dialog-panel" }, it = { class: "jt-confirm-dialog-panel__header" }, ct = { class: "jt-confirm-dialog-panel__title" }, dt = { class: "jt-confirm-dialog__body" }, ut = { class: "jt-confirm-dialog__desc" }, pt = { class: "jt-confirm-dialog__footer" }, mt = /* @__PURE__ */ I({
|
|
1932
1946
|
name: "JtConfirmDialog",
|
|
1933
1947
|
__name: "index",
|
|
1934
1948
|
props: {
|
|
1935
|
-
title: { default:
|
|
1936
|
-
desc: { default:
|
|
1937
|
-
confirmText: { default:
|
|
1938
|
-
cancelText: { default:
|
|
1949
|
+
title: { default: B("common.数据启用提示", "数据启用提示") },
|
|
1950
|
+
desc: { default: B("common.点击确定后,将启用该条数据", "点击确定后,将启用该条数据") },
|
|
1951
|
+
confirmText: { default: B("common.确定", "确 定") },
|
|
1952
|
+
cancelText: { default: B("common.取 消", "取 消") },
|
|
1939
1953
|
confirmLoading: { type: Boolean, default: !1 }
|
|
1940
1954
|
},
|
|
1941
1955
|
emits: ["close", "confirm"],
|
|
1942
|
-
setup(
|
|
1956
|
+
setup(c, { emit: e }) {
|
|
1943
1957
|
const t = e;
|
|
1944
|
-
return (o,
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1958
|
+
return (o, s) => (u(), w("section", rt, [
|
|
1959
|
+
b("header", it, [
|
|
1960
|
+
b("div", ct, [
|
|
1961
|
+
s[3] || (s[3] = b("img", {
|
|
1948
1962
|
class: "jt-confirm-dialog-panel__icon",
|
|
1949
|
-
src:
|
|
1963
|
+
src: lt,
|
|
1950
1964
|
alt: ""
|
|
1951
1965
|
}, null, -1)),
|
|
1952
|
-
|
|
1966
|
+
b("span", null, T(o.title), 1)
|
|
1953
1967
|
]),
|
|
1954
|
-
|
|
1955
|
-
onClick:
|
|
1968
|
+
b("img", {
|
|
1969
|
+
onClick: s[0] || (s[0] = (r) => t("close")),
|
|
1956
1970
|
class: "jt-confirm-dialog-panel__close jt-confirm-dialog-panel__close-icon",
|
|
1957
|
-
src:
|
|
1971
|
+
src: st,
|
|
1958
1972
|
alt: ""
|
|
1959
1973
|
})
|
|
1960
1974
|
]),
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1975
|
+
b("div", dt, [
|
|
1976
|
+
_(o.$slots, "default", {}, () => [
|
|
1977
|
+
b("p", ut, T(o.desc), 1)
|
|
1964
1978
|
], !0)
|
|
1965
1979
|
]),
|
|
1966
|
-
|
|
1967
|
-
|
|
1980
|
+
b("footer", pt, [
|
|
1981
|
+
W(Q, {
|
|
1968
1982
|
class: "jt-confirm-dialog__button jt-confirm-dialog__button--cancel",
|
|
1969
1983
|
size: "middle",
|
|
1970
1984
|
gray: "",
|
|
1971
1985
|
disabled: o.confirmLoading,
|
|
1972
|
-
onClick:
|
|
1986
|
+
onClick: s[1] || (s[1] = (r) => t("close"))
|
|
1973
1987
|
}, {
|
|
1974
1988
|
default: L(() => [
|
|
1975
|
-
|
|
1989
|
+
Y(T(o.cancelText), 1)
|
|
1976
1990
|
]),
|
|
1977
1991
|
_: 1
|
|
1978
1992
|
}, 8, ["disabled"]),
|
|
1979
|
-
|
|
1993
|
+
W(Q, {
|
|
1980
1994
|
class: "jt-confirm-dialog__button jt-confirm-dialog__button--confirm",
|
|
1981
1995
|
size: "middle",
|
|
1982
1996
|
type: "primary",
|
|
1983
1997
|
loading: o.confirmLoading,
|
|
1984
1998
|
disabled: o.confirmLoading,
|
|
1985
|
-
onClick:
|
|
1999
|
+
onClick: s[2] || (s[2] = (r) => t("confirm"))
|
|
1986
2000
|
}, {
|
|
1987
2001
|
default: L(() => [
|
|
1988
|
-
|
|
2002
|
+
Y(T(o.confirmText), 1)
|
|
1989
2003
|
]),
|
|
1990
2004
|
_: 1
|
|
1991
2005
|
}, 8, ["loading", "disabled"])
|
|
1992
2006
|
])
|
|
1993
2007
|
]));
|
|
1994
2008
|
}
|
|
1995
|
-
}),
|
|
1996
|
-
title:
|
|
1997
|
-
desc:
|
|
1998
|
-
confirmText:
|
|
1999
|
-
cancelText:
|
|
2009
|
+
}), ft = /* @__PURE__ */ E(mt, [["__scopeId", "data-v-e320b303"]]), ht = {
|
|
2010
|
+
title: B("common.数据启用提示", "数据启用提示"),
|
|
2011
|
+
desc: B("common.点击确定后,将启用该条数据", "点击确定后,将启用该条数据"),
|
|
2012
|
+
confirmText: B("common.确认"),
|
|
2013
|
+
cancelText: B("common.取消")
|
|
2000
2014
|
};
|
|
2001
|
-
function ao(
|
|
2002
|
-
const e = { ...
|
|
2015
|
+
function ao(c = {}) {
|
|
2016
|
+
const e = { ...ht, ...c };
|
|
2003
2017
|
return y2({
|
|
2004
2018
|
message: ({ confirm: t, cancel: o }) => {
|
|
2005
|
-
const
|
|
2019
|
+
const s = I({
|
|
2006
2020
|
name: "JtConfirmDialogMessage",
|
|
2007
2021
|
setup() {
|
|
2008
|
-
const
|
|
2009
|
-
if (!
|
|
2010
|
-
|
|
2022
|
+
const r = A(!1), a = async () => {
|
|
2023
|
+
if (!r.value) {
|
|
2024
|
+
r.value = !0;
|
|
2011
2025
|
try {
|
|
2012
2026
|
await e.onConfirm?.(), t();
|
|
2013
2027
|
} finally {
|
|
2014
|
-
|
|
2028
|
+
r.value = !1;
|
|
2015
2029
|
}
|
|
2016
2030
|
}
|
|
2017
2031
|
};
|
|
2018
2032
|
return () => Ie(
|
|
2019
|
-
|
|
2033
|
+
ft,
|
|
2020
2034
|
{
|
|
2021
2035
|
title: e.title,
|
|
2022
2036
|
desc: e.desc,
|
|
2023
2037
|
confirmText: e.confirmText,
|
|
2024
2038
|
cancelText: e.cancelText,
|
|
2025
|
-
confirmLoading:
|
|
2039
|
+
confirmLoading: r.value,
|
|
2026
2040
|
onClose: o,
|
|
2027
|
-
onConfirm:
|
|
2041
|
+
onConfirm: a
|
|
2028
2042
|
},
|
|
2029
2043
|
e.content ? { default: e.content } : void 0
|
|
2030
2044
|
);
|
|
2031
2045
|
}
|
|
2032
2046
|
});
|
|
2033
|
-
return Ie(
|
|
2047
|
+
return Ie(s);
|
|
2034
2048
|
},
|
|
2035
2049
|
customClass: "jt-confirm-message-box-host",
|
|
2036
2050
|
customStyle: {
|
|
@@ -2045,36 +2059,36 @@ function ao(d = {}) {
|
|
|
2045
2059
|
throw e.onClose?.(), Error("close 用户手动关闭");
|
|
2046
2060
|
});
|
|
2047
2061
|
}
|
|
2048
|
-
const
|
|
2062
|
+
const vt = ["aria-label"], gt = { class: "jt-status-stamp__band" }, _t = /* @__PURE__ */ I({
|
|
2049
2063
|
name: "JtStatusStamp",
|
|
2050
2064
|
__name: "index",
|
|
2051
2065
|
props: {
|
|
2052
2066
|
status: {}
|
|
2053
2067
|
},
|
|
2054
|
-
setup(
|
|
2055
|
-
const e =
|
|
2056
|
-
"pending-start":
|
|
2057
|
-
processing:
|
|
2058
|
-
approved:
|
|
2059
|
-
returned:
|
|
2060
|
-
rejected:
|
|
2068
|
+
setup(c) {
|
|
2069
|
+
const e = c, t = p(() => ({
|
|
2070
|
+
"pending-start": B("common.待发起", "待发起"),
|
|
2071
|
+
processing: B("common.审批中", "审批中"),
|
|
2072
|
+
approved: B("common.已通过", "已通过"),
|
|
2073
|
+
returned: B("common.已退回", "已退回"),
|
|
2074
|
+
rejected: B("common.已拒绝", "已拒绝")
|
|
2061
2075
|
})[e.status]);
|
|
2062
|
-
return (o,
|
|
2063
|
-
class:
|
|
2076
|
+
return (o, s) => (u(), w("div", {
|
|
2077
|
+
class: q(["jt-status-stamp", `jt-status-stamp--${o.status}`]),
|
|
2064
2078
|
role: "status",
|
|
2065
2079
|
"aria-label": t.value
|
|
2066
2080
|
}, [
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2081
|
+
b("span", gt, [
|
|
2082
|
+
_(o.$slots, "default", {}, () => [
|
|
2083
|
+
Y(T(t.value), 1)
|
|
2070
2084
|
], !0)
|
|
2071
2085
|
])
|
|
2072
|
-
], 10,
|
|
2086
|
+
], 10, vt));
|
|
2073
2087
|
}
|
|
2074
|
-
}), no = /* @__PURE__ */ E(
|
|
2088
|
+
}), no = /* @__PURE__ */ E(_t, [["__scopeId", "data-v-887e29c4"]]), Re = Symbol("JtTabContext"), Ct = {
|
|
2075
2089
|
key: 0,
|
|
2076
2090
|
class: "jt-tab__extra"
|
|
2077
|
-
},
|
|
2091
|
+
}, yt = 4, bt = /* @__PURE__ */ I({
|
|
2078
2092
|
name: "JtTab",
|
|
2079
2093
|
__name: "index",
|
|
2080
2094
|
props: {
|
|
@@ -2084,68 +2098,68 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2084
2098
|
inset: { type: Boolean }
|
|
2085
2099
|
},
|
|
2086
2100
|
emits: ["update:modelValue", "change"],
|
|
2087
|
-
setup(
|
|
2088
|
-
const t =
|
|
2101
|
+
setup(c, { emit: e }) {
|
|
2102
|
+
const t = c, o = e, s = le(), r = p(() => t.modelValue), a = p(() => t.type), d = p(() => t.size), i = A(), n = A(!1), g = A(!1), C = p(() => [
|
|
2089
2103
|
`jt-tab--type-${t.type}`,
|
|
2090
2104
|
`jt-tab--size-${t.size}`,
|
|
2091
2105
|
{ "jt-tab--inset": t.type === "line" && t.inset !== !1 }
|
|
2092
2106
|
]);
|
|
2093
|
-
let
|
|
2094
|
-
function
|
|
2095
|
-
|
|
2107
|
+
let v = 0, S = 0, j = !1, m = null, h;
|
|
2108
|
+
function F(y) {
|
|
2109
|
+
y !== t.modelValue && (o("update:modelValue", y), o("change", y));
|
|
2096
2110
|
}
|
|
2097
2111
|
g2(Re, {
|
|
2098
|
-
modelValue:
|
|
2099
|
-
type:
|
|
2100
|
-
size:
|
|
2101
|
-
activate:
|
|
2112
|
+
modelValue: r,
|
|
2113
|
+
type: a,
|
|
2114
|
+
size: d,
|
|
2115
|
+
activate: F
|
|
2102
2116
|
});
|
|
2103
|
-
function
|
|
2104
|
-
const
|
|
2105
|
-
return
|
|
2106
|
-
}
|
|
2107
|
-
function
|
|
2108
|
-
const
|
|
2109
|
-
if (!
|
|
2110
|
-
const
|
|
2117
|
+
function J() {
|
|
2118
|
+
const y = i.value, Z = !!(y && y.scrollWidth > y.clientWidth);
|
|
2119
|
+
return n.value = Z, Z;
|
|
2120
|
+
}
|
|
2121
|
+
function X(y) {
|
|
2122
|
+
const Z = i.value;
|
|
2123
|
+
if (!Z || !J()) return !1;
|
|
2124
|
+
const K = Z.querySelector(
|
|
2111
2125
|
'[data-jt-tab-item="true"][aria-selected="true"]'
|
|
2112
2126
|
);
|
|
2113
|
-
if (!
|
|
2114
|
-
const
|
|
2115
|
-
return
|
|
2127
|
+
if (!K) return !1;
|
|
2128
|
+
const N = K.offsetLeft - (Z.clientWidth - K.offsetWidth) / 2, se = Z.scrollWidth - Z.clientWidth, de = Math.min(Math.max(N, 0), se);
|
|
2129
|
+
return Z.scrollTo({ left: de, behavior: y }), !0;
|
|
2116
2130
|
}
|
|
2117
|
-
async function
|
|
2118
|
-
await ge(),
|
|
2131
|
+
async function M(y) {
|
|
2132
|
+
await ge(), X(y);
|
|
2119
2133
|
}
|
|
2120
|
-
function
|
|
2121
|
-
|
|
2134
|
+
function H(y) {
|
|
2135
|
+
y && m !== null && y.pointerId !== m || (window.removeEventListener("pointermove", f), window.removeEventListener("pointerup", H), window.removeEventListener("pointercancel", H), m = null, g.value = !1);
|
|
2122
2136
|
}
|
|
2123
|
-
function f(
|
|
2124
|
-
const
|
|
2125
|
-
if (!
|
|
2126
|
-
if (
|
|
2127
|
-
|
|
2137
|
+
function f(y) {
|
|
2138
|
+
const Z = i.value;
|
|
2139
|
+
if (!Z || m !== y.pointerId) return;
|
|
2140
|
+
if (y.pointerType === "mouse" && y.buttons !== 1) {
|
|
2141
|
+
H(y);
|
|
2128
2142
|
return;
|
|
2129
2143
|
}
|
|
2130
|
-
const
|
|
2131
|
-
!
|
|
2144
|
+
const K = y.clientX - v;
|
|
2145
|
+
!j && Math.abs(K) < yt || (j = !0, g.value = !0, Z.scrollLeft = S - K, y.preventDefault());
|
|
2132
2146
|
}
|
|
2133
|
-
function
|
|
2134
|
-
const
|
|
2135
|
-
|
|
2147
|
+
function x(y) {
|
|
2148
|
+
const Z = i.value;
|
|
2149
|
+
y.pointerType === "mouse" && (y.button !== 0 || y.buttons !== 1) || !Z || !J() || (m = y.pointerId, v = y.clientX, S = Z.scrollLeft, j = !1, g.value = !0, window.addEventListener("pointermove", f), window.addEventListener("pointerup", H), window.addEventListener("pointercancel", H));
|
|
2136
2150
|
}
|
|
2137
|
-
function
|
|
2138
|
-
|
|
2151
|
+
function U(y) {
|
|
2152
|
+
j && (y.preventDefault(), y.stopPropagation(), j = !1);
|
|
2139
2153
|
}
|
|
2140
|
-
function
|
|
2141
|
-
const
|
|
2154
|
+
function $(y) {
|
|
2155
|
+
const K = {
|
|
2142
2156
|
ArrowRight: 1,
|
|
2143
2157
|
ArrowDown: 1,
|
|
2144
2158
|
ArrowLeft: -1,
|
|
2145
2159
|
ArrowUp: -1
|
|
2146
|
-
}[
|
|
2147
|
-
if (!
|
|
2148
|
-
const de =
|
|
2160
|
+
}[y.key], N = y.key === "Home", se = y.key === "End";
|
|
2161
|
+
if (!K && !N && !se) return;
|
|
2162
|
+
const de = y.currentTarget, te = Array.from(
|
|
2149
2163
|
de.querySelectorAll(
|
|
2150
2164
|
'[data-jt-tab-item="true"]:not([aria-disabled="true"])'
|
|
2151
2165
|
)
|
|
@@ -2153,84 +2167,84 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2153
2167
|
(Le) => Le === document.activeElement
|
|
2154
2168
|
);
|
|
2155
2169
|
if (!te.length) return;
|
|
2156
|
-
|
|
2157
|
-
const me =
|
|
2170
|
+
y.preventDefault();
|
|
2171
|
+
const me = N ? 0 : se ? te.length - 1 : (Math.max(we, 0) + K + te.length) % te.length, fe = te[me];
|
|
2158
2172
|
fe?.focus(), fe?.click();
|
|
2159
2173
|
}
|
|
2160
2174
|
return ce(
|
|
2161
2175
|
() => t.modelValue,
|
|
2162
2176
|
() => {
|
|
2163
|
-
|
|
2177
|
+
M("smooth");
|
|
2164
2178
|
}
|
|
2165
2179
|
), Je(() => {
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
}),
|
|
2180
|
+
J(), M("auto"), !(typeof ResizeObserver > "u" || !i.value) && (h = new ResizeObserver(() => {
|
|
2181
|
+
J(), M("auto");
|
|
2182
|
+
}), h.observe(i.value));
|
|
2169
2183
|
}), Oe(() => {
|
|
2170
|
-
|
|
2171
|
-
}), (
|
|
2172
|
-
class: ["jt-tab",
|
|
2184
|
+
H(), h?.disconnect();
|
|
2185
|
+
}), (y, Z) => (u(), w("div", O({
|
|
2186
|
+
class: ["jt-tab", C.value],
|
|
2173
2187
|
role: "tablist"
|
|
2174
|
-
},
|
|
2175
|
-
|
|
2188
|
+
}, y.$attrs, { onKeydown: $ }), [
|
|
2189
|
+
b("div", {
|
|
2176
2190
|
ref_key: "listRef",
|
|
2177
|
-
ref:
|
|
2178
|
-
class:
|
|
2179
|
-
"is-scrollable":
|
|
2180
|
-
"is-dragging":
|
|
2191
|
+
ref: i,
|
|
2192
|
+
class: q(["jt-tab__list", {
|
|
2193
|
+
"is-scrollable": n.value,
|
|
2194
|
+
"is-dragging": g.value
|
|
2181
2195
|
}]),
|
|
2182
|
-
onPointerdown:
|
|
2183
|
-
onClickCapture:
|
|
2196
|
+
onPointerdown: x,
|
|
2197
|
+
onClickCapture: U
|
|
2184
2198
|
}, [
|
|
2185
|
-
|
|
2199
|
+
_(y.$slots, "default", {}, void 0, !0)
|
|
2186
2200
|
], 34),
|
|
2187
|
-
|
|
2188
|
-
|
|
2201
|
+
V(s).extra ? (u(), w("div", Ct, [
|
|
2202
|
+
_(y.$slots, "extra", {}, void 0, !0)
|
|
2189
2203
|
])) : D("", !0)
|
|
2190
2204
|
], 16));
|
|
2191
2205
|
}
|
|
2192
|
-
}), lo = /* @__PURE__ */ E(
|
|
2206
|
+
}), lo = /* @__PURE__ */ E(bt, [["__scopeId", "data-v-28d7f01e"]]), wt = ["aria-selected", "aria-disabled", "tabindex", "disabled", "onKeydown"], Lt = /* @__PURE__ */ I({
|
|
2193
2207
|
name: "JtTabItem",
|
|
2194
2208
|
__name: "JtTabItem",
|
|
2195
2209
|
props: {
|
|
2196
2210
|
value: {},
|
|
2197
2211
|
disabled: { type: Boolean, default: !1 }
|
|
2198
2212
|
},
|
|
2199
|
-
setup(
|
|
2200
|
-
const e =
|
|
2201
|
-
`jt-tab__item--type-${
|
|
2202
|
-
`jt-tab__item--size-${
|
|
2213
|
+
setup(c) {
|
|
2214
|
+
const e = c, t = _2(Re, null), o = p(() => t?.modelValue.value === e.value), s = p(() => e.disabled || !t), r = p(() => t?.type.value ?? "line"), a = p(() => t?.size.value ?? "default"), d = p(() => s.value ? -1 : o.value ? 0 : -1), i = p(() => [
|
|
2215
|
+
`jt-tab__item--type-${r.value}`,
|
|
2216
|
+
`jt-tab__item--size-${a.value}`,
|
|
2203
2217
|
{
|
|
2204
2218
|
"is-active": o.value,
|
|
2205
|
-
"is-disabled":
|
|
2219
|
+
"is-disabled": s.value
|
|
2206
2220
|
}
|
|
2207
2221
|
]);
|
|
2208
|
-
function
|
|
2209
|
-
|
|
2222
|
+
function n() {
|
|
2223
|
+
s.value || t?.activate(e.value);
|
|
2210
2224
|
}
|
|
2211
|
-
return (
|
|
2212
|
-
class:
|
|
2225
|
+
return (g, C) => (u(), w("button", {
|
|
2226
|
+
class: q(["jt-tab__item", i.value]),
|
|
2213
2227
|
type: "button",
|
|
2214
2228
|
role: "tab",
|
|
2215
2229
|
"data-jt-tab-item": "true",
|
|
2216
2230
|
"aria-selected": o.value,
|
|
2217
|
-
"aria-disabled":
|
|
2218
|
-
tabindex:
|
|
2219
|
-
disabled:
|
|
2220
|
-
onClick:
|
|
2231
|
+
"aria-disabled": s.value || void 0,
|
|
2232
|
+
tabindex: d.value,
|
|
2233
|
+
disabled: s.value,
|
|
2234
|
+
onClick: n,
|
|
2221
2235
|
onKeydown: [
|
|
2222
|
-
Se(ie(
|
|
2223
|
-
Se(ie(
|
|
2236
|
+
Se(ie(n, ["prevent"]), ["enter"]),
|
|
2237
|
+
Se(ie(n, ["prevent"]), ["space"])
|
|
2224
2238
|
]
|
|
2225
2239
|
}, [
|
|
2226
|
-
|
|
2227
|
-
], 42,
|
|
2240
|
+
_(g.$slots, "default", {}, void 0, !0)
|
|
2241
|
+
], 42, wt));
|
|
2228
2242
|
}
|
|
2229
|
-
}), so = /* @__PURE__ */ E(
|
|
2243
|
+
}), so = /* @__PURE__ */ E(Lt, [["__scopeId", "data-v-9da03600"]]), $t = "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", xt = "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", kt = "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", jt = { class: "jt-tree__node" }, Bt = ["aria-label", "onClick"], St = ["src"], Mt = {
|
|
2230
2244
|
key: 1,
|
|
2231
2245
|
class: "jt-tree__toggle-placeholder",
|
|
2232
2246
|
"aria-hidden": "true"
|
|
2233
|
-
},
|
|
2247
|
+
}, Tt = { class: "jt-tree__content" }, Ft = { class: "jt-tree__label" }, Vt = /* @__PURE__ */ I({
|
|
2234
2248
|
name: "JtTree",
|
|
2235
2249
|
inheritAttrs: !1,
|
|
2236
2250
|
__name: "index",
|
|
@@ -2244,51 +2258,51 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2244
2258
|
indent: { default: 20 },
|
|
2245
2259
|
highlightCurrent: { type: Boolean, default: !0 },
|
|
2246
2260
|
expandOnClickNode: { type: Boolean, default: !1 },
|
|
2247
|
-
ariaLabel: { default:
|
|
2261
|
+
ariaLabel: { default: B("common.组织树", "组织树") }
|
|
2248
2262
|
},
|
|
2249
2263
|
emits: ["update:currentKey", "current-change"],
|
|
2250
|
-
setup(
|
|
2251
|
-
const o =
|
|
2252
|
-
function
|
|
2253
|
-
return
|
|
2254
|
-
}
|
|
2255
|
-
function
|
|
2256
|
-
if (
|
|
2257
|
-
|
|
2264
|
+
setup(c, { expose: e, emit: t }) {
|
|
2265
|
+
const o = c, s = t, r = A();
|
|
2266
|
+
function a(v) {
|
|
2267
|
+
return v.expanded ? v.isCurrent ? $t : xt : kt;
|
|
2268
|
+
}
|
|
2269
|
+
function d(v) {
|
|
2270
|
+
if (v.expanded) {
|
|
2271
|
+
v.collapse();
|
|
2258
2272
|
return;
|
|
2259
2273
|
}
|
|
2260
|
-
|
|
2274
|
+
v.expand();
|
|
2261
2275
|
}
|
|
2262
|
-
function
|
|
2263
|
-
const
|
|
2264
|
-
|
|
2276
|
+
function i(v, S) {
|
|
2277
|
+
const j = S?.key;
|
|
2278
|
+
j !== o.currentKey && s("update:currentKey", j), s("current-change", v, S);
|
|
2265
2279
|
}
|
|
2266
2280
|
ce(
|
|
2267
2281
|
() => o.currentKey,
|
|
2268
|
-
(
|
|
2282
|
+
(v) => r.value?.setCurrentKey(v ?? null),
|
|
2269
2283
|
{ flush: "post" }
|
|
2270
2284
|
);
|
|
2271
|
-
function
|
|
2272
|
-
return
|
|
2285
|
+
function n(v) {
|
|
2286
|
+
return r.value?.getNode(v);
|
|
2273
2287
|
}
|
|
2274
|
-
function
|
|
2275
|
-
return
|
|
2288
|
+
function g() {
|
|
2289
|
+
return r.value?.getCurrentNode();
|
|
2276
2290
|
}
|
|
2277
|
-
function
|
|
2278
|
-
|
|
2291
|
+
function C(v) {
|
|
2292
|
+
r.value?.filter(v);
|
|
2279
2293
|
}
|
|
2280
2294
|
return e({
|
|
2281
|
-
treeRef:
|
|
2282
|
-
getNode:
|
|
2283
|
-
getCurrentNode:
|
|
2284
|
-
filter:
|
|
2285
|
-
}), (
|
|
2286
|
-
const
|
|
2287
|
-
return
|
|
2295
|
+
treeRef: r,
|
|
2296
|
+
getNode: n,
|
|
2297
|
+
getCurrentNode: g,
|
|
2298
|
+
filter: C
|
|
2299
|
+
}), (v, S) => {
|
|
2300
|
+
const j = f2;
|
|
2301
|
+
return u(), P(j, O({
|
|
2288
2302
|
ref_key: "treeRef",
|
|
2289
|
-
ref:
|
|
2303
|
+
ref: r,
|
|
2290
2304
|
class: "jt-tree"
|
|
2291
|
-
},
|
|
2305
|
+
}, v.$attrs, {
|
|
2292
2306
|
data: o.data,
|
|
2293
2307
|
"node-key": o.nodeKey,
|
|
2294
2308
|
props: o.props,
|
|
@@ -2299,43 +2313,43 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2299
2313
|
"highlight-current": o.highlightCurrent,
|
|
2300
2314
|
"expand-on-click-node": o.expandOnClickNode,
|
|
2301
2315
|
"aria-label": o.ariaLabel,
|
|
2302
|
-
onCurrentChange:
|
|
2316
|
+
onCurrentChange: i
|
|
2303
2317
|
}), {
|
|
2304
|
-
default: L(({ node:
|
|
2305
|
-
|
|
2306
|
-
|
|
2318
|
+
default: L(({ node: m, data: h }) => [
|
|
2319
|
+
b("div", jt, [
|
|
2320
|
+
m.isLeaf ? (u(), w("span", Mt)) : (u(), w("button", {
|
|
2307
2321
|
key: 0,
|
|
2308
2322
|
class: "jt-tree__toggle",
|
|
2309
2323
|
type: "button",
|
|
2310
|
-
"aria-label":
|
|
2311
|
-
onClick: ie((
|
|
2324
|
+
"aria-label": m.expanded ? V(B)("common.收起{label}", "收起{label}", { label: m.label }) : V(B)("common.展开{label}", "展开{label}", { label: m.label }),
|
|
2325
|
+
onClick: ie((F) => d(m), ["stop"])
|
|
2312
2326
|
}, [
|
|
2313
|
-
|
|
2327
|
+
b("img", {
|
|
2314
2328
|
class: "jt-tree__toggle-icon",
|
|
2315
|
-
src:
|
|
2329
|
+
src: a(m),
|
|
2316
2330
|
alt: "",
|
|
2317
2331
|
"aria-hidden": "true"
|
|
2318
|
-
}, null, 8,
|
|
2319
|
-
], 8,
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
node:
|
|
2323
|
-
data:
|
|
2332
|
+
}, null, 8, St)
|
|
2333
|
+
], 8, Bt)),
|
|
2334
|
+
b("div", Tt, [
|
|
2335
|
+
_(v.$slots, "default", {
|
|
2336
|
+
node: m,
|
|
2337
|
+
data: h
|
|
2324
2338
|
}, () => [
|
|
2325
|
-
|
|
2339
|
+
b("span", Ft, T(m.label), 1)
|
|
2326
2340
|
], !0)
|
|
2327
2341
|
]),
|
|
2328
|
-
|
|
2342
|
+
v.$slots.actions ? (u(), w("div", {
|
|
2329
2343
|
key: 2,
|
|
2330
2344
|
class: "jt-tree__actions",
|
|
2331
|
-
onClick:
|
|
2345
|
+
onClick: S[0] || (S[0] = ie(() => {
|
|
2332
2346
|
}, ["stop"])),
|
|
2333
|
-
onKeydown:
|
|
2347
|
+
onKeydown: S[1] || (S[1] = ie(() => {
|
|
2334
2348
|
}, ["stop"]))
|
|
2335
2349
|
}, [
|
|
2336
|
-
|
|
2337
|
-
node:
|
|
2338
|
-
data:
|
|
2350
|
+
_(v.$slots, "actions", {
|
|
2351
|
+
node: m,
|
|
2352
|
+
data: h
|
|
2339
2353
|
}, void 0, !0)
|
|
2340
2354
|
], 32)) : D("", !0)
|
|
2341
2355
|
])
|
|
@@ -2344,10 +2358,10 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2344
2358
|
}, 16, ["data", "node-key", "props", "lazy", "load", "indent", "current-node-key", "highlight-current", "expand-on-click-node", "aria-label"]);
|
|
2345
2359
|
};
|
|
2346
2360
|
}
|
|
2347
|
-
}), ro = /* @__PURE__ */ E(
|
|
2361
|
+
}), ro = /* @__PURE__ */ E(Vt, [["__scopeId", "data-v-4279b203"]]), Pt = {
|
|
2348
2362
|
key: 0,
|
|
2349
2363
|
class: "jt-tree-table-layout__tree"
|
|
2350
|
-
},
|
|
2364
|
+
}, It = { class: "jt-tree-table-layout__content" }, Et = /* @__PURE__ */ I({
|
|
2351
2365
|
name: "JtTreeTableLayout",
|
|
2352
2366
|
__name: "index",
|
|
2353
2367
|
props: {
|
|
@@ -2355,36 +2369,36 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2355
2369
|
gap: { default: 20 },
|
|
2356
2370
|
collapsed: { type: Boolean, default: !1 }
|
|
2357
2371
|
},
|
|
2358
|
-
setup(
|
|
2359
|
-
const e =
|
|
2360
|
-
function t(
|
|
2361
|
-
return typeof
|
|
2372
|
+
setup(c) {
|
|
2373
|
+
const e = c;
|
|
2374
|
+
function t(s) {
|
|
2375
|
+
return typeof s == "number" ? `${s}px` : s;
|
|
2362
2376
|
}
|
|
2363
|
-
const o =
|
|
2377
|
+
const o = p(
|
|
2364
2378
|
() => ({
|
|
2365
2379
|
"--jt-tree-table-layout-tree-width": t(e.treeWidth),
|
|
2366
2380
|
"--jt-tree-table-layout-gap": t(e.gap)
|
|
2367
2381
|
})
|
|
2368
2382
|
);
|
|
2369
|
-
return (
|
|
2370
|
-
class:
|
|
2383
|
+
return (s, r) => (u(), w("div", {
|
|
2384
|
+
class: q(["jt-tree-table-layout", { "is-collapsed": e.collapsed }]),
|
|
2371
2385
|
style: ee(o.value)
|
|
2372
2386
|
}, [
|
|
2373
|
-
e.collapsed ? D("", !0) : (
|
|
2374
|
-
|
|
2387
|
+
e.collapsed ? D("", !0) : (u(), w("aside", Pt, [
|
|
2388
|
+
_(s.$slots, "tree", {}, void 0, !0)
|
|
2375
2389
|
])),
|
|
2376
|
-
|
|
2377
|
-
|
|
2390
|
+
b("div", It, [
|
|
2391
|
+
_(s.$slots, "default", {}, void 0, !0)
|
|
2378
2392
|
])
|
|
2379
2393
|
], 6));
|
|
2380
2394
|
}
|
|
2381
|
-
}), io = /* @__PURE__ */ E(
|
|
2395
|
+
}), io = /* @__PURE__ */ E(Et, [["__scopeId", "data-v-28a5e162"]]), zt = { class: "jt-page-header__title" }, Dt = { key: 0 }, Ht = { key: 2 }, Jt = {
|
|
2382
2396
|
key: 0,
|
|
2383
2397
|
class: "jt-page-header__description"
|
|
2384
|
-
},
|
|
2398
|
+
}, Ot = {
|
|
2385
2399
|
key: 0,
|
|
2386
2400
|
class: "jt-page-header__operates"
|
|
2387
|
-
},
|
|
2401
|
+
}, Zt = /* @__PURE__ */ I({
|
|
2388
2402
|
name: "JtPageHeader",
|
|
2389
2403
|
__name: "index",
|
|
2390
2404
|
props: {
|
|
@@ -2395,42 +2409,42 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2395
2409
|
operates: { default: () => [] }
|
|
2396
2410
|
},
|
|
2397
2411
|
emits: ["operate-click"],
|
|
2398
|
-
setup(
|
|
2399
|
-
const t =
|
|
2412
|
+
setup(c, { emit: e }) {
|
|
2413
|
+
const t = c, o = e, s = le(), r = p(() => t.operates.length > 0 || !!s.operates), a = p(() => [
|
|
2400
2414
|
`jt-page-header--size-${t.size}`,
|
|
2401
2415
|
{ "jt-page-header--gray": t.gray }
|
|
2402
2416
|
]);
|
|
2403
|
-
function
|
|
2404
|
-
|
|
2405
|
-
}
|
|
2406
|
-
return (
|
|
2407
|
-
class: ["jt-page-header",
|
|
2408
|
-
},
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
], !0) :
|
|
2413
|
-
|
|
2414
|
-
|
|
2417
|
+
function d(i, n) {
|
|
2418
|
+
i.onClick?.(i, n), o("operate-click", i, n);
|
|
2419
|
+
}
|
|
2420
|
+
return (i, n) => (u(), w("div", O({
|
|
2421
|
+
class: ["jt-page-header", a.value]
|
|
2422
|
+
}, i.$attrs), [
|
|
2423
|
+
b("div", zt, [
|
|
2424
|
+
V(s).title ? _(i.$slots, "title", { key: 0 }, () => [
|
|
2425
|
+
i.title ? (u(), w("span", Dt, T(i.title), 1)) : D("", !0)
|
|
2426
|
+
], !0) : V(s).default ? _(i.$slots, "default", { key: 1 }, void 0, !0) : i.title ? (u(), w("span", Ht, T(i.title), 1)) : D("", !0),
|
|
2427
|
+
_(i.$slots, "description", {}, () => [
|
|
2428
|
+
i.description ? (u(), w("span", Jt, T(i.description), 1)) : D("", !0)
|
|
2415
2429
|
], !0)
|
|
2416
2430
|
]),
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
(
|
|
2420
|
-
key:
|
|
2431
|
+
r.value ? (u(), w("div", Ot, [
|
|
2432
|
+
_(i.$slots, "operates", { operates: i.operates }, () => [
|
|
2433
|
+
(u(!0), w(oe, null, G(i.operates, (g) => (u(), P(V(Q), O({
|
|
2434
|
+
key: g.key ?? g.label,
|
|
2421
2435
|
ref_for: !0
|
|
2422
|
-
},
|
|
2423
|
-
type:
|
|
2424
|
-
disabled:
|
|
2425
|
-
loading:
|
|
2426
|
-
plain:
|
|
2427
|
-
text:
|
|
2428
|
-
link:
|
|
2429
|
-
icon:
|
|
2430
|
-
onClick: (
|
|
2436
|
+
}, g.buttonProps, {
|
|
2437
|
+
type: g.type,
|
|
2438
|
+
disabled: g.disabled,
|
|
2439
|
+
loading: g.loading,
|
|
2440
|
+
plain: g.plain,
|
|
2441
|
+
text: g.text,
|
|
2442
|
+
link: g.link,
|
|
2443
|
+
icon: g.icon,
|
|
2444
|
+
onClick: (C) => d(g, C)
|
|
2431
2445
|
}), {
|
|
2432
2446
|
default: L(() => [
|
|
2433
|
-
|
|
2447
|
+
b("span", null, T(g.label), 1)
|
|
2434
2448
|
]),
|
|
2435
2449
|
_: 2
|
|
2436
2450
|
}, 1040, ["type", "disabled", "loading", "plain", "text", "link", "icon", "onClick"]))), 128))
|
|
@@ -2438,32 +2452,32 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2438
2452
|
])) : D("", !0)
|
|
2439
2453
|
], 16));
|
|
2440
2454
|
}
|
|
2441
|
-
}), co = /* @__PURE__ */ E(
|
|
2455
|
+
}), co = /* @__PURE__ */ E(Zt, [["__scopeId", "data-v-6831eb88"]]);
|
|
2442
2456
|
export {
|
|
2443
|
-
|
|
2444
|
-
|
|
2457
|
+
Nt as JtActionMenu,
|
|
2458
|
+
qt as JtAttachmentList,
|
|
2445
2459
|
Q as JtButton,
|
|
2446
|
-
|
|
2460
|
+
Yt as JtCard,
|
|
2447
2461
|
j2 as JtCascader,
|
|
2448
|
-
|
|
2449
|
-
|
|
2462
|
+
Xt as JtChoiceCardGroup,
|
|
2463
|
+
Gt as JtCrudTable,
|
|
2450
2464
|
S2 as JtDatePicker,
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2465
|
+
Qt as JtDescriptions,
|
|
2466
|
+
eo as JtDialog,
|
|
2467
|
+
to as JtDrawer,
|
|
2468
|
+
Y2 as JtEmptyState,
|
|
2469
|
+
B0 as JtFileIcon,
|
|
2456
2470
|
A2 as JtFilterBar,
|
|
2457
2471
|
P2 as JtFormItems,
|
|
2458
2472
|
Be as JtInput,
|
|
2459
2473
|
oo as JtOverflowTooltipText,
|
|
2460
2474
|
co as JtPageHeader,
|
|
2461
|
-
|
|
2475
|
+
s0 as JtPagination,
|
|
2462
2476
|
F2 as JtSelect,
|
|
2463
2477
|
no as JtStatusStamp,
|
|
2464
2478
|
lo as JtTab,
|
|
2465
2479
|
so as JtTabItem,
|
|
2466
|
-
|
|
2480
|
+
o0 as JtTable,
|
|
2467
2481
|
ro as JtTree,
|
|
2468
2482
|
io as JtTreeTableLayout,
|
|
2469
2483
|
mo as getJtLocale,
|
|
@@ -2472,6 +2486,6 @@ export {
|
|
|
2472
2486
|
vo as normalizeLocale,
|
|
2473
2487
|
ao as openJtConfirmDialog,
|
|
2474
2488
|
go as resetJtLocale,
|
|
2475
|
-
|
|
2489
|
+
$0 as resolveJtFileType,
|
|
2476
2490
|
_o as setJtLocale
|
|
2477
2491
|
};
|