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