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