@jt-home/mfe-components 1.1.2 → 1.2.0-beta.20260717064421
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.cjs +1 -1
- package/dist/package/index.mjs +601 -589
- package/dist/package/style.css +1 -1
- package/dist/package/types/components/JtOverflowTooltipText/types.d.ts +3 -0
- package/dist/package/types/components/JtTreeTableLayout/index.vue.d.ts +1 -1
- package/dist/package/types/components/form/JtFormItems.vue.d.ts +5 -3
- package/package.json +1 -1
package/dist/package/index.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import './style.css';
|
|
|
2
2
|
import { t as j } 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
|
|
5
|
+
import { defineComponent as I, useAttrs as Te, computed as m, openBlock as p, createBlock as F, mergeProps as J, toHandlers as ne, withCtx as L, renderSlot as C, resolveDynamicComponent as Ce, createCommentVNode as D, ref as R, watch as ce, mergeDefaults as h2, withKeys as Se, createElementBlock as b, Fragment as oe, renderList as N, useSlots as le, normalizeStyle as ee, createSlots as ae, unref as P, nextTick as ge, normalizeClass as Y, createVNode as U, withModifiers as ie, createElementVNode as y, toDisplayString as T, normalizeProps as ue, guardReactiveProps as pe, useModel as ve, withDirectives as v2, mergeModels as _e, createTextVNode as X, 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
|
-
import { _ as
|
|
7
|
+
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const Me = 2, b2 = 3;
|
|
9
9
|
function w2(d) {
|
|
10
10
|
return d.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
@@ -31,7 +31,7 @@ function be(d, e = /* @__PURE__ */ new Set()) {
|
|
|
31
31
|
Object.entries(d).filter(([t]) => !e.has(t) && !Ze(t))
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
|
-
const $2 = /* @__PURE__ */
|
|
34
|
+
const $2 = /* @__PURE__ */ I({
|
|
35
35
|
name: "JtButton",
|
|
36
36
|
__name: "index",
|
|
37
37
|
props: {
|
|
@@ -64,42 +64,42 @@ const $2 = /* @__PURE__ */ P({
|
|
|
64
64
|
"jt-button--gray": e.gray,
|
|
65
65
|
"jt-button--border": !0
|
|
66
66
|
})), u = m(() => {
|
|
67
|
-
const { gray: l, icon:
|
|
67
|
+
const { gray: l, icon: v, size: g, ...h } = e;
|
|
68
68
|
return {
|
|
69
69
|
...be(t),
|
|
70
|
-
...
|
|
70
|
+
...h
|
|
71
71
|
};
|
|
72
72
|
}), c = m(() => ye(t));
|
|
73
|
-
return (l,
|
|
74
|
-
const g = He,
|
|
75
|
-
return p(),
|
|
73
|
+
return (l, v) => {
|
|
74
|
+
const g = He, h = qe;
|
|
75
|
+
return p(), F(h, J({
|
|
76
76
|
class: ["jt-button", n.value]
|
|
77
|
-
}, u.value,
|
|
77
|
+
}, u.value, ne(c.value)), {
|
|
78
78
|
default: L(() => [
|
|
79
|
-
l.$slots.icon ? (p(),
|
|
79
|
+
l.$slots.icon ? (p(), F(g, {
|
|
80
80
|
key: 0,
|
|
81
81
|
class: "jt-button__icon"
|
|
82
82
|
}, {
|
|
83
83
|
default: L(() => [
|
|
84
|
-
|
|
84
|
+
C(l.$slots, "icon", {}, void 0, !0)
|
|
85
85
|
]),
|
|
86
86
|
_: 3
|
|
87
|
-
})) : e.icon ? (p(),
|
|
87
|
+
})) : e.icon ? (p(), F(g, {
|
|
88
88
|
key: 1,
|
|
89
89
|
class: "jt-button__icon"
|
|
90
90
|
}, {
|
|
91
91
|
default: L(() => [
|
|
92
|
-
(p(),
|
|
92
|
+
(p(), F(Ce(e.icon)))
|
|
93
93
|
]),
|
|
94
94
|
_: 1
|
|
95
|
-
})) :
|
|
96
|
-
|
|
95
|
+
})) : D("", !0),
|
|
96
|
+
C(l.$slots, "default", {}, void 0, !0)
|
|
97
97
|
]),
|
|
98
98
|
_: 3
|
|
99
99
|
}, 16, ["class"]);
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
}), Q = /* @__PURE__ */
|
|
102
|
+
}), Q = /* @__PURE__ */ E($2, [["__scopeId", "data-v-c30ce771"]]), x2 = {
|
|
103
103
|
// 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
|
|
104
104
|
options: () => [],
|
|
105
105
|
clearable: !0,
|
|
@@ -116,7 +116,7 @@ function k2(d) {
|
|
|
116
116
|
e.props
|
|
117
117
|
)), e;
|
|
118
118
|
}
|
|
119
|
-
const j2 = /* @__PURE__ */
|
|
119
|
+
const j2 = /* @__PURE__ */ I({
|
|
120
120
|
name: "JtCascader",
|
|
121
121
|
__name: "index",
|
|
122
122
|
props: /* @__PURE__ */ h2({
|
|
@@ -163,10 +163,10 @@ const j2 = /* @__PURE__ */ P({
|
|
|
163
163
|
const t = d, o = m(() => {
|
|
164
164
|
const a = k2(t);
|
|
165
165
|
if (!a.disabled) return a;
|
|
166
|
-
const { placeholder:
|
|
166
|
+
const { placeholder: S, ...M } = a;
|
|
167
167
|
return M;
|
|
168
|
-
}), r =
|
|
169
|
-
|
|
168
|
+
}), r = R(t.modelValue);
|
|
169
|
+
ce(
|
|
170
170
|
() => t.modelValue,
|
|
171
171
|
(a) => {
|
|
172
172
|
r.value = a;
|
|
@@ -174,8 +174,8 @@ const j2 = /* @__PURE__ */ P({
|
|
|
174
174
|
{ deep: !0 }
|
|
175
175
|
);
|
|
176
176
|
const i = e;
|
|
177
|
-
function n(a, ...
|
|
178
|
-
i(a, ...
|
|
177
|
+
function n(a, ...S) {
|
|
178
|
+
i(a, ...S);
|
|
179
179
|
}
|
|
180
180
|
function u(a) {
|
|
181
181
|
r.value = a, n("update:modelValue", a);
|
|
@@ -186,37 +186,37 @@ const j2 = /* @__PURE__ */ P({
|
|
|
186
186
|
function l(a) {
|
|
187
187
|
n("focus", a);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function v(a) {
|
|
190
190
|
n("blur", a);
|
|
191
191
|
}
|
|
192
192
|
function g() {
|
|
193
193
|
n("clear");
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function h(a) {
|
|
196
196
|
n("visibleChange", a);
|
|
197
197
|
}
|
|
198
198
|
function B(a) {
|
|
199
199
|
n("expandChange", a);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function k(a) {
|
|
202
202
|
n("removeTag", a);
|
|
203
203
|
}
|
|
204
|
-
return (a,
|
|
204
|
+
return (a, S) => {
|
|
205
205
|
const M = Ye;
|
|
206
|
-
return p(),
|
|
206
|
+
return p(), F(M, J({ class: "jt-cascader jt-form-control" }, o.value, {
|
|
207
207
|
"model-value": r.value,
|
|
208
208
|
"onUpdate:modelValue": u,
|
|
209
209
|
onChange: c,
|
|
210
210
|
onFocus: l,
|
|
211
|
-
onBlur:
|
|
211
|
+
onBlur: v,
|
|
212
212
|
onClear: g,
|
|
213
|
-
onVisibleChange:
|
|
213
|
+
onVisibleChange: h,
|
|
214
214
|
onExpandChange: B,
|
|
215
|
-
onRemoveTag:
|
|
215
|
+
onRemoveTag: k
|
|
216
216
|
}), null, 16, ["model-value"]);
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
}), B2 = /* @__PURE__ */
|
|
219
|
+
}), B2 = /* @__PURE__ */ I({
|
|
220
220
|
name: "JtDatePicker",
|
|
221
221
|
__name: "index",
|
|
222
222
|
props: {
|
|
@@ -287,12 +287,12 @@ const j2 = /* @__PURE__ */ P({
|
|
|
287
287
|
}
|
|
288
288
|
return (r, i) => {
|
|
289
289
|
const n = Xe;
|
|
290
|
-
return p(),
|
|
290
|
+
return p(), F(n, J({ class: "jt-date-picker jt-form-control" }, t.value, {
|
|
291
291
|
"onUpdate:modelValue": i[0] || (i[0] = (u) => r.$emit("update:modelValue", u))
|
|
292
292
|
}), null, 16);
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
}), S2 = /* @__PURE__ */
|
|
295
|
+
}), S2 = /* @__PURE__ */ E(B2, [["__scopeId", "data-v-783494d9"]]), M2 = /* @__PURE__ */ I({
|
|
296
296
|
name: "JtInput",
|
|
297
297
|
__name: "index",
|
|
298
298
|
props: {
|
|
@@ -343,7 +343,7 @@ const j2 = /* @__PURE__ */ P({
|
|
|
343
343
|
placeholder: u ?? j("common.请输入")
|
|
344
344
|
};
|
|
345
345
|
return !t.disabled || n ? l : Object.fromEntries(
|
|
346
|
-
Object.entries(l).filter(([
|
|
346
|
+
Object.entries(l).filter(([v]) => v !== "placeholder")
|
|
347
347
|
);
|
|
348
348
|
}), r = e, i = m(() => Object.fromEntries(
|
|
349
349
|
Object.keys(Ee).map((n) => [
|
|
@@ -353,12 +353,12 @@ const j2 = /* @__PURE__ */ P({
|
|
|
353
353
|
));
|
|
354
354
|
return (n, u) => {
|
|
355
355
|
const c = Qe;
|
|
356
|
-
return p(),
|
|
356
|
+
return p(), F(c, J({ class: "jt-input jt-form-control" }, o.value, ne(i.value), {
|
|
357
357
|
onKeyup: u[0] || (u[0] = Se((l) => r("enter"), ["enter"]))
|
|
358
358
|
}), null, 16);
|
|
359
359
|
};
|
|
360
360
|
}
|
|
361
|
-
}), Be = /* @__PURE__ */
|
|
361
|
+
}), Be = /* @__PURE__ */ E(M2, [["__scopeId", "data-v-ddac16c1"]]), T2 = /* @__PURE__ */ I({
|
|
362
362
|
name: "JtSelect",
|
|
363
363
|
__name: "index",
|
|
364
364
|
props: {
|
|
@@ -433,18 +433,18 @@ const j2 = /* @__PURE__ */ P({
|
|
|
433
433
|
));
|
|
434
434
|
return (n, u) => {
|
|
435
435
|
const c = t2, l = e2;
|
|
436
|
-
return p(),
|
|
436
|
+
return p(), F(l, J({ class: "jt-select jt-form-control" }, o.value, ne(i.value)), {
|
|
437
437
|
default: L(() => [
|
|
438
|
-
(p(!0), b(oe, null, N(n.options ?? [], (
|
|
439
|
-
key:
|
|
438
|
+
(p(!0), b(oe, null, N(n.options ?? [], (v) => (p(), F(c, J({
|
|
439
|
+
key: v.value,
|
|
440
440
|
ref_for: !0
|
|
441
|
-
},
|
|
441
|
+
}, v), null, 16))), 128))
|
|
442
442
|
]),
|
|
443
443
|
_: 1
|
|
444
444
|
}, 16);
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
}), F2 = /* @__PURE__ */
|
|
447
|
+
}), F2 = /* @__PURE__ */ E(T2, [["__scopeId", "data-v-48990808"]]), V2 = /* @__PURE__ */ I({
|
|
448
448
|
name: "JTFormItems",
|
|
449
449
|
__name: "JtFormItems",
|
|
450
450
|
props: {
|
|
@@ -454,115 +454,123 @@ const j2 = /* @__PURE__ */ P({
|
|
|
454
454
|
span: {}
|
|
455
455
|
},
|
|
456
456
|
setup(d) {
|
|
457
|
-
const e =
|
|
457
|
+
const e = le(), t = d, o = {
|
|
458
458
|
input: Be,
|
|
459
459
|
select: F2,
|
|
460
460
|
cascader: j2,
|
|
461
461
|
"date-picker": S2
|
|
462
|
-
},
|
|
462
|
+
}, r = {
|
|
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
|
+
}, i = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), n = Object.keys(o), u = /* @__PURE__ */ new Map(), c = m(() => t.configs.filter((f) => f.show !== !1)), l = (f) => {
|
|
469
|
+
const { itemType: $ } = f;
|
|
470
|
+
if (!$) return Be;
|
|
471
|
+
if (typeof $ != "string") return $;
|
|
472
|
+
const W = r[$] ?? $;
|
|
473
|
+
return n.includes(W) ? o[W] : (console.error(
|
|
474
|
+
`[JtFormItems] 不支持的 itemType: "${$}",支持的类型: ${n.join(", ")}`
|
|
475
475
|
), Be);
|
|
476
|
-
},
|
|
477
|
-
const
|
|
478
|
-
return
|
|
479
|
-
|
|
480
|
-
options:
|
|
481
|
-
} :
|
|
482
|
-
|
|
476
|
+
}, v = (f) => {
|
|
477
|
+
const $ = be(f, i);
|
|
478
|
+
return f.itemType === "select" || f.itemType === "remote-select" || f.itemType === "cascader" ? {
|
|
479
|
+
...$,
|
|
480
|
+
options: f.options
|
|
481
|
+
} : K(f.itemType) ? {
|
|
482
|
+
...$,
|
|
483
483
|
type: "daterange"
|
|
484
|
-
} :
|
|
485
|
-
},
|
|
486
|
-
rules:
|
|
487
|
-
...
|
|
488
|
-
}),
|
|
489
|
-
|
|
484
|
+
} : $;
|
|
485
|
+
}, g = (f) => ye(f, i), h = (f) => ({
|
|
486
|
+
rules: f.rules,
|
|
487
|
+
...f.formItemProps
|
|
488
|
+
}), B = (f, $) => {
|
|
489
|
+
t.formData[f] = $;
|
|
490
490
|
};
|
|
491
|
-
function
|
|
492
|
-
return (
|
|
493
|
-
if (
|
|
494
|
-
|
|
491
|
+
function k(f) {
|
|
492
|
+
return ($) => {
|
|
493
|
+
if ($) {
|
|
494
|
+
u.set(f, $);
|
|
495
495
|
return;
|
|
496
496
|
}
|
|
497
|
-
|
|
497
|
+
u.delete(f);
|
|
498
498
|
};
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function a(f, $) {
|
|
501
501
|
ge(() => {
|
|
502
|
-
|
|
502
|
+
u.get(f)?.validate($).catch(() => {
|
|
503
503
|
});
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
|
-
const
|
|
507
|
-
const
|
|
508
|
-
(
|
|
506
|
+
const S = (f) => Math.min(Math.max(Math.trunc(f || 4), 1), 24), M = m(() => S(t.gridColumns)), A = (f) => Math.min(Math.max(Math.trunc(f || 1), 1), M.value), V = m(() => {
|
|
507
|
+
const $ = c.value.reduce(
|
|
508
|
+
(W, w) => W + A(t.span || w.span),
|
|
509
509
|
0
|
|
510
|
-
) %
|
|
511
|
-
return
|
|
512
|
-
gridColumn: `1 / span ${
|
|
510
|
+
) % M.value;
|
|
511
|
+
return $ === 0 ? {
|
|
512
|
+
gridColumn: `1 / span ${M.value}`
|
|
513
513
|
} : {
|
|
514
|
-
gridColumn: `${
|
|
514
|
+
gridColumn: `${$ + 1} / span ${M.value - $}`
|
|
515
515
|
};
|
|
516
|
-
}),
|
|
517
|
-
gridColumn: `span ${
|
|
516
|
+
}), H = (f) => ({
|
|
517
|
+
gridColumn: `span ${A(t.span || f.span)}`
|
|
518
518
|
});
|
|
519
|
-
function
|
|
520
|
-
return
|
|
519
|
+
function K(f) {
|
|
520
|
+
return f === "daterange" || f === "date-range" || f === "dateRange";
|
|
521
521
|
}
|
|
522
|
-
return (
|
|
523
|
-
const
|
|
522
|
+
return (f, $) => {
|
|
523
|
+
const W = o2;
|
|
524
524
|
return p(), b("div", {
|
|
525
525
|
class: "jt-form-items",
|
|
526
|
-
style: ee({ "--jt-form-columns":
|
|
526
|
+
style: ee({ "--jt-form-columns": M.value })
|
|
527
527
|
}, [
|
|
528
|
-
(p(!0), b(oe, null, N(
|
|
529
|
-
key:
|
|
528
|
+
(p(!0), b(oe, null, N(c.value, (w) => (p(), F(W, J({
|
|
529
|
+
key: w.prop,
|
|
530
530
|
ref_for: !0,
|
|
531
|
-
ref:
|
|
531
|
+
ref: k(w.prop),
|
|
532
532
|
class: "jt-form-items__item",
|
|
533
|
-
style:
|
|
534
|
-
label:
|
|
535
|
-
prop:
|
|
536
|
-
},
|
|
533
|
+
style: H(w),
|
|
534
|
+
label: w.label,
|
|
535
|
+
prop: w.prop
|
|
536
|
+
}, h(w)), ae({
|
|
537
537
|
default: L(() => [
|
|
538
|
-
|
|
538
|
+
w.showSlot ? C(f.$slots, w.prop, { key: 0 }, void 0, !0) : (p(), F(Ce(l(w)), J({
|
|
539
539
|
key: 1,
|
|
540
|
-
"model-value":
|
|
540
|
+
"model-value": f.formData[w.prop],
|
|
541
541
|
ref_for: !0
|
|
542
|
-
},
|
|
543
|
-
"onUpdate:modelValue": (
|
|
544
|
-
onChange: () =>
|
|
545
|
-
onBlur: () =>
|
|
542
|
+
}, v(w), ne(g(w)), {
|
|
543
|
+
"onUpdate:modelValue": (_) => B(w.prop, _),
|
|
544
|
+
onChange: () => a(w.prop, "change"),
|
|
545
|
+
onBlur: () => a(w.prop, "blur")
|
|
546
546
|
}), null, 16, ["model-value", "onUpdate:modelValue", "onChange", "onBlur"]))
|
|
547
547
|
]),
|
|
548
548
|
_: 2
|
|
549
|
-
},
|
|
550
|
-
|
|
549
|
+
}, [
|
|
550
|
+
P(e)[`${w.prop}-label`] ? {
|
|
551
|
+
name: "label",
|
|
552
|
+
fn: L((_) => [
|
|
553
|
+
C(f.$slots, `${w.prop}-label`, J({ ref_for: !0 }, _), void 0, !0)
|
|
554
|
+
]),
|
|
555
|
+
key: "0"
|
|
556
|
+
} : void 0
|
|
557
|
+
]), 1040, ["style", "label", "prop"]))), 128)),
|
|
558
|
+
f.$slots.actions ? (p(), F(W, {
|
|
551
559
|
key: 0,
|
|
552
560
|
class: "jt-form-items__actions",
|
|
553
|
-
style: ee(
|
|
561
|
+
style: ee(V.value)
|
|
554
562
|
}, {
|
|
555
563
|
default: L(() => [
|
|
556
|
-
|
|
564
|
+
C(f.$slots, "actions", {}, void 0, !0)
|
|
557
565
|
]),
|
|
558
566
|
_: 3
|
|
559
|
-
}, 8, ["style"])) :
|
|
567
|
+
}, 8, ["style"])) : D("", !0)
|
|
560
568
|
], 4);
|
|
561
569
|
};
|
|
562
570
|
}
|
|
563
|
-
}), P2 = /* @__PURE__ */
|
|
571
|
+
}), P2 = /* @__PURE__ */ E(V2, [["__scopeId", "data-v-6eea0475"]]);
|
|
564
572
|
function I2() {
|
|
565
|
-
const d =
|
|
573
|
+
const d = R(!1);
|
|
566
574
|
function e() {
|
|
567
575
|
d.value = !0;
|
|
568
576
|
}
|
|
@@ -575,7 +583,7 @@ function I2() {
|
|
|
575
583
|
searchDone: t
|
|
576
584
|
};
|
|
577
585
|
}
|
|
578
|
-
const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e", z2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e", D2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e", H2 = { class: "jt-filter-bar__btns" }, J2 = ["src"], O2 = ["src"], Z2 = ["src"], R2 = /* @__PURE__ */
|
|
586
|
+
const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e", z2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e", D2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e", H2 = { class: "jt-filter-bar__btns" }, J2 = ["src"], O2 = ["src"], Z2 = ["src"], R2 = /* @__PURE__ */ I({
|
|
579
587
|
name: "JtFilterBar",
|
|
580
588
|
__name: "JtFilterBar",
|
|
581
589
|
props: {
|
|
@@ -585,34 +593,34 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
585
593
|
},
|
|
586
594
|
emits: ["update:modelValue", "search", "reset"],
|
|
587
595
|
setup(d, { expose: e, emit: t }) {
|
|
588
|
-
const o = d, r = t, i =
|
|
596
|
+
const o = d, r = t, i = R(), n = le(), u = R({}), { searchDisabled: c, searchLoading: l, searchDone: v } = I2(), g = R({}), h = R({}), B = /* @__PURE__ */ new Map(), k = m(() => o.option), a = R(k.value.searchCollapsed ?? !0), S = m(
|
|
589
597
|
() => o.columns.filter((s) => s.search === !0)
|
|
590
598
|
), M = m(
|
|
591
|
-
() => Math.max(1,
|
|
592
|
-
),
|
|
593
|
-
() => Math.max(1,
|
|
594
|
-
),
|
|
595
|
-
() => Math.max(1,
|
|
596
|
-
),
|
|
599
|
+
() => Math.max(1, k.value.searchSpan ?? 4)
|
|
600
|
+
), A = m(
|
|
601
|
+
() => Math.max(1, k.value.searchCollapsedRows ?? 1)
|
|
602
|
+
), V = m(() => M.value), H = m(
|
|
603
|
+
() => Math.max(1, V.value * A.value)
|
|
604
|
+
), K = m(() => M.value), f = m(
|
|
597
605
|
() => G.value ? "264px" : "174px"
|
|
598
|
-
),
|
|
599
|
-
() => Ge(
|
|
600
|
-
),
|
|
601
|
-
() =>
|
|
602
|
-
), E = m(
|
|
603
|
-
() => Pe(x.value.searchGutter, 16)
|
|
606
|
+
), $ = m(
|
|
607
|
+
() => Ge(k.value.searchLabelWidth ?? 84)
|
|
608
|
+
), W = m(
|
|
609
|
+
() => k.value.searchLabelPosition ?? "top"
|
|
604
610
|
), w = m(
|
|
605
|
-
() => Pe(
|
|
606
|
-
),
|
|
607
|
-
() =>
|
|
608
|
-
),
|
|
609
|
-
|
|
611
|
+
() => Pe(k.value.searchGutter, 16)
|
|
612
|
+
), _ = m(
|
|
613
|
+
() => Pe(k.value.searchRowGap, 10)
|
|
614
|
+
), O = m(
|
|
615
|
+
() => Ne(k.value.searchPadding ?? "0 12px")
|
|
616
|
+
), G = m(() => k.value.searchCollapse === !1 ? !1 : je(S.value) > H.value), q = m(() => {
|
|
617
|
+
if (!G.value || !a.value) return S.value;
|
|
610
618
|
let s = 0;
|
|
611
|
-
return
|
|
612
|
-
const
|
|
613
|
-
return s +
|
|
619
|
+
return S.value.filter((x) => {
|
|
620
|
+
const z = ke(x);
|
|
621
|
+
return s + z > H.value ? !1 : (s += z, !0);
|
|
614
622
|
});
|
|
615
|
-
}),
|
|
623
|
+
}), se = m(
|
|
616
624
|
() => q.value.filter((s) => !!n[`${s.prop}-search`])
|
|
617
625
|
), de = m(() => {
|
|
618
626
|
const s = je(q.value);
|
|
@@ -623,88 +631,88 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
623
631
|
}), we = m(
|
|
624
632
|
() => q.value.map((s) => fe(s))
|
|
625
633
|
);
|
|
626
|
-
|
|
627
|
-
() =>
|
|
634
|
+
ce(
|
|
635
|
+
() => k.value.searchCollapsed,
|
|
628
636
|
(s) => {
|
|
629
637
|
typeof s == "boolean" && (a.value = s);
|
|
630
638
|
}
|
|
631
|
-
),
|
|
639
|
+
), ce(
|
|
632
640
|
() => o.modelValue,
|
|
633
641
|
(s) => {
|
|
634
642
|
u.value = { ...s };
|
|
635
643
|
},
|
|
636
644
|
{ deep: !0, immediate: !0 }
|
|
637
645
|
);
|
|
638
|
-
function me(s,
|
|
646
|
+
function me(s, x) {
|
|
639
647
|
if (c.value) return;
|
|
640
|
-
const
|
|
641
|
-
u.value =
|
|
648
|
+
const z = { ...u.value, [s]: x };
|
|
649
|
+
u.value = z, r("update:modelValue", z);
|
|
642
650
|
}
|
|
643
651
|
function fe(s) {
|
|
644
|
-
const
|
|
652
|
+
const x = s.searchProps ?? {}, z = s.searchType ?? "input", Z = Le(s, x);
|
|
645
653
|
return {
|
|
646
|
-
|
|
647
|
-
...
|
|
654
|
+
...x,
|
|
655
|
+
...Z,
|
|
648
656
|
prop: s.prop,
|
|
649
657
|
label: s.searchLabel ?? s.label,
|
|
650
658
|
span: ke(s),
|
|
651
|
-
itemType:
|
|
659
|
+
itemType: z,
|
|
652
660
|
// 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
|
|
653
661
|
showSlot: !!n[`${s.prop}-search`],
|
|
654
|
-
options: Ae(s,
|
|
655
|
-
placeholder:
|
|
656
|
-
valueFormat:
|
|
657
|
-
disabled: c.value ||
|
|
658
|
-
loading: We(s,
|
|
662
|
+
options: Ae(s, x),
|
|
663
|
+
placeholder: x.placeholder ?? s.searchPlaceholder,
|
|
664
|
+
valueFormat: x.valueFormat ?? s.searchValueFormat,
|
|
665
|
+
disabled: c.value || x.disabled === !0,
|
|
666
|
+
loading: We(s, x),
|
|
659
667
|
preservePlaceholderWhenDisabled: c.value,
|
|
660
668
|
formItemProps: {
|
|
661
669
|
required: s.searchRequired,
|
|
662
670
|
class: ["jt-filter-bar__item", { "is-required": s.searchRequired }]
|
|
663
671
|
},
|
|
664
672
|
// 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
|
|
665
|
-
onEnter: (...
|
|
666
|
-
$e(
|
|
673
|
+
onEnter: (...re) => {
|
|
674
|
+
$e(x.onEnter, ...re), he();
|
|
667
675
|
},
|
|
668
676
|
// JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
|
|
669
|
-
"onUpdate:modelValue": (
|
|
670
|
-
$e(
|
|
677
|
+
"onUpdate:modelValue": (re) => {
|
|
678
|
+
$e(x["onUpdate:modelValue"], re), me(s.prop, re);
|
|
671
679
|
}
|
|
672
680
|
};
|
|
673
681
|
}
|
|
674
|
-
function Le(s,
|
|
682
|
+
function Le(s, x) {
|
|
675
683
|
if (s.searchType !== "remote-select") return {};
|
|
676
|
-
const
|
|
684
|
+
const z = s.searchRemoteMethod ? (Z) => Ue(s, Z) : x.remoteMethod;
|
|
677
685
|
return {
|
|
678
686
|
// remote-select 明确进入 Element Plus 远程搜索模式,避免调用方重复配置 remote。
|
|
679
|
-
remote:
|
|
680
|
-
filterable:
|
|
681
|
-
remoteMethod:
|
|
687
|
+
remote: x.remote ?? !!z,
|
|
688
|
+
filterable: x.filterable ?? !0,
|
|
689
|
+
remoteMethod: z
|
|
682
690
|
};
|
|
683
691
|
}
|
|
684
|
-
function Ae(s,
|
|
685
|
-
return s.searchType === "remote-select" && Object.prototype.hasOwnProperty.call(g.value, s.prop) ? g.value[s.prop] :
|
|
692
|
+
function Ae(s, x) {
|
|
693
|
+
return s.searchType === "remote-select" && Object.prototype.hasOwnProperty.call(g.value, s.prop) ? g.value[s.prop] : x.options ?? s.searchOptions ?? s.dicData;
|
|
686
694
|
}
|
|
687
|
-
function We(s,
|
|
688
|
-
return s.searchLoading !== void 0 ? s.searchLoading :
|
|
695
|
+
function We(s, x) {
|
|
696
|
+
return s.searchLoading !== void 0 ? s.searchLoading : x.loading !== void 0 ? x.loading : s.searchType === "remote-select" && s.searchRemoteMethod ? h.value[s.prop] === !0 : x.loading;
|
|
689
697
|
}
|
|
690
|
-
async function Ue(s,
|
|
698
|
+
async function Ue(s, x) {
|
|
691
699
|
if (!s.searchRemoteMethod) return;
|
|
692
|
-
const
|
|
693
|
-
B.set(s.prop,
|
|
700
|
+
const z = (B.get(s.prop) ?? 0) + 1;
|
|
701
|
+
B.set(s.prop, z), s.searchLoading === void 0 && (h.value = { ...h.value, [s.prop]: !0 });
|
|
694
702
|
try {
|
|
695
|
-
const
|
|
696
|
-
if (B.get(s.prop) !==
|
|
697
|
-
if (!Fe(
|
|
703
|
+
const Z = await s.searchRemoteMethod(x, s);
|
|
704
|
+
if (B.get(s.prop) !== z || Z === void 0) return;
|
|
705
|
+
if (!Fe(Z)) {
|
|
698
706
|
console.warn(
|
|
699
707
|
`[JtFilterBar] ${s.prop} 的 searchRemoteMethod 应返回 JtDicItem[] 或 void,请在业务方法内把接口响应映射为 { label, value } 选项。`
|
|
700
708
|
);
|
|
701
709
|
return;
|
|
702
710
|
}
|
|
703
|
-
g.value = { ...g.value, [s.prop]:
|
|
704
|
-
} catch (
|
|
705
|
-
console.error("[JtFilterBar] searchRemoteMethod 执行失败",
|
|
711
|
+
g.value = { ...g.value, [s.prop]: Z };
|
|
712
|
+
} catch (Z) {
|
|
713
|
+
console.error("[JtFilterBar] searchRemoteMethod 执行失败", Z);
|
|
706
714
|
} finally {
|
|
707
|
-
B.get(s.prop) ===
|
|
715
|
+
B.get(s.prop) === z && s.searchLoading === void 0 && (h.value = { ...h.value, [s.prop]: !1 });
|
|
708
716
|
}
|
|
709
717
|
}
|
|
710
718
|
function Fe(s) {
|
|
@@ -712,15 +720,15 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
712
720
|
}
|
|
713
721
|
function Ke(s) {
|
|
714
722
|
if (!s || typeof s != "object") return !1;
|
|
715
|
-
const
|
|
716
|
-
return typeof
|
|
723
|
+
const x = s, z = typeof x.value, Z = x.children;
|
|
724
|
+
return typeof x.label == "string" && (z === "string" || z === "number" || z === "boolean") && (x.disabled === void 0 || typeof x.disabled == "boolean") && (Z === void 0 || Fe(Z));
|
|
717
725
|
}
|
|
718
|
-
function $e(s,
|
|
726
|
+
function $e(s, ...x) {
|
|
719
727
|
if (Array.isArray(s)) {
|
|
720
|
-
s.forEach((
|
|
728
|
+
s.forEach((z) => $e(z, ...x));
|
|
721
729
|
return;
|
|
722
730
|
}
|
|
723
|
-
typeof s == "function" && s(
|
|
731
|
+
typeof s == "function" && s(...x);
|
|
724
732
|
}
|
|
725
733
|
async function he() {
|
|
726
734
|
if (!c.value) {
|
|
@@ -743,13 +751,13 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
743
751
|
return Math.min(M.value, Math.max(1, s.searchSpan ?? 1));
|
|
744
752
|
}
|
|
745
753
|
function je(s) {
|
|
746
|
-
return s.reduce((
|
|
754
|
+
return s.reduce((x, z) => x + ke(z), 0);
|
|
747
755
|
}
|
|
748
756
|
function Ge(s) {
|
|
749
757
|
return typeof s == "number" ? `${s}px` : s;
|
|
750
758
|
}
|
|
751
|
-
function Pe(s,
|
|
752
|
-
return typeof s == "number" ? s :
|
|
759
|
+
function Pe(s, x) {
|
|
760
|
+
return typeof s == "number" ? s : x;
|
|
753
761
|
}
|
|
754
762
|
function Ne(s) {
|
|
755
763
|
return typeof s == "number" ? `${s}px` : s;
|
|
@@ -762,52 +770,52 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
762
770
|
/** 开启筛选表单禁用。 */
|
|
763
771
|
searchLoading: l,
|
|
764
772
|
/** 关闭筛选表单禁用。 */
|
|
765
|
-
searchDone:
|
|
766
|
-
}), (s,
|
|
767
|
-
const
|
|
773
|
+
searchDone: v
|
|
774
|
+
}), (s, x) => {
|
|
775
|
+
const z = a2;
|
|
768
776
|
return p(), b("div", {
|
|
769
777
|
class: Y(["jt-filter-bar", [
|
|
770
|
-
`is-label-${
|
|
778
|
+
`is-label-${W.value}`,
|
|
771
779
|
{ "is-single-filter": de.value }
|
|
772
780
|
]]),
|
|
773
781
|
style: ee({
|
|
774
782
|
"--jt-filter-columns": M.value,
|
|
775
|
-
"--jt-filter-field-columns":
|
|
776
|
-
"--jt-filter-btns-width":
|
|
783
|
+
"--jt-filter-field-columns": K.value,
|
|
784
|
+
"--jt-filter-btns-width": f.value,
|
|
777
785
|
"--jt-filter-actions-start": te.value,
|
|
778
|
-
"--jt-filter-label-width":
|
|
779
|
-
"--jt-filter-column-gap": `${
|
|
780
|
-
"--jt-filter-row-gap": `${
|
|
781
|
-
"--jt-filter-padding":
|
|
786
|
+
"--jt-filter-label-width": $.value,
|
|
787
|
+
"--jt-filter-column-gap": `${w.value}px`,
|
|
788
|
+
"--jt-filter-row-gap": `${_.value}px`,
|
|
789
|
+
"--jt-filter-padding": O.value
|
|
782
790
|
})
|
|
783
791
|
}, [
|
|
784
|
-
|
|
792
|
+
U(z, {
|
|
785
793
|
ref_key: "formRef",
|
|
786
794
|
ref: i,
|
|
787
795
|
class: "jt-filter-bar__form",
|
|
788
796
|
model: u.value,
|
|
789
|
-
"label-position":
|
|
790
|
-
"label-width":
|
|
791
|
-
disabled:
|
|
792
|
-
onSubmit:
|
|
797
|
+
"label-position": W.value,
|
|
798
|
+
"label-width": $.value,
|
|
799
|
+
disabled: P(c),
|
|
800
|
+
onSubmit: x[0] || (x[0] = ie(() => {
|
|
793
801
|
}, ["prevent"]))
|
|
794
802
|
}, {
|
|
795
803
|
default: L(() => [
|
|
796
|
-
|
|
804
|
+
U(P(P2), {
|
|
797
805
|
configs: we.value,
|
|
798
806
|
"form-data": u.value,
|
|
799
807
|
style: { "--jt-form-label-gap": "6px", "--jt-form-column-gap": "16px", "--jt-form-row-gap": "10px" }
|
|
800
|
-
},
|
|
808
|
+
}, ae({
|
|
801
809
|
actions: L(() => [
|
|
802
810
|
y("div", H2, [
|
|
803
|
-
|
|
811
|
+
C(s.$slots, "search-menu", {
|
|
804
812
|
search: he,
|
|
805
813
|
reset: xe,
|
|
806
|
-
disabled:
|
|
814
|
+
disabled: P(c),
|
|
807
815
|
collapsed: a.value,
|
|
808
816
|
toggleCollapse: Ve
|
|
809
817
|
}, () => [
|
|
810
|
-
G.value ? (p(),
|
|
818
|
+
G.value ? (p(), F(P(Q), {
|
|
811
819
|
key: 0,
|
|
812
820
|
class: "jt-filter-bar__btn-collapse",
|
|
813
821
|
border: "",
|
|
@@ -816,46 +824,46 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
816
824
|
icon: L(() => [
|
|
817
825
|
y("img", {
|
|
818
826
|
class: Y(["jt-filter-bar__icon-arrow", { "is-collapsed": a.value }]),
|
|
819
|
-
src:
|
|
827
|
+
src: P(E2),
|
|
820
828
|
alt: ""
|
|
821
829
|
}, null, 10, J2)
|
|
822
830
|
]),
|
|
823
831
|
default: L(() => [
|
|
824
|
-
y("span", null,
|
|
832
|
+
y("span", null, T(a.value ? P(j)("common.展开") : P(j)("common.收起")), 1)
|
|
825
833
|
]),
|
|
826
834
|
_: 1
|
|
827
|
-
})) :
|
|
828
|
-
|
|
835
|
+
})) : D("", !0),
|
|
836
|
+
U(P(Q), {
|
|
829
837
|
class: "jt-filter-bar__btn-reset",
|
|
830
|
-
disabled:
|
|
838
|
+
disabled: P(c),
|
|
831
839
|
border: "",
|
|
832
840
|
onClick: xe
|
|
833
841
|
}, {
|
|
834
842
|
icon: L(() => [
|
|
835
843
|
y("img", {
|
|
836
|
-
src:
|
|
844
|
+
src: P(z2),
|
|
837
845
|
alt: ""
|
|
838
846
|
}, null, 8, O2)
|
|
839
847
|
]),
|
|
840
848
|
default: L(() => [
|
|
841
|
-
y("span", null,
|
|
849
|
+
y("span", null, T(k.value.resetBtnText ?? P(j)("common.重置")), 1)
|
|
842
850
|
]),
|
|
843
851
|
_: 1
|
|
844
852
|
}, 8, ["disabled"]),
|
|
845
|
-
|
|
853
|
+
U(P(Q), {
|
|
846
854
|
class: "jt-filter-bar__btn-query",
|
|
847
855
|
type: "primary",
|
|
848
|
-
disabled:
|
|
856
|
+
disabled: P(c),
|
|
849
857
|
onClick: he
|
|
850
858
|
}, {
|
|
851
859
|
icon: L(() => [
|
|
852
860
|
y("img", {
|
|
853
|
-
src:
|
|
861
|
+
src: P(D2),
|
|
854
862
|
alt: ""
|
|
855
863
|
}, null, 8, Z2)
|
|
856
864
|
]),
|
|
857
865
|
default: L(() => [
|
|
858
|
-
y("span", null,
|
|
866
|
+
y("span", null, T(k.value.searchBtnText ?? P(j)("common.查询")), 1)
|
|
859
867
|
]),
|
|
860
868
|
_: 1
|
|
861
869
|
}, 8, ["disabled"])
|
|
@@ -864,16 +872,16 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
864
872
|
]),
|
|
865
873
|
_: 2
|
|
866
874
|
}, [
|
|
867
|
-
N(
|
|
868
|
-
name:
|
|
875
|
+
N(se.value, (Z) => ({
|
|
876
|
+
name: Z.prop,
|
|
869
877
|
fn: L(() => [
|
|
870
|
-
|
|
871
|
-
value: u.value[
|
|
872
|
-
column:
|
|
873
|
-
setValue: (
|
|
878
|
+
C(s.$slots, `${Z.prop}-search`, {
|
|
879
|
+
value: u.value[Z.prop],
|
|
880
|
+
column: Z,
|
|
881
|
+
setValue: (re) => me(Z.prop, re),
|
|
874
882
|
search: he,
|
|
875
883
|
reset: xe,
|
|
876
|
-
disabled:
|
|
884
|
+
disabled: P(c)
|
|
877
885
|
}, void 0, !0)
|
|
878
886
|
])
|
|
879
887
|
}))
|
|
@@ -884,7 +892,7 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
884
892
|
], 6);
|
|
885
893
|
};
|
|
886
894
|
}
|
|
887
|
-
}), A2 = /* @__PURE__ */
|
|
895
|
+
}), A2 = /* @__PURE__ */ E(R2, [["__scopeId", "data-v-313da8c4"]]), W2 = { key: 1 }, U2 = { key: 2 }, K2 = { key: 3 }, G2 = /* @__PURE__ */ I({
|
|
888
896
|
name: "JtTable",
|
|
889
897
|
__name: "JtTable",
|
|
890
898
|
props: {
|
|
@@ -894,14 +902,14 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
894
902
|
tableEvents: {}
|
|
895
903
|
},
|
|
896
904
|
setup(d, { expose: e }) {
|
|
897
|
-
const t = d, o =
|
|
905
|
+
const t = d, o = le(), r = R(), i = m(() => t.option ?? {}), n = m(() => t.columns.filter((a) => !a.hide)), u = m(() => i.value.menuFixed ?? "right");
|
|
898
906
|
function c(a) {
|
|
899
907
|
return !!o[`${a}-header`];
|
|
900
908
|
}
|
|
901
909
|
function l(a) {
|
|
902
910
|
return !!o[`${a}-data`];
|
|
903
911
|
}
|
|
904
|
-
function
|
|
912
|
+
function v(a) {
|
|
905
913
|
return {
|
|
906
914
|
width: a.width,
|
|
907
915
|
minWidth: a.minWidth,
|
|
@@ -915,18 +923,18 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
915
923
|
function g(a) {
|
|
916
924
|
return !l(a.prop) && !B(a.columnOptions?.type);
|
|
917
925
|
}
|
|
918
|
-
function
|
|
926
|
+
function h(a) {
|
|
919
927
|
return !B(a.columnOptions?.type);
|
|
920
928
|
}
|
|
921
929
|
function B(a) {
|
|
922
930
|
return a === "selection" || a === "index" || a === "expand";
|
|
923
931
|
}
|
|
924
|
-
function
|
|
925
|
-
return a.find((M) => M.value ===
|
|
932
|
+
function k(a, S) {
|
|
933
|
+
return a.find((M) => M.value === S)?.label ?? String(S ?? "");
|
|
926
934
|
}
|
|
927
|
-
return e({ tableRef: r }), (a,
|
|
928
|
-
const M = l2,
|
|
929
|
-
return p(),
|
|
935
|
+
return e({ tableRef: r }), (a, S) => {
|
|
936
|
+
const M = l2, A = n2;
|
|
937
|
+
return p(), F(A, J({
|
|
930
938
|
ref_key: "tableRef",
|
|
931
939
|
ref: r,
|
|
932
940
|
data: a.data,
|
|
@@ -934,70 +942,70 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
934
942
|
"empty-text": i.value.emptyText,
|
|
935
943
|
stripe: i.value.tableProps?.stripe ?? !0,
|
|
936
944
|
class: "jt-table"
|
|
937
|
-
}, i.value.tableProps,
|
|
945
|
+
}, i.value.tableProps, ne(a.tableEvents)), {
|
|
938
946
|
default: L(() => [
|
|
939
|
-
i.value.selection ? (p(),
|
|
947
|
+
i.value.selection ? (p(), F(M, {
|
|
940
948
|
key: 0,
|
|
941
949
|
type: "selection",
|
|
942
950
|
width: "55",
|
|
943
951
|
align: "center"
|
|
944
|
-
})) :
|
|
945
|
-
i.value.index ? (p(),
|
|
952
|
+
})) : D("", !0),
|
|
953
|
+
i.value.index ? (p(), F(M, {
|
|
946
954
|
key: 1,
|
|
947
955
|
type: "index",
|
|
948
|
-
label: i.value.indexLabel ??
|
|
956
|
+
label: i.value.indexLabel ?? P(j)("common.序号"),
|
|
949
957
|
width: "60",
|
|
950
958
|
align: "center"
|
|
951
|
-
}, null, 8, ["label"])) :
|
|
952
|
-
(p(!0), b(oe, null, N(n.value, (
|
|
953
|
-
key:
|
|
954
|
-
prop:
|
|
955
|
-
label:
|
|
956
|
-
formatter: !l(
|
|
959
|
+
}, null, 8, ["label"])) : D("", !0),
|
|
960
|
+
(p(!0), b(oe, null, N(n.value, (V) => (p(), F(M, J({
|
|
961
|
+
key: V.prop,
|
|
962
|
+
prop: V.prop,
|
|
963
|
+
label: V.label,
|
|
964
|
+
formatter: !l(V.prop) && !V.dicData ? V.formatter : void 0,
|
|
957
965
|
ref_for: !0
|
|
958
|
-
},
|
|
959
|
-
c(
|
|
966
|
+
}, v(V)), ae({ _: 2 }, [
|
|
967
|
+
c(V.prop) ? {
|
|
960
968
|
name: "header",
|
|
961
|
-
fn: L((
|
|
962
|
-
|
|
969
|
+
fn: L((H) => [
|
|
970
|
+
C(a.$slots, `${V.prop}-header`, J({ ref_for: !0 }, H), void 0, !0)
|
|
963
971
|
]),
|
|
964
972
|
key: "0"
|
|
965
973
|
} : void 0,
|
|
966
|
-
|
|
974
|
+
h(V) ? {
|
|
967
975
|
name: "default",
|
|
968
|
-
fn: L((
|
|
969
|
-
l(
|
|
976
|
+
fn: L((H) => [
|
|
977
|
+
l(V.prop) ? C(a.$slots, `${V.prop}-data`, J({
|
|
970
978
|
key: 0,
|
|
971
979
|
ref_for: !0
|
|
972
|
-
},
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
)), 1)) : (p(), b("span", K2,
|
|
980
|
+
}, H), void 0, !0) : V.dicData ? (p(), b("span", W2, T(k(V.dicData, H.row[V.prop])), 1)) : V.formatter ? (p(), b("span", U2, T(V.formatter(
|
|
981
|
+
H.row,
|
|
982
|
+
H.column,
|
|
983
|
+
H.row[V.prop],
|
|
984
|
+
H.$index
|
|
985
|
+
)), 1)) : (p(), b("span", K2, T(H.row[V.prop]), 1))
|
|
978
986
|
]),
|
|
979
987
|
key: "1"
|
|
980
988
|
} : void 0
|
|
981
989
|
]), 1040, ["prop", "label", "formatter"]))), 128)),
|
|
982
|
-
i.value.menu ? (p(),
|
|
990
|
+
i.value.menu ? (p(), F(M, {
|
|
983
991
|
key: 2,
|
|
984
|
-
label: i.value.menuLabel ??
|
|
992
|
+
label: i.value.menuLabel ?? P(j)("common.操作"),
|
|
985
993
|
width: i.value.menuWidth,
|
|
986
994
|
"min-width": i.value.menuMinWidth,
|
|
987
995
|
align: i.value.menuAlign ?? "center",
|
|
988
996
|
fixed: u.value
|
|
989
997
|
}, {
|
|
990
|
-
default: L((
|
|
991
|
-
|
|
998
|
+
default: L((V) => [
|
|
999
|
+
C(a.$slots, "menu", ue(pe(V)), void 0, !0)
|
|
992
1000
|
]),
|
|
993
1001
|
_: 3
|
|
994
|
-
}, 8, ["label", "width", "min-width", "align", "fixed"])) :
|
|
1002
|
+
}, 8, ["label", "width", "min-width", "align", "fixed"])) : D("", !0)
|
|
995
1003
|
]),
|
|
996
1004
|
_: 3
|
|
997
1005
|
}, 16, ["data", "row-key", "empty-text", "stripe"]);
|
|
998
1006
|
};
|
|
999
1007
|
}
|
|
1000
|
-
}), N2 = /* @__PURE__ */
|
|
1008
|
+
}), N2 = /* @__PURE__ */ E(G2, [["__scopeId", "data-v-9784ab78"]]), q2 = { class: "jt-pagination" }, Y2 = { class: "jt-pagination__count" }, X2 = /* @__PURE__ */ I({
|
|
1001
1009
|
name: "JtPagination",
|
|
1002
1010
|
__name: "JtPagination",
|
|
1003
1011
|
props: {
|
|
@@ -1015,7 +1023,7 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1015
1023
|
return (n, u) => {
|
|
1016
1024
|
const c = s2;
|
|
1017
1025
|
return p(), b("div", q2, [
|
|
1018
|
-
|
|
1026
|
+
U(c, {
|
|
1019
1027
|
"current-page": n.currentPage,
|
|
1020
1028
|
"page-size": n.pageSize,
|
|
1021
1029
|
"page-sizes": o.value.pageSizes ?? [10, 20, 50, 100],
|
|
@@ -1026,14 +1034,14 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1026
1034
|
onCurrentChange: i,
|
|
1027
1035
|
onSizeChange: u[2] || (u[2] = (l) => n.$emit("size-change", l))
|
|
1028
1036
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"]),
|
|
1029
|
-
y("span", Y2,
|
|
1037
|
+
y("span", Y2, T(P(j)("common.共{total}条记录", "共 {total} 条记录", { total: n.total })), 1)
|
|
1030
1038
|
]);
|
|
1031
1039
|
};
|
|
1032
1040
|
}
|
|
1033
|
-
}), Q2 = /* @__PURE__ */
|
|
1041
|
+
}), Q2 = /* @__PURE__ */ E(X2, [["__scopeId", "data-v-03d564ec"]]), e0 = { class: "jt-crud-table" }, t0 = { class: "filter-bar-box" }, o0 = { class: "jt-crud-table__result" }, a0 = { class: "jt-crud-table__table-group" }, n0 = {
|
|
1034
1042
|
key: 0,
|
|
1035
1043
|
class: "jt-crud-table__toolbar"
|
|
1036
|
-
}, l0 = /* @__PURE__ */
|
|
1044
|
+
}, l0 = /* @__PURE__ */ I({
|
|
1037
1045
|
name: "JtCrudTable",
|
|
1038
1046
|
__name: "JtCrudTable",
|
|
1039
1047
|
props: /* @__PURE__ */ _e({
|
|
@@ -1054,118 +1062,118 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1054
1062
|
}),
|
|
1055
1063
|
emits: /* @__PURE__ */ _e(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
|
|
1056
1064
|
setup(d, { expose: e, emit: t }) {
|
|
1057
|
-
const o = d, r = t, i = ve(d, "currentPage"), n = ve(d, "pageSize"), u = ve(d, "searchModel"), c =
|
|
1065
|
+
const o = d, r = t, i = ve(d, "currentPage"), n = ve(d, "pageSize"), u = ve(d, "searchModel"), c = le(), l = R(), v = R(), g = m(() => o.option), h = m(() => g.value.searchShow !== !1), B = m(
|
|
1058
1066
|
() => g.value.paginationShow !== !1
|
|
1059
|
-
), x = m(
|
|
1060
|
-
() => o.columns.filter((v) => v.search && !!c[`${v.prop}-search`])
|
|
1061
|
-
), a = m(
|
|
1062
|
-
() => o.columns.filter((v) => !v.hide && !!c[`${v.prop}-header`])
|
|
1063
1067
|
), k = m(
|
|
1064
|
-
() => o.columns.filter((
|
|
1068
|
+
() => o.columns.filter((f) => f.search && !!c[`${f.prop}-search`])
|
|
1069
|
+
), a = m(
|
|
1070
|
+
() => o.columns.filter((f) => !f.hide && !!c[`${f.prop}-header`])
|
|
1071
|
+
), S = m(
|
|
1072
|
+
() => o.columns.filter((f) => !f.hide && !!c[`${f.prop}-data`])
|
|
1065
1073
|
);
|
|
1066
1074
|
function M() {
|
|
1067
|
-
const
|
|
1068
|
-
return o.columns.forEach((
|
|
1069
|
-
|
|
1070
|
-
}),
|
|
1075
|
+
const f = {};
|
|
1076
|
+
return o.columns.forEach(($) => {
|
|
1077
|
+
$.search && (f[$.prop] = void 0);
|
|
1078
|
+
}), f;
|
|
1071
1079
|
}
|
|
1072
|
-
function
|
|
1080
|
+
function A() {
|
|
1073
1081
|
r("search", { ...u.value });
|
|
1074
1082
|
}
|
|
1075
|
-
function
|
|
1083
|
+
function V() {
|
|
1076
1084
|
u.value = M(), r("reset");
|
|
1077
1085
|
}
|
|
1078
|
-
function
|
|
1079
|
-
|
|
1086
|
+
function H() {
|
|
1087
|
+
v.value?.searchLoading();
|
|
1080
1088
|
}
|
|
1081
|
-
function
|
|
1082
|
-
|
|
1089
|
+
function K() {
|
|
1090
|
+
v.value?.searchDone();
|
|
1083
1091
|
}
|
|
1084
1092
|
return e({
|
|
1085
1093
|
/** 获取内部 el-table 实例 */
|
|
1086
1094
|
tableRef: m(() => l.value?.tableRef),
|
|
1087
1095
|
/** 获取内部筛选条实例 */
|
|
1088
|
-
filterBarRef:
|
|
1096
|
+
filterBarRef: v,
|
|
1089
1097
|
/** 开启筛选表单禁用。 */
|
|
1090
|
-
searchLoading:
|
|
1098
|
+
searchLoading: H,
|
|
1091
1099
|
/** 关闭筛选表单禁用。 */
|
|
1092
|
-
searchDone:
|
|
1093
|
-
}), (
|
|
1094
|
-
const
|
|
1100
|
+
searchDone: K
|
|
1101
|
+
}), (f, $) => {
|
|
1102
|
+
const W = r2;
|
|
1095
1103
|
return p(), b("div", e0, [
|
|
1096
|
-
|
|
1104
|
+
C(f.$slots, "header", {}, void 0, !0),
|
|
1097
1105
|
y("div", t0, [
|
|
1098
|
-
|
|
1106
|
+
h.value ? (p(), F(A2, {
|
|
1099
1107
|
key: 0,
|
|
1100
1108
|
ref_key: "filterBarRef",
|
|
1101
|
-
ref:
|
|
1109
|
+
ref: v,
|
|
1102
1110
|
modelValue: u.value,
|
|
1103
|
-
"onUpdate:modelValue":
|
|
1104
|
-
columns:
|
|
1111
|
+
"onUpdate:modelValue": $[0] || ($[0] = (w) => u.value = w),
|
|
1112
|
+
columns: f.columns,
|
|
1105
1113
|
option: g.value,
|
|
1106
|
-
onSearch:
|
|
1107
|
-
onReset:
|
|
1108
|
-
},
|
|
1109
|
-
N(
|
|
1110
|
-
name: `${
|
|
1111
|
-
fn: L((
|
|
1112
|
-
|
|
1114
|
+
onSearch: A,
|
|
1115
|
+
onReset: V
|
|
1116
|
+
}, ae({ _: 2 }, [
|
|
1117
|
+
N(k.value, (w) => ({
|
|
1118
|
+
name: `${w.prop}-search`,
|
|
1119
|
+
fn: L((_) => [
|
|
1120
|
+
C(f.$slots, `${w.prop}-search`, ue(pe(_)), void 0, !0)
|
|
1113
1121
|
])
|
|
1114
1122
|
}))
|
|
1115
|
-
]), 1032, ["modelValue", "columns", "option"])) :
|
|
1123
|
+
]), 1032, ["modelValue", "columns", "option"])) : D("", !0)
|
|
1116
1124
|
]),
|
|
1117
1125
|
y("div", o0, [
|
|
1118
1126
|
y("div", a0, [
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
])) :
|
|
1122
|
-
v2((p(),
|
|
1127
|
+
P(c).toolbar ? (p(), b("div", n0, [
|
|
1128
|
+
C(f.$slots, "toolbar", {}, void 0, !0)
|
|
1129
|
+
])) : D("", !0),
|
|
1130
|
+
v2((p(), F(N2, {
|
|
1123
1131
|
ref_key: "jtTableRef",
|
|
1124
1132
|
ref: l,
|
|
1125
|
-
data:
|
|
1126
|
-
columns:
|
|
1133
|
+
data: f.data,
|
|
1134
|
+
columns: f.columns,
|
|
1127
1135
|
option: g.value,
|
|
1128
|
-
"table-events":
|
|
1129
|
-
},
|
|
1130
|
-
N(a.value, (
|
|
1131
|
-
name: `${
|
|
1132
|
-
fn: L((
|
|
1133
|
-
|
|
1136
|
+
"table-events": f.tableEvents
|
|
1137
|
+
}, ae({ _: 2 }, [
|
|
1138
|
+
N(a.value, (w) => ({
|
|
1139
|
+
name: `${w.prop}-header`,
|
|
1140
|
+
fn: L((_) => [
|
|
1141
|
+
C(f.$slots, `${w.prop}-header`, ue(pe(_)), void 0, !0)
|
|
1134
1142
|
])
|
|
1135
1143
|
})),
|
|
1136
|
-
N(
|
|
1137
|
-
name: `${
|
|
1138
|
-
fn: L((
|
|
1139
|
-
|
|
1144
|
+
N(S.value, (w) => ({
|
|
1145
|
+
name: `${w.prop}-data`,
|
|
1146
|
+
fn: L((_) => [
|
|
1147
|
+
C(f.$slots, `${w.prop}-data`, ue(pe(_)), void 0, !0)
|
|
1140
1148
|
])
|
|
1141
1149
|
})),
|
|
1142
1150
|
g.value.menu ? {
|
|
1143
1151
|
name: "menu",
|
|
1144
|
-
fn: L((
|
|
1145
|
-
|
|
1152
|
+
fn: L((w) => [
|
|
1153
|
+
C(f.$slots, "menu", ue(pe(w)), void 0, !0)
|
|
1146
1154
|
]),
|
|
1147
1155
|
key: "0"
|
|
1148
1156
|
} : void 0
|
|
1149
1157
|
]), 1032, ["data", "columns", "option", "table-events"])), [
|
|
1150
|
-
[
|
|
1158
|
+
[W, g.value.loading]
|
|
1151
1159
|
])
|
|
1152
1160
|
]),
|
|
1153
|
-
B.value ? (p(),
|
|
1161
|
+
B.value ? (p(), F(Q2, {
|
|
1154
1162
|
key: 0,
|
|
1155
1163
|
"current-page": i.value,
|
|
1156
|
-
"onUpdate:currentPage":
|
|
1164
|
+
"onUpdate:currentPage": $[1] || ($[1] = (w) => i.value = w),
|
|
1157
1165
|
"page-size": n.value,
|
|
1158
|
-
"onUpdate:pageSize":
|
|
1159
|
-
total:
|
|
1166
|
+
"onUpdate:pageSize": $[2] || ($[2] = (w) => n.value = w),
|
|
1167
|
+
total: f.total,
|
|
1160
1168
|
option: g.value,
|
|
1161
|
-
onPageChange:
|
|
1162
|
-
onSizeChange:
|
|
1163
|
-
}, null, 8, ["current-page", "page-size", "total", "option"])) :
|
|
1169
|
+
onPageChange: $[3] || ($[3] = (w) => f.$emit("page-change", w)),
|
|
1170
|
+
onSizeChange: $[4] || ($[4] = (w) => f.$emit("size-change", w))
|
|
1171
|
+
}, null, 8, ["current-page", "page-size", "total", "option"])) : D("", !0)
|
|
1164
1172
|
])
|
|
1165
1173
|
]);
|
|
1166
1174
|
};
|
|
1167
1175
|
}
|
|
1168
|
-
}), Kt = /* @__PURE__ */
|
|
1176
|
+
}), Kt = /* @__PURE__ */ E(l0, [["__scopeId", "data-v-335c2682"]]), s0 = /* @__PURE__ */ I({
|
|
1169
1177
|
name: "SvgIcon",
|
|
1170
1178
|
__name: "SvgIcon",
|
|
1171
1179
|
props: {
|
|
@@ -1183,7 +1191,7 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1183
1191
|
"aria-hidden": "true"
|
|
1184
1192
|
}, null, 4));
|
|
1185
1193
|
}
|
|
1186
|
-
}), r0 = /* @__PURE__ */
|
|
1194
|
+
}), r0 = /* @__PURE__ */ E(s0, [["__scopeId", "data-v-d11c470f"]]), i0 = "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", c0 = ["aria-label", "disabled"], d0 = /* @__PURE__ */ I({
|
|
1187
1195
|
name: "JtActionMenu",
|
|
1188
1196
|
__name: "index",
|
|
1189
1197
|
props: {
|
|
@@ -1200,8 +1208,8 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1200
1208
|
n.hidden || n.disabled || o("select", n.key, n);
|
|
1201
1209
|
}
|
|
1202
1210
|
return (n, u) => {
|
|
1203
|
-
const c = He, l = d2,
|
|
1204
|
-
return p(),
|
|
1211
|
+
const c = He, l = d2, v = c2, g = i2;
|
|
1212
|
+
return p(), F(g, {
|
|
1205
1213
|
trigger: "click",
|
|
1206
1214
|
placement: "bottom-end",
|
|
1207
1215
|
"popper-class": "jt-action-menu__popper",
|
|
@@ -1209,23 +1217,23 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1209
1217
|
onCommand: i
|
|
1210
1218
|
}, {
|
|
1211
1219
|
dropdown: L(() => [
|
|
1212
|
-
|
|
1220
|
+
U(v, null, {
|
|
1213
1221
|
default: L(() => [
|
|
1214
|
-
(p(!0), b(oe, null, N(r.value, (
|
|
1215
|
-
key:
|
|
1216
|
-
class: Y(["jt-action-menu__item", { "is-danger":
|
|
1217
|
-
command:
|
|
1218
|
-
disabled:
|
|
1222
|
+
(p(!0), b(oe, null, N(r.value, (h) => (p(), F(l, {
|
|
1223
|
+
key: h.key,
|
|
1224
|
+
class: Y(["jt-action-menu__item", { "is-danger": h.danger }]),
|
|
1225
|
+
command: h,
|
|
1226
|
+
disabled: h.disabled
|
|
1219
1227
|
}, {
|
|
1220
1228
|
default: L(() => [
|
|
1221
|
-
|
|
1222
|
-
|
|
1229
|
+
C(n.$slots, "item", { item: h }, () => [
|
|
1230
|
+
h.icon ? (p(), F(c, { key: 0 }, {
|
|
1223
1231
|
default: L(() => [
|
|
1224
|
-
(p(),
|
|
1232
|
+
(p(), F(Ce(h.icon)))
|
|
1225
1233
|
]),
|
|
1226
1234
|
_: 2
|
|
1227
|
-
}, 1024)) :
|
|
1228
|
-
y("span", null,
|
|
1235
|
+
}, 1024)) : D("", !0),
|
|
1236
|
+
y("span", null, T(h.label), 1)
|
|
1229
1237
|
], !0)
|
|
1230
1238
|
]),
|
|
1231
1239
|
_: 2
|
|
@@ -1235,15 +1243,15 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1235
1243
|
})
|
|
1236
1244
|
]),
|
|
1237
1245
|
default: L(() => [
|
|
1238
|
-
|
|
1246
|
+
C(n.$slots, "trigger", { items: r.value }, () => [
|
|
1239
1247
|
y("button", {
|
|
1240
1248
|
class: "jt-action-menu__trigger",
|
|
1241
1249
|
type: "button",
|
|
1242
1250
|
"aria-label": t.ariaLabel,
|
|
1243
1251
|
disabled: t.disabled
|
|
1244
1252
|
}, [
|
|
1245
|
-
|
|
1246
|
-
src:
|
|
1253
|
+
U(r0, {
|
|
1254
|
+
src: P(i0),
|
|
1247
1255
|
size: 20
|
|
1248
1256
|
}, null, 8, ["src"])
|
|
1249
1257
|
], 8, c0)
|
|
@@ -1253,7 +1261,7 @@ const E2 = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1253
1261
|
}, 8, ["disabled"]);
|
|
1254
1262
|
};
|
|
1255
1263
|
}
|
|
1256
|
-
}), Gt = /* @__PURE__ */ z(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 = {
|
|
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 = {
|
|
1257
1265
|
pdf: "pdf",
|
|
1258
1266
|
xls: "excel",
|
|
1259
1267
|
xlsx: "excel",
|
|
@@ -1279,7 +1287,7 @@ function g0(d, e) {
|
|
|
1279
1287
|
const t = d.split(/[?#]/, 1)[0], o = t.includes(".") ? t.split(".").pop()?.toLowerCase() : void 0;
|
|
1280
1288
|
return o ? v0[o] : void 0;
|
|
1281
1289
|
}
|
|
1282
|
-
const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */
|
|
1290
|
+
const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ I({
|
|
1283
1291
|
name: "JtFileIcon",
|
|
1284
1292
|
__name: "index",
|
|
1285
1293
|
props: {
|
|
@@ -1312,13 +1320,13 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1312
1320
|
src: r.value,
|
|
1313
1321
|
alt: "",
|
|
1314
1322
|
"aria-hidden": "true"
|
|
1315
|
-
}, null, 8, C0)) :
|
|
1323
|
+
}, null, 8, C0)) : C(u.$slots, e.name, {
|
|
1316
1324
|
key: 1,
|
|
1317
1325
|
type: o.value
|
|
1318
1326
|
}, void 0, !0)
|
|
1319
1327
|
], 12, _0));
|
|
1320
1328
|
}
|
|
1321
|
-
}), b0 = /* @__PURE__ */
|
|
1329
|
+
}), b0 = /* @__PURE__ */ E(y0, [["__scopeId", "data-v-989a66a3"]]), w0 = {
|
|
1322
1330
|
key: 0,
|
|
1323
1331
|
class: "jt-attachment-list"
|
|
1324
1332
|
}, L0 = { class: "jt-attachment-list__identity" }, $0 = ["title"], x0 = {
|
|
@@ -1330,7 +1338,7 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1330
1338
|
}, j0 = {
|
|
1331
1339
|
key: 1,
|
|
1332
1340
|
class: "jt-attachment-list__empty"
|
|
1333
|
-
}, B0 = /* @__PURE__ */
|
|
1341
|
+
}, B0 = /* @__PURE__ */ I({
|
|
1334
1342
|
name: "JtAttachmentList",
|
|
1335
1343
|
__name: "index",
|
|
1336
1344
|
props: {
|
|
@@ -1354,65 +1362,65 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1354
1362
|
key: l.id,
|
|
1355
1363
|
class: "jt-attachment-list__item"
|
|
1356
1364
|
}, [
|
|
1357
|
-
|
|
1365
|
+
C(u.$slots, "item", { file: l }, () => [
|
|
1358
1366
|
y("span", L0, [
|
|
1359
|
-
|
|
1367
|
+
U(b0, {
|
|
1360
1368
|
name: l.name,
|
|
1361
1369
|
type: l.type
|
|
1362
1370
|
}, null, 8, ["name", "type"]),
|
|
1363
1371
|
y("span", {
|
|
1364
1372
|
class: Y(["jt-attachment-list__name", { "is-disabled": l.disabled }]),
|
|
1365
1373
|
title: l.name
|
|
1366
|
-
},
|
|
1367
|
-
l.description ? (p(), b("span", x0,
|
|
1374
|
+
}, T(l.name), 11, $0),
|
|
1375
|
+
l.description ? (p(), b("span", x0, T(l.description), 1)) : D("", !0)
|
|
1368
1376
|
])
|
|
1369
1377
|
], !0),
|
|
1370
1378
|
u.$slots.actions ? (p(), b("span", k0, [
|
|
1371
|
-
|
|
1379
|
+
C(u.$slots, "actions", {
|
|
1372
1380
|
file: l,
|
|
1373
1381
|
preview: () => r(l),
|
|
1374
1382
|
download: () => i(l),
|
|
1375
1383
|
remove: () => n(l)
|
|
1376
1384
|
}, void 0, !0)
|
|
1377
|
-
])) :
|
|
1385
|
+
])) : D("", !0)
|
|
1378
1386
|
]))), 128))
|
|
1379
1387
|
])) : (p(), b("div", j0, [
|
|
1380
|
-
|
|
1381
|
-
X(
|
|
1388
|
+
C(u.$slots, "empty", {}, () => [
|
|
1389
|
+
X(T(t.emptyText), 1)
|
|
1382
1390
|
], !0)
|
|
1383
1391
|
]));
|
|
1384
1392
|
}
|
|
1385
|
-
}), Nt = /* @__PURE__ */
|
|
1393
|
+
}), Nt = /* @__PURE__ */ E(B0, [["__scopeId", "data-v-9f6adbeb"]]), S0 = {
|
|
1386
1394
|
key: 0,
|
|
1387
1395
|
class: "jt-card__title"
|
|
1388
1396
|
}, M0 = {
|
|
1389
1397
|
key: 1,
|
|
1390
1398
|
class: "jt-card__content"
|
|
1391
|
-
}, T0 = /* @__PURE__ */
|
|
1399
|
+
}, T0 = /* @__PURE__ */ I({
|
|
1392
1400
|
name: "JtCard",
|
|
1393
1401
|
__name: "index",
|
|
1394
1402
|
props: {
|
|
1395
1403
|
title: {}
|
|
1396
1404
|
},
|
|
1397
1405
|
setup(d) {
|
|
1398
|
-
const e = d, t =
|
|
1399
|
-
return (i, n) => (p(), b("div",
|
|
1406
|
+
const e = d, t = le(), o = m(() => !!(e.title || t.title)), r = m(() => !!(t.content || t.default));
|
|
1407
|
+
return (i, n) => (p(), b("div", J({ class: "jt-card" }, i.$attrs), [
|
|
1400
1408
|
o.value ? (p(), b("div", S0, [
|
|
1401
|
-
|
|
1402
|
-
y("span", null,
|
|
1409
|
+
C(i.$slots, "title", {}, () => [
|
|
1410
|
+
y("span", null, T(i.title), 1)
|
|
1403
1411
|
], !0)
|
|
1404
|
-
])) :
|
|
1412
|
+
])) : D("", !0),
|
|
1405
1413
|
r.value ? (p(), b("div", M0, [
|
|
1406
|
-
|
|
1407
|
-
|
|
1414
|
+
C(i.$slots, "content", {}, () => [
|
|
1415
|
+
C(i.$slots, "default", {}, void 0, !0)
|
|
1408
1416
|
], !0)
|
|
1409
|
-
])) :
|
|
1417
|
+
])) : D("", !0)
|
|
1410
1418
|
], 16));
|
|
1411
1419
|
}
|
|
1412
|
-
}), qt = /* @__PURE__ */
|
|
1420
|
+
}), qt = /* @__PURE__ */ E(T0, [["__scopeId", "data-v-e4895e88"]]), F0 = ["aria-label"], V0 = ["data-jt-choice-card-index", "aria-checked", "aria-disabled", "disabled", "tabindex", "onClick", "onKeydown"], P0 = { class: "jt-choice-card__copy" }, I0 = { class: "jt-choice-card__label" }, E0 = {
|
|
1413
1421
|
key: 0,
|
|
1414
1422
|
class: "jt-choice-card__description"
|
|
1415
|
-
}, z0 = /* @__PURE__ */
|
|
1423
|
+
}, z0 = /* @__PURE__ */ I({
|
|
1416
1424
|
name: "JtChoiceCardGroup",
|
|
1417
1425
|
__name: "index",
|
|
1418
1426
|
props: {
|
|
@@ -1422,18 +1430,18 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1422
1430
|
},
|
|
1423
1431
|
emits: ["update:modelValue", "change"],
|
|
1424
1432
|
setup(d, { emit: e }) {
|
|
1425
|
-
const t = d, o = e, r =
|
|
1426
|
-
() => t.options.flatMap((l,
|
|
1433
|
+
const t = d, o = e, r = R(), i = m(
|
|
1434
|
+
() => t.options.flatMap((l, v) => l.disabled ? [] : [v])
|
|
1427
1435
|
);
|
|
1428
1436
|
function n(l) {
|
|
1429
1437
|
l.disabled || l.value === t.modelValue || (o("update:modelValue", l.value), o("change", l.value, l));
|
|
1430
1438
|
}
|
|
1431
|
-
function u(l,
|
|
1432
|
-
return l.disabled ? -1 : l.value === t.modelValue || t.modelValue === void 0 &&
|
|
1439
|
+
function u(l, v) {
|
|
1440
|
+
return l.disabled ? -1 : l.value === t.modelValue || t.modelValue === void 0 && v === i.value[0] ? 0 : -1;
|
|
1433
1441
|
}
|
|
1434
|
-
function c(l,
|
|
1442
|
+
function c(l, v, g) {
|
|
1435
1443
|
if (l.key === "Enter" || l.key === " ") {
|
|
1436
|
-
l.preventDefault(), n(
|
|
1444
|
+
l.preventDefault(), n(v);
|
|
1437
1445
|
return;
|
|
1438
1446
|
}
|
|
1439
1447
|
const B = {
|
|
@@ -1444,42 +1452,42 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1444
1452
|
}[l.key];
|
|
1445
1453
|
if (!B || i.value.length === 0) return;
|
|
1446
1454
|
l.preventDefault();
|
|
1447
|
-
const a = (Math.max(i.value.indexOf(g), 0) + B + i.value.length) % i.value.length,
|
|
1448
|
-
r.value?.querySelector(`[data-jt-choice-card-index="${
|
|
1455
|
+
const a = (Math.max(i.value.indexOf(g), 0) + B + i.value.length) % i.value.length, S = i.value[a], M = t.options[S];
|
|
1456
|
+
r.value?.querySelector(`[data-jt-choice-card-index="${S}"]`)?.focus(), M && n(M);
|
|
1449
1457
|
}
|
|
1450
|
-
return (l,
|
|
1458
|
+
return (l, v) => (p(), b("div", {
|
|
1451
1459
|
ref_key: "groupRef",
|
|
1452
1460
|
ref: r,
|
|
1453
1461
|
class: "jt-choice-card-group",
|
|
1454
1462
|
role: "radiogroup",
|
|
1455
1463
|
"aria-label": t.ariaLabel
|
|
1456
1464
|
}, [
|
|
1457
|
-
(p(!0), b(oe, null, N(t.options, (g,
|
|
1465
|
+
(p(!0), b(oe, null, N(t.options, (g, h) => (p(), b("button", {
|
|
1458
1466
|
key: g.value,
|
|
1459
1467
|
class: Y(["jt-choice-card", { "is-selected": g.value === t.modelValue }]),
|
|
1460
1468
|
type: "button",
|
|
1461
1469
|
role: "radio",
|
|
1462
|
-
"data-jt-choice-card-index":
|
|
1470
|
+
"data-jt-choice-card-index": h,
|
|
1463
1471
|
"aria-checked": g.value === t.modelValue ? "true" : "false",
|
|
1464
1472
|
"aria-disabled": g.disabled ? "true" : "false",
|
|
1465
1473
|
disabled: g.disabled,
|
|
1466
|
-
tabindex: u(g,
|
|
1474
|
+
tabindex: u(g, h),
|
|
1467
1475
|
onClick: (B) => n(g),
|
|
1468
|
-
onKeydown: (B) => c(B, g,
|
|
1476
|
+
onKeydown: (B) => c(B, g, h)
|
|
1469
1477
|
}, [
|
|
1470
|
-
|
|
1478
|
+
C(l.$slots, "option", {
|
|
1471
1479
|
option: g,
|
|
1472
1480
|
selected: g.value === t.modelValue
|
|
1473
1481
|
}, () => [
|
|
1474
1482
|
y("span", P0, [
|
|
1475
|
-
y("span", I0,
|
|
1476
|
-
g.description ? (p(), b("span", E0,
|
|
1483
|
+
y("span", I0, T(g.label), 1),
|
|
1484
|
+
g.description ? (p(), b("span", E0, T(g.description), 1)) : D("", !0)
|
|
1477
1485
|
])
|
|
1478
1486
|
], !0)
|
|
1479
1487
|
], 42, V0))), 128))
|
|
1480
1488
|
], 8, F0));
|
|
1481
1489
|
}
|
|
1482
|
-
}), Yt = /* @__PURE__ */
|
|
1490
|
+
}), Yt = /* @__PURE__ */ E(z0, [["__scopeId", "data-v-897eb9f2"]]), D0 = { class: "jt-descriptions__label" }, H0 = { class: "jt-descriptions__value" }, J0 = /* @__PURE__ */ I({
|
|
1483
1491
|
name: "JtDescriptions",
|
|
1484
1492
|
__name: "index",
|
|
1485
1493
|
props: {
|
|
@@ -1509,26 +1517,26 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1509
1517
|
class: "jt-descriptions__item",
|
|
1510
1518
|
style: ee({ gridColumn: `span ${r(c.span)}` })
|
|
1511
1519
|
}, [
|
|
1512
|
-
|
|
1520
|
+
C(n.$slots, "item", { item: c }, () => [
|
|
1513
1521
|
y("dt", D0, [
|
|
1514
|
-
|
|
1515
|
-
X(
|
|
1522
|
+
C(n.$slots, `${c.key}-label`, { item: c }, () => [
|
|
1523
|
+
X(T(c.label), 1)
|
|
1516
1524
|
], !0)
|
|
1517
1525
|
]),
|
|
1518
1526
|
y("dd", H0, [
|
|
1519
|
-
|
|
1520
|
-
X(
|
|
1527
|
+
C(n.$slots, `${c.key}-value`, { item: c }, () => [
|
|
1528
|
+
X(T(i(c.value) ? c.value : e.emptyText), 1)
|
|
1521
1529
|
], !0)
|
|
1522
1530
|
])
|
|
1523
1531
|
], !0)
|
|
1524
1532
|
], 4))), 128))
|
|
1525
1533
|
], 4));
|
|
1526
1534
|
}
|
|
1527
|
-
}), Xt = /* @__PURE__ */
|
|
1535
|
+
}), Xt = /* @__PURE__ */ E(J0, [["__scopeId", "data-v-9cf04a6b"]]), O0 = "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", Z0 = { class: "jt-dialog__header" }, R0 = { class: "jt-dialog__title" }, A0 = {
|
|
1528
1536
|
key: 0,
|
|
1529
1537
|
class: "jt-dialog__icon",
|
|
1530
1538
|
"aria-hidden": "true"
|
|
1531
|
-
}, W0 = ["aria-label", "disabled"], U0 = { class: "jt-dialog__body" }, K0 = { class: "jt-dialog__footer" }, Qt = /* @__PURE__ */
|
|
1539
|
+
}, W0 = ["aria-label", "disabled"], U0 = { class: "jt-dialog__body" }, K0 = { class: "jt-dialog__footer" }, Qt = /* @__PURE__ */ I({
|
|
1532
1540
|
name: "JtDialog",
|
|
1533
1541
|
__name: "index",
|
|
1534
1542
|
props: /* @__PURE__ */ _e({
|
|
@@ -1591,55 +1599,55 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1591
1599
|
const l = m(() => {
|
|
1592
1600
|
const {
|
|
1593
1601
|
title: a,
|
|
1594
|
-
width:
|
|
1602
|
+
width: S,
|
|
1595
1603
|
cancelText: M,
|
|
1596
|
-
confirmText:
|
|
1597
|
-
confirmLoading:
|
|
1598
|
-
showFooter:
|
|
1599
|
-
footerLayout:
|
|
1600
|
-
...
|
|
1604
|
+
confirmText: A,
|
|
1605
|
+
confirmLoading: V,
|
|
1606
|
+
showFooter: H,
|
|
1607
|
+
footerLayout: K,
|
|
1608
|
+
...f
|
|
1601
1609
|
} = t;
|
|
1602
1610
|
return {
|
|
1603
1611
|
...be(u, n),
|
|
1604
|
-
...
|
|
1605
|
-
width: c(
|
|
1612
|
+
...f,
|
|
1613
|
+
width: c(S),
|
|
1606
1614
|
showClose: !1
|
|
1607
1615
|
};
|
|
1608
|
-
}),
|
|
1609
|
-
function
|
|
1616
|
+
}), v = m(() => ye(u)), g = m(() => `jt-dialog--footer-${t.footerLayout}`);
|
|
1617
|
+
function h() {
|
|
1610
1618
|
o.value = !1;
|
|
1611
1619
|
}
|
|
1612
1620
|
function B() {
|
|
1613
|
-
r("cancel"),
|
|
1621
|
+
r("cancel"), h();
|
|
1614
1622
|
}
|
|
1615
|
-
function
|
|
1623
|
+
function k() {
|
|
1616
1624
|
t.confirmLoading || r("confirm");
|
|
1617
1625
|
}
|
|
1618
|
-
return (a,
|
|
1626
|
+
return (a, S) => {
|
|
1619
1627
|
const M = u2;
|
|
1620
|
-
return p(),
|
|
1628
|
+
return p(), F(M, J({
|
|
1621
1629
|
modelValue: o.value,
|
|
1622
|
-
"onUpdate:modelValue":
|
|
1630
|
+
"onUpdate:modelValue": S[0] || (S[0] = (A) => o.value = A),
|
|
1623
1631
|
class: ["jt-dialog", g.value]
|
|
1624
|
-
}, l.value,
|
|
1625
|
-
onClose:
|
|
1626
|
-
}),
|
|
1632
|
+
}, l.value, ne(v.value), {
|
|
1633
|
+
onClose: S[1] || (S[1] = (A) => r("close"))
|
|
1634
|
+
}), ae({
|
|
1627
1635
|
header: L(() => [
|
|
1628
|
-
|
|
1636
|
+
C(a.$slots, "header", { close: h }, () => [
|
|
1629
1637
|
y("header", Z0, [
|
|
1630
1638
|
y("div", R0, [
|
|
1631
1639
|
a.$slots.icon ? (p(), b("span", A0, [
|
|
1632
|
-
|
|
1633
|
-
])) :
|
|
1634
|
-
y("span", null,
|
|
1640
|
+
C(a.$slots, "icon")
|
|
1641
|
+
])) : D("", !0),
|
|
1642
|
+
y("span", null, T(a.title), 1)
|
|
1635
1643
|
]),
|
|
1636
1644
|
y("button", {
|
|
1637
1645
|
type: "button",
|
|
1638
1646
|
class: "jt-dialog__close",
|
|
1639
|
-
"aria-label":
|
|
1647
|
+
"aria-label": P(j)("common.关闭", "关闭"),
|
|
1640
1648
|
disabled: a.confirmLoading,
|
|
1641
|
-
onClick:
|
|
1642
|
-
},
|
|
1649
|
+
onClick: h
|
|
1650
|
+
}, S[2] || (S[2] = [
|
|
1643
1651
|
y("img", {
|
|
1644
1652
|
src: O0,
|
|
1645
1653
|
alt: ""
|
|
@@ -1650,7 +1658,7 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1650
1658
|
]),
|
|
1651
1659
|
default: L(() => [
|
|
1652
1660
|
y("section", U0, [
|
|
1653
|
-
|
|
1661
|
+
C(a.$slots, "default")
|
|
1654
1662
|
])
|
|
1655
1663
|
]),
|
|
1656
1664
|
_: 2
|
|
@@ -1659,30 +1667,30 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1659
1667
|
name: "footer",
|
|
1660
1668
|
fn: L(() => [
|
|
1661
1669
|
y("footer", K0, [
|
|
1662
|
-
|
|
1670
|
+
C(a.$slots, "footer", {
|
|
1663
1671
|
cancel: B,
|
|
1664
|
-
confirm:
|
|
1672
|
+
confirm: k
|
|
1665
1673
|
}, () => [
|
|
1666
|
-
|
|
1674
|
+
U(Q, {
|
|
1667
1675
|
size: "middle",
|
|
1668
1676
|
gray: "",
|
|
1669
1677
|
disabled: a.confirmLoading,
|
|
1670
1678
|
onClick: B
|
|
1671
1679
|
}, {
|
|
1672
1680
|
default: L(() => [
|
|
1673
|
-
X(
|
|
1681
|
+
X(T(a.cancelText), 1)
|
|
1674
1682
|
]),
|
|
1675
1683
|
_: 1
|
|
1676
1684
|
}, 8, ["disabled"]),
|
|
1677
|
-
|
|
1685
|
+
U(Q, {
|
|
1678
1686
|
size: "middle",
|
|
1679
1687
|
type: "primary",
|
|
1680
1688
|
loading: a.confirmLoading,
|
|
1681
1689
|
disabled: a.confirmLoading,
|
|
1682
|
-
onClick:
|
|
1690
|
+
onClick: k
|
|
1683
1691
|
}, {
|
|
1684
1692
|
default: L(() => [
|
|
1685
|
-
X(
|
|
1693
|
+
X(T(a.confirmText), 1)
|
|
1686
1694
|
]),
|
|
1687
1695
|
_: 1
|
|
1688
1696
|
}, 8, ["loading", "disabled"])
|
|
@@ -1694,7 +1702,7 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1694
1702
|
]), 1040, ["modelValue", "class"]);
|
|
1695
1703
|
};
|
|
1696
1704
|
}
|
|
1697
|
-
}), G0 = { class: "jt-drawer__body" }, N0 = { class: "jt-drawer__footer" }, q0 = { class: "jt-drawer__footer-actions" }, eo = /* @__PURE__ */
|
|
1705
|
+
}), G0 = { class: "jt-drawer__body" }, N0 = { class: "jt-drawer__footer" }, q0 = { class: "jt-drawer__footer-actions" }, eo = /* @__PURE__ */ I({
|
|
1698
1706
|
name: "JtDrawer",
|
|
1699
1707
|
__name: "index",
|
|
1700
1708
|
props: {
|
|
@@ -1752,30 +1760,30 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1752
1760
|
]), r = d, i = e, n = Te(), u = m(() => {
|
|
1753
1761
|
const {
|
|
1754
1762
|
cancelText: l,
|
|
1755
|
-
confirmText:
|
|
1763
|
+
confirmText: v,
|
|
1756
1764
|
confirmLoading: g,
|
|
1757
|
-
showFooter:
|
|
1765
|
+
showFooter: h,
|
|
1758
1766
|
size: B,
|
|
1759
|
-
...
|
|
1767
|
+
...k
|
|
1760
1768
|
} = r;
|
|
1761
1769
|
return {
|
|
1762
1770
|
...be(n, o),
|
|
1763
|
-
...
|
|
1771
|
+
...k,
|
|
1764
1772
|
size: t[B],
|
|
1765
1773
|
withHeader: !1,
|
|
1766
|
-
modalClass: ["jt-drawer-modal",
|
|
1774
|
+
modalClass: ["jt-drawer-modal", k.modalClass].filter(Boolean).join(" ")
|
|
1767
1775
|
};
|
|
1768
1776
|
}), c = m(() => ye(n));
|
|
1769
|
-
return (l,
|
|
1777
|
+
return (l, v) => {
|
|
1770
1778
|
const g = p2;
|
|
1771
|
-
return p(),
|
|
1779
|
+
return p(), F(g, J({
|
|
1772
1780
|
class: "jt-drawer",
|
|
1773
1781
|
"lock-model": ""
|
|
1774
|
-
}, u.value,
|
|
1782
|
+
}, u.value, ne(c.value)), ae({
|
|
1775
1783
|
default: L(() => [
|
|
1776
1784
|
y("section", G0, [
|
|
1777
|
-
|
|
1778
|
-
|
|
1785
|
+
C(l.$slots, "body", {}, () => [
|
|
1786
|
+
C(l.$slots, "default")
|
|
1779
1787
|
])
|
|
1780
1788
|
])
|
|
1781
1789
|
]),
|
|
@@ -1785,30 +1793,30 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1785
1793
|
name: "footer",
|
|
1786
1794
|
fn: L(() => [
|
|
1787
1795
|
y("footer", N0, [
|
|
1788
|
-
|
|
1796
|
+
C(l.$slots, "footer", {}, () => [
|
|
1789
1797
|
y("div", q0, [
|
|
1790
|
-
|
|
1798
|
+
U(Q, {
|
|
1791
1799
|
class: "jt-drawer__footer-button",
|
|
1792
1800
|
size: "middle",
|
|
1793
1801
|
gray: "",
|
|
1794
1802
|
disabled: l.confirmLoading,
|
|
1795
|
-
onClick:
|
|
1803
|
+
onClick: v[0] || (v[0] = (h) => i("cancel"))
|
|
1796
1804
|
}, {
|
|
1797
1805
|
default: L(() => [
|
|
1798
|
-
X(
|
|
1806
|
+
X(T(l.cancelText), 1)
|
|
1799
1807
|
]),
|
|
1800
1808
|
_: 1
|
|
1801
1809
|
}, 8, ["disabled"]),
|
|
1802
|
-
|
|
1810
|
+
U(Q, {
|
|
1803
1811
|
class: "jt-drawer__footer-button",
|
|
1804
1812
|
size: "middle",
|
|
1805
1813
|
type: "primary",
|
|
1806
1814
|
loading: l.confirmLoading,
|
|
1807
1815
|
disabled: l.confirmLoading,
|
|
1808
|
-
onClick:
|
|
1816
|
+
onClick: v[1] || (v[1] = (h) => i("confirm"))
|
|
1809
1817
|
}, {
|
|
1810
1818
|
default: L(() => [
|
|
1811
|
-
X(
|
|
1819
|
+
X(T(l.confirmText), 1)
|
|
1812
1820
|
]),
|
|
1813
1821
|
_: 1
|
|
1814
1822
|
}, 8, ["loading", "disabled"])
|
|
@@ -1824,7 +1832,7 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1824
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 = {
|
|
1825
1833
|
key: 0,
|
|
1826
1834
|
class: "jt-empty-state__actions"
|
|
1827
|
-
}, ot = /* @__PURE__ */
|
|
1835
|
+
}, ot = /* @__PURE__ */ I({
|
|
1828
1836
|
name: "JtEmptyState",
|
|
1829
1837
|
__name: "index",
|
|
1830
1838
|
props: {
|
|
@@ -1844,22 +1852,22 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1844
1852
|
y("div", {
|
|
1845
1853
|
class: Y(["jt-empty-state__image", { "jt-empty-state__image--default": !o.$slots.image }])
|
|
1846
1854
|
}, [
|
|
1847
|
-
|
|
1855
|
+
C(o.$slots, "image", {}, () => [
|
|
1848
1856
|
y("img", {
|
|
1849
|
-
src:
|
|
1857
|
+
src: P(Y0),
|
|
1850
1858
|
alt: ""
|
|
1851
1859
|
}, null, 8, Q0)
|
|
1852
1860
|
], !0)
|
|
1853
1861
|
], 2),
|
|
1854
|
-
|
|
1855
|
-
y("p", et,
|
|
1862
|
+
C(o.$slots, "default", {}, () => [
|
|
1863
|
+
y("p", et, T(o.description), 1)
|
|
1856
1864
|
], !0),
|
|
1857
1865
|
o.$slots.actions ? (p(), b("div", tt, [
|
|
1858
|
-
|
|
1859
|
-
])) :
|
|
1866
|
+
C(o.$slots, "actions", {}, void 0, !0)
|
|
1867
|
+
])) : D("", !0)
|
|
1860
1868
|
], 12, X0));
|
|
1861
1869
|
}
|
|
1862
|
-
}), to = /* @__PURE__ */
|
|
1870
|
+
}), to = /* @__PURE__ */ E(ot, [["__scopeId", "data-v-bb00a314"]]), at = /* @__PURE__ */ I({
|
|
1863
1871
|
name: "JtOverflowTooltipText",
|
|
1864
1872
|
__name: "index",
|
|
1865
1873
|
props: {
|
|
@@ -1869,13 +1877,15 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1869
1877
|
popperClass: { default: "" },
|
|
1870
1878
|
tag: { default: "span" },
|
|
1871
1879
|
effect: { default: "dark" },
|
|
1872
|
-
textClass: { default: "jt-overflow-tooltip-text--default" }
|
|
1880
|
+
textClass: { default: "jt-overflow-tooltip-text--default" },
|
|
1881
|
+
textStyle: {}
|
|
1873
1882
|
},
|
|
1874
1883
|
setup(d) {
|
|
1875
|
-
const e = d, t =
|
|
1884
|
+
const e = d, t = R(null), o = R(!1);
|
|
1876
1885
|
let r = null;
|
|
1877
1886
|
const i = m(() => ({
|
|
1878
|
-
maxWidth: typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth
|
|
1887
|
+
maxWidth: typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth,
|
|
1888
|
+
...e.textStyle
|
|
1879
1889
|
}));
|
|
1880
1890
|
function n() {
|
|
1881
1891
|
const u = t.value;
|
|
@@ -1885,38 +1895,40 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1885
1895
|
await ge(), n(), !(!window.ResizeObserver || !t.value) && (r = new ResizeObserver(n), r.observe(t.value));
|
|
1886
1896
|
}), Oe(() => {
|
|
1887
1897
|
r?.disconnect();
|
|
1888
|
-
}),
|
|
1889
|
-
() => [e.content, e.maxWidth],
|
|
1898
|
+
}), ce(
|
|
1899
|
+
() => [e.content, e.maxWidth, e.textStyle],
|
|
1890
1900
|
async () => {
|
|
1891
1901
|
await ge(), n();
|
|
1892
|
-
}
|
|
1902
|
+
},
|
|
1903
|
+
{ deep: !0 }
|
|
1893
1904
|
), (u, c) => {
|
|
1894
1905
|
const l = m2;
|
|
1895
|
-
return p(),
|
|
1906
|
+
return p(), F(l, J({
|
|
1896
1907
|
disabled: !o.value || !e.content,
|
|
1897
1908
|
content: e.content,
|
|
1898
1909
|
placement: e.placement,
|
|
1899
1910
|
effect: e.effect,
|
|
1900
|
-
"popper-class": e.popperClass
|
|
1901
|
-
|
|
1911
|
+
"popper-class": e.popperClass,
|
|
1912
|
+
"show-arrow": !1
|
|
1913
|
+
}, u.$attrs), {
|
|
1902
1914
|
default: L(() => [
|
|
1903
|
-
(p(),
|
|
1915
|
+
(p(), F(Ce(e.tag), {
|
|
1904
1916
|
ref_key: "textRef",
|
|
1905
1917
|
ref: t,
|
|
1906
1918
|
class: Y(["jt-overflow-tooltip-text", e.textClass]),
|
|
1907
1919
|
style: ee(i.value)
|
|
1908
1920
|
}, {
|
|
1909
1921
|
default: L(() => [
|
|
1910
|
-
X(
|
|
1922
|
+
X(T(e.content), 1)
|
|
1911
1923
|
]),
|
|
1912
1924
|
_: 1
|
|
1913
1925
|
}, 8, ["class", "style"]))
|
|
1914
1926
|
]),
|
|
1915
1927
|
_: 1
|
|
1916
|
-
},
|
|
1928
|
+
}, 16, ["disabled", "content", "placement", "effect", "popper-class"]);
|
|
1917
1929
|
};
|
|
1918
1930
|
}
|
|
1919
|
-
}), oo = /* @__PURE__ */
|
|
1931
|
+
}), oo = /* @__PURE__ */ E(at, [["__scopeId", "data-v-3e8ed286"]]), nt = "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", lt = "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", st = { class: "jt-confirm-dialog-panel" }, rt = { class: "jt-confirm-dialog-panel__header" }, it = { class: "jt-confirm-dialog-panel__title" }, ct = { class: "jt-confirm-dialog__body" }, dt = { class: "jt-confirm-dialog__desc" }, ut = { class: "jt-confirm-dialog__footer" }, pt = /* @__PURE__ */ I({
|
|
1920
1932
|
name: "JtConfirmDialog",
|
|
1921
1933
|
__name: "index",
|
|
1922
1934
|
props: {
|
|
@@ -1937,7 +1949,7 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1937
1949
|
src: nt,
|
|
1938
1950
|
alt: ""
|
|
1939
1951
|
}, null, -1)),
|
|
1940
|
-
y("span", null,
|
|
1952
|
+
y("span", null, T(o.title), 1)
|
|
1941
1953
|
]),
|
|
1942
1954
|
y("img", {
|
|
1943
1955
|
onClick: r[0] || (r[0] = (i) => t("close")),
|
|
@@ -1947,12 +1959,12 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1947
1959
|
})
|
|
1948
1960
|
]),
|
|
1949
1961
|
y("div", ct, [
|
|
1950
|
-
|
|
1951
|
-
y("p", dt,
|
|
1962
|
+
C(o.$slots, "default", {}, () => [
|
|
1963
|
+
y("p", dt, T(o.desc), 1)
|
|
1952
1964
|
], !0)
|
|
1953
1965
|
]),
|
|
1954
1966
|
y("footer", ut, [
|
|
1955
|
-
|
|
1967
|
+
U(Q, {
|
|
1956
1968
|
class: "jt-confirm-dialog__button jt-confirm-dialog__button--cancel",
|
|
1957
1969
|
size: "middle",
|
|
1958
1970
|
gray: "",
|
|
@@ -1960,11 +1972,11 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1960
1972
|
onClick: r[1] || (r[1] = (i) => t("close"))
|
|
1961
1973
|
}, {
|
|
1962
1974
|
default: L(() => [
|
|
1963
|
-
X(
|
|
1975
|
+
X(T(o.cancelText), 1)
|
|
1964
1976
|
]),
|
|
1965
1977
|
_: 1
|
|
1966
1978
|
}, 8, ["disabled"]),
|
|
1967
|
-
|
|
1979
|
+
U(Q, {
|
|
1968
1980
|
class: "jt-confirm-dialog__button jt-confirm-dialog__button--confirm",
|
|
1969
1981
|
size: "middle",
|
|
1970
1982
|
type: "primary",
|
|
@@ -1973,14 +1985,14 @@ const _0 = ["aria-label"], C0 = ["src"], y0 = /* @__PURE__ */ P({
|
|
|
1973
1985
|
onClick: r[2] || (r[2] = (i) => t("confirm"))
|
|
1974
1986
|
}, {
|
|
1975
1987
|
default: L(() => [
|
|
1976
|
-
X(
|
|
1988
|
+
X(T(o.confirmText), 1)
|
|
1977
1989
|
]),
|
|
1978
1990
|
_: 1
|
|
1979
1991
|
}, 8, ["loading", "disabled"])
|
|
1980
1992
|
])
|
|
1981
1993
|
]));
|
|
1982
1994
|
}
|
|
1983
|
-
}), mt = /* @__PURE__ */
|
|
1995
|
+
}), mt = /* @__PURE__ */ E(pt, [["__scopeId", "data-v-e320b303"]]), ft = {
|
|
1984
1996
|
title: j("common.数据启用提示", "数据启用提示"),
|
|
1985
1997
|
desc: j("common.点击确定后,将启用该条数据", "点击确定后,将启用该条数据"),
|
|
1986
1998
|
confirmText: j("common.确认"),
|
|
@@ -1990,10 +2002,10 @@ function ao(d = {}) {
|
|
|
1990
2002
|
const e = { ...ft, ...d };
|
|
1991
2003
|
return y2({
|
|
1992
2004
|
message: ({ confirm: t, cancel: o }) => {
|
|
1993
|
-
const r =
|
|
2005
|
+
const r = I({
|
|
1994
2006
|
name: "JtConfirmDialogMessage",
|
|
1995
2007
|
setup() {
|
|
1996
|
-
const i =
|
|
2008
|
+
const i = R(!1), n = async () => {
|
|
1997
2009
|
if (!i.value) {
|
|
1998
2010
|
i.value = !0;
|
|
1999
2011
|
try {
|
|
@@ -2033,7 +2045,7 @@ function ao(d = {}) {
|
|
|
2033
2045
|
throw e.onClose?.(), Error("close 用户手动关闭");
|
|
2034
2046
|
});
|
|
2035
2047
|
}
|
|
2036
|
-
const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__PURE__ */
|
|
2048
|
+
const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__PURE__ */ I({
|
|
2037
2049
|
name: "JtStatusStamp",
|
|
2038
2050
|
__name: "index",
|
|
2039
2051
|
props: {
|
|
@@ -2053,16 +2065,16 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2053
2065
|
"aria-label": t.value
|
|
2054
2066
|
}, [
|
|
2055
2067
|
y("span", vt, [
|
|
2056
|
-
|
|
2057
|
-
X(
|
|
2068
|
+
C(o.$slots, "default", {}, () => [
|
|
2069
|
+
X(T(t.value), 1)
|
|
2058
2070
|
], !0)
|
|
2059
2071
|
])
|
|
2060
2072
|
], 10, ht));
|
|
2061
2073
|
}
|
|
2062
|
-
}), no = /* @__PURE__ */
|
|
2074
|
+
}), no = /* @__PURE__ */ E(gt, [["__scopeId", "data-v-887e29c4"]]), Re = Symbol("JtTabContext"), _t = {
|
|
2063
2075
|
key: 0,
|
|
2064
2076
|
class: "jt-tab__extra"
|
|
2065
|
-
}, Ct = 4, yt = /* @__PURE__ */
|
|
2077
|
+
}, Ct = 4, yt = /* @__PURE__ */ I({
|
|
2066
2078
|
name: "JtTab",
|
|
2067
2079
|
__name: "index",
|
|
2068
2080
|
props: {
|
|
@@ -2073,14 +2085,14 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2073
2085
|
},
|
|
2074
2086
|
emits: ["update:modelValue", "change"],
|
|
2075
2087
|
setup(d, { emit: e }) {
|
|
2076
|
-
const t = d, o = e, r =
|
|
2088
|
+
const t = d, o = e, r = le(), i = m(() => t.modelValue), n = m(() => t.type), u = m(() => t.size), c = R(), l = R(!1), v = R(!1), g = m(() => [
|
|
2077
2089
|
`jt-tab--type-${t.type}`,
|
|
2078
2090
|
`jt-tab--size-${t.size}`,
|
|
2079
2091
|
{ "jt-tab--inset": t.type === "line" && t.inset !== !1 }
|
|
2080
2092
|
]);
|
|
2081
|
-
let
|
|
2082
|
-
function M(
|
|
2083
|
-
|
|
2093
|
+
let h = 0, B = 0, k = !1, a = null, S;
|
|
2094
|
+
function M(_) {
|
|
2095
|
+
_ !== t.modelValue && (o("update:modelValue", _), o("change", _));
|
|
2084
2096
|
}
|
|
2085
2097
|
g2(Re, {
|
|
2086
2098
|
modelValue: i,
|
|
@@ -2088,52 +2100,52 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2088
2100
|
size: u,
|
|
2089
2101
|
activate: M
|
|
2090
2102
|
});
|
|
2091
|
-
function
|
|
2092
|
-
const
|
|
2093
|
-
return l.value =
|
|
2094
|
-
}
|
|
2095
|
-
function
|
|
2096
|
-
const
|
|
2097
|
-
if (!
|
|
2098
|
-
const G =
|
|
2103
|
+
function A() {
|
|
2104
|
+
const _ = c.value, O = !!(_ && _.scrollWidth > _.clientWidth);
|
|
2105
|
+
return l.value = O, O;
|
|
2106
|
+
}
|
|
2107
|
+
function V(_) {
|
|
2108
|
+
const O = c.value;
|
|
2109
|
+
if (!O || !A()) return !1;
|
|
2110
|
+
const G = O.querySelector(
|
|
2099
2111
|
'[data-jt-tab-item="true"][aria-selected="true"]'
|
|
2100
2112
|
);
|
|
2101
2113
|
if (!G) return !1;
|
|
2102
|
-
const q = G.offsetLeft - (
|
|
2103
|
-
return
|
|
2114
|
+
const q = G.offsetLeft - (O.clientWidth - G.offsetWidth) / 2, se = O.scrollWidth - O.clientWidth, de = Math.min(Math.max(q, 0), se);
|
|
2115
|
+
return O.scrollTo({ left: de, behavior: _ }), !0;
|
|
2104
2116
|
}
|
|
2105
|
-
async function
|
|
2106
|
-
await ge(),
|
|
2117
|
+
async function H(_) {
|
|
2118
|
+
await ge(), V(_);
|
|
2107
2119
|
}
|
|
2108
|
-
function
|
|
2109
|
-
|
|
2120
|
+
function K(_) {
|
|
2121
|
+
_ && a !== null && _.pointerId !== a || (window.removeEventListener("pointermove", f), window.removeEventListener("pointerup", K), window.removeEventListener("pointercancel", K), a = null, v.value = !1);
|
|
2110
2122
|
}
|
|
2111
|
-
function
|
|
2112
|
-
const
|
|
2113
|
-
if (!
|
|
2114
|
-
if (
|
|
2115
|
-
|
|
2123
|
+
function f(_) {
|
|
2124
|
+
const O = c.value;
|
|
2125
|
+
if (!O || a !== _.pointerId) return;
|
|
2126
|
+
if (_.pointerType === "mouse" && _.buttons !== 1) {
|
|
2127
|
+
K(_);
|
|
2116
2128
|
return;
|
|
2117
2129
|
}
|
|
2118
|
-
const G =
|
|
2119
|
-
!
|
|
2130
|
+
const G = _.clientX - h;
|
|
2131
|
+
!k && Math.abs(G) < Ct || (k = !0, v.value = !0, O.scrollLeft = B - G, _.preventDefault());
|
|
2120
2132
|
}
|
|
2121
|
-
function
|
|
2122
|
-
const
|
|
2123
|
-
|
|
2133
|
+
function $(_) {
|
|
2134
|
+
const O = c.value;
|
|
2135
|
+
_.pointerType === "mouse" && (_.button !== 0 || _.buttons !== 1) || !O || !A() || (a = _.pointerId, h = _.clientX, B = O.scrollLeft, k = !1, v.value = !0, window.addEventListener("pointermove", f), window.addEventListener("pointerup", K), window.addEventListener("pointercancel", K));
|
|
2124
2136
|
}
|
|
2125
|
-
function
|
|
2126
|
-
|
|
2137
|
+
function W(_) {
|
|
2138
|
+
k && (_.preventDefault(), _.stopPropagation(), k = !1);
|
|
2127
2139
|
}
|
|
2128
|
-
function
|
|
2140
|
+
function w(_) {
|
|
2129
2141
|
const G = {
|
|
2130
2142
|
ArrowRight: 1,
|
|
2131
2143
|
ArrowDown: 1,
|
|
2132
2144
|
ArrowLeft: -1,
|
|
2133
2145
|
ArrowUp: -1
|
|
2134
|
-
}[
|
|
2135
|
-
if (!G && !q && !
|
|
2136
|
-
const de =
|
|
2146
|
+
}[_.key], q = _.key === "Home", se = _.key === "End";
|
|
2147
|
+
if (!G && !q && !se) return;
|
|
2148
|
+
const de = _.currentTarget, te = Array.from(
|
|
2137
2149
|
de.querySelectorAll(
|
|
2138
2150
|
'[data-jt-tab-item="true"]:not([aria-disabled="true"])'
|
|
2139
2151
|
)
|
|
@@ -2141,43 +2153,43 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2141
2153
|
(Le) => Le === document.activeElement
|
|
2142
2154
|
);
|
|
2143
2155
|
if (!te.length) return;
|
|
2144
|
-
|
|
2145
|
-
const me = q ? 0 :
|
|
2156
|
+
_.preventDefault();
|
|
2157
|
+
const me = q ? 0 : se ? te.length - 1 : (Math.max(we, 0) + G + te.length) % te.length, fe = te[me];
|
|
2146
2158
|
fe?.focus(), fe?.click();
|
|
2147
2159
|
}
|
|
2148
|
-
return
|
|
2160
|
+
return ce(
|
|
2149
2161
|
() => t.modelValue,
|
|
2150
2162
|
() => {
|
|
2151
|
-
|
|
2163
|
+
H("smooth");
|
|
2152
2164
|
}
|
|
2153
2165
|
), Je(() => {
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
}),
|
|
2166
|
+
A(), H("auto"), !(typeof ResizeObserver > "u" || !c.value) && (S = new ResizeObserver(() => {
|
|
2167
|
+
A(), H("auto");
|
|
2168
|
+
}), S.observe(c.value));
|
|
2157
2169
|
}), Oe(() => {
|
|
2158
|
-
|
|
2159
|
-
}), (
|
|
2170
|
+
K(), S?.disconnect();
|
|
2171
|
+
}), (_, O) => (p(), b("div", J({
|
|
2160
2172
|
class: ["jt-tab", g.value],
|
|
2161
2173
|
role: "tablist"
|
|
2162
|
-
},
|
|
2174
|
+
}, _.$attrs, { onKeydown: w }), [
|
|
2163
2175
|
y("div", {
|
|
2164
2176
|
ref_key: "listRef",
|
|
2165
2177
|
ref: c,
|
|
2166
2178
|
class: Y(["jt-tab__list", {
|
|
2167
2179
|
"is-scrollable": l.value,
|
|
2168
|
-
"is-dragging":
|
|
2180
|
+
"is-dragging": v.value
|
|
2169
2181
|
}]),
|
|
2170
|
-
onPointerdown:
|
|
2171
|
-
onClickCapture:
|
|
2182
|
+
onPointerdown: $,
|
|
2183
|
+
onClickCapture: W
|
|
2172
2184
|
}, [
|
|
2173
|
-
_
|
|
2185
|
+
C(_.$slots, "default", {}, void 0, !0)
|
|
2174
2186
|
], 34),
|
|
2175
|
-
|
|
2176
|
-
_
|
|
2177
|
-
])) :
|
|
2187
|
+
P(r).extra ? (p(), b("div", _t, [
|
|
2188
|
+
C(_.$slots, "extra", {}, void 0, !0)
|
|
2189
|
+
])) : D("", !0)
|
|
2178
2190
|
], 16));
|
|
2179
2191
|
}
|
|
2180
|
-
}), lo = /* @__PURE__ */
|
|
2192
|
+
}), lo = /* @__PURE__ */ E(yt, [["__scopeId", "data-v-28d7f01e"]]), bt = ["aria-selected", "aria-disabled", "tabindex", "disabled", "onKeydown"], wt = /* @__PURE__ */ I({
|
|
2181
2193
|
name: "JtTabItem",
|
|
2182
2194
|
__name: "JtTabItem",
|
|
2183
2195
|
props: {
|
|
@@ -2196,7 +2208,7 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2196
2208
|
function l() {
|
|
2197
2209
|
r.value || t?.activate(e.value);
|
|
2198
2210
|
}
|
|
2199
|
-
return (
|
|
2211
|
+
return (v, g) => (p(), b("button", {
|
|
2200
2212
|
class: Y(["jt-tab__item", c.value]),
|
|
2201
2213
|
type: "button",
|
|
2202
2214
|
role: "tab",
|
|
@@ -2207,18 +2219,18 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2207
2219
|
disabled: r.value,
|
|
2208
2220
|
onClick: l,
|
|
2209
2221
|
onKeydown: [
|
|
2210
|
-
Se(
|
|
2211
|
-
Se(
|
|
2222
|
+
Se(ie(l, ["prevent"]), ["enter"]),
|
|
2223
|
+
Se(ie(l, ["prevent"]), ["space"])
|
|
2212
2224
|
]
|
|
2213
2225
|
}, [
|
|
2214
|
-
|
|
2226
|
+
C(v.$slots, "default", {}, void 0, !0)
|
|
2215
2227
|
], 42, bt));
|
|
2216
2228
|
}
|
|
2217
|
-
}), so = /* @__PURE__ */
|
|
2229
|
+
}), so = /* @__PURE__ */ E(wt, [["__scopeId", "data-v-9da03600"]]), Lt = "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", $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='%23333333'/%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='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", kt = { class: "jt-tree__node" }, jt = ["aria-label", "onClick"], Bt = ["src"], St = {
|
|
2218
2230
|
key: 1,
|
|
2219
2231
|
class: "jt-tree__toggle-placeholder",
|
|
2220
2232
|
"aria-hidden": "true"
|
|
2221
|
-
}, Mt = { class: "jt-tree__content" }, Tt = { class: "jt-tree__label" }, Ft = /* @__PURE__ */
|
|
2233
|
+
}, Mt = { class: "jt-tree__content" }, Tt = { class: "jt-tree__label" }, Ft = /* @__PURE__ */ I({
|
|
2222
2234
|
name: "JtTree",
|
|
2223
2235
|
inheritAttrs: !1,
|
|
2224
2236
|
__name: "index",
|
|
@@ -2236,47 +2248,47 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2236
2248
|
},
|
|
2237
2249
|
emits: ["update:currentKey", "current-change"],
|
|
2238
2250
|
setup(d, { expose: e, emit: t }) {
|
|
2239
|
-
const o = d, r = t, i =
|
|
2240
|
-
function n(
|
|
2241
|
-
return
|
|
2251
|
+
const o = d, r = t, i = R();
|
|
2252
|
+
function n(h) {
|
|
2253
|
+
return h.expanded ? h.isCurrent ? Lt : $t : xt;
|
|
2242
2254
|
}
|
|
2243
|
-
function u(
|
|
2244
|
-
if (
|
|
2245
|
-
|
|
2255
|
+
function u(h) {
|
|
2256
|
+
if (h.expanded) {
|
|
2257
|
+
h.collapse();
|
|
2246
2258
|
return;
|
|
2247
2259
|
}
|
|
2248
|
-
|
|
2260
|
+
h.expand();
|
|
2249
2261
|
}
|
|
2250
|
-
function c(
|
|
2251
|
-
const
|
|
2252
|
-
|
|
2262
|
+
function c(h, B) {
|
|
2263
|
+
const k = B?.key;
|
|
2264
|
+
k !== o.currentKey && r("update:currentKey", k), r("current-change", h, B);
|
|
2253
2265
|
}
|
|
2254
|
-
|
|
2266
|
+
ce(
|
|
2255
2267
|
() => o.currentKey,
|
|
2256
|
-
(
|
|
2268
|
+
(h) => i.value?.setCurrentKey(h ?? null),
|
|
2257
2269
|
{ flush: "post" }
|
|
2258
2270
|
);
|
|
2259
|
-
function l(
|
|
2260
|
-
return i.value?.getNode(
|
|
2271
|
+
function l(h) {
|
|
2272
|
+
return i.value?.getNode(h);
|
|
2261
2273
|
}
|
|
2262
|
-
function
|
|
2274
|
+
function v() {
|
|
2263
2275
|
return i.value?.getCurrentNode();
|
|
2264
2276
|
}
|
|
2265
|
-
function g(
|
|
2266
|
-
i.value?.filter(
|
|
2277
|
+
function g(h) {
|
|
2278
|
+
i.value?.filter(h);
|
|
2267
2279
|
}
|
|
2268
2280
|
return e({
|
|
2269
2281
|
treeRef: i,
|
|
2270
2282
|
getNode: l,
|
|
2271
|
-
getCurrentNode:
|
|
2283
|
+
getCurrentNode: v,
|
|
2272
2284
|
filter: g
|
|
2273
|
-
}), (
|
|
2274
|
-
const
|
|
2275
|
-
return p(),
|
|
2285
|
+
}), (h, B) => {
|
|
2286
|
+
const k = f2;
|
|
2287
|
+
return p(), F(k, J({
|
|
2276
2288
|
ref_key: "treeRef",
|
|
2277
2289
|
ref: i,
|
|
2278
2290
|
class: "jt-tree"
|
|
2279
|
-
},
|
|
2291
|
+
}, h.$attrs, {
|
|
2280
2292
|
data: o.data,
|
|
2281
2293
|
"node-key": o.nodeKey,
|
|
2282
2294
|
props: o.props,
|
|
@@ -2289,14 +2301,14 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2289
2301
|
"aria-label": o.ariaLabel,
|
|
2290
2302
|
onCurrentChange: c
|
|
2291
2303
|
}), {
|
|
2292
|
-
default: L(({ node: a, data:
|
|
2304
|
+
default: L(({ node: a, data: S }) => [
|
|
2293
2305
|
y("div", kt, [
|
|
2294
2306
|
a.isLeaf ? (p(), b("span", St)) : (p(), b("button", {
|
|
2295
2307
|
key: 0,
|
|
2296
2308
|
class: "jt-tree__toggle",
|
|
2297
2309
|
type: "button",
|
|
2298
|
-
"aria-label": a.expanded ?
|
|
2299
|
-
onClick:
|
|
2310
|
+
"aria-label": a.expanded ? P(j)("common.收起{label}", "收起{label}", { label: a.label }) : P(j)("common.展开{label}", "展开{label}", { label: a.label }),
|
|
2311
|
+
onClick: ie((M) => u(a), ["stop"])
|
|
2300
2312
|
}, [
|
|
2301
2313
|
y("img", {
|
|
2302
2314
|
class: "jt-tree__toggle-icon",
|
|
@@ -2306,36 +2318,36 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2306
2318
|
}, null, 8, Bt)
|
|
2307
2319
|
], 8, jt)),
|
|
2308
2320
|
y("div", Mt, [
|
|
2309
|
-
|
|
2321
|
+
C(h.$slots, "default", {
|
|
2310
2322
|
node: a,
|
|
2311
|
-
data:
|
|
2323
|
+
data: S
|
|
2312
2324
|
}, () => [
|
|
2313
|
-
y("span", Tt,
|
|
2325
|
+
y("span", Tt, T(a.label), 1)
|
|
2314
2326
|
], !0)
|
|
2315
2327
|
]),
|
|
2316
|
-
|
|
2328
|
+
h.$slots.actions ? (p(), b("div", {
|
|
2317
2329
|
key: 2,
|
|
2318
2330
|
class: "jt-tree__actions",
|
|
2319
|
-
onClick: B[0] || (B[0] =
|
|
2331
|
+
onClick: B[0] || (B[0] = ie(() => {
|
|
2320
2332
|
}, ["stop"])),
|
|
2321
|
-
onKeydown: B[1] || (B[1] =
|
|
2333
|
+
onKeydown: B[1] || (B[1] = ie(() => {
|
|
2322
2334
|
}, ["stop"]))
|
|
2323
2335
|
}, [
|
|
2324
|
-
|
|
2336
|
+
C(h.$slots, "actions", {
|
|
2325
2337
|
node: a,
|
|
2326
|
-
data:
|
|
2338
|
+
data: S
|
|
2327
2339
|
}, void 0, !0)
|
|
2328
|
-
], 32)) :
|
|
2340
|
+
], 32)) : D("", !0)
|
|
2329
2341
|
])
|
|
2330
2342
|
]),
|
|
2331
2343
|
_: 3
|
|
2332
2344
|
}, 16, ["data", "node-key", "props", "lazy", "load", "indent", "current-node-key", "highlight-current", "expand-on-click-node", "aria-label"]);
|
|
2333
2345
|
};
|
|
2334
2346
|
}
|
|
2335
|
-
}), ro = /* @__PURE__ */
|
|
2347
|
+
}), ro = /* @__PURE__ */ E(Ft, [["__scopeId", "data-v-4279b203"]]), Vt = {
|
|
2336
2348
|
key: 0,
|
|
2337
2349
|
class: "jt-tree-table-layout__tree"
|
|
2338
|
-
}, Pt = { class: "jt-tree-table-layout__content" }, It = /* @__PURE__ */
|
|
2350
|
+
}, Pt = { class: "jt-tree-table-layout__content" }, It = /* @__PURE__ */ I({
|
|
2339
2351
|
name: "JtTreeTableLayout",
|
|
2340
2352
|
__name: "index",
|
|
2341
2353
|
props: {
|
|
@@ -2358,21 +2370,21 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2358
2370
|
class: Y(["jt-tree-table-layout", { "is-collapsed": e.collapsed }]),
|
|
2359
2371
|
style: ee(o.value)
|
|
2360
2372
|
}, [
|
|
2361
|
-
e.collapsed ?
|
|
2362
|
-
|
|
2373
|
+
e.collapsed ? D("", !0) : (p(), b("aside", Vt, [
|
|
2374
|
+
C(r.$slots, "tree", {}, void 0, !0)
|
|
2363
2375
|
])),
|
|
2364
2376
|
y("div", Pt, [
|
|
2365
|
-
|
|
2377
|
+
C(r.$slots, "default", {}, void 0, !0)
|
|
2366
2378
|
])
|
|
2367
2379
|
], 6));
|
|
2368
2380
|
}
|
|
2369
|
-
}), io = /* @__PURE__ */
|
|
2381
|
+
}), io = /* @__PURE__ */ E(It, [["__scopeId", "data-v-28a5e162"]]), Et = { class: "jt-page-header__title" }, zt = { key: 0 }, Dt = { key: 2 }, Ht = {
|
|
2370
2382
|
key: 0,
|
|
2371
2383
|
class: "jt-page-header__description"
|
|
2372
2384
|
}, Jt = {
|
|
2373
2385
|
key: 0,
|
|
2374
2386
|
class: "jt-page-header__operates"
|
|
2375
|
-
}, Ot = /* @__PURE__ */
|
|
2387
|
+
}, Ot = /* @__PURE__ */ I({
|
|
2376
2388
|
name: "JtPageHeader",
|
|
2377
2389
|
__name: "index",
|
|
2378
2390
|
props: {
|
|
@@ -2384,49 +2396,49 @@ const ht = ["aria-label"], vt = { class: "jt-status-stamp__band" }, gt = /* @__P
|
|
|
2384
2396
|
},
|
|
2385
2397
|
emits: ["operate-click"],
|
|
2386
2398
|
setup(d, { emit: e }) {
|
|
2387
|
-
const t = d, o = e, r =
|
|
2399
|
+
const t = d, o = e, r = le(), i = m(() => t.operates.length > 0 || !!r.operates), n = m(() => [
|
|
2388
2400
|
`jt-page-header--size-${t.size}`,
|
|
2389
2401
|
{ "jt-page-header--gray": t.gray }
|
|
2390
2402
|
]);
|
|
2391
2403
|
function u(c, l) {
|
|
2392
2404
|
c.onClick?.(c, l), o("operate-click", c, l);
|
|
2393
2405
|
}
|
|
2394
|
-
return (c, l) => (p(), b("div",
|
|
2406
|
+
return (c, l) => (p(), b("div", J({
|
|
2395
2407
|
class: ["jt-page-header", n.value]
|
|
2396
2408
|
}, c.$attrs), [
|
|
2397
2409
|
y("div", Et, [
|
|
2398
|
-
|
|
2399
|
-
c.title ? (p(), b("span", zt,
|
|
2400
|
-
], !0) :
|
|
2401
|
-
|
|
2402
|
-
c.description ? (p(), b("span", Ht,
|
|
2410
|
+
P(r).title ? C(c.$slots, "title", { key: 0 }, () => [
|
|
2411
|
+
c.title ? (p(), b("span", zt, T(c.title), 1)) : D("", !0)
|
|
2412
|
+
], !0) : P(r).default ? C(c.$slots, "default", { key: 1 }, void 0, !0) : c.title ? (p(), b("span", Dt, T(c.title), 1)) : D("", !0),
|
|
2413
|
+
C(c.$slots, "description", {}, () => [
|
|
2414
|
+
c.description ? (p(), b("span", Ht, T(c.description), 1)) : D("", !0)
|
|
2403
2415
|
], !0)
|
|
2404
2416
|
]),
|
|
2405
2417
|
i.value ? (p(), b("div", Jt, [
|
|
2406
|
-
|
|
2407
|
-
(p(!0), b(oe, null, N(c.operates, (
|
|
2408
|
-
key:
|
|
2418
|
+
C(c.$slots, "operates", { operates: c.operates }, () => [
|
|
2419
|
+
(p(!0), b(oe, null, N(c.operates, (v) => (p(), F(P(Q), J({
|
|
2420
|
+
key: v.key ?? v.label,
|
|
2409
2421
|
ref_for: !0
|
|
2410
|
-
},
|
|
2411
|
-
type:
|
|
2412
|
-
disabled:
|
|
2413
|
-
loading:
|
|
2414
|
-
plain:
|
|
2415
|
-
text:
|
|
2416
|
-
link:
|
|
2417
|
-
icon:
|
|
2418
|
-
onClick: (g) => u(
|
|
2422
|
+
}, v.buttonProps, {
|
|
2423
|
+
type: v.type,
|
|
2424
|
+
disabled: v.disabled,
|
|
2425
|
+
loading: v.loading,
|
|
2426
|
+
plain: v.plain,
|
|
2427
|
+
text: v.text,
|
|
2428
|
+
link: v.link,
|
|
2429
|
+
icon: v.icon,
|
|
2430
|
+
onClick: (g) => u(v, g)
|
|
2419
2431
|
}), {
|
|
2420
2432
|
default: L(() => [
|
|
2421
|
-
y("span", null,
|
|
2433
|
+
y("span", null, T(v.label), 1)
|
|
2422
2434
|
]),
|
|
2423
2435
|
_: 2
|
|
2424
2436
|
}, 1040, ["type", "disabled", "loading", "plain", "text", "link", "icon", "onClick"]))), 128))
|
|
2425
2437
|
], !0)
|
|
2426
|
-
])) :
|
|
2438
|
+
])) : D("", !0)
|
|
2427
2439
|
], 16));
|
|
2428
2440
|
}
|
|
2429
|
-
}), co = /* @__PURE__ */
|
|
2441
|
+
}), co = /* @__PURE__ */ E(Ot, [["__scopeId", "data-v-6831eb88"]]);
|
|
2430
2442
|
export {
|
|
2431
2443
|
Gt as JtActionMenu,
|
|
2432
2444
|
Nt as JtAttachmentList,
|