@kayak-sj/design 1.0.45 → 1.0.46
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/assets/{components-BbBdjo9j.css → components-BQDA0jTK.css} +1 -1
- package/dist/chunks/{Complex-BggSDwy7.js → Complex-Bqv0gk7C.js} +1 -1
- package/dist/chunks/{components-YIuGuaaJ.js → components-T_gVlZql.js} +575 -575
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { a as t, d as n, i as r, l as i, n as a, r as o, u as s } from "./editorValue-DSKvW8ty.js";
|
|
3
|
-
import { Fragment as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as h, createTextVNode as g, createVNode as _, defineAsyncComponent as v, defineComponent as y, guardReactiveProps as b, h as x, inject as S, isRef as
|
|
4
|
-
import { ElButton as
|
|
3
|
+
import { Fragment as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as h, createTextVNode as g, createVNode as _, defineAsyncComponent as v, defineComponent as y, guardReactiveProps as b, h as x, inject as S, isRef as C, mergeDefaults as w, mergeModels as T, mergeProps as E, nextTick as D, normalizeClass as O, normalizeProps as k, normalizeStyle as A, onBeforeUnmount as j, onMounted as ee, openBlock as M, provide as N, reactive as te, ref as P, renderList as F, renderSlot as I, resolveComponent as ne, resolveDirective as re, resolveDynamicComponent as ie, shallowRef as ae, toDisplayString as L, toRef as R, toValue as z, unref as B, useAttrs as oe, useModel as V, useSlots as H, useTemplateRef as U, vShow as se, watch as W, withCtx as G, withDirectives as ce, withModifiers as le } from "vue";
|
|
4
|
+
import { ElButton as ue, ElCard as de, ElCascader as fe, ElCheckbox as pe, ElCheckboxGroup as me, ElCollapse as he, ElCollapseItem as ge, ElDatePicker as _e, ElDialog as ve, ElDivider as ye, ElForm as be, ElFormItem as xe, ElIcon as Se, ElImageViewer as Ce, ElInput as we, ElInputNumber as Te, ElMessage as Ee, ElOption as De, ElPagination as Oe, ElPopover as ke, ElProgress as Ae, ElRadio as je, ElRadioButton as Me, ElRadioGroup as Ne, ElSelect as Pe, ElTable as Fe, ElTableColumn as K, ElTag as Ie, ElTimePicker as Le, ElTooltip as Re, ElTreeSelect as ze, ElUpload as Be } from "element-plus";
|
|
5
5
|
import q from "dayjs";
|
|
6
6
|
import { cloneDeep as J } from "lodash-es";
|
|
7
7
|
import { useDebounceFn as Ve, useEventListener as He, useLocalStorage as Ue } from "@vueuse/core";
|
|
8
8
|
import { Delete as We, Download as Ge, Loading as Ke, Plus as qe, VideoPlay as Je, ZoomIn as Ye } from "@element-plus/icons-vue";
|
|
9
9
|
import * as Xe from "lucide-vue-next";
|
|
10
10
|
import Ze from "sortablejs";
|
|
11
|
-
import '../assets/components-
|
|
11
|
+
import '../assets/components-BQDA0jTK.css';//#region \0rolldown/runtime.js
|
|
12
12
|
var Qe = Object.defineProperty, $e = (e, t) => {
|
|
13
13
|
let n = {};
|
|
14
14
|
for (var r in e) Qe(n, r, {
|
|
@@ -64,8 +64,8 @@ var Y = /* @__PURE__ */ y({
|
|
|
64
64
|
name: "KButton",
|
|
65
65
|
__name: "KButton",
|
|
66
66
|
setup(e) {
|
|
67
|
-
return (e, t) => (
|
|
68
|
-
default:
|
|
67
|
+
return (e, t) => (M(), d(B(ue), k(b(e.$attrs)), {
|
|
68
|
+
default: G(() => [I(e.$slots, "default")]),
|
|
69
69
|
_: 3
|
|
70
70
|
}, 16));
|
|
71
71
|
}
|
|
@@ -92,25 +92,25 @@ var Y = /* @__PURE__ */ y({
|
|
|
92
92
|
iconSize: { default: 22 }
|
|
93
93
|
},
|
|
94
94
|
setup(e) {
|
|
95
|
-
return (t, n) => (
|
|
96
|
-
e.icon || t.$slots.icon ? (
|
|
95
|
+
return (t, n) => (M(), p("div", nt, [
|
|
96
|
+
e.icon || t.$slots.icon ? (M(), p("div", rt, [I(t.$slots, "icon", {}, () => [(M(), d(ie(e.icon), {
|
|
97
97
|
class: "k-dialog-header__icon",
|
|
98
98
|
size: e.iconSize,
|
|
99
99
|
"stroke-width": 2.2
|
|
100
100
|
}, null, 8, ["size"]))])])) : f("", !0),
|
|
101
101
|
m("div", it, [
|
|
102
|
-
e.title || t.$slots.title ? (
|
|
103
|
-
e.description || t.$slots.description ? (
|
|
104
|
-
|
|
102
|
+
e.title || t.$slots.title ? (M(), p("p", at, [I(t.$slots, "title", {}, () => [g(L(e.title), 1)])])) : f("", !0),
|
|
103
|
+
e.description || t.$slots.description ? (M(), p("p", ot, [I(t.$slots, "description", {}, () => [g(L(e.description), 1)])])) : f("", !0),
|
|
104
|
+
I(t.$slots, "default")
|
|
105
105
|
]),
|
|
106
|
-
t.$slots.extra ? (
|
|
106
|
+
t.$slots.extra ? (M(), p("div", st, [I(t.$slots, "extra")])) : f("", !0)
|
|
107
107
|
]));
|
|
108
108
|
}
|
|
109
109
|
}), lt = { class: "k-dialog__body" }, ut = /* @__PURE__ */ y({
|
|
110
110
|
name: "KDialog",
|
|
111
111
|
inheritAttrs: !1,
|
|
112
112
|
__name: "KDialog",
|
|
113
|
-
props: /*@__PURE__*/
|
|
113
|
+
props: /*@__PURE__*/ T({
|
|
114
114
|
title: { default: "" },
|
|
115
115
|
description: { default: "" },
|
|
116
116
|
icon: { default: void 0 },
|
|
@@ -146,13 +146,13 @@ var Y = /* @__PURE__ */ y({
|
|
|
146
146
|
},
|
|
147
147
|
visibleModifiers: {}
|
|
148
148
|
}),
|
|
149
|
-
emits: /*@__PURE__*/
|
|
149
|
+
emits: /*@__PURE__*/ T([
|
|
150
150
|
"confirm",
|
|
151
151
|
"cancel",
|
|
152
152
|
"closed"
|
|
153
153
|
], ["update:visible"]),
|
|
154
154
|
setup(e, { emit: t }) {
|
|
155
|
-
let n =
|
|
155
|
+
let n = V(e, "visible"), r = e, i = t, a = oe(), o = H(), s = u(() => r.variant === "hero"), c = u(() => s.value ? void 0 : r.title), l = u(() => [
|
|
156
156
|
"k-dialog",
|
|
157
157
|
s.value ? "k-dialog--hero" : void 0,
|
|
158
158
|
a.class
|
|
@@ -172,26 +172,26 @@ var Y = /* @__PURE__ */ y({
|
|
|
172
172
|
function S() {
|
|
173
173
|
x(), i("cancel");
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function C() {
|
|
176
176
|
i("confirm");
|
|
177
177
|
}
|
|
178
|
-
return (t, r) => (
|
|
178
|
+
return (t, r) => (M(), d(B(ve), E({
|
|
179
179
|
modelValue: n.value,
|
|
180
180
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
181
181
|
class: l.value,
|
|
182
182
|
title: c.value
|
|
183
183
|
}, p.value, { onClosed: r[1] ||= (e) => i("closed") }), h({
|
|
184
|
-
default:
|
|
184
|
+
default: G(() => [m("div", lt, [I(t.$slots, "default")])]),
|
|
185
185
|
_: 2
|
|
186
186
|
}, [b.value ? {
|
|
187
187
|
name: "header",
|
|
188
|
-
fn:
|
|
188
|
+
fn: G(() => [I(t.$slots, "header", {}, () => [_(ct, {
|
|
189
189
|
title: e.title,
|
|
190
190
|
description: e.description,
|
|
191
191
|
icon: e.icon
|
|
192
|
-
}, h({ _: 2 }, [
|
|
192
|
+
}, h({ _: 2 }, [B(o).icon ? {
|
|
193
193
|
name: "icon",
|
|
194
|
-
fn:
|
|
194
|
+
fn: G(() => [I(t.$slots, "icon")]),
|
|
195
195
|
key: "0"
|
|
196
196
|
} : void 0]), 1032, [
|
|
197
197
|
"title",
|
|
@@ -199,25 +199,25 @@ var Y = /* @__PURE__ */ y({
|
|
|
199
199
|
"icon"
|
|
200
200
|
])])]),
|
|
201
201
|
key: "0"
|
|
202
|
-
} : void 0,
|
|
202
|
+
} : void 0, B(o).footer ? {
|
|
203
203
|
name: "footer",
|
|
204
|
-
fn:
|
|
204
|
+
fn: G(() => [I(t.$slots, "footer")]),
|
|
205
205
|
key: "1"
|
|
206
|
-
} : !
|
|
206
|
+
} : !B(o).footer && (e.showConfirm !== !1 || e.showCancel !== !1) ? {
|
|
207
207
|
name: "footer",
|
|
208
|
-
fn:
|
|
208
|
+
fn: G(() => [e.showCancel === !1 ? f("", !0) : (M(), d(Y, {
|
|
209
209
|
key: 0,
|
|
210
210
|
onClick: S
|
|
211
211
|
}, {
|
|
212
|
-
default:
|
|
212
|
+
default: G(() => [g(L(y.value), 1)]),
|
|
213
213
|
_: 1
|
|
214
|
-
})), e.showConfirm === !1 ? f("", !0) : (
|
|
214
|
+
})), e.showConfirm === !1 ? f("", !0) : (M(), d(Y, {
|
|
215
215
|
key: 1,
|
|
216
216
|
type: "primary",
|
|
217
217
|
loading: e.confirmLoading,
|
|
218
|
-
onClick:
|
|
218
|
+
onClick: C
|
|
219
219
|
}, {
|
|
220
|
-
default:
|
|
220
|
+
default: G(() => [g(L(v.value), 1)]),
|
|
221
221
|
_: 1
|
|
222
222
|
}, 8, ["loading"]))]),
|
|
223
223
|
key: "2"
|
|
@@ -368,7 +368,7 @@ function Ct(e, t) {
|
|
|
368
368
|
return n == null ? yt(e) : bt(e, n, t);
|
|
369
369
|
}
|
|
370
370
|
function wt(e) {
|
|
371
|
-
let t =
|
|
371
|
+
let t = te({}), n = {}, r = null, i = u(() => {
|
|
372
372
|
let t = /* @__PURE__ */ new Map();
|
|
373
373
|
return e.formConfigs.value.forEach((e) => t.set(e.id, e)), t;
|
|
374
374
|
});
|
|
@@ -495,15 +495,15 @@ function wt(e) {
|
|
|
495
495
|
t[r] = X(i);
|
|
496
496
|
}), l();
|
|
497
497
|
}
|
|
498
|
-
return
|
|
498
|
+
return W(o, (t, n) => {
|
|
499
499
|
if (!n || t.fieldSignature !== n.fieldSignature) {
|
|
500
500
|
d(e.formConfigs.value);
|
|
501
501
|
return;
|
|
502
502
|
}
|
|
503
503
|
t.displaySignature !== n.displaySignature && p(e.formConfigs.value);
|
|
504
|
-
}, { immediate: !0 }),
|
|
504
|
+
}, { immediate: !0 }), W(() => e.data?.value, (t) => {
|
|
505
505
|
xt(e) || t && Object.keys(t).length && m(t);
|
|
506
|
-
}, { deep: !0 }),
|
|
506
|
+
}, { deep: !0 }), W(() => e.modelValue?.value, (t) => {
|
|
507
507
|
!xt(e) || !t || t !== r && f(t);
|
|
508
508
|
}, {
|
|
509
509
|
deep: !0,
|
|
@@ -624,7 +624,7 @@ var zt = {
|
|
|
624
624
|
emits: ["update:modelValue"],
|
|
625
625
|
setup(e, { emit: t }) {
|
|
626
626
|
let n = e, r = t, i = u(() => Ft(n.modelValue)), a = u(() => n.cascaderProps ?? n.props), o = u(() => Rt(n.options, n.modelValue, a.value, n.separator ?? " / "));
|
|
627
|
-
return (t, n) => e.readonly ? (
|
|
627
|
+
return (t, n) => e.readonly ? (M(), p("span", zt, L(o.value), 1)) : (M(), d(B(fe), {
|
|
628
628
|
key: 1,
|
|
629
629
|
"model-value": i.value,
|
|
630
630
|
options: e.options ?? [],
|
|
@@ -666,11 +666,11 @@ var zt = {
|
|
|
666
666
|
function r(e) {
|
|
667
667
|
return n(e) === "";
|
|
668
668
|
}
|
|
669
|
-
let i = e, a = t, o =
|
|
669
|
+
let i = e, a = t, o = P([]), s = P(!1), l = P(!1), m = u(() => (i.options ?? []).map((e) => e.value)), h = u(() => {
|
|
670
670
|
let e = (i.options ?? []).filter((e) => o.value.includes(e.value)).map((e) => e.label);
|
|
671
671
|
return e.length ? e.join(", ") : "--";
|
|
672
672
|
});
|
|
673
|
-
|
|
673
|
+
W(() => i.modelValue, (e) => {
|
|
674
674
|
o.value = kt(e), v(o.value);
|
|
675
675
|
}, { immediate: !0 });
|
|
676
676
|
function v(e) {
|
|
@@ -684,7 +684,7 @@ var zt = {
|
|
|
684
684
|
function b(e) {
|
|
685
685
|
o.value = e, v(e), a("update:modelValue", e);
|
|
686
686
|
}
|
|
687
|
-
return (t, i) => (
|
|
687
|
+
return (t, i) => (M(), p("div", Vt, [e.readonly ? (M(), p("span", Ht, L(h.value), 1)) : (M(), p(c, { key: 1 }, [e.showSelectAll ? (M(), d(B(pe), {
|
|
688
688
|
key: 0,
|
|
689
689
|
modelValue: s.value,
|
|
690
690
|
"onUpdate:modelValue": i[0] ||= (e) => s.value = e,
|
|
@@ -692,28 +692,28 @@ var zt = {
|
|
|
692
692
|
disabled: e.disabled,
|
|
693
693
|
onChange: y
|
|
694
694
|
}, {
|
|
695
|
-
default:
|
|
695
|
+
default: G(() => [...i[1] ||= [g(" 全选 ", -1)]]),
|
|
696
696
|
_: 1
|
|
697
697
|
}, 8, [
|
|
698
698
|
"modelValue",
|
|
699
699
|
"indeterminate",
|
|
700
700
|
"disabled"
|
|
701
|
-
])) : f("", !0), _(
|
|
701
|
+
])) : f("", !0), _(B(me), {
|
|
702
702
|
"model-value": o.value,
|
|
703
703
|
disabled: e.disabled,
|
|
704
704
|
"onUpdate:modelValue": b
|
|
705
705
|
}, {
|
|
706
|
-
default:
|
|
706
|
+
default: G(() => [(M(!0), p(c, null, F(e.options, (e) => (M(), d(B(Re), {
|
|
707
707
|
key: String(e.value),
|
|
708
708
|
content: n(e),
|
|
709
709
|
disabled: r(e),
|
|
710
710
|
placement: "top-start"
|
|
711
711
|
}, {
|
|
712
|
-
default:
|
|
713
|
-
value:
|
|
712
|
+
default: G(() => [_(B(pe), {
|
|
713
|
+
value: B(Z)(e.value),
|
|
714
714
|
disabled: e.disabled
|
|
715
715
|
}, {
|
|
716
|
-
default:
|
|
716
|
+
default: G(() => [g(L(e.label), 1)]),
|
|
717
717
|
_: 2
|
|
718
718
|
}, 1032, ["value", "disabled"])]),
|
|
719
719
|
_: 2
|
|
@@ -821,13 +821,13 @@ var zt = {
|
|
|
821
821
|
function x(e) {
|
|
822
822
|
r("update:modelValue", e);
|
|
823
823
|
}
|
|
824
|
-
return (t, n) => (
|
|
825
|
-
e.prepend ? (
|
|
824
|
+
return (t, n) => (M(), p("div", { class: O(["k-form-date-picker", c.value]) }, [
|
|
825
|
+
e.prepend ? (M(), p("span", {
|
|
826
826
|
key: 0,
|
|
827
827
|
class: "k-form-date-picker__text",
|
|
828
828
|
innerHTML: e.prepend
|
|
829
829
|
}, null, 8, Wt)) : f("", !0),
|
|
830
|
-
e.readonly ? (
|
|
830
|
+
e.readonly ? (M(), p("span", Gt, L(m.value), 1)) : (M(), d(B(_e), {
|
|
831
831
|
key: 1,
|
|
832
832
|
"model-value": o.value,
|
|
833
833
|
type: s.value,
|
|
@@ -852,7 +852,7 @@ var zt = {
|
|
|
852
852
|
"disabled-hours",
|
|
853
853
|
"default-time"
|
|
854
854
|
])),
|
|
855
|
-
e.append ? (
|
|
855
|
+
e.append ? (M(), p("span", {
|
|
856
856
|
key: 3,
|
|
857
857
|
class: "k-form-date-picker__text",
|
|
858
858
|
innerHTML: e.append
|
|
@@ -868,7 +868,7 @@ var zt = {
|
|
|
868
868
|
},
|
|
869
869
|
setup(e) {
|
|
870
870
|
let t = e, n = u(() => `[${t.componentType ?? "Unknown"}] 待迁移`), r = u(() => Ot(t.modelValue));
|
|
871
|
-
return (e, t) => (
|
|
871
|
+
return (e, t) => (M(), d(B(we), {
|
|
872
872
|
"model-value": r.value,
|
|
873
873
|
disabled: "",
|
|
874
874
|
placeholder: n.value
|
|
@@ -919,16 +919,16 @@ var zt = {
|
|
|
919
919
|
function l(e) {
|
|
920
920
|
r("update:modelValue", e);
|
|
921
921
|
}
|
|
922
|
-
return (t, n) => (
|
|
922
|
+
return (t, n) => (M(), p("div", {
|
|
923
923
|
class: "k-form-input",
|
|
924
924
|
type: o.value ? "textarea" : void 0
|
|
925
925
|
}, [
|
|
926
|
-
e.leftText ? (
|
|
926
|
+
e.leftText ? (M(), p("div", {
|
|
927
927
|
key: 0,
|
|
928
|
-
class:
|
|
928
|
+
class: O(["k-form-input__side k-form-input__side--left", e.leftClass]),
|
|
929
929
|
onClick: n[0] ||= (...t) => e.leftClick && e.leftClick(...t)
|
|
930
|
-
},
|
|
931
|
-
e.readonly ? (
|
|
930
|
+
}, L(e.leftText), 3)) : f("", !0),
|
|
931
|
+
e.readonly ? (M(), p("div", Xt, L(c.value), 1)) : (M(), d(B(we), E({ key: 2 }, t.$attrs, {
|
|
932
932
|
"model-value": i.value,
|
|
933
933
|
autocomplete: "off",
|
|
934
934
|
clearable: s.value,
|
|
@@ -939,11 +939,11 @@ var zt = {
|
|
|
939
939
|
"onUpdate:modelValue": l
|
|
940
940
|
}), h({ _: 2 }, [e.prepend ? {
|
|
941
941
|
name: "prepend",
|
|
942
|
-
fn:
|
|
942
|
+
fn: G(() => [g(L(e.prepend), 1)]),
|
|
943
943
|
key: "0"
|
|
944
944
|
} : void 0, e.append ? {
|
|
945
945
|
name: "append",
|
|
946
|
-
fn:
|
|
946
|
+
fn: G(() => [g(L(e.append), 1)]),
|
|
947
947
|
key: "1"
|
|
948
948
|
} : void 0]), 1040, [
|
|
949
949
|
"model-value",
|
|
@@ -953,11 +953,11 @@ var zt = {
|
|
|
953
953
|
"maxlength",
|
|
954
954
|
"type"
|
|
955
955
|
])),
|
|
956
|
-
e.rightText ? (
|
|
956
|
+
e.rightText ? (M(), p("div", {
|
|
957
957
|
key: 3,
|
|
958
|
-
class:
|
|
958
|
+
class: O(["k-form-input__side k-form-input__side--right", e.rightClass]),
|
|
959
959
|
onClick: n[1] ||= (...t) => e.rightClick && e.rightClick(...t)
|
|
960
|
-
},
|
|
960
|
+
}, L(e.rightText), 3)) : f("", !0)
|
|
961
961
|
], 8, Yt));
|
|
962
962
|
}
|
|
963
963
|
}), Qt = ["innerHTML"], $t = ["innerHTML"], en = ["innerHTML"], tn = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
@@ -985,7 +985,7 @@ var zt = {
|
|
|
985
985
|
},
|
|
986
986
|
emits: ["update:modelValue"],
|
|
987
987
|
setup(e, { emit: t }) {
|
|
988
|
-
let n = e, r = t, i =
|
|
988
|
+
let n = e, r = t, i = P(["", ""]);
|
|
989
989
|
function a(e, t) {
|
|
990
990
|
let n = e ?? t;
|
|
991
991
|
return typeof n == "number" ? `${n}px` : n;
|
|
@@ -1006,22 +1006,22 @@ var zt = {
|
|
|
1006
1006
|
};
|
|
1007
1007
|
}
|
|
1008
1008
|
let c = u(() => o(n.leftProps)), l = u(() => o(n.rightProps)), d = u(() => s(n.leftWidth, n.leftProps)), h = u(() => s(n.rightWidth, n.rightProps));
|
|
1009
|
-
|
|
1009
|
+
W(() => n.modelValue, (e) => {
|
|
1010
1010
|
Array.isArray(e) && (i.value = [String(e[0] ?? ""), String(e[1] ?? "")]);
|
|
1011
1011
|
}, { immediate: !0 });
|
|
1012
1012
|
function g(e, t) {
|
|
1013
1013
|
i.value[e] = t, r("update:modelValue", [...i.value]);
|
|
1014
1014
|
}
|
|
1015
|
-
return (t, n) => (
|
|
1016
|
-
e.leftText ? (
|
|
1015
|
+
return (t, n) => (M(), p("div", { class: O(["k-form-input-mix-input", { "k-form-input-mix-input--readonly": e.readonly }]) }, [
|
|
1016
|
+
e.leftText ? (M(), p("div", {
|
|
1017
1017
|
key: 0,
|
|
1018
1018
|
class: "k-form-input-mix-input__text",
|
|
1019
1019
|
innerHTML: e.leftText
|
|
1020
1020
|
}, null, 8, Qt)) : f("", !0),
|
|
1021
1021
|
m("div", {
|
|
1022
|
-
class:
|
|
1023
|
-
style:
|
|
1024
|
-
}, [_(Zt,
|
|
1022
|
+
class: O(["k-form-input-mix-input__control", { "k-form-input-mix-input__control--affix": c.value }]),
|
|
1023
|
+
style: A(e.readonly ? void 0 : d.value)
|
|
1024
|
+
}, [_(Zt, E({
|
|
1025
1025
|
clearable: e.clearable,
|
|
1026
1026
|
"model-value": i.value[0],
|
|
1027
1027
|
readonly: e.readonly,
|
|
@@ -1034,15 +1034,15 @@ var zt = {
|
|
|
1034
1034
|
"disabled",
|
|
1035
1035
|
"placeholder"
|
|
1036
1036
|
])], 6),
|
|
1037
|
-
e.centerText ? (
|
|
1037
|
+
e.centerText ? (M(), p("div", {
|
|
1038
1038
|
key: 1,
|
|
1039
1039
|
class: "k-form-input-mix-input__text",
|
|
1040
1040
|
innerHTML: e.centerText
|
|
1041
1041
|
}, null, 8, $t)) : f("", !0),
|
|
1042
1042
|
m("div", {
|
|
1043
|
-
class:
|
|
1044
|
-
style:
|
|
1045
|
-
}, [_(Zt,
|
|
1043
|
+
class: O(["k-form-input-mix-input__control", { "k-form-input-mix-input__control--affix": l.value }]),
|
|
1044
|
+
style: A(e.readonly ? void 0 : h.value)
|
|
1045
|
+
}, [_(Zt, E({
|
|
1046
1046
|
"model-value": i.value[1],
|
|
1047
1047
|
clearable: e.clearable,
|
|
1048
1048
|
readonly: e.readonly,
|
|
@@ -1055,7 +1055,7 @@ var zt = {
|
|
|
1055
1055
|
"disabled",
|
|
1056
1056
|
"placeholder"
|
|
1057
1057
|
])], 6),
|
|
1058
|
-
e.rightText ? (
|
|
1058
|
+
e.rightText ? (M(), p("div", {
|
|
1059
1059
|
key: 2,
|
|
1060
1060
|
class: "k-form-input-mix-input__text",
|
|
1061
1061
|
innerHTML: e.rightText
|
|
@@ -1106,7 +1106,7 @@ var zt = {
|
|
|
1106
1106
|
function l(e) {
|
|
1107
1107
|
r("update:modelValue", e);
|
|
1108
1108
|
}
|
|
1109
|
-
return (t, n) => (
|
|
1109
|
+
return (t, n) => (M(), p("div", E({ class: ["k-form-select", { "k-form-select--readonly": e.readonly }] }, t.$attrs), [e.readonly ? (M(), p("span", nn, L(s.value), 1)) : (M(), d(B(Pe), {
|
|
1110
1110
|
key: 1,
|
|
1111
1111
|
"model-value": e.multiple ? a.value : i.value,
|
|
1112
1112
|
placeholder: e.placeholder,
|
|
@@ -1116,7 +1116,7 @@ var zt = {
|
|
|
1116
1116
|
disabled: e.disabled,
|
|
1117
1117
|
"onUpdate:modelValue": l
|
|
1118
1118
|
}, {
|
|
1119
|
-
default:
|
|
1119
|
+
default: G(() => [(M(!0), p(c, null, F(o.value, (e) => (M(), d(B(De), {
|
|
1120
1120
|
key: e.key,
|
|
1121
1121
|
label: e.label,
|
|
1122
1122
|
value: e.value,
|
|
@@ -1184,7 +1184,7 @@ var zt = {
|
|
|
1184
1184
|
},
|
|
1185
1185
|
emits: ["update:modelValue"],
|
|
1186
1186
|
setup(e, { emit: t }) {
|
|
1187
|
-
let n = S(dt, null), r = e, i = t, a =
|
|
1187
|
+
let n = S(dt, null), r = e, i = t, a = P({}), o = P(""), s = P(""), l = u(() => r.inputProps.id ?? "input"), d = u(() => r.selectProps.id ?? "select"), h = u(() => {
|
|
1188
1188
|
let e = J(r.inputProps);
|
|
1189
1189
|
return delete e.id, e;
|
|
1190
1190
|
}), g = u(() => {
|
|
@@ -1211,8 +1211,8 @@ var zt = {
|
|
|
1211
1211
|
flex: "0 0 auto"
|
|
1212
1212
|
};
|
|
1213
1213
|
}
|
|
1214
|
-
let
|
|
1215
|
-
function
|
|
1214
|
+
let C = u(() => y(r.inputProps)), w = u(() => y(r.selectProps)), T = u(() => x(r.selectWidth, "150px", r.selectProps)), D = u(() => x(r.inputWidth, "140px", r.inputProps));
|
|
1215
|
+
function k(e) {
|
|
1216
1216
|
let { dict: t, options: r = [] } = e;
|
|
1217
1217
|
return t && n?.getGroupOptions ? n.getGroupOptions(t) : r.map((e) => ({
|
|
1218
1218
|
label: String(e.label ?? ""),
|
|
@@ -1220,8 +1220,8 @@ var zt = {
|
|
|
1220
1220
|
disabled: e.disabled
|
|
1221
1221
|
}));
|
|
1222
1222
|
}
|
|
1223
|
-
let
|
|
1224
|
-
function
|
|
1223
|
+
let j = u(() => k(r.selectProps));
|
|
1224
|
+
function ee() {
|
|
1225
1225
|
let e = a.value[l.value], t = a.value[d.value];
|
|
1226
1226
|
if (r.integrityCheck) {
|
|
1227
1227
|
e && t || r.inputHide ? i("update:modelValue", { ...a.value }) : i("update:modelValue", "");
|
|
@@ -1229,87 +1229,87 @@ var zt = {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
i("update:modelValue", { ...a.value });
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1233
|
-
a.value[t] = e, o.value = String(a.value[l.value] ?? ""), s.value = a.value[d.value],
|
|
1232
|
+
function N(e, t) {
|
|
1233
|
+
a.value[t] = e, o.value = String(a.value[l.value] ?? ""), s.value = a.value[d.value], ee();
|
|
1234
1234
|
}
|
|
1235
|
-
return
|
|
1235
|
+
return W(() => r.modelValue, (e) => {
|
|
1236
1236
|
e && typeof e == "object" && !Array.isArray(e) && (a.value = J(e), o.value = String(a.value[l.value] ?? ""), s.value = a.value[d.value]);
|
|
1237
1237
|
}, {
|
|
1238
1238
|
immediate: !0,
|
|
1239
1239
|
deep: !0
|
|
1240
|
-
}), (t, n) => (
|
|
1240
|
+
}), (t, n) => (M(), p("div", { class: O(["k-form-input-mix-select", { "k-form-input-mix-select--readonly": e.readonly }]) }, [m("div", {
|
|
1241
1241
|
class: "k-form-input-mix-select__row",
|
|
1242
|
-
style:
|
|
1242
|
+
style: A(b.value)
|
|
1243
1243
|
}, [
|
|
1244
|
-
e.leftText ? (
|
|
1245
|
-
e.inputBefore ? (
|
|
1246
|
-
e.inputHide ? f("", !0) : (
|
|
1244
|
+
e.leftText ? (M(), p("div", an, L(e.leftText), 1)) : f("", !0),
|
|
1245
|
+
e.inputBefore ? (M(), p(c, { key: 1 }, [
|
|
1246
|
+
e.inputHide ? f("", !0) : (M(), p("div", {
|
|
1247
1247
|
key: 0,
|
|
1248
|
-
class:
|
|
1249
|
-
style:
|
|
1250
|
-
}, [_(Zt,
|
|
1248
|
+
class: O(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": C.value }]),
|
|
1249
|
+
style: A(D.value)
|
|
1250
|
+
}, [_(Zt, E({
|
|
1251
1251
|
"model-value": o.value,
|
|
1252
1252
|
readonly: e.readonly,
|
|
1253
1253
|
disabled: e.disabled,
|
|
1254
1254
|
placeholder: e.inputPlaceholder
|
|
1255
|
-
}, h.value, { "onUpdate:modelValue": n[0] ||= (e) =>
|
|
1255
|
+
}, h.value, { "onUpdate:modelValue": n[0] ||= (e) => N(e, l.value) }), null, 16, [
|
|
1256
1256
|
"model-value",
|
|
1257
1257
|
"readonly",
|
|
1258
1258
|
"disabled",
|
|
1259
1259
|
"placeholder"
|
|
1260
1260
|
])], 6)),
|
|
1261
|
-
e.centerText ? (
|
|
1261
|
+
e.centerText ? (M(), p("div", on, L(e.centerText), 1)) : f("", !0),
|
|
1262
1262
|
m("div", {
|
|
1263
|
-
class:
|
|
1264
|
-
style:
|
|
1265
|
-
}, [_(rn,
|
|
1263
|
+
class: O(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": w.value }]),
|
|
1264
|
+
style: A(T.value)
|
|
1265
|
+
}, [_(rn, E({
|
|
1266
1266
|
"model-value": s.value,
|
|
1267
1267
|
readonly: e.readonly,
|
|
1268
1268
|
disabled: e.disabled,
|
|
1269
|
-
options:
|
|
1269
|
+
options: j.value,
|
|
1270
1270
|
placeholder: e.selectPlaceholder
|
|
1271
|
-
}, g.value, { "onUpdate:modelValue": n[1] ||= (e) =>
|
|
1271
|
+
}, g.value, { "onUpdate:modelValue": n[1] ||= (e) => N(e, d.value) }), null, 16, [
|
|
1272
1272
|
"model-value",
|
|
1273
1273
|
"readonly",
|
|
1274
1274
|
"disabled",
|
|
1275
1275
|
"options",
|
|
1276
1276
|
"placeholder"
|
|
1277
1277
|
])], 6)
|
|
1278
|
-
], 64)) : (
|
|
1278
|
+
], 64)) : (M(), p(c, { key: 2 }, [
|
|
1279
1279
|
m("div", {
|
|
1280
|
-
class:
|
|
1281
|
-
style:
|
|
1282
|
-
}, [_(rn,
|
|
1280
|
+
class: O(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": w.value }]),
|
|
1281
|
+
style: A(T.value)
|
|
1282
|
+
}, [_(rn, E({
|
|
1283
1283
|
"model-value": s.value,
|
|
1284
1284
|
readonly: e.readonly,
|
|
1285
1285
|
disabled: e.disabled,
|
|
1286
|
-
options:
|
|
1286
|
+
options: j.value,
|
|
1287
1287
|
placeholder: e.selectPlaceholder
|
|
1288
|
-
}, g.value, { "onUpdate:modelValue": n[2] ||= (e) =>
|
|
1288
|
+
}, g.value, { "onUpdate:modelValue": n[2] ||= (e) => N(e, d.value) }), null, 16, [
|
|
1289
1289
|
"model-value",
|
|
1290
1290
|
"readonly",
|
|
1291
1291
|
"disabled",
|
|
1292
1292
|
"options",
|
|
1293
1293
|
"placeholder"
|
|
1294
1294
|
])], 6),
|
|
1295
|
-
e.centerText ? (
|
|
1296
|
-
e.inputHide ? f("", !0) : (
|
|
1295
|
+
e.centerText ? (M(), p("div", sn, L(e.centerText), 1)) : f("", !0),
|
|
1296
|
+
e.inputHide ? f("", !0) : (M(), p("div", {
|
|
1297
1297
|
key: 1,
|
|
1298
|
-
class:
|
|
1299
|
-
style:
|
|
1300
|
-
}, [_(Zt,
|
|
1298
|
+
class: O(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": C.value }]),
|
|
1299
|
+
style: A(D.value)
|
|
1300
|
+
}, [_(Zt, E({
|
|
1301
1301
|
"model-value": o.value,
|
|
1302
1302
|
readonly: e.readonly,
|
|
1303
1303
|
disabled: e.disabled,
|
|
1304
1304
|
placeholder: e.inputPlaceholder
|
|
1305
|
-
}, h.value, { "onUpdate:modelValue": n[3] ||= (e) =>
|
|
1305
|
+
}, h.value, { "onUpdate:modelValue": n[3] ||= (e) => N(e, l.value) }), null, 16, [
|
|
1306
1306
|
"model-value",
|
|
1307
1307
|
"readonly",
|
|
1308
1308
|
"disabled",
|
|
1309
1309
|
"placeholder"
|
|
1310
1310
|
])], 6))
|
|
1311
1311
|
], 64)),
|
|
1312
|
-
e.rightText && !e.inputHide ? (
|
|
1312
|
+
e.rightText && !e.inputHide ? (M(), p("div", cn, L(e.rightText), 1)) : f("", !0)
|
|
1313
1313
|
], 4)], 2));
|
|
1314
1314
|
}
|
|
1315
1315
|
}), [["__scopeId", "data-v-1f46ef39"]]), un = { class: "k-form-input-number" }, dn = {
|
|
@@ -1350,9 +1350,9 @@ var zt = {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
r("update:modelValue", e);
|
|
1352
1352
|
}
|
|
1353
|
-
return (t, n) => (
|
|
1354
|
-
e.leftText ? (
|
|
1355
|
-
e.readonly ? (
|
|
1353
|
+
return (t, n) => (M(), p("div", un, [
|
|
1354
|
+
e.leftText ? (M(), p("div", dn, L(e.leftText), 1)) : f("", !0),
|
|
1355
|
+
e.readonly ? (M(), p("span", fn, L(B(Q)(i.value)), 1)) : (M(), d(B(Te), {
|
|
1356
1356
|
key: 2,
|
|
1357
1357
|
"model-value": i.value,
|
|
1358
1358
|
min: e.min,
|
|
@@ -1365,7 +1365,7 @@ var zt = {
|
|
|
1365
1365
|
"max",
|
|
1366
1366
|
"disabled"
|
|
1367
1367
|
])),
|
|
1368
|
-
e.rightText ? (
|
|
1368
|
+
e.rightText ? (M(), p("div", pn, L(e.rightText), 1)) : f("", !0)
|
|
1369
1369
|
]));
|
|
1370
1370
|
}
|
|
1371
1371
|
}), [["__scopeId", "data-v-acdc4199"]]), hn = { class: "k-form-radio" }, gn = {
|
|
@@ -1387,25 +1387,25 @@ var zt = {
|
|
|
1387
1387
|
function o(e) {
|
|
1388
1388
|
r("update:modelValue", e);
|
|
1389
1389
|
}
|
|
1390
|
-
return (t, n) => (
|
|
1390
|
+
return (t, n) => (M(), p("div", hn, [e.readonly ? (M(), p("span", gn, L(a.value), 1)) : (M(), d(B(Ne), {
|
|
1391
1391
|
key: 1,
|
|
1392
1392
|
"model-value": i.value,
|
|
1393
1393
|
disabled: e.disabled,
|
|
1394
1394
|
"onUpdate:modelValue": o
|
|
1395
1395
|
}, {
|
|
1396
|
-
default:
|
|
1396
|
+
default: G(() => [(M(!0), p(c, null, F(e.options, (t) => (M(), p(c, { key: String(t.value) }, [e.type === "button" ? (M(), d(B(Me), {
|
|
1397
1397
|
key: 0,
|
|
1398
|
-
value:
|
|
1398
|
+
value: B(Z)(t.value),
|
|
1399
1399
|
disabled: t.disabled
|
|
1400
1400
|
}, {
|
|
1401
|
-
default:
|
|
1401
|
+
default: G(() => [g(L(t.label), 1)]),
|
|
1402
1402
|
_: 2
|
|
1403
|
-
}, 1032, ["value", "disabled"])) : (
|
|
1403
|
+
}, 1032, ["value", "disabled"])) : (M(), d(B(je), {
|
|
1404
1404
|
key: 1,
|
|
1405
|
-
value:
|
|
1405
|
+
value: B(Z)(t.value),
|
|
1406
1406
|
disabled: t.disabled
|
|
1407
1407
|
}, {
|
|
1408
|
-
default:
|
|
1408
|
+
default: G(() => [g(L(t.label), 1)]),
|
|
1409
1409
|
_: 2
|
|
1410
1410
|
}, 1032, ["value", "disabled"]))], 64))), 128))]),
|
|
1411
1411
|
_: 1
|
|
@@ -1437,7 +1437,7 @@ var zt = {
|
|
|
1437
1437
|
},
|
|
1438
1438
|
emits: ["update:modelValue"],
|
|
1439
1439
|
setup(e, { emit: t }) {
|
|
1440
|
-
let n = e, r = t, i =
|
|
1440
|
+
let n = e, r = t, i = P(n.options?.[0]?.value ?? ""), a = P(""), o = u(() => i.value === n.showInput);
|
|
1441
1441
|
function s() {
|
|
1442
1442
|
let e = Number(n.inputProps?.min ?? 1);
|
|
1443
1443
|
return Number.isFinite(e) ? e : 1;
|
|
@@ -1456,7 +1456,7 @@ var zt = {
|
|
|
1456
1456
|
let e = Number(a.value);
|
|
1457
1457
|
return Number.isFinite(e) ? e : null;
|
|
1458
1458
|
});
|
|
1459
|
-
|
|
1459
|
+
W(() => n.modelValue, (e) => {
|
|
1460
1460
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
1461
1461
|
let t = e;
|
|
1462
1462
|
t.radio !== void 0 && (i.value = t.radio), t.input !== void 0 && (a.value = m(t.input));
|
|
@@ -1483,11 +1483,11 @@ var zt = {
|
|
|
1483
1483
|
}
|
|
1484
1484
|
r("update:modelValue", {});
|
|
1485
1485
|
}
|
|
1486
|
-
|
|
1486
|
+
W([i, a], v, { immediate: !0 });
|
|
1487
1487
|
function y(e) {
|
|
1488
1488
|
e === n.showInput && n.type === "inputNumber" && l(a.value) && (a.value = s()), i.value = e;
|
|
1489
1489
|
}
|
|
1490
|
-
return (t, n) => (
|
|
1490
|
+
return (t, n) => (M(), p("div", { class: O(["k-form-radio-input", { "k-form-radio-input--readonly": e.readonly }]) }, [
|
|
1491
1491
|
_(_n, {
|
|
1492
1492
|
"model-value": i.value,
|
|
1493
1493
|
options: e.options,
|
|
@@ -1501,9 +1501,9 @@ var zt = {
|
|
|
1501
1501
|
"readonly",
|
|
1502
1502
|
"disabled"
|
|
1503
1503
|
]),
|
|
1504
|
-
!e.readonly && o.value ? (
|
|
1505
|
-
e.leftText ? (
|
|
1506
|
-
e.type === "inputNumber" ? (
|
|
1504
|
+
!e.readonly && o.value ? (M(), p(c, { key: 0 }, [
|
|
1505
|
+
e.leftText ? (M(), p("label", vn, L(e.leftText), 1)) : f("", !0),
|
|
1506
|
+
e.type === "inputNumber" ? (M(), d(B(Te), E({
|
|
1507
1507
|
key: 1,
|
|
1508
1508
|
"model-value": h.value,
|
|
1509
1509
|
class: "k-form-radio-input__input",
|
|
@@ -1513,7 +1513,7 @@ var zt = {
|
|
|
1513
1513
|
"model-value",
|
|
1514
1514
|
"placeholder",
|
|
1515
1515
|
"disabled"
|
|
1516
|
-
])) : (
|
|
1516
|
+
])) : (M(), d(B(we), E({
|
|
1517
1517
|
key: 2,
|
|
1518
1518
|
modelValue: a.value,
|
|
1519
1519
|
"onUpdate:modelValue": n[1] ||= (e) => a.value = e,
|
|
@@ -1525,12 +1525,12 @@ var zt = {
|
|
|
1525
1525
|
"placeholder",
|
|
1526
1526
|
"disabled"
|
|
1527
1527
|
])),
|
|
1528
|
-
e.rightText ? (
|
|
1528
|
+
e.rightText ? (M(), p("label", yn, L(e.rightText), 1)) : f("", !0)
|
|
1529
1529
|
], 64)) : f("", !0),
|
|
1530
|
-
e.readonly && o.value ? (
|
|
1531
|
-
e.leftText ? (
|
|
1532
|
-
g(" " +
|
|
1533
|
-
e.rightText ? (
|
|
1530
|
+
e.readonly && o.value ? (M(), p("div", bn, [
|
|
1531
|
+
e.leftText ? (M(), p("label", xn, L(e.leftText), 1)) : f("", !0),
|
|
1532
|
+
g(" " + L(a.value) + " ", 1),
|
|
1533
|
+
e.rightText ? (M(), p("label", Sn, L(e.rightText), 1)) : f("", !0)
|
|
1534
1534
|
])) : f("", !0)
|
|
1535
1535
|
], 2));
|
|
1536
1536
|
}
|
|
@@ -1568,15 +1568,15 @@ var zt = {
|
|
|
1568
1568
|
},
|
|
1569
1569
|
emits: ["update:modelValue"],
|
|
1570
1570
|
setup(e, { emit: t }) {
|
|
1571
|
-
let n = e, r = t, i =
|
|
1572
|
-
|
|
1571
|
+
let n = e, r = t, i = P([]), a = P(!1), o = P(!1), s = P(1), l = P(""), f = P(null), m = P(n.multiple ? [] : "");
|
|
1572
|
+
W(() => n.modelValue, (e) => {
|
|
1573
1573
|
m.value = n.multiple ? kt(e) : Z(e);
|
|
1574
|
-
}, { immediate: !0 }),
|
|
1574
|
+
}, { immediate: !0 }), W(() => n.defaultSelectedStr, (e) => {
|
|
1575
1575
|
e?.length && (i.value = [...i.value, ...e]);
|
|
1576
1576
|
}, {
|
|
1577
1577
|
immediate: !0,
|
|
1578
1578
|
deep: !0
|
|
1579
|
-
}),
|
|
1579
|
+
}), W(() => n.getListParams, () => {
|
|
1580
1580
|
m.value = n.multiple ? [] : "", i.value = [], s.value = 1, o.value = !1, h();
|
|
1581
1581
|
}, { deep: !0 });
|
|
1582
1582
|
async function h() {
|
|
@@ -1614,7 +1614,7 @@ var zt = {
|
|
|
1614
1614
|
f.value = null;
|
|
1615
1615
|
return;
|
|
1616
1616
|
}
|
|
1617
|
-
|
|
1617
|
+
D(() => {
|
|
1618
1618
|
f.value = document.querySelector(".k-form-scroll-select__dropdown .el-select-dropdown__wrap");
|
|
1619
1619
|
});
|
|
1620
1620
|
}
|
|
@@ -1629,7 +1629,7 @@ var zt = {
|
|
|
1629
1629
|
let e = Z(m.value), t = i.value.find((t) => t.value === e);
|
|
1630
1630
|
return t ? String(t.label ?? t.name ?? t.value) : Q(e);
|
|
1631
1631
|
});
|
|
1632
|
-
return h(), (t, n) => e.readonly ? (
|
|
1632
|
+
return h(), (t, n) => e.readonly ? (M(), p("span", wn, L(S.value), 1)) : (M(), d(B(Pe), {
|
|
1633
1633
|
key: 1,
|
|
1634
1634
|
"model-value": m.value,
|
|
1635
1635
|
remote: "",
|
|
@@ -1644,11 +1644,11 @@ var zt = {
|
|
|
1644
1644
|
onVisibleChange: b,
|
|
1645
1645
|
"onUpdate:modelValue": x
|
|
1646
1646
|
}, {
|
|
1647
|
-
default:
|
|
1647
|
+
default: G(() => [(M(!0), p(c, null, F(i.value, (e, t) => ce((M(), d(B(De), {
|
|
1648
1648
|
key: `${e.value}-${t}`,
|
|
1649
1649
|
label: String(e.label ?? ""),
|
|
1650
1650
|
value: e.value
|
|
1651
|
-
}, null, 8, ["label", "value"])), [[
|
|
1651
|
+
}, null, 8, ["label", "value"])), [[se, e.isShow !== !1]])), 128))]),
|
|
1652
1652
|
_: 1
|
|
1653
1653
|
}, 8, [
|
|
1654
1654
|
"model-value",
|
|
@@ -1677,7 +1677,7 @@ var zt = {
|
|
|
1677
1677
|
},
|
|
1678
1678
|
emits: ["update:modelValue"],
|
|
1679
1679
|
setup(e, { emit: t }) {
|
|
1680
|
-
let n = e, r = t, i =
|
|
1680
|
+
let n = e, r = t, i = P([]), a = u(() => {
|
|
1681
1681
|
let e = n.options ?? [];
|
|
1682
1682
|
return !n.showAllItem || e.some((e) => e.value === Dn) ? e : [{
|
|
1683
1683
|
label: "全选",
|
|
@@ -1692,7 +1692,7 @@ var zt = {
|
|
|
1692
1692
|
let e = o.value.filter((e) => i.value.includes(e.value)).map((e) => e.label);
|
|
1693
1693
|
return e.length ? e.join(", ") : Q(i.value);
|
|
1694
1694
|
});
|
|
1695
|
-
|
|
1695
|
+
W(() => n.modelValue, (e) => {
|
|
1696
1696
|
i.value = kt(e);
|
|
1697
1697
|
}, { immediate: !0 });
|
|
1698
1698
|
function f(e, t) {
|
|
@@ -1707,7 +1707,7 @@ var zt = {
|
|
|
1707
1707
|
function h(e) {
|
|
1708
1708
|
f(e, m), m = [...i.value];
|
|
1709
1709
|
}
|
|
1710
|
-
return (t, n) => e.readonly ? (
|
|
1710
|
+
return (t, n) => e.readonly ? (M(), p("span", En, L(l.value), 1)) : (M(), d(B(Pe), {
|
|
1711
1711
|
key: 1,
|
|
1712
1712
|
"model-value": i.value,
|
|
1713
1713
|
multiple: "",
|
|
@@ -1718,7 +1718,7 @@ var zt = {
|
|
|
1718
1718
|
class: "k-form-select-multiple",
|
|
1719
1719
|
"onUpdate:modelValue": h
|
|
1720
1720
|
}, {
|
|
1721
|
-
default:
|
|
1721
|
+
default: G(() => [(M(!0), p(c, null, F(o.value, (e) => (M(), d(B(De), {
|
|
1722
1722
|
key: e.key,
|
|
1723
1723
|
label: e.label,
|
|
1724
1724
|
value: e.value,
|
|
@@ -1766,7 +1766,7 @@ var zt = {
|
|
|
1766
1766
|
},
|
|
1767
1767
|
emits: ["update:modelValue"],
|
|
1768
1768
|
setup(e, { emit: t }) {
|
|
1769
|
-
let n = e, r = t, i =
|
|
1769
|
+
let n = e, r = t, i = P([]), a = u(() => n.hasDefaultOption || n.hasAllTag), o = u(() => {
|
|
1770
1770
|
let e = (n.options ?? []).map((e) => ({
|
|
1771
1771
|
label: e.label,
|
|
1772
1772
|
value: String(e.value)
|
|
@@ -1785,7 +1785,7 @@ var zt = {
|
|
|
1785
1785
|
let t = Z(e);
|
|
1786
1786
|
i.value = t ? [String(t)] : [];
|
|
1787
1787
|
}
|
|
1788
|
-
|
|
1788
|
+
W(() => n.modelValue, s, { immediate: !0 });
|
|
1789
1789
|
function l() {
|
|
1790
1790
|
if (n.multiple) {
|
|
1791
1791
|
r("update:modelValue", [...i.value]);
|
|
@@ -1802,15 +1802,15 @@ var zt = {
|
|
|
1802
1802
|
let t = ["k-form-tag__item"];
|
|
1803
1803
|
return n.disabled && t.push("is-disabled"), n.readonly && t.push("is-readonly"), i.value.includes(e) && t.push("is-active"), t.join(" ");
|
|
1804
1804
|
}
|
|
1805
|
-
return (e, t) => (
|
|
1805
|
+
return (e, t) => (M(), p("div", kn, [(M(!0), p(c, null, F(o.value, (e) => (M(), d(B(Ie), {
|
|
1806
1806
|
key: e.value || "__all__",
|
|
1807
|
-
class:
|
|
1807
|
+
class: O(["k-form-tag__item", m(e.value)]),
|
|
1808
1808
|
type: "info",
|
|
1809
1809
|
effect: "plain",
|
|
1810
1810
|
"disable-transitions": !0,
|
|
1811
1811
|
onClick: (t) => f(e.value)
|
|
1812
1812
|
}, {
|
|
1813
|
-
default:
|
|
1813
|
+
default: G(() => [g(L(e.label), 1)]),
|
|
1814
1814
|
_: 2
|
|
1815
1815
|
}, 1032, ["class", "onClick"]))), 128))]));
|
|
1816
1816
|
}
|
|
@@ -1825,7 +1825,7 @@ var zt = {
|
|
|
1825
1825
|
},
|
|
1826
1826
|
setup(e) {
|
|
1827
1827
|
let t = e, n = u(() => Ot(t.modelValue));
|
|
1828
|
-
return (e, t) => (
|
|
1828
|
+
return (e, t) => (M(), p("div", jn, [m("p", null, L(n.value), 1)]));
|
|
1829
1829
|
}
|
|
1830
1830
|
}), [["__scopeId", "data-v-9dc35114"]]), Nn = { class: "k-form-time-picker" }, Pn = ["innerHTML"], Fn = {
|
|
1831
1831
|
key: 1,
|
|
@@ -1891,14 +1891,14 @@ var zt = {
|
|
|
1891
1891
|
function g(e) {
|
|
1892
1892
|
r("update:modelValue", e);
|
|
1893
1893
|
}
|
|
1894
|
-
return (t, n) => (
|
|
1895
|
-
e.prepend ? (
|
|
1894
|
+
return (t, n) => (M(), p("div", Nn, [
|
|
1895
|
+
e.prepend ? (M(), p("span", {
|
|
1896
1896
|
key: 0,
|
|
1897
1897
|
class: "k-form-time-picker__text",
|
|
1898
1898
|
innerHTML: e.prepend
|
|
1899
1899
|
}, null, 8, Pn)) : f("", !0),
|
|
1900
|
-
e.leftText ? (
|
|
1901
|
-
e.readonly ? (
|
|
1900
|
+
e.leftText ? (M(), p("span", Fn, L(e.leftText), 1)) : f("", !0),
|
|
1901
|
+
e.readonly ? (M(), p("span", In, L(c.value), 1)) : (M(), d(B(Le), {
|
|
1902
1902
|
key: 3,
|
|
1903
1903
|
"model-value": i.value,
|
|
1904
1904
|
"is-range": o.value,
|
|
@@ -1927,8 +1927,8 @@ var zt = {
|
|
|
1927
1927
|
"disabled-minutes",
|
|
1928
1928
|
"disabled-seconds"
|
|
1929
1929
|
])),
|
|
1930
|
-
e.rightText ? (
|
|
1931
|
-
e.append ? (
|
|
1930
|
+
e.rightText ? (M(), p("span", Ln, L(e.rightText), 1)) : f("", !0),
|
|
1931
|
+
e.append ? (M(), p("span", {
|
|
1932
1932
|
key: 5,
|
|
1933
1933
|
class: "k-form-time-picker__text",
|
|
1934
1934
|
innerHTML: e.append
|
|
@@ -1964,7 +1964,7 @@ var zt = {
|
|
|
1964
1964
|
emits: ["update:modelValue"],
|
|
1965
1965
|
setup(e, { emit: t }) {
|
|
1966
1966
|
let n = e, r = t, i = u(() => Z(n.modelValue)), a = u(() => It(n.data)), o = u(() => Lt(a.value, i.value) ?? Q(i.value));
|
|
1967
|
-
return (t, n) => (
|
|
1967
|
+
return (t, n) => (M(), p("div", Bn, [e.readonly ? (M(), p("div", Vn, L(o.value), 1)) : (M(), d(B(ze), {
|
|
1968
1968
|
key: 1,
|
|
1969
1969
|
"model-value": i.value,
|
|
1970
1970
|
data: a.value,
|
|
@@ -2001,15 +2001,15 @@ var zt = {
|
|
|
2001
2001
|
],
|
|
2002
2002
|
setup(e, { emit: t }) {
|
|
2003
2003
|
let n = e, r = t, i = u(() => n.listType === "video" || n.listType === "audio"), a = u(() => n.file.status === "uploading"), o = u(() => Math.round(Number(n.file.percentage ?? 0)));
|
|
2004
|
-
return (t, n) => (
|
|
2004
|
+
return (t, n) => (M(), p("div", Un, [i.value ? (M(), p("button", {
|
|
2005
2005
|
key: 0,
|
|
2006
2006
|
type: "button",
|
|
2007
2007
|
class: "k-upload__media-play",
|
|
2008
2008
|
onClick: n[0] ||= (t) => r("play", e.file)
|
|
2009
|
-
}, [_(
|
|
2010
|
-
default:
|
|
2009
|
+
}, [_(B(Se), null, {
|
|
2010
|
+
default: G(() => [_(B(Je))]),
|
|
2011
2011
|
_: 1
|
|
2012
|
-
})])) : (
|
|
2012
|
+
})])) : (M(), p(c, { key: 1 }, [I(t.$slots, "preview", { file: e.file }, () => [m("img", {
|
|
2013
2013
|
class: "el-upload-list__item-thumbnail",
|
|
2014
2014
|
src: e.file.url,
|
|
2015
2015
|
alt: ""
|
|
@@ -2017,27 +2017,27 @@ var zt = {
|
|
|
2017
2017
|
m("span", {
|
|
2018
2018
|
class: "el-upload-list__item-preview",
|
|
2019
2019
|
onClick: n[1] ||= (t) => r("zoom", e.file)
|
|
2020
|
-
}, [_(
|
|
2021
|
-
default:
|
|
2020
|
+
}, [_(B(Se), null, {
|
|
2021
|
+
default: G(() => [_(B(Ye))]),
|
|
2022
2022
|
_: 1
|
|
2023
2023
|
})]),
|
|
2024
|
-
e.disabled ? f("", !0) : (
|
|
2024
|
+
e.disabled ? f("", !0) : (M(), p("span", {
|
|
2025
2025
|
key: 0,
|
|
2026
2026
|
class: "el-upload-list__item-download",
|
|
2027
2027
|
onClick: n[2] ||= (t) => r("download", e.file)
|
|
2028
|
-
}, [_(
|
|
2029
|
-
default:
|
|
2028
|
+
}, [_(B(Se), null, {
|
|
2029
|
+
default: G(() => [_(B(Ge))]),
|
|
2030
2030
|
_: 1
|
|
2031
2031
|
})])),
|
|
2032
|
-
e.disabled ? f("", !0) : (
|
|
2032
|
+
e.disabled ? f("", !0) : (M(), p("span", {
|
|
2033
2033
|
key: 1,
|
|
2034
2034
|
class: "el-upload-list__item-delete",
|
|
2035
2035
|
onClick: n[3] ||= (t) => r("remove", e.file)
|
|
2036
|
-
}, [_(
|
|
2037
|
-
default:
|
|
2036
|
+
}, [_(B(Se), null, {
|
|
2037
|
+
default: G(() => [_(B(We))]),
|
|
2038
2038
|
_: 1
|
|
2039
2039
|
})]))
|
|
2040
|
-
])], 64)), a.value ? (
|
|
2040
|
+
])], 64)), a.value ? (M(), d(B(Ae), {
|
|
2041
2041
|
key: 2,
|
|
2042
2042
|
class: "k-upload__file-progress",
|
|
2043
2043
|
type: e.listType === "picture-card" || e.listType === "lottie" ? "circle" : "line",
|
|
@@ -2063,27 +2063,27 @@ var zt = {
|
|
|
2063
2063
|
emits: ["downloadTemplate"],
|
|
2064
2064
|
setup(e, { emit: t }) {
|
|
2065
2065
|
let n = t;
|
|
2066
|
-
return (t, r) => (
|
|
2067
|
-
e.templateCode ? (
|
|
2066
|
+
return (t, r) => (M(), p("div", qn, [
|
|
2067
|
+
e.templateCode ? (M(), p("button", {
|
|
2068
2068
|
key: 0,
|
|
2069
2069
|
type: "button",
|
|
2070
2070
|
class: "k-upload__download",
|
|
2071
|
-
onClick: r[0] ||=
|
|
2072
|
-
}, [_(
|
|
2073
|
-
default:
|
|
2071
|
+
onClick: r[0] ||= le((e) => n("downloadTemplate"), ["stop"])
|
|
2072
|
+
}, [_(B(Se), { class: "k-upload__download-icon" }, {
|
|
2073
|
+
default: G(() => [_(B(Ge))]),
|
|
2074
2074
|
_: 1
|
|
2075
|
-
}), m("span", null,
|
|
2076
|
-
e.tipType === "text" && e.tipText ? (
|
|
2075
|
+
}), m("span", null, L(e.templateBtnText), 1)])) : f("", !0),
|
|
2076
|
+
e.tipType === "text" && e.tipText ? (M(), p("span", {
|
|
2077
2077
|
key: 1,
|
|
2078
2078
|
class: "k-upload__inline-tip",
|
|
2079
2079
|
innerHTML: e.tipText
|
|
2080
2080
|
}, null, 8, Jn)) : f("", !0),
|
|
2081
|
-
e.tipType === "tooltip" && e.tipText ? (
|
|
2081
|
+
e.tipType === "tooltip" && e.tipText ? (M(), d(B(Re), {
|
|
2082
2082
|
key: 2,
|
|
2083
2083
|
placement: "top",
|
|
2084
2084
|
content: e.tipText
|
|
2085
2085
|
}, {
|
|
2086
|
-
default:
|
|
2086
|
+
default: G(() => [...r[1] ||= [m("i", {
|
|
2087
2087
|
class: "k-upload__tip-icon",
|
|
2088
2088
|
"aria-label": "上传说明"
|
|
2089
2089
|
}, "?", -1)]]),
|
|
@@ -2094,7 +2094,7 @@ var zt = {
|
|
|
2094
2094
|
}), [["__scopeId", "data-v-aee31b8d"]]), Xn = { class: "k-upload__media-wrap" }, Zn = ["src"], Qn = ["src"], $n = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
2095
2095
|
name: "KUploadMediaDialog",
|
|
2096
2096
|
__name: "UploadMediaDialog",
|
|
2097
|
-
props: /*@__PURE__*/
|
|
2097
|
+
props: /*@__PURE__*/ T({
|
|
2098
2098
|
url: {},
|
|
2099
2099
|
type: {}
|
|
2100
2100
|
}, {
|
|
@@ -2106,8 +2106,8 @@ var zt = {
|
|
|
2106
2106
|
}),
|
|
2107
2107
|
emits: ["update:visible"],
|
|
2108
2108
|
setup(e) {
|
|
2109
|
-
let t =
|
|
2110
|
-
return (n, r) => (
|
|
2109
|
+
let t = V(e, "visible");
|
|
2110
|
+
return (n, r) => (M(), d(ut, {
|
|
2111
2111
|
visible: t.value,
|
|
2112
2112
|
"onUpdate:visible": r[0] ||= (e) => t.value = e,
|
|
2113
2113
|
"show-confirm": !1,
|
|
@@ -2115,12 +2115,12 @@ var zt = {
|
|
|
2115
2115
|
width: "640px",
|
|
2116
2116
|
title: "预览"
|
|
2117
2117
|
}, {
|
|
2118
|
-
default:
|
|
2118
|
+
default: G(() => [m("div", Xn, [e.type === "video" ? (M(), p("video", {
|
|
2119
2119
|
key: 0,
|
|
2120
2120
|
src: e.url,
|
|
2121
2121
|
controls: "",
|
|
2122
2122
|
class: "k-upload__media"
|
|
2123
|
-
}, "您的浏览器不支持视频播放", 8, Zn)) : (
|
|
2123
|
+
}, "您的浏览器不支持视频播放", 8, Zn)) : (M(), p("audio", {
|
|
2124
2124
|
key: 1,
|
|
2125
2125
|
src: e.url,
|
|
2126
2126
|
controls: "",
|
|
@@ -2137,7 +2137,7 @@ var zt = {
|
|
|
2137
2137
|
tipText: { default: "" }
|
|
2138
2138
|
},
|
|
2139
2139
|
setup(e) {
|
|
2140
|
-
return (t, n) => (
|
|
2140
|
+
return (t, n) => (M(), p("div", er, [e.tipType === "text" && e.tipText ? (M(), p("div", {
|
|
2141
2141
|
key: 0,
|
|
2142
2142
|
class: "el-upload__tip",
|
|
2143
2143
|
innerHTML: e.tipText
|
|
@@ -2147,7 +2147,7 @@ var zt = {
|
|
|
2147
2147
|
//#endregion
|
|
2148
2148
|
//#region src/components/k-upload/composables/useImagePreview.ts
|
|
2149
2149
|
function rr() {
|
|
2150
|
-
let e =
|
|
2150
|
+
let e = P(!1), t = P([]), n = P(0);
|
|
2151
2151
|
function r(r, i) {
|
|
2152
2152
|
let a = i.map((e) => e.url).filter((e) => !!e), o = r.url;
|
|
2153
2153
|
if (o && !a.includes(o) && a.unshift(o), !a.length) return !1;
|
|
@@ -2168,7 +2168,7 @@ function rr() {
|
|
|
2168
2168
|
//#endregion
|
|
2169
2169
|
//#region src/components/k-upload/composables/useMediaPreview.ts
|
|
2170
2170
|
function ir() {
|
|
2171
|
-
let e =
|
|
2171
|
+
let e = P(!1), t = P(""), n = P("video");
|
|
2172
2172
|
function r(r, i) {
|
|
2173
2173
|
r.url && (t.value = r.url, n.value = i, e.value = !0);
|
|
2174
2174
|
}
|
|
@@ -2189,8 +2189,8 @@ function ar(e, t) {
|
|
|
2189
2189
|
return String(e) === String(t);
|
|
2190
2190
|
}
|
|
2191
2191
|
function or(e) {
|
|
2192
|
-
let t =
|
|
2193
|
-
|
|
2192
|
+
let t = P([]);
|
|
2193
|
+
W(() => e.getModelValue(), (e) => {
|
|
2194
2194
|
t.value = Array.isArray(e) ? e.map((e) => ({ ...e })) : [];
|
|
2195
2195
|
}, {
|
|
2196
2196
|
immediate: !0,
|
|
@@ -2362,8 +2362,8 @@ var pr = {
|
|
|
2362
2362
|
let n = e instanceof Error ? e.message : String(e ?? "");
|
|
2363
2363
|
return /timeout/i.test(n) || /ECONNABORTED/i.test(n) ? "请求超时,请稍后重试" : n || t;
|
|
2364
2364
|
}
|
|
2365
|
-
let o = e, c = n, l =
|
|
2366
|
-
|
|
2365
|
+
let o = e, c = n, l = P(), y = U("cutterRef"), x = P(null);
|
|
2366
|
+
W(y, (e) => {
|
|
2367
2367
|
if (!e || !x.value) return;
|
|
2368
2368
|
let t = x.value;
|
|
2369
2369
|
x.value = null, e.openImgCutter({
|
|
@@ -2381,38 +2381,38 @@ var pr = {
|
|
|
2381
2381
|
}
|
|
2382
2382
|
x.value = e;
|
|
2383
2383
|
}
|
|
2384
|
-
function
|
|
2384
|
+
function w(e) {
|
|
2385
2385
|
return e === "picture2" ? "picture" : e;
|
|
2386
2386
|
}
|
|
2387
|
-
let
|
|
2387
|
+
let T = u(() => w(o.listType)), A = u(() => o.accept ? o.accept.toLowerCase() : i[T.value] ?? ""), { fileList: j, elFileList: ee, removeByUid: N, upsert: te, findByUid: F } = or({
|
|
2388
2388
|
getModelValue: () => o.modelValue,
|
|
2389
2389
|
onUpdate: (e) => c("update:modelValue", e),
|
|
2390
2390
|
getLimit: () => o.limit
|
|
2391
|
-
}),
|
|
2392
|
-
getAccept: () =>
|
|
2391
|
+
}), ne = ur({
|
|
2392
|
+
getAccept: () => A.value,
|
|
2393
2393
|
getMaxSize: () => o.maxSize
|
|
2394
|
-
}),
|
|
2395
|
-
switch (
|
|
2394
|
+
}), re = lr({ getTemplateCode: () => o.templateCode }), { visible: ie, urlList: ae, initialIndex: R, open: z, close: oe } = rr(), { visible: V, url: H, type: se, open: ce } = ir(), le = u(() => dr(T.value, o.action)), ue = u(() => {
|
|
2395
|
+
switch (T.value) {
|
|
2396
2396
|
case "picture": return "picture";
|
|
2397
2397
|
case "picture-card":
|
|
2398
2398
|
case "lottie": return "picture-card";
|
|
2399
2399
|
default: return "text";
|
|
2400
2400
|
}
|
|
2401
|
-
}),
|
|
2401
|
+
}), de = u(() => [
|
|
2402
2402
|
"picture",
|
|
2403
2403
|
"picture-card",
|
|
2404
2404
|
"lottie"
|
|
2405
|
-
].includes(
|
|
2405
|
+
].includes(T.value)), fe = u(() => [
|
|
2406
2406
|
"picture-card",
|
|
2407
2407
|
"lottie",
|
|
2408
2408
|
"video",
|
|
2409
2409
|
"audio"
|
|
2410
|
-
].includes(
|
|
2411
|
-
let e = ["k-upload", `k-upload--${
|
|
2412
|
-
return o.disabled && e.push("k-upload_detail"),
|
|
2410
|
+
].includes(T.value)), pe = u(() => T.value === "picture-card" || T.value === "lottie"), me = u(() => !pe.value), he = u(() => !o.openCutter && o.autoUpload), ge = u(() => o.limit === 1 ? void 0 : o.limit), _e = u(() => !!(o.limit && o.limit !== 1 && j.value.length >= o.limit)), ve = u(() => !o.disabled), ye = u(() => !(pe.value || o.disabled || me.value && o.tipType === "text")), be = u(() => o.disabled ? "" : o.fileTips || (A.value ? `支持上传 ${A.value} 后缀文件,且不超过${o.maxSize}M` : "")), xe = u(() => {
|
|
2411
|
+
let e = ["k-upload", `k-upload--${T.value}`];
|
|
2412
|
+
return o.disabled && e.push("k-upload_detail"), _e.value && e.push("k-upload--limit"), e.join(" ");
|
|
2413
2413
|
});
|
|
2414
2414
|
function we(e, t, n) {
|
|
2415
|
-
let r = e ?? {}, i = String(r.resource_id ?? ""), a = String(r.file_name ?? n), o = fr(
|
|
2415
|
+
let r = e ?? {}, i = String(r.resource_id ?? ""), a = String(r.file_name ?? n), o = fr(T.value);
|
|
2416
2416
|
return {
|
|
2417
2417
|
...r,
|
|
2418
2418
|
uid: t,
|
|
@@ -2426,26 +2426,26 @@ var pr = {
|
|
|
2426
2426
|
}
|
|
2427
2427
|
function Te(e, t, n) {
|
|
2428
2428
|
let r = we(e, t, n);
|
|
2429
|
-
|
|
2429
|
+
te(r), o.showSuccMessage && Ee.success("文件上传成功!"), c("success", e, r);
|
|
2430
2430
|
}
|
|
2431
|
-
let De = (e) =>
|
|
2431
|
+
let De = (e) => ne.validate(e), Oe = (e, t) => {
|
|
2432
2432
|
Te(e ?? {}, t.uid, t.name);
|
|
2433
2433
|
}, ke = (e, t) => {
|
|
2434
|
-
Ee.error(a(e, "文件上传失败!")),
|
|
2434
|
+
Ee.error(a(e, "文件上传失败!")), N(t.uid), c("error", e, t);
|
|
2435
2435
|
}, Ae = (e) => {
|
|
2436
|
-
if (typeof e.uid == "number" &&
|
|
2437
|
-
let t =
|
|
2438
|
-
|
|
2436
|
+
if (typeof e.uid == "number" && ne.consumeRejected(e.uid)) return;
|
|
2437
|
+
let t = F(e.uid);
|
|
2438
|
+
N(e.uid), t && c("remove", t);
|
|
2439
2439
|
}, je = (e) => {
|
|
2440
|
-
let t =
|
|
2441
|
-
t && (c("preview", t), !(
|
|
2440
|
+
let t = F(e.uid);
|
|
2441
|
+
t && (c("preview", t), !(de.value && z(t, j.value)) && ze(t));
|
|
2442
2442
|
}, Me = (e) => {
|
|
2443
2443
|
if (c("change", e), !(!o.openCutter || e.status !== "ready" || !e.raw)) {
|
|
2444
|
-
if (
|
|
2445
|
-
|
|
2444
|
+
if (ne.validate(e.raw) === !1) {
|
|
2445
|
+
N(e.uid);
|
|
2446
2446
|
return;
|
|
2447
2447
|
}
|
|
2448
|
-
|
|
2448
|
+
N(e.uid), D(() => {
|
|
2449
2449
|
l.value?.handleRemove(e), S({
|
|
2450
2450
|
name: e.name,
|
|
2451
2451
|
raw: e.raw
|
|
@@ -2456,25 +2456,25 @@ var pr = {
|
|
|
2456
2456
|
c("exceed", e, t);
|
|
2457
2457
|
};
|
|
2458
2458
|
function Pe(e) {
|
|
2459
|
-
let t =
|
|
2460
|
-
t &&
|
|
2459
|
+
let t = F(e.uid);
|
|
2460
|
+
t && z(t, j.value);
|
|
2461
2461
|
}
|
|
2462
2462
|
function Fe(e) {
|
|
2463
|
-
let t =
|
|
2463
|
+
let t = F(e.uid);
|
|
2464
2464
|
t && ze(t);
|
|
2465
2465
|
}
|
|
2466
2466
|
function K(e) {
|
|
2467
|
-
let t =
|
|
2468
|
-
|
|
2467
|
+
let t = F(e.uid);
|
|
2468
|
+
N(e.uid), t && c("remove", t);
|
|
2469
2469
|
}
|
|
2470
2470
|
function Ie(e) {
|
|
2471
|
-
let t =
|
|
2472
|
-
t &&
|
|
2471
|
+
let t = F(e.uid);
|
|
2472
|
+
t && ce(t, T.value === "audio" ? "audio" : "video");
|
|
2473
2473
|
}
|
|
2474
2474
|
async function Le(e) {
|
|
2475
2475
|
try {
|
|
2476
2476
|
let t = dr("picture", o.action);
|
|
2477
|
-
Te(await
|
|
2477
|
+
Te(await re.uploadFile(e, t), -Date.now(), e.name);
|
|
2478
2478
|
} catch (e) {
|
|
2479
2479
|
Ee.error(a(e, "图片上传失败!"));
|
|
2480
2480
|
}
|
|
@@ -2484,7 +2484,7 @@ var pr = {
|
|
|
2484
2484
|
n.href = e, n.download = t, n.click();
|
|
2485
2485
|
}
|
|
2486
2486
|
function ze(e) {
|
|
2487
|
-
e.resource_id && Re(`${fr(
|
|
2487
|
+
e.resource_id && Re(`${fr(T.value)}${e.resource_id}`, e.name || String(e.resource_id));
|
|
2488
2488
|
}
|
|
2489
2489
|
function q() {
|
|
2490
2490
|
let e = s(), t = e.templateCodeRelation[o.templateCode];
|
|
@@ -2498,20 +2498,20 @@ var pr = {
|
|
|
2498
2498
|
submit: () => l.value?.submit(),
|
|
2499
2499
|
clearFiles: () => l.value?.clearFiles(),
|
|
2500
2500
|
uploadRef: l
|
|
2501
|
-
}), (t, n) => (
|
|
2502
|
-
_(
|
|
2501
|
+
}), (t, n) => (M(), p("div", { class: O(["k-upload-wrap", xe.value]) }, [
|
|
2502
|
+
_(B(Be), E({
|
|
2503
2503
|
ref_key: "uploadRef",
|
|
2504
2504
|
ref: l
|
|
2505
2505
|
}, t.$attrs, {
|
|
2506
2506
|
class: "k-upload__inner",
|
|
2507
|
-
"file-list":
|
|
2508
|
-
action:
|
|
2509
|
-
"list-type":
|
|
2510
|
-
accept:
|
|
2511
|
-
limit:
|
|
2507
|
+
"file-list": B(ee),
|
|
2508
|
+
action: le.value,
|
|
2509
|
+
"list-type": ue.value,
|
|
2510
|
+
accept: A.value,
|
|
2511
|
+
limit: ge.value,
|
|
2512
2512
|
disabled: e.disabled,
|
|
2513
|
-
"auto-upload":
|
|
2514
|
-
"http-request":
|
|
2513
|
+
"auto-upload": he.value,
|
|
2514
|
+
"http-request": B(re).httpRequest,
|
|
2515
2515
|
"before-upload": De,
|
|
2516
2516
|
"on-success": Oe,
|
|
2517
2517
|
"on-error": ke,
|
|
@@ -2520,40 +2520,40 @@ var pr = {
|
|
|
2520
2520
|
"on-change": Me,
|
|
2521
2521
|
"on-exceed": Ne
|
|
2522
2522
|
}), h({
|
|
2523
|
-
tip:
|
|
2523
|
+
tip: G(() => [I(t.$slots, "tip", {}, () => [pe.value && (e.templateCode || e.tipType === "tooltip" && be.value) ? (M(), d(Yn, {
|
|
2524
2524
|
key: 0,
|
|
2525
2525
|
"template-code": e.templateCode,
|
|
2526
2526
|
"template-btn-text": e.templateBtnText,
|
|
2527
2527
|
"tip-type": e.tipType,
|
|
2528
|
-
"tip-text":
|
|
2528
|
+
"tip-text": be.value,
|
|
2529
2529
|
onDownloadTemplate: q
|
|
2530
2530
|
}, null, 8, [
|
|
2531
2531
|
"template-code",
|
|
2532
2532
|
"template-btn-text",
|
|
2533
2533
|
"tip-type",
|
|
2534
2534
|
"tip-text"
|
|
2535
|
-
])) : f("", !0),
|
|
2535
|
+
])) : f("", !0), ye.value ? (M(), d(nr, {
|
|
2536
2536
|
key: 1,
|
|
2537
2537
|
"tip-type": e.tipType,
|
|
2538
|
-
"tip-text":
|
|
2538
|
+
"tip-text": be.value
|
|
2539
2539
|
}, null, 8, ["tip-type", "tip-text"])) : f("", !0)], !0)]),
|
|
2540
2540
|
_: 2
|
|
2541
|
-
}, [
|
|
2541
|
+
}, [ve.value ? {
|
|
2542
2542
|
name: "default",
|
|
2543
|
-
fn:
|
|
2544
|
-
|
|
2545
|
-
|
|
2543
|
+
fn: G(() => [me.value ? (M(), p("div", pr, [
|
|
2544
|
+
I(t.$slots, "buttonBefore", {}, void 0, !0),
|
|
2545
|
+
I(t.$slots, "content", {}, () => [_(Y, {
|
|
2546
2546
|
type: "primary",
|
|
2547
|
-
disabled:
|
|
2547
|
+
disabled: _e.value
|
|
2548
2548
|
}, {
|
|
2549
|
-
default:
|
|
2549
|
+
default: G(() => [g(L(e.btnText), 1)]),
|
|
2550
2550
|
_: 1
|
|
2551
2551
|
}, 8, ["disabled"])], !0),
|
|
2552
2552
|
_(Yn, {
|
|
2553
2553
|
"template-code": e.templateCode,
|
|
2554
2554
|
"template-btn-text": e.templateBtnText,
|
|
2555
2555
|
"tip-type": e.tipType,
|
|
2556
|
-
"tip-text":
|
|
2556
|
+
"tip-text": be.value,
|
|
2557
2557
|
onDownloadTemplate: q
|
|
2558
2558
|
}, null, 8, [
|
|
2559
2559
|
"template-code",
|
|
@@ -2561,21 +2561,21 @@ var pr = {
|
|
|
2561
2561
|
"tip-type",
|
|
2562
2562
|
"tip-text"
|
|
2563
2563
|
]),
|
|
2564
|
-
|
|
2565
|
-
])) :
|
|
2566
|
-
default:
|
|
2564
|
+
I(t.$slots, "buttonAfter", {}, void 0, !0)
|
|
2565
|
+
])) : I(t.$slots, "content", {}, () => [m("div", mr, [_(B(Se), { class: "k-upload__plus" }, {
|
|
2566
|
+
default: G(() => [_(B(qe))]),
|
|
2567
2567
|
_: 1
|
|
2568
|
-
}), e.tipType === "text" &&
|
|
2568
|
+
}), e.tipType === "text" && be.value ? (M(), p("span", {
|
|
2569
2569
|
key: 0,
|
|
2570
2570
|
class: "picture-card-tips",
|
|
2571
|
-
innerHTML:
|
|
2571
|
+
innerHTML: be.value
|
|
2572
2572
|
}, null, 8, hr)) : f("", !0)])], !0, 1)]),
|
|
2573
2573
|
key: "0"
|
|
2574
|
-
} : void 0,
|
|
2574
|
+
} : void 0, fe.value ? {
|
|
2575
2575
|
name: "file",
|
|
2576
|
-
fn:
|
|
2576
|
+
fn: G(({ file: n }) => [I(t.$slots, "file", { file: n }, () => [_(Kn, {
|
|
2577
2577
|
file: n,
|
|
2578
|
-
"list-type":
|
|
2578
|
+
"list-type": T.value,
|
|
2579
2579
|
disabled: e.disabled,
|
|
2580
2580
|
onZoom: Pe,
|
|
2581
2581
|
onDownload: Fe,
|
|
@@ -2583,7 +2583,7 @@ var pr = {
|
|
|
2583
2583
|
onPlay: Ie
|
|
2584
2584
|
}, h({ _: 2 }, [t.$slots.preview ? {
|
|
2585
2585
|
name: "preview",
|
|
2586
|
-
fn:
|
|
2586
|
+
fn: G((e) => [I(t.$slots, "preview", k(b(e)), void 0, !0)]),
|
|
2587
2587
|
key: "0"
|
|
2588
2588
|
} : void 0]), 1032, [
|
|
2589
2589
|
"file",
|
|
@@ -2601,28 +2601,28 @@ var pr = {
|
|
|
2601
2601
|
"auto-upload",
|
|
2602
2602
|
"http-request"
|
|
2603
2603
|
]),
|
|
2604
|
-
e.openCutter ? (
|
|
2604
|
+
e.openCutter ? (M(), d(B(r), {
|
|
2605
2605
|
key: 0,
|
|
2606
2606
|
ref_key: "cutterRef",
|
|
2607
2607
|
ref: y,
|
|
2608
2608
|
option: e.cutterOption,
|
|
2609
2609
|
onCut: Le
|
|
2610
2610
|
}, null, 8, ["option"])) : f("", !0),
|
|
2611
|
-
|
|
2611
|
+
B(ie) ? (M(), d(B(Ce), {
|
|
2612
2612
|
key: 1,
|
|
2613
|
-
"url-list":
|
|
2614
|
-
"initial-index":
|
|
2615
|
-
onClose:
|
|
2613
|
+
"url-list": B(ae),
|
|
2614
|
+
"initial-index": B(R),
|
|
2615
|
+
onClose: B(oe)
|
|
2616
2616
|
}, null, 8, [
|
|
2617
2617
|
"url-list",
|
|
2618
2618
|
"initial-index",
|
|
2619
2619
|
"onClose"
|
|
2620
2620
|
])) : f("", !0),
|
|
2621
2621
|
_($n, {
|
|
2622
|
-
visible:
|
|
2623
|
-
"onUpdate:visible": n[0] ||= (e) =>
|
|
2624
|
-
url:
|
|
2625
|
-
type:
|
|
2622
|
+
visible: B(V),
|
|
2623
|
+
"onUpdate:visible": n[0] ||= (e) => C(V) ? V.value = e : null,
|
|
2624
|
+
url: B(H),
|
|
2625
|
+
type: B(se)
|
|
2626
2626
|
}, null, 8, [
|
|
2627
2627
|
"visible",
|
|
2628
2628
|
"url",
|
|
@@ -2630,7 +2630,7 @@ var pr = {
|
|
|
2630
2630
|
])
|
|
2631
2631
|
], 2));
|
|
2632
2632
|
}
|
|
2633
|
-
}), [["__scopeId", "data-v-
|
|
2633
|
+
}), [["__scopeId", "data-v-3a534ecb"]]), _r = /* @__PURE__ */ y({
|
|
2634
2634
|
name: "KFormUpload",
|
|
2635
2635
|
inheritAttrs: !1,
|
|
2636
2636
|
__name: "Upload",
|
|
@@ -2659,7 +2659,7 @@ var pr = {
|
|
|
2659
2659
|
function a(e) {
|
|
2660
2660
|
r("update:modelValue", e);
|
|
2661
2661
|
}
|
|
2662
|
-
return (e, t) => (
|
|
2662
|
+
return (e, t) => (M(), d(gr, E(e.$attrs, {
|
|
2663
2663
|
"model-value": i.value,
|
|
2664
2664
|
"list-type": n.listType,
|
|
2665
2665
|
action: n.action,
|
|
@@ -2703,7 +2703,7 @@ var pr = {
|
|
|
2703
2703
|
InputMixInput: tn,
|
|
2704
2704
|
InputMixSelect: ln,
|
|
2705
2705
|
RadioInput: Cn,
|
|
2706
|
-
Complex: v(() => import("./Complex-
|
|
2706
|
+
Complex: v(() => import("./Complex-Bqv0gk7C.js")),
|
|
2707
2707
|
ScrollSelect: Tn,
|
|
2708
2708
|
Upload: _r,
|
|
2709
2709
|
Tag: An,
|
|
@@ -2761,7 +2761,7 @@ var Tr = /* @__PURE__ */ y({
|
|
|
2761
2761
|
function c(e) {
|
|
2762
2762
|
r("update:modelValue", e);
|
|
2763
2763
|
}
|
|
2764
|
-
return (t, n) => (
|
|
2764
|
+
return (t, n) => (M(), d(ie(i.value), E({
|
|
2765
2765
|
"model-value": e.modelValue,
|
|
2766
2766
|
options: s.value,
|
|
2767
2767
|
readonly: e.readonly,
|
|
@@ -2807,8 +2807,8 @@ var Tr = /* @__PURE__ */ y({
|
|
|
2807
2807
|
},
|
|
2808
2808
|
emits: ["update:modelValue", "change"],
|
|
2809
2809
|
setup(e, { expose: t, emit: n }) {
|
|
2810
|
-
let r =
|
|
2811
|
-
|
|
2810
|
+
let r = H(), i = e, a = n, o = oe(), s = P(), l = P({});
|
|
2811
|
+
N(Tt, l);
|
|
2812
2812
|
function f(e) {
|
|
2813
2813
|
if (e == null || e === "") return;
|
|
2814
2814
|
if (e instanceof Date) return Number.isNaN(e.getTime()) ? void 0 : e;
|
|
@@ -2839,38 +2839,38 @@ var Tr = /* @__PURE__ */ y({
|
|
|
2839
2839
|
"k-form--inline-layout": i.inline,
|
|
2840
2840
|
"k-form--query-layout": i.autoLayout,
|
|
2841
2841
|
"k-form--grid-layout": !i.autoLayout && !i.inline
|
|
2842
|
-
})),
|
|
2843
|
-
formConfigs:
|
|
2844
|
-
data:
|
|
2845
|
-
modelValue:
|
|
2846
|
-
controlled:
|
|
2842
|
+
})), C = u(() => ({ "--k-form-cols": String(i.colLength) })), w = u(() => i.modelValue !== void 0), T = wt({
|
|
2843
|
+
formConfigs: R(i, "formConfigs"),
|
|
2844
|
+
data: R(i, "data"),
|
|
2845
|
+
modelValue: R(i, "modelValue"),
|
|
2846
|
+
controlled: w,
|
|
2847
2847
|
onChange: (e) => {
|
|
2848
|
-
a("change", e),
|
|
2848
|
+
a("change", e), w.value && a("update:modelValue", e);
|
|
2849
2849
|
}
|
|
2850
2850
|
});
|
|
2851
|
-
function
|
|
2851
|
+
function k() {
|
|
2852
2852
|
let e = {};
|
|
2853
2853
|
i.formConfigs.forEach((t) => {
|
|
2854
|
-
y(t) && (e[`kitDate-${t.id}`] = f(
|
|
2854
|
+
y(t) && (e[`kitDate-${t.id}`] = f(T.formModel[t.id]));
|
|
2855
2855
|
}), l.value = e;
|
|
2856
2856
|
}
|
|
2857
|
-
let { normalizedConfigs:
|
|
2858
|
-
formConfigs:
|
|
2857
|
+
let { normalizedConfigs: j, getFieldOptions: ee, resolveItemRules: te, itemStyle: ne, itemDisplay: re, isItemReadonly: ie, isItemDisabled: ae } = vt({
|
|
2858
|
+
formConfigs: R(i, "formConfigs"),
|
|
2859
2859
|
layout: b,
|
|
2860
|
-
formReadonly:
|
|
2860
|
+
formReadonly: R(i, "readonly")
|
|
2861
2861
|
});
|
|
2862
|
-
|
|
2862
|
+
W(() => i.formConfigs, () => k(), {
|
|
2863
2863
|
immediate: !0,
|
|
2864
2864
|
deep: !0
|
|
2865
|
-
}),
|
|
2866
|
-
function
|
|
2867
|
-
let t =
|
|
2865
|
+
}), W(() => T.formModel, () => k(), { deep: !0 });
|
|
2866
|
+
function z(e) {
|
|
2867
|
+
let t = re(e);
|
|
2868
2868
|
return {
|
|
2869
|
-
...
|
|
2869
|
+
...ne(e),
|
|
2870
2870
|
...t ? { display: t } : {}
|
|
2871
2871
|
};
|
|
2872
2872
|
}
|
|
2873
|
-
let
|
|
2873
|
+
let V = u(() => {
|
|
2874
2874
|
let e = { ...o };
|
|
2875
2875
|
return delete e.readonly, {
|
|
2876
2876
|
inline: i.inline && !i.autoLayout,
|
|
@@ -2879,92 +2879,92 @@ var Tr = /* @__PURE__ */ y({
|
|
|
2879
2879
|
...e
|
|
2880
2880
|
};
|
|
2881
2881
|
});
|
|
2882
|
-
function
|
|
2883
|
-
|
|
2882
|
+
function U(e, t) {
|
|
2883
|
+
T.updateFieldValue(e, t), y(e) && v(e.id, t), se(e);
|
|
2884
2884
|
}
|
|
2885
|
-
function
|
|
2885
|
+
function se(e) {
|
|
2886
2886
|
if (!s.value) return;
|
|
2887
|
-
let t = e.validatePeers ?? [], n =
|
|
2888
|
-
!n && !t.length ||
|
|
2887
|
+
let t = e.validatePeers ?? [], n = te(e).length > 0;
|
|
2888
|
+
!n && !t.length || D(() => {
|
|
2889
2889
|
n && s.value?.validateField(e.id).catch(() => {});
|
|
2890
2890
|
for (let e of t) s.value?.validateField(e).catch(() => {});
|
|
2891
2891
|
});
|
|
2892
2892
|
}
|
|
2893
|
-
async function
|
|
2894
|
-
let e =
|
|
2893
|
+
async function ce() {
|
|
2894
|
+
let e = T.getVisibleFieldsValue();
|
|
2895
2895
|
if (!s.value) return e;
|
|
2896
2896
|
try {
|
|
2897
|
-
return await s.value.validate() === !1 ? i.ignoreValidate ? (s.value.clearValidate(), e) : (
|
|
2897
|
+
return await s.value.validate() === !1 ? i.ignoreValidate ? (s.value.clearValidate(), e) : (ue(), null) : e;
|
|
2898
2898
|
} catch {
|
|
2899
|
-
return i.ignoreValidate ? (s.value.clearValidate(), e) : (
|
|
2899
|
+
return i.ignoreValidate ? (s.value.clearValidate(), e) : (ue(), null);
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
|
-
function
|
|
2902
|
+
function ue() {
|
|
2903
2903
|
((s.value?.$el)?.querySelector(".el-form-item.is-error") ?? document.querySelector(".k-form .el-form-item.is-error"))?.scrollIntoView({
|
|
2904
2904
|
block: "center",
|
|
2905
2905
|
behavior: "smooth"
|
|
2906
2906
|
});
|
|
2907
2907
|
}
|
|
2908
|
-
function
|
|
2909
|
-
return
|
|
2908
|
+
function de(e) {
|
|
2909
|
+
return T.getFieldsValue(e);
|
|
2910
2910
|
}
|
|
2911
|
-
function
|
|
2912
|
-
return
|
|
2911
|
+
function fe() {
|
|
2912
|
+
return T.getVisibleFieldsValue();
|
|
2913
2913
|
}
|
|
2914
|
-
function
|
|
2915
|
-
|
|
2914
|
+
function pe(e) {
|
|
2915
|
+
T.setFieldsValue(e);
|
|
2916
2916
|
}
|
|
2917
|
-
function
|
|
2918
|
-
s.value?.resetFields(),
|
|
2917
|
+
function me() {
|
|
2918
|
+
s.value?.resetFields(), T.resetFormModel();
|
|
2919
2919
|
}
|
|
2920
|
-
function
|
|
2921
|
-
|
|
2920
|
+
function he(e) {
|
|
2921
|
+
T.resetFieldsValue(e), e.forEach((e) => s.value?.clearValidate(e));
|
|
2922
2922
|
}
|
|
2923
|
-
function
|
|
2923
|
+
function ge() {
|
|
2924
2924
|
s.value?.clearValidate();
|
|
2925
2925
|
}
|
|
2926
|
-
function
|
|
2926
|
+
function _e() {
|
|
2927
2927
|
return s.value;
|
|
2928
2928
|
}
|
|
2929
2929
|
return t({
|
|
2930
|
-
validateFields:
|
|
2931
|
-
getFieldsValue:
|
|
2932
|
-
getParams:
|
|
2933
|
-
setFieldsValue:
|
|
2934
|
-
resetForm:
|
|
2935
|
-
resetFieldsValue:
|
|
2936
|
-
getFormRef:
|
|
2937
|
-
clearValidate:
|
|
2938
|
-
}), (e, t) => (
|
|
2930
|
+
validateFields: ce,
|
|
2931
|
+
getFieldsValue: de,
|
|
2932
|
+
getParams: fe,
|
|
2933
|
+
setFieldsValue: pe,
|
|
2934
|
+
resetForm: me,
|
|
2935
|
+
resetFieldsValue: he,
|
|
2936
|
+
getFormRef: _e,
|
|
2937
|
+
clearValidate: ge
|
|
2938
|
+
}), (e, t) => (M(), d(B(be), E({
|
|
2939
2939
|
ref_key: "formRef",
|
|
2940
2940
|
ref: s,
|
|
2941
2941
|
class: ["k-form", S.value],
|
|
2942
|
-
style:
|
|
2943
|
-
model:
|
|
2944
|
-
},
|
|
2945
|
-
default:
|
|
2942
|
+
style: C.value,
|
|
2943
|
+
model: B(T).formModel
|
|
2944
|
+
}, V.value, { onSubmit: t[0] ||= le(() => {}, ["prevent"]) }), {
|
|
2945
|
+
default: G(() => [(M(!0), p(c, null, F(B(j), (n) => (M(), d(B(xe), {
|
|
2946
2946
|
key: n.id,
|
|
2947
2947
|
"data-label": n.label || "",
|
|
2948
2948
|
"data-field-id": n.id,
|
|
2949
2949
|
label: n.label ? `${n.label}:` : void 0,
|
|
2950
2950
|
prop: n.id,
|
|
2951
|
-
rules:
|
|
2952
|
-
class:
|
|
2953
|
-
"k-form__item--readonly":
|
|
2954
|
-
"k-form__item--disabled":
|
|
2951
|
+
rules: B(te)(n),
|
|
2952
|
+
class: O(["k-form__item", [n.class, {
|
|
2953
|
+
"k-form__item--readonly": B(ie)(n),
|
|
2954
|
+
"k-form__item--disabled": B(ae)(n),
|
|
2955
2955
|
"k-form__item--full-row": n.newLineStart,
|
|
2956
|
-
"k-form__item--choice":
|
|
2956
|
+
"k-form__item--choice": B(Sr)(n.component) && (n.component === "Radio" || n.component === "Checkbox" || n.component === "Tag")
|
|
2957
2957
|
}]]),
|
|
2958
|
-
style:
|
|
2958
|
+
style: A(z(n))
|
|
2959
2959
|
}, h({
|
|
2960
|
-
default:
|
|
2960
|
+
default: G(() => [!n.slot || !B(r)[n.id] ? (M(), d(Tr, {
|
|
2961
2961
|
key: 0,
|
|
2962
2962
|
item: n,
|
|
2963
|
-
"model-value":
|
|
2964
|
-
options:
|
|
2965
|
-
readonly:
|
|
2966
|
-
disabled:
|
|
2967
|
-
"onUpdate:modelValue": (e) =>
|
|
2963
|
+
"model-value": B(T).formModel[n.id],
|
|
2964
|
+
options: B(ee)(n),
|
|
2965
|
+
readonly: B(ie)(n),
|
|
2966
|
+
disabled: B(ae)(n),
|
|
2967
|
+
"onUpdate:modelValue": (e) => U(n, e)
|
|
2968
2968
|
}, null, 8, [
|
|
2969
2969
|
"item",
|
|
2970
2970
|
"model-value",
|
|
@@ -2972,26 +2972,26 @@ var Tr = /* @__PURE__ */ y({
|
|
|
2972
2972
|
"readonly",
|
|
2973
2973
|
"disabled",
|
|
2974
2974
|
"onUpdate:modelValue"
|
|
2975
|
-
])) :
|
|
2975
|
+
])) : I(e.$slots, n.id, {
|
|
2976
2976
|
item: n,
|
|
2977
|
-
value:
|
|
2978
|
-
updateValue: (e) =>
|
|
2977
|
+
value: B(T).formModel[n.id],
|
|
2978
|
+
updateValue: (e) => U(n, e)
|
|
2979
2979
|
}, void 0, void 0, 1)]),
|
|
2980
2980
|
_: 2
|
|
2981
2981
|
}, [n.toolTip ? {
|
|
2982
2982
|
name: "label",
|
|
2983
|
-
fn:
|
|
2983
|
+
fn: G(() => [_(B(Re), {
|
|
2984
2984
|
effect: "dark",
|
|
2985
2985
|
placement: "bottom",
|
|
2986
2986
|
"popper-class": "k-form__tooltip"
|
|
2987
2987
|
}, {
|
|
2988
|
-
content:
|
|
2989
|
-
default:
|
|
2988
|
+
content: G(() => [m("span", { innerHTML: n.toolTip }, null, 8, Er)]),
|
|
2989
|
+
default: G(() => [t[1] ||= m("span", {
|
|
2990
2990
|
class: "k-form__tip-icon",
|
|
2991
2991
|
"aria-hidden": "true"
|
|
2992
2992
|
}, "i", -1)]),
|
|
2993
2993
|
_: 2
|
|
2994
|
-
}, 1024), g(" " +
|
|
2994
|
+
}, 1024), g(" " + L(n.label ? `${n.label}:` : ""), 1)]),
|
|
2995
2995
|
key: "0"
|
|
2996
2996
|
} : void 0]), 1032, [
|
|
2997
2997
|
"data-label",
|
|
@@ -3001,7 +3001,7 @@ var Tr = /* @__PURE__ */ y({
|
|
|
3001
3001
|
"rules",
|
|
3002
3002
|
"class",
|
|
3003
3003
|
"style"
|
|
3004
|
-
]))), 128)),
|
|
3004
|
+
]))), 128)), I(e.$slots, "default")]),
|
|
3005
3005
|
_: 3
|
|
3006
3006
|
}, 16, [
|
|
3007
3007
|
"class",
|
|
@@ -3013,7 +3013,7 @@ var Tr = /* @__PURE__ */ y({
|
|
|
3013
3013
|
//#endregion
|
|
3014
3014
|
//#region src/components/k-form/composables/useKFormTemplateRef.ts
|
|
3015
3015
|
function Or(e) {
|
|
3016
|
-
return
|
|
3016
|
+
return U(e);
|
|
3017
3017
|
}
|
|
3018
3018
|
//#endregion
|
|
3019
3019
|
//#region src/components/k-handle-page/KHandlePage.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -3067,7 +3067,7 @@ var kr = { class: "k-handle-page" }, Ar = {
|
|
|
3067
3067
|
},
|
|
3068
3068
|
emits: ["cancel", "submit"],
|
|
3069
3069
|
setup(e, { emit: t }) {
|
|
3070
|
-
let n = e, r = t, i =
|
|
3070
|
+
let n = e, r = t, i = H(), a = P(!1), o = u(() => ({ gap: typeof n.gap == "number" ? `${n.gap}px` : n.gap })), s = u(() => n.cancelText === !1 ? "" : n.cancelText || "取消"), c = u(() => n.submitText === !1 ? "" : n.submitText || "确定"), h = u(() => n.cancelText !== !1), v = u(() => n.showSubmit && n.submitText !== !1), y = u(() => n.submitLoading || n.loading || a.value), b = u(() => !!i.header);
|
|
3071
3071
|
async function x() {
|
|
3072
3072
|
if (!y.value) {
|
|
3073
3073
|
if (n.onSubmit) {
|
|
@@ -3082,34 +3082,34 @@ var kr = { class: "k-handle-page" }, Ar = {
|
|
|
3082
3082
|
r("submit");
|
|
3083
3083
|
}
|
|
3084
3084
|
}
|
|
3085
|
-
return (t, n) => (
|
|
3086
|
-
b.value ? (
|
|
3085
|
+
return (t, n) => (M(), p("div", kr, [
|
|
3086
|
+
b.value ? (M(), p("header", Ar, [I(t.$slots, "header")])) : f("", !0),
|
|
3087
3087
|
m("div", jr, [_(l, { name: "k-handle-page-loading" }, {
|
|
3088
|
-
default:
|
|
3088
|
+
default: G(() => [e.loading ? (M(), p("div", Mr, [m("div", Nr, [_(B(Se), {
|
|
3089
3089
|
class: "k-handle-page__loading-icon is-loading",
|
|
3090
3090
|
size: 32
|
|
3091
3091
|
}, {
|
|
3092
|
-
default:
|
|
3092
|
+
default: G(() => [_(B(Ke))]),
|
|
3093
3093
|
_: 1
|
|
3094
3094
|
}), n[1] ||= m("span", { class: "k-handle-page__loading-text" }, "加载中...", -1)])])) : f("", !0)]),
|
|
3095
3095
|
_: 1
|
|
3096
3096
|
}), m("div", {
|
|
3097
|
-
class:
|
|
3098
|
-
style:
|
|
3099
|
-
}, [
|
|
3100
|
-
e.showFooter ? (
|
|
3097
|
+
class: O(["k-handle-page__content", { "k-handle-page__content--loading": e.loading }]),
|
|
3098
|
+
style: A(o.value)
|
|
3099
|
+
}, [I(t.$slots, "default")], 6)]),
|
|
3100
|
+
e.showFooter ? (M(), p("footer", Pr, [I(t.$slots, "footer", {}, () => [h.value ? (M(), d(Y, {
|
|
3101
3101
|
key: 0,
|
|
3102
3102
|
onClick: n[0] ||= (e) => r("cancel")
|
|
3103
3103
|
}, {
|
|
3104
|
-
default:
|
|
3104
|
+
default: G(() => [g(L(s.value), 1)]),
|
|
3105
3105
|
_: 1
|
|
3106
|
-
})) : f("", !0), v.value ? (
|
|
3106
|
+
})) : f("", !0), v.value ? (M(), d(Y, {
|
|
3107
3107
|
key: 1,
|
|
3108
3108
|
type: "primary",
|
|
3109
3109
|
loading: y.value,
|
|
3110
3110
|
onClick: x
|
|
3111
3111
|
}, {
|
|
3112
|
-
default:
|
|
3112
|
+
default: G(() => [g(L(c.value), 1)]),
|
|
3113
3113
|
_: 1
|
|
3114
3114
|
}, 8, ["loading"])) : f("", !0)])])) : f("", !0)
|
|
3115
3115
|
]));
|
|
@@ -3118,16 +3118,16 @@ var kr = { class: "k-handle-page" }, Ar = {
|
|
|
3118
3118
|
//#endregion
|
|
3119
3119
|
//#region src/components/k-handle-page/useHandlePageInit.ts
|
|
3120
3120
|
function Ir(e, t) {
|
|
3121
|
-
let n =
|
|
3121
|
+
let n = P(!1);
|
|
3122
3122
|
async function r() {
|
|
3123
|
-
(
|
|
3123
|
+
(z(t?.skipLoading) ?? !1) || (n.value = !0);
|
|
3124
3124
|
try {
|
|
3125
3125
|
await e();
|
|
3126
3126
|
} finally {
|
|
3127
3127
|
n.value = !1;
|
|
3128
3128
|
}
|
|
3129
3129
|
}
|
|
3130
|
-
return t?.immediate !== !1 &&
|
|
3130
|
+
return t?.immediate !== !1 && ee(() => {
|
|
3131
3131
|
r();
|
|
3132
3132
|
}), {
|
|
3133
3133
|
pageLoading: n,
|
|
@@ -3169,7 +3169,7 @@ var Wr = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3169
3169
|
},
|
|
3170
3170
|
setup(e) {
|
|
3171
3171
|
let t = e, n = u(() => Br(t.name));
|
|
3172
|
-
return (t, r) => n.value ? (
|
|
3172
|
+
return (t, r) => n.value ? (M(), d(ie(n.value), {
|
|
3173
3173
|
key: 0,
|
|
3174
3174
|
class: "k-icon",
|
|
3175
3175
|
size: e.size,
|
|
@@ -3212,19 +3212,19 @@ var Wr = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3212
3212
|
function h(e) {
|
|
3213
3213
|
return typeof e.slot == "string" ? e.slot : "default";
|
|
3214
3214
|
}
|
|
3215
|
-
return (t, n) => (
|
|
3215
|
+
return (t, n) => (M(), p("div", {
|
|
3216
3216
|
class: "k-link-button",
|
|
3217
|
-
style:
|
|
3218
|
-
}, [(
|
|
3217
|
+
style: A({ justifyContent: e.align })
|
|
3218
|
+
}, [(M(!0), p(c, null, F(i.value, (e, n) => (M(), d(B(Re), {
|
|
3219
3219
|
key: `${e.label}-${n}`,
|
|
3220
3220
|
content: e.tooltip,
|
|
3221
3221
|
placement: "top",
|
|
3222
3222
|
disabled: !e.tooltip
|
|
3223
3223
|
}, {
|
|
3224
|
-
default:
|
|
3225
|
-
class:
|
|
3226
|
-
onClick:
|
|
3227
|
-
}, [l(e) ?
|
|
3224
|
+
default: G(() => [m("div", Gr, [n > 0 ? (M(), p("span", Kr)) : f("", !0), m("a", {
|
|
3225
|
+
class: O(["k-link-button__btn", [o(e), { "k-link-button__btn--readonly": a(e) }]]),
|
|
3226
|
+
onClick: le((t) => s(e, n), ["prevent"])
|
|
3227
|
+
}, [l(e) ? I(t.$slots, h(e), { item: e }, () => [g(L(e.label), 1)], void 0, 0) : (M(), p(c, { key: 1 }, [g(L(e.label), 1)], 64))], 10, qr)])]),
|
|
3228
3228
|
_: 2
|
|
3229
3229
|
}, 1032, ["content", "disabled"]))), 128))], 4));
|
|
3230
3230
|
}
|
|
@@ -3248,7 +3248,7 @@ var Wr = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3248
3248
|
] }
|
|
3249
3249
|
},
|
|
3250
3250
|
setup(e) {
|
|
3251
|
-
return (t, n) => (
|
|
3251
|
+
return (t, n) => (M(), d(B(Oe), E(t.$attrs, {
|
|
3252
3252
|
layout: e.layout,
|
|
3253
3253
|
"page-size": e.pageSize,
|
|
3254
3254
|
"page-sizes": e.pageSizes
|
|
@@ -3266,10 +3266,10 @@ var Wr = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3266
3266
|
title: { default: "" }
|
|
3267
3267
|
},
|
|
3268
3268
|
setup(e) {
|
|
3269
|
-
return (t, n) => (
|
|
3269
|
+
return (t, n) => (M(), p("div", {
|
|
3270
3270
|
id: e.panelId || void 0,
|
|
3271
3271
|
class: "k-long-page-panel"
|
|
3272
|
-
}, [m("div", Zr,
|
|
3272
|
+
}, [m("div", Zr, L(e.title), 1), m("div", Qr, [I(t.$slots, "default", {}, void 0, !0)])], 8, Xr));
|
|
3273
3273
|
}
|
|
3274
3274
|
}), [["__scopeId", "data-v-9d6e7832"]]), ei = 4;
|
|
3275
3275
|
function ti(e) {
|
|
@@ -3294,7 +3294,7 @@ function ti(e) {
|
|
|
3294
3294
|
function u() {
|
|
3295
3295
|
return i ? (i = !1, !0) : !1;
|
|
3296
3296
|
}
|
|
3297
|
-
return
|
|
3297
|
+
return j(s), {
|
|
3298
3298
|
onPointerDown: l,
|
|
3299
3299
|
consumeClickIfDragged: u
|
|
3300
3300
|
};
|
|
@@ -3321,37 +3321,37 @@ var mi = ["onClick"], hi = ["src", "alt"], gi = ["src", "alt"], _i = /*#__PURE__
|
|
|
3321
3321
|
label: "面板一"
|
|
3322
3322
|
}] } },
|
|
3323
3323
|
setup(e) {
|
|
3324
|
-
let t =
|
|
3324
|
+
let t = U("rootRef"), n = U("navRef"), { onPointerDown: r, consumeClickIfDragged: i } = ti(n);
|
|
3325
3325
|
function a(e) {
|
|
3326
3326
|
return pi(e);
|
|
3327
3327
|
}
|
|
3328
3328
|
async function o(e) {
|
|
3329
3329
|
if (i()) return;
|
|
3330
|
-
await
|
|
3330
|
+
await D();
|
|
3331
3331
|
let n = t.value?.querySelector(`#${CSS.escape(e)}`);
|
|
3332
3332
|
(n?.querySelector(".k-long-page-panel__title") ?? n)?.scrollIntoView({
|
|
3333
3333
|
block: "start",
|
|
3334
3334
|
behavior: "smooth"
|
|
3335
3335
|
});
|
|
3336
3336
|
}
|
|
3337
|
-
return (i, s) => (
|
|
3337
|
+
return (i, s) => (M(), p("div", {
|
|
3338
3338
|
ref_key: "rootRef",
|
|
3339
3339
|
ref: t,
|
|
3340
3340
|
class: "k-long-page"
|
|
3341
|
-
}, [(
|
|
3341
|
+
}, [(M(!0), p(c, null, F(e.panels, (e) => (M(), d($r, {
|
|
3342
3342
|
key: e.name,
|
|
3343
3343
|
class: "k-long-page__panel",
|
|
3344
3344
|
"panel-id": e.name,
|
|
3345
3345
|
title: e.label
|
|
3346
3346
|
}, {
|
|
3347
|
-
default:
|
|
3347
|
+
default: G(() => [I(i.$slots, e.name, {}, void 0, !0)]),
|
|
3348
3348
|
_: 2
|
|
3349
3349
|
}, 1032, ["panel-id", "title"]))), 128)), m("div", {
|
|
3350
3350
|
ref_key: "navRef",
|
|
3351
3351
|
ref: n,
|
|
3352
3352
|
class: "k-long-page__nav",
|
|
3353
|
-
onPointerdown: s[0] ||= (...e) =>
|
|
3354
|
-
}, [(
|
|
3353
|
+
onPointerdown: s[0] ||= (...e) => B(r) && B(r)(...e)
|
|
3354
|
+
}, [(M(!0), p(c, null, F(e.panels, (e) => (M(), p("div", {
|
|
3355
3355
|
key: e.name,
|
|
3356
3356
|
class: "k-long-page__nav-item",
|
|
3357
3357
|
role: "button",
|
|
@@ -3374,23 +3374,23 @@ var mi = ["onClick"], hi = ["src", "alt"], gi = ["src", "alt"], _i = /*#__PURE__
|
|
|
3374
3374
|
height: "28",
|
|
3375
3375
|
draggable: "false"
|
|
3376
3376
|
}, null, 8, gi),
|
|
3377
|
-
m("span", null,
|
|
3377
|
+
m("span", null, L(e.label), 1)
|
|
3378
3378
|
], 8, mi))), 128))], 544)], 512));
|
|
3379
3379
|
}
|
|
3380
3380
|
}), [["__scopeId", "data-v-ac934c5d"]]), vi = /* @__PURE__ */ y({
|
|
3381
3381
|
name: "KCard",
|
|
3382
3382
|
__name: "KCard",
|
|
3383
3383
|
setup(e) {
|
|
3384
|
-
return (e, t) => (
|
|
3385
|
-
default:
|
|
3384
|
+
return (e, t) => (M(), d(B(de), k(b(e.$attrs)), h({
|
|
3385
|
+
default: G(() => [I(e.$slots, "default")]),
|
|
3386
3386
|
_: 2
|
|
3387
3387
|
}, [e.$slots.header ? {
|
|
3388
3388
|
name: "header",
|
|
3389
|
-
fn:
|
|
3389
|
+
fn: G(() => [I(e.$slots, "header")]),
|
|
3390
3390
|
key: "0"
|
|
3391
3391
|
} : void 0, e.$slots.footer ? {
|
|
3392
3392
|
name: "footer",
|
|
3393
|
-
fn:
|
|
3393
|
+
fn: G(() => [I(e.$slots, "footer")]),
|
|
3394
3394
|
key: "1"
|
|
3395
3395
|
} : void 0]), 1040));
|
|
3396
3396
|
}
|
|
@@ -3416,24 +3416,24 @@ var mi = ["onClick"], hi = ["src", "alt"], gi = ["src", "alt"], _i = /*#__PURE__
|
|
|
3416
3416
|
}
|
|
3417
3417
|
},
|
|
3418
3418
|
setup(e) {
|
|
3419
|
-
let t = e, n =
|
|
3419
|
+
let t = e, n = P(t.unfold ? ["content"] : []), r = u(() => ({
|
|
3420
3420
|
panel: !0,
|
|
3421
3421
|
"panel-hover": t.hover
|
|
3422
3422
|
}));
|
|
3423
|
-
return (t, i) => (
|
|
3423
|
+
return (t, i) => (M(), p("div", { class: O(r.value) }, [e.isFold ? (M(), d(B(he), {
|
|
3424
3424
|
key: 0,
|
|
3425
3425
|
modelValue: n.value,
|
|
3426
3426
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e
|
|
3427
3427
|
}, {
|
|
3428
|
-
default:
|
|
3428
|
+
default: G(() => [_(B(ge), {
|
|
3429
3429
|
name: "content",
|
|
3430
3430
|
title: e.title
|
|
3431
3431
|
}, {
|
|
3432
|
-
default:
|
|
3432
|
+
default: G(() => [I(t.$slots, "default")]),
|
|
3433
3433
|
_: 3
|
|
3434
3434
|
}, 8, ["title"])]),
|
|
3435
3435
|
_: 3
|
|
3436
|
-
}, 8, ["modelValue"])) : (
|
|
3436
|
+
}, 8, ["modelValue"])) : (M(), p(c, { key: 1 }, [e.title || t.$slots.title ? (M(), p("div", yi, [m("div", bi, [I(t.$slots, "title", {}, () => [g(L(e.title), 1)])])])) : f("", !0), m("div", xi, [I(t.$slots, "default")])], 64))], 2));
|
|
3437
3437
|
}
|
|
3438
3438
|
}), Ci = {
|
|
3439
3439
|
key: 0,
|
|
@@ -3448,29 +3448,29 @@ var mi = ["onClick"], hi = ["src", "alt"], gi = ["src", "alt"], _i = /*#__PURE__
|
|
|
3448
3448
|
emits: ["query", "reset"],
|
|
3449
3449
|
setup(e, { emit: t }) {
|
|
3450
3450
|
let n = t;
|
|
3451
|
-
return (t, r) => e.footer ? (
|
|
3451
|
+
return (t, r) => e.footer ? (M(), p("div", Ci, [_(Y, {
|
|
3452
3452
|
type: "primary",
|
|
3453
3453
|
onClick: r[0] ||= (e) => n("query")
|
|
3454
3454
|
}, {
|
|
3455
|
-
default:
|
|
3455
|
+
default: G(() => [...r[4] ||= [g("查询", -1)]]),
|
|
3456
3456
|
_: 1
|
|
3457
3457
|
}), _(Y, {
|
|
3458
3458
|
class: "k-panel-query__btn-reset",
|
|
3459
3459
|
onClick: r[1] ||= (e) => n("reset")
|
|
3460
3460
|
}, {
|
|
3461
|
-
default:
|
|
3461
|
+
default: G(() => [...r[5] ||= [g("重置", -1)]]),
|
|
3462
3462
|
_: 1
|
|
3463
|
-
})])) : (
|
|
3463
|
+
})])) : (M(), p(c, { key: 1 }, [_(Y, {
|
|
3464
3464
|
type: "primary",
|
|
3465
3465
|
onClick: r[2] ||= (e) => n("query")
|
|
3466
3466
|
}, {
|
|
3467
|
-
default:
|
|
3467
|
+
default: G(() => [...r[6] ||= [g("查询", -1)]]),
|
|
3468
3468
|
_: 1
|
|
3469
3469
|
}), _(Y, {
|
|
3470
3470
|
class: "k-panel-query__btn-reset",
|
|
3471
3471
|
onClick: r[3] ||= (e) => n("reset")
|
|
3472
3472
|
}, {
|
|
3473
|
-
default:
|
|
3473
|
+
default: G(() => [...r[7] ||= [g("重置", -1)]]),
|
|
3474
3474
|
_: 1
|
|
3475
3475
|
})], 64));
|
|
3476
3476
|
}
|
|
@@ -3496,13 +3496,13 @@ var mi = ["onClick"], hi = ["src", "alt"], gi = ["src", "alt"], _i = /*#__PURE__
|
|
|
3496
3496
|
}
|
|
3497
3497
|
},
|
|
3498
3498
|
setup(e, { expose: t }) {
|
|
3499
|
-
let n =
|
|
3499
|
+
let n = P();
|
|
3500
3500
|
return t({
|
|
3501
3501
|
validateFields: () => n.value?.validateFields(),
|
|
3502
3502
|
getParams: () => n.value?.getParams() ?? {},
|
|
3503
3503
|
resetForm: () => n.value?.resetForm(),
|
|
3504
3504
|
getFormRef: () => n.value?.getFormRef()
|
|
3505
|
-
}), (t, r) => (
|
|
3505
|
+
}), (t, r) => (M(), d(B(Dr), {
|
|
3506
3506
|
ref_key: "formRef",
|
|
3507
3507
|
ref: n,
|
|
3508
3508
|
class: "k-panel-query-form",
|
|
@@ -3534,16 +3534,16 @@ var mi = ["onClick"], hi = ["src", "alt"], gi = ["src", "alt"], _i = /*#__PURE__
|
|
|
3534
3534
|
__name: "KPanelQueryItem",
|
|
3535
3535
|
props: { formConfigs: {} },
|
|
3536
3536
|
setup(e, { expose: t }) {
|
|
3537
|
-
let n = e, r =
|
|
3537
|
+
let n = e, r = H(), i = u(() => ({
|
|
3538
3538
|
colLength: 1,
|
|
3539
3539
|
inline: !0,
|
|
3540
3540
|
autoLayout: !1,
|
|
3541
3541
|
hideLabel: !1
|
|
3542
3542
|
})), a = wt({
|
|
3543
|
-
formConfigs:
|
|
3543
|
+
formConfigs: R(n, "formConfigs"),
|
|
3544
3544
|
controlled: u(() => !1)
|
|
3545
3545
|
}), { normalizedConfigs: o, getFieldOptions: s } = vt({
|
|
3546
|
-
formConfigs:
|
|
3546
|
+
formConfigs: R(n, "formConfigs"),
|
|
3547
3547
|
layout: i
|
|
3548
3548
|
});
|
|
3549
3549
|
function l(e, t) {
|
|
@@ -3563,20 +3563,20 @@ var mi = ["onClick"], hi = ["src", "alt"], gi = ["src", "alt"], _i = /*#__PURE__
|
|
|
3563
3563
|
getParams: h,
|
|
3564
3564
|
resetForm: g,
|
|
3565
3565
|
getFormRef: () => void 0
|
|
3566
|
-
}), (e, t) => (
|
|
3566
|
+
}), (e, t) => (M(), p("div", Ei, [m("ul", Di, [(M(!0), p(c, null, F(B(o), (e) => (M(), p("li", {
|
|
3567
3567
|
key: e.id,
|
|
3568
|
-
class:
|
|
3569
|
-
}, [e.label ? (
|
|
3568
|
+
class: O(["k-item", { "k-item_flex": !!e.label }])
|
|
3569
|
+
}, [e.label ? (M(), p("label", Oi, L(e.label), 1)) : f("", !0), m("div", ki, [_(Tr, {
|
|
3570
3570
|
item: e,
|
|
3571
|
-
"model-value":
|
|
3572
|
-
options:
|
|
3571
|
+
"model-value": B(a).formModel[e.id],
|
|
3572
|
+
options: B(s)(e),
|
|
3573
3573
|
"onUpdate:modelValue": (t) => l(e, t)
|
|
3574
3574
|
}, null, 8, [
|
|
3575
3575
|
"item",
|
|
3576
3576
|
"model-value",
|
|
3577
3577
|
"options",
|
|
3578
3578
|
"onUpdate:modelValue"
|
|
3579
|
-
])])], 2))), 128)),
|
|
3579
|
+
])])], 2))), 128)), B(r).button ? (M(), p("li", Ai, [I(e.$slots, "button")])) : f("", !0)])]));
|
|
3580
3580
|
}
|
|
3581
3581
|
}), Mi = /* @__PURE__ */ y({
|
|
3582
3582
|
name: "KPanelQuery",
|
|
@@ -3612,7 +3612,7 @@ var mi = ["onClick"], hi = ["src", "alt"], gi = ["src", "alt"], _i = /*#__PURE__
|
|
|
3612
3612
|
},
|
|
3613
3613
|
emits: ["query", "reset"],
|
|
3614
3614
|
setup(e, { expose: t, emit: n }) {
|
|
3615
|
-
let r = e, i = n, a =
|
|
3615
|
+
let r = e, i = n, a = P(), o = /* @__PURE__ */ new Set([
|
|
3616
3616
|
"Input",
|
|
3617
3617
|
"Select",
|
|
3618
3618
|
"TreeSelect",
|
|
@@ -3648,7 +3648,7 @@ var mi = ["onClick"], hi = ["src", "alt"], gi = ["src", "alt"], _i = /*#__PURE__
|
|
|
3648
3648
|
e && i("query", e);
|
|
3649
3649
|
}
|
|
3650
3650
|
async function v() {
|
|
3651
|
-
a.value?.resetForm(), i("reset"), await
|
|
3651
|
+
a.value?.resetForm(), i("reset"), await D();
|
|
3652
3652
|
let e = await a.value?.validateFields();
|
|
3653
3653
|
e && i("query", e);
|
|
3654
3654
|
}
|
|
@@ -3663,31 +3663,31 @@ var mi = ["onClick"], hi = ["src", "alt"], gi = ["src", "alt"], _i = /*#__PURE__
|
|
|
3663
3663
|
resetForm: b,
|
|
3664
3664
|
getFormRef: () => a.value?.getFormRef(),
|
|
3665
3665
|
submit: g
|
|
3666
|
-
}), (t, n) => (
|
|
3666
|
+
}), (t, n) => (M(), p("div", { class: O(["k-panel-query", {
|
|
3667
3667
|
"k-panel-query__form": e.model === "form" && !e.showPanel,
|
|
3668
3668
|
"k-panel-query__item": m.value
|
|
3669
|
-
}]) }, [e.showPanel ? (
|
|
3669
|
+
}]) }, [e.showPanel ? (M(), d(B(Si), {
|
|
3670
3670
|
key: 1,
|
|
3671
3671
|
title: e.title,
|
|
3672
3672
|
"is-fold": e.isFold,
|
|
3673
3673
|
unfold: e.unfold,
|
|
3674
3674
|
hover: e.hover
|
|
3675
3675
|
}, {
|
|
3676
|
-
default:
|
|
3676
|
+
default: G(() => [l.value ? (M(), p(c, { key: 0 }, [m.value ? (M(), d(ji, E({
|
|
3677
3677
|
key: 0,
|
|
3678
3678
|
ref_key: "formRef",
|
|
3679
3679
|
ref: a
|
|
3680
3680
|
}, l.value), h({ _: 2 }, [e.hideButton ? void 0 : {
|
|
3681
3681
|
name: "button",
|
|
3682
|
-
fn:
|
|
3682
|
+
fn: G(() => [_(wi, {
|
|
3683
3683
|
onQuery: g,
|
|
3684
3684
|
onReset: v
|
|
3685
3685
|
})]),
|
|
3686
3686
|
key: "0"
|
|
3687
|
-
}]), 1040)) : (
|
|
3687
|
+
}]), 1040)) : (M(), p(c, { key: 1 }, [_(Ti, E({
|
|
3688
3688
|
ref_key: "formRef",
|
|
3689
3689
|
ref: a
|
|
3690
|
-
}, l.value, { "hide-label": e.hideLabel }), null, 16, ["hide-label"]), e.hideButton ? f("", !0) : (
|
|
3690
|
+
}, l.value, { "hide-label": e.hideLabel }), null, 16, ["hide-label"]), e.hideButton ? f("", !0) : (M(), d(wi, {
|
|
3691
3691
|
key: 0,
|
|
3692
3692
|
footer: "",
|
|
3693
3693
|
onQuery: g,
|
|
@@ -3699,21 +3699,21 @@ var mi = ["onClick"], hi = ["src", "alt"], gi = ["src", "alt"], _i = /*#__PURE__
|
|
|
3699
3699
|
"is-fold",
|
|
3700
3700
|
"unfold",
|
|
3701
3701
|
"hover"
|
|
3702
|
-
])) : (
|
|
3702
|
+
])) : (M(), p(c, { key: 0 }, [l.value ? (M(), p(c, { key: 0 }, [m.value ? (M(), d(ji, E({
|
|
3703
3703
|
key: 0,
|
|
3704
3704
|
ref_key: "formRef",
|
|
3705
3705
|
ref: a
|
|
3706
3706
|
}, l.value), h({ _: 2 }, [e.hideButton ? void 0 : {
|
|
3707
3707
|
name: "button",
|
|
3708
|
-
fn:
|
|
3708
|
+
fn: G(() => [_(wi, {
|
|
3709
3709
|
onQuery: g,
|
|
3710
3710
|
onReset: v
|
|
3711
3711
|
})]),
|
|
3712
3712
|
key: "0"
|
|
3713
|
-
}]), 1040)) : (
|
|
3713
|
+
}]), 1040)) : (M(), p(c, { key: 1 }, [_(Ti, E({
|
|
3714
3714
|
ref_key: "formRef",
|
|
3715
3715
|
ref: a
|
|
3716
|
-
}, l.value, { "hide-label": e.hideLabel }), null, 16, ["hide-label"]), e.hideButton ? f("", !0) : (
|
|
3716
|
+
}, l.value, { "hide-label": e.hideLabel }), null, 16, ["hide-label"]), e.hideButton ? f("", !0) : (M(), d(wi, {
|
|
3717
3717
|
key: 0,
|
|
3718
3718
|
footer: "",
|
|
3719
3719
|
onQuery: g,
|
|
@@ -3844,7 +3844,7 @@ var Gi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3844
3844
|
},
|
|
3845
3845
|
emits: ["operate-click", "radio-select"],
|
|
3846
3846
|
setup(e, { emit: t }) {
|
|
3847
|
-
let n = e, r = t, i =
|
|
3847
|
+
let n = e, r = t, i = H(), { getCellDisplayValue: a } = Ui(n.nullValueFormat);
|
|
3848
3848
|
function o(e) {
|
|
3849
3849
|
return e ?? "";
|
|
3850
3850
|
}
|
|
@@ -3862,18 +3862,18 @@ var Gi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3862
3862
|
return Pi(e, n.rowKey);
|
|
3863
3863
|
}
|
|
3864
3864
|
return (t, n) => {
|
|
3865
|
-
let u =
|
|
3866
|
-
return e.column.type === "selection" ? (
|
|
3867
|
-
key: `${
|
|
3865
|
+
let u = ne("KTableColumn", !0);
|
|
3866
|
+
return e.column.type === "selection" ? (M(), d(B(K), E({
|
|
3867
|
+
key: `${B($)(e.column, e.columnIndex)}:selection`,
|
|
3868
3868
|
type: "selection"
|
|
3869
|
-
}, s.value), null, 16)) : e.column.type === "index" ? (
|
|
3870
|
-
default:
|
|
3869
|
+
}, s.value), null, 16)) : e.column.type === "index" ? (M(), d(B(K), E({ key: `${B($)(e.column, e.columnIndex)}:index` }, s.value), {
|
|
3870
|
+
default: G(({ $index: e }) => [I(t.$slots, "index", {
|
|
3871
3871
|
index: e,
|
|
3872
3872
|
displayIndex: l(e)
|
|
3873
|
-
}, () => [g(
|
|
3873
|
+
}, () => [g(L(l(e)), 1)], !0)]),
|
|
3874
3874
|
_: 3
|
|
3875
|
-
}, 16)) : e.column.type === "radio" ? (
|
|
3876
|
-
default:
|
|
3875
|
+
}, 16)) : e.column.type === "radio" ? (M(), d(B(K), E({ key: `${B($)(e.column, e.columnIndex)}:radio` }, s.value), {
|
|
3876
|
+
default: G(({ row: t }) => [_(B(je), {
|
|
3877
3877
|
class: "k-table-column__radio",
|
|
3878
3878
|
"model-value": e.radioSelected,
|
|
3879
3879
|
label: x(t),
|
|
@@ -3884,44 +3884,44 @@ var Gi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3884
3884
|
"onUpdate:modelValue"
|
|
3885
3885
|
])]),
|
|
3886
3886
|
_: 1
|
|
3887
|
-
}, 16)) : e.column.type === "operates" ? (
|
|
3888
|
-
default:
|
|
3887
|
+
}, 16)) : e.column.type === "operates" ? (M(), d(B(K), E({ key: `${B($)(e.column, e.columnIndex)}:operates` }, s.value), {
|
|
3888
|
+
default: G(({ row: n, column: r, $index: a }) => [v.value ? I(t.$slots, B(i).operates ? "operates" : o(e.column.prop), {
|
|
3889
3889
|
row: n,
|
|
3890
3890
|
column: r,
|
|
3891
3891
|
index: a
|
|
3892
|
-
}, void 0, !0, 0) : (
|
|
3892
|
+
}, void 0, !0, 0) : (M(), d(B(Jr), {
|
|
3893
3893
|
key: 1,
|
|
3894
3894
|
data: e.column.operates ?? [],
|
|
3895
3895
|
disabled: e.disabled,
|
|
3896
3896
|
"table-mode": "",
|
|
3897
3897
|
onClick: (e, t) => y(e, t, n)
|
|
3898
|
-
}, h({ _: 2 }, [
|
|
3898
|
+
}, h({ _: 2 }, [F(e.column.operates ?? [], (e) => ({
|
|
3899
3899
|
name: b(e),
|
|
3900
|
-
fn:
|
|
3900
|
+
fn: G(({ item: i }) => [I(t.$slots, b(e), {
|
|
3901
3901
|
row: n,
|
|
3902
3902
|
column: r,
|
|
3903
3903
|
index: a,
|
|
3904
3904
|
item: i
|
|
3905
|
-
}, () => [g(
|
|
3905
|
+
}, () => [g(L(i.label), 1)], !0)])
|
|
3906
3906
|
}))]), 1032, [
|
|
3907
3907
|
"data",
|
|
3908
3908
|
"disabled",
|
|
3909
3909
|
"onClick"
|
|
3910
3910
|
]))]),
|
|
3911
3911
|
_: 3
|
|
3912
|
-
}, 16)) : e.column.type === "expand" ? (
|
|
3913
|
-
key: `${
|
|
3912
|
+
}, 16)) : e.column.type === "expand" ? (M(), d(B(K), E({
|
|
3913
|
+
key: `${B($)(e.column, e.columnIndex)}:expand`,
|
|
3914
3914
|
type: "expand"
|
|
3915
3915
|
}, s.value), {
|
|
3916
|
-
default:
|
|
3916
|
+
default: G(({ row: e, column: n, $index: r }) => [I(t.$slots, "expand", {
|
|
3917
3917
|
row: e,
|
|
3918
3918
|
column: n,
|
|
3919
3919
|
index: r
|
|
3920
3920
|
}, void 0, !0)]),
|
|
3921
3921
|
_: 3
|
|
3922
|
-
}, 16)) : e.column.children?.length ? (
|
|
3923
|
-
default:
|
|
3924
|
-
key:
|
|
3922
|
+
}, 16)) : e.column.children?.length ? (M(), d(B(K), E({ key: `${B($)(e.column, e.columnIndex)}:group` }, s.value), {
|
|
3923
|
+
default: G(() => [(M(!0), p(c, null, F(e.column.children, (i, a) => (M(), d(u, {
|
|
3924
|
+
key: B($)(i, a),
|
|
3925
3925
|
column: i,
|
|
3926
3926
|
"column-index": a,
|
|
3927
3927
|
"index-offset": e.indexOffset,
|
|
@@ -3931,9 +3931,9 @@ var Gi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3931
3931
|
"radio-selected": e.radioSelected,
|
|
3932
3932
|
onOperateClick: n[0] ||= (e, t, n) => r("operate-click", e, t, n),
|
|
3933
3933
|
onRadioSelect: n[1] ||= (e) => r("radio-select", e)
|
|
3934
|
-
}, h({ _: 2 }, [
|
|
3934
|
+
}, h({ _: 2 }, [F(t.$slots, (e, n) => ({
|
|
3935
3935
|
name: n,
|
|
3936
|
-
fn:
|
|
3936
|
+
fn: G((e) => [I(t.$slots, n, E({ ref_for: !0 }, e ?? {}), void 0, !0)])
|
|
3937
3937
|
}))]), 1032, [
|
|
3938
3938
|
"column",
|
|
3939
3939
|
"column-index",
|
|
@@ -3944,20 +3944,20 @@ var Gi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3944
3944
|
"radio-selected"
|
|
3945
3945
|
]))), 128))]),
|
|
3946
3946
|
_: 3
|
|
3947
|
-
}, 16)) : (
|
|
3948
|
-
default:
|
|
3947
|
+
}, 16)) : (M(), d(B(K), E({ key: `${B($)(e.column, e.columnIndex)}:default` }, s.value), h({
|
|
3948
|
+
default: G(({ row: n, column: r, $index: i }) => [f.value ? I(t.$slots, o(e.column.prop), {
|
|
3949
3949
|
row: n,
|
|
3950
3950
|
column: r,
|
|
3951
3951
|
index: i
|
|
3952
|
-
}, void 0, !0, 0) : (
|
|
3952
|
+
}, void 0, !0, 0) : (M(), p(c, { key: 1 }, [g(L(B(a)(e.column, n, i)), 1)], 64))]),
|
|
3953
3953
|
_: 2
|
|
3954
3954
|
}, [e.column.toolTip ? {
|
|
3955
3955
|
name: "header",
|
|
3956
|
-
fn:
|
|
3956
|
+
fn: G(() => [m("span", null, L(e.column.label), 1), _(B(Re), {
|
|
3957
3957
|
content: e.column.toolTip,
|
|
3958
3958
|
placement: "top"
|
|
3959
3959
|
}, {
|
|
3960
|
-
default:
|
|
3960
|
+
default: G(() => [...n[2] ||= [m("span", { class: "k-table-column__tip" }, "i", -1)]]),
|
|
3961
3961
|
_: 1
|
|
3962
3962
|
}, 8, ["content"])]),
|
|
3963
3963
|
key: "0"
|
|
@@ -3970,14 +3970,14 @@ var Gi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3970
3970
|
props: { items: {} },
|
|
3971
3971
|
emits: ["change", "reset"],
|
|
3972
3972
|
setup(e, { emit: t }) {
|
|
3973
|
-
let n = t, r =
|
|
3973
|
+
let n = t, r = P(!1);
|
|
3974
3974
|
function i(e, t) {
|
|
3975
3975
|
n("change", e, t);
|
|
3976
3976
|
}
|
|
3977
3977
|
function a() {
|
|
3978
3978
|
n("reset");
|
|
3979
3979
|
}
|
|
3980
|
-
return (t, n) => (
|
|
3980
|
+
return (t, n) => (M(), d(B(ke), {
|
|
3981
3981
|
visible: r.value,
|
|
3982
3982
|
"onUpdate:visible": n[0] ||= (e) => r.value = e,
|
|
3983
3983
|
placement: "bottom-end",
|
|
@@ -3985,28 +3985,28 @@ var Gi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3985
3985
|
trigger: "click",
|
|
3986
3986
|
"popper-class": "k-table-column-selector__popover"
|
|
3987
3987
|
}, {
|
|
3988
|
-
reference:
|
|
3988
|
+
reference: G(() => [...n[1] ||= [m("button", {
|
|
3989
3989
|
type: "button",
|
|
3990
3990
|
class: "k-table-column-selector__trigger",
|
|
3991
3991
|
"aria-label": "列展示设置"
|
|
3992
3992
|
}, [m("span", { class: "k-table-column-selector__icon" })], -1)]]),
|
|
3993
|
-
default:
|
|
3994
|
-
m("div", qi, [n[3] ||= m("span", null, "列展示", -1), _(
|
|
3993
|
+
default: G(() => [m("div", Ki, [
|
|
3994
|
+
m("div", qi, [n[3] ||= m("span", null, "列展示", -1), _(B(ue), {
|
|
3995
3995
|
type: "primary",
|
|
3996
3996
|
link: "",
|
|
3997
3997
|
onClick: a
|
|
3998
3998
|
}, {
|
|
3999
|
-
default:
|
|
3999
|
+
default: G(() => [...n[2] ||= [g("恢复默认", -1)]]),
|
|
4000
4000
|
_: 1
|
|
4001
4001
|
})]),
|
|
4002
|
-
_(
|
|
4003
|
-
m("div", Ji, [(
|
|
4002
|
+
_(B(ye), { class: "k-table-column-selector__divider" }),
|
|
4003
|
+
m("div", Ji, [(M(!0), p(c, null, F(e.items, (e) => (M(), d(B(pe), {
|
|
4004
4004
|
key: e.key,
|
|
4005
4005
|
"model-value": e.checked,
|
|
4006
4006
|
disabled: e.disabled,
|
|
4007
4007
|
onChange: (t) => i(e.key, !!t)
|
|
4008
4008
|
}, {
|
|
4009
|
-
default:
|
|
4009
|
+
default: G(() => [g(L(e.label), 1)]),
|
|
4010
4010
|
_: 2
|
|
4011
4011
|
}, 1032, [
|
|
4012
4012
|
"model-value",
|
|
@@ -4051,23 +4051,23 @@ var Gi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
4051
4051
|
},
|
|
4052
4052
|
emits: ["add"],
|
|
4053
4053
|
setup(e, { emit: t }) {
|
|
4054
|
-
let n = e, r = t, i =
|
|
4055
|
-
return (t, n) => a.value || e.selectionShow ? (
|
|
4056
|
-
a.value ? (
|
|
4057
|
-
e.addButton ? (
|
|
4054
|
+
let n = e, r = t, i = H(), a = u(() => !!(n.addButton || i.header || i.extra)), o = u(() => !!(n.addButton && n.selectionShow));
|
|
4055
|
+
return (t, n) => a.value || e.selectionShow ? (M(), p("div", Xi, [
|
|
4056
|
+
a.value ? (M(), p("div", Zi, [
|
|
4057
|
+
e.addButton ? (M(), d(Y, {
|
|
4058
4058
|
key: 0,
|
|
4059
4059
|
type: "primary",
|
|
4060
|
-
icon:
|
|
4060
|
+
icon: B(qe),
|
|
4061
4061
|
onClick: n[0] ||= (e) => r("add")
|
|
4062
4062
|
}, {
|
|
4063
|
-
default:
|
|
4063
|
+
default: G(() => [g(L(e.addButton === !0 ? "新建" : e.addButton), 1)]),
|
|
4064
4064
|
_: 1
|
|
4065
4065
|
}, 8, ["icon"])) : f("", !0),
|
|
4066
|
-
|
|
4067
|
-
|
|
4066
|
+
B(i).header ? (M(), p("div", Qi, [I(t.$slots, "header", {}, void 0, !0)])) : f("", !0),
|
|
4067
|
+
B(i).extra ? (M(), p("div", $i, [I(t.$slots, "extra", {}, void 0, !0)])) : f("", !0)
|
|
4068
4068
|
])) : f("", !0),
|
|
4069
|
-
o.value ? (
|
|
4070
|
-
e.selectionShow ? (
|
|
4069
|
+
o.value ? (M(), p("div", ea)) : f("", !0),
|
|
4070
|
+
e.selectionShow ? (M(), p("div", ta, "已选择" + L(e.selectedCount) + "条数据", 1)) : f("", !0)
|
|
4071
4071
|
])) : f("", !0);
|
|
4072
4072
|
}
|
|
4073
4073
|
}), [["__scopeId", "data-v-bff19ed1"]]), ra = "kayak_table_column_display";
|
|
@@ -4078,13 +4078,13 @@ function aa(e) {
|
|
|
4078
4078
|
return !(e.type === "radio" || e.type === "expand" || e.children?.length);
|
|
4079
4079
|
}
|
|
4080
4080
|
function oa(e) {
|
|
4081
|
-
let t =
|
|
4081
|
+
let t = P({}), n = P(""), r = Ue(ra, {}), i = u(() => !!z(e.enableColumnCache)), a = u(() => z(e.columns).filter((e) => aa(e)));
|
|
4082
4082
|
function o() {
|
|
4083
|
-
return
|
|
4083
|
+
return z(e.tableKey) || n.value;
|
|
4084
4084
|
}
|
|
4085
4085
|
function s() {
|
|
4086
4086
|
let t = {};
|
|
4087
|
-
return
|
|
4087
|
+
return z(e.columns).forEach((e, n) => {
|
|
4088
4088
|
aa(e) && (t[$(e, n)] = !0);
|
|
4089
4089
|
}), t;
|
|
4090
4090
|
}
|
|
@@ -4109,16 +4109,16 @@ function oa(e) {
|
|
|
4109
4109
|
delete t[e], r.value = t;
|
|
4110
4110
|
}
|
|
4111
4111
|
function f(t, n) {
|
|
4112
|
-
let r =
|
|
4112
|
+
let r = z(e.columns), i = r.findIndex((e) => e === t || e.prop && e.prop === t.prop && e.type === t.type);
|
|
4113
4113
|
return i >= 0 ? $(r[i], i) : $(t, n);
|
|
4114
4114
|
}
|
|
4115
4115
|
function p() {
|
|
4116
|
-
n.value =
|
|
4116
|
+
n.value = z(e.tableKey) || `table_${Math.random().toString(36).slice(2, 11)}`;
|
|
4117
4117
|
let r = c();
|
|
4118
4118
|
t.value = r ? J(r) : s();
|
|
4119
4119
|
}
|
|
4120
4120
|
function m() {
|
|
4121
|
-
|
|
4121
|
+
D(() => e.onLayout?.());
|
|
4122
4122
|
}
|
|
4123
4123
|
function h(n, r) {
|
|
4124
4124
|
t.value = {
|
|
@@ -4133,7 +4133,7 @@ function oa(e) {
|
|
|
4133
4133
|
d(), t.value = s(), e.onDisplayChange?.(t.value), m();
|
|
4134
4134
|
}
|
|
4135
4135
|
let v = u(() => {
|
|
4136
|
-
let n =
|
|
4136
|
+
let n = z(e.renderColumns);
|
|
4137
4137
|
return i.value ? n.filter((e, n) => {
|
|
4138
4138
|
if (ia(e)) return !0;
|
|
4139
4139
|
let r = f(e, n);
|
|
@@ -4149,12 +4149,12 @@ function oa(e) {
|
|
|
4149
4149
|
disabled: ia(e)
|
|
4150
4150
|
};
|
|
4151
4151
|
}));
|
|
4152
|
-
return
|
|
4152
|
+
return W(() => z(e.columns), () => {
|
|
4153
4153
|
let e = s();
|
|
4154
4154
|
Object.keys(e).forEach((e) => {
|
|
4155
4155
|
t.value[e] === void 0 && (t.value[e] = !0);
|
|
4156
4156
|
});
|
|
4157
|
-
}, { deep: !0 }),
|
|
4157
|
+
}, { deep: !0 }), ee(() => {
|
|
4158
4158
|
p();
|
|
4159
4159
|
}), {
|
|
4160
4160
|
columnDisplay: t,
|
|
@@ -4169,18 +4169,18 @@ function oa(e) {
|
|
|
4169
4169
|
//#endregion
|
|
4170
4170
|
//#region src/components/k-table/composables/useTableData.ts
|
|
4171
4171
|
function sa(e) {
|
|
4172
|
-
let t =
|
|
4172
|
+
let t = P([]), n = P(e.initialLoading ?? !1), r = P(!1), i = P(!1);
|
|
4173
4173
|
function a() {
|
|
4174
4174
|
return {
|
|
4175
4175
|
...ft,
|
|
4176
|
-
...
|
|
4176
|
+
...z(e.responseConfig)
|
|
4177
4177
|
};
|
|
4178
4178
|
}
|
|
4179
4179
|
function o() {
|
|
4180
4180
|
let t = a(), { currentPage: n, pageSize: r } = e.pagination.state.value;
|
|
4181
4181
|
return {
|
|
4182
|
-
...
|
|
4183
|
-
...
|
|
4182
|
+
...z(e.params) ?? {},
|
|
4183
|
+
...z(e.queryParams) ?? {},
|
|
4184
4184
|
[t.page]: String(n),
|
|
4185
4185
|
[t.limit]: String(r)
|
|
4186
4186
|
};
|
|
@@ -4213,7 +4213,7 @@ function sa(e) {
|
|
|
4213
4213
|
//#endregion
|
|
4214
4214
|
//#region src/components/k-table/composables/useTablePagination.ts
|
|
4215
4215
|
function ca(e) {
|
|
4216
|
-
let t =
|
|
4216
|
+
let t = z(e.pagination), n = P({
|
|
4217
4217
|
total: t?.total ?? pt.total,
|
|
4218
4218
|
currentPage: t?.currentPage ?? pt.currentPage,
|
|
4219
4219
|
pageSize: t?.pageSize ?? pt.pageSize,
|
|
@@ -4226,8 +4226,8 @@ function ca(e) {
|
|
|
4226
4226
|
pageSizes: n.value.pageSizes,
|
|
4227
4227
|
layout: n.value.layout
|
|
4228
4228
|
})), i = u(() => (n.value.currentPage - 1) * n.value.pageSize);
|
|
4229
|
-
|
|
4230
|
-
let t =
|
|
4229
|
+
W(() => {
|
|
4230
|
+
let t = z(e.pagination);
|
|
4231
4231
|
return [
|
|
4232
4232
|
t?.total,
|
|
4233
4233
|
t?.currentPage,
|
|
@@ -4262,15 +4262,15 @@ function ca(e) {
|
|
|
4262
4262
|
//#endregion
|
|
4263
4263
|
//#region src/components/k-table/composables/useTableRadio.ts
|
|
4264
4264
|
function la(e) {
|
|
4265
|
-
let t =
|
|
4265
|
+
let t = P(""), n = u(() => z(e.columns).some((e) => e.type === "radio"));
|
|
4266
4266
|
function r(n) {
|
|
4267
|
-
return t.value = n ? Pi(n,
|
|
4267
|
+
return t.value = n ? Pi(n, z(e.rowKey)) : "", n;
|
|
4268
4268
|
}
|
|
4269
4269
|
function i() {
|
|
4270
4270
|
t.value = "";
|
|
4271
4271
|
}
|
|
4272
4272
|
function a(n) {
|
|
4273
|
-
t.value = Pi(n,
|
|
4273
|
+
t.value = Pi(n, z(e.rowKey));
|
|
4274
4274
|
}
|
|
4275
4275
|
function o() {
|
|
4276
4276
|
return t.value;
|
|
@@ -4292,10 +4292,10 @@ function ua(e) {
|
|
|
4292
4292
|
t?.destroy(), t = null;
|
|
4293
4293
|
}
|
|
4294
4294
|
function r() {
|
|
4295
|
-
if (n(), !
|
|
4295
|
+
if (n(), !z(e.enabled)) return;
|
|
4296
4296
|
let r = e.tableRef.value?.$el?.querySelector(".el-table__body-wrapper tbody");
|
|
4297
4297
|
r && (t = Ze.create(r, {
|
|
4298
|
-
disabled:
|
|
4298
|
+
disabled: z(e.disabled),
|
|
4299
4299
|
animation: 300,
|
|
4300
4300
|
handle: ".sort-handle",
|
|
4301
4301
|
filter: ".ignore-elements",
|
|
@@ -4303,16 +4303,16 @@ function ua(e) {
|
|
|
4303
4303
|
onEnd: (t) => e.onSortEnd(t)
|
|
4304
4304
|
}));
|
|
4305
4305
|
}
|
|
4306
|
-
return
|
|
4307
|
-
|
|
4308
|
-
|
|
4306
|
+
return W(() => [
|
|
4307
|
+
z(e.enabled),
|
|
4308
|
+
z(e.rebindKey),
|
|
4309
4309
|
e.tableRef.value
|
|
4310
4310
|
], () => {
|
|
4311
|
-
|
|
4312
|
-
}, { flush: "post" }),
|
|
4311
|
+
D(r);
|
|
4312
|
+
}, { flush: "post" }), W(() => z(e.disabled), (e) => {
|
|
4313
4313
|
t && t.option("disabled", e);
|
|
4314
|
-
}),
|
|
4315
|
-
initSortable: () =>
|
|
4314
|
+
}), j(n), {
|
|
4315
|
+
initSortable: () => D(r),
|
|
4316
4316
|
destroySortable: n
|
|
4317
4317
|
};
|
|
4318
4318
|
}
|
|
@@ -4322,7 +4322,7 @@ function da(e) {
|
|
|
4322
4322
|
let t = /* @__PURE__ */ new Map();
|
|
4323
4323
|
function n(n) {
|
|
4324
4324
|
return (r, i, a) => {
|
|
4325
|
-
let o = Pi(r,
|
|
4325
|
+
let o = Pi(r, z(e.rowKey));
|
|
4326
4326
|
o != null && t.set(o, {
|
|
4327
4327
|
row: r,
|
|
4328
4328
|
treeNode: i,
|
|
@@ -4331,7 +4331,7 @@ function da(e) {
|
|
|
4331
4331
|
};
|
|
4332
4332
|
}
|
|
4333
4333
|
function r(n) {
|
|
4334
|
-
let r =
|
|
4334
|
+
let r = z(e.load), i = t.get(n);
|
|
4335
4335
|
if (!i || !r) return;
|
|
4336
4336
|
let a = e.tableRef.value?.store?.states?.lazyTreeNodeMap;
|
|
4337
4337
|
a && n != null && (a[String(n)] = []), r(i.row, i.treeNode, i.resolve);
|
|
@@ -4348,7 +4348,7 @@ function da(e) {
|
|
|
4348
4348
|
//#endregion
|
|
4349
4349
|
//#region src/components/k-table/composables/useKTable.ts
|
|
4350
4350
|
function fa(e) {
|
|
4351
|
-
let { props: t, emit: n, attrs: r, slots: i, tableRef: a, queryRef: o } = e, s =
|
|
4351
|
+
let { props: t, emit: n, attrs: r, slots: i, tableRef: a, queryRef: o } = e, s = P({}), c = P(0), l = u(() => !!t.action), d = u(() => !!t.query?.form?.formConfigs?.length), f = u(() => !!i.header);
|
|
4352
4352
|
function p(e) {
|
|
4353
4353
|
let n = { ...e };
|
|
4354
4354
|
s.value = t.convertParams ? t.convertParams(n) : n;
|
|
@@ -4381,11 +4381,11 @@ function fa(e) {
|
|
|
4381
4381
|
pagination: v,
|
|
4382
4382
|
initialLoading: !!(t.action && t.initTable),
|
|
4383
4383
|
onDataLoaded: (e, t) => n("data-loaded", e, t)
|
|
4384
|
-
}), b = u(() => t.enableColumnCache ? h.visibleColumns.value : m.value), x = u(() => b.value.map((e, t) => $(e, t)).join("|")), S = u(() => !!(t.addButton || t.selectionShow || f.value || t.enableColumnCache)),
|
|
4384
|
+
}), b = u(() => t.enableColumnCache ? h.visibleColumns.value : m.value), x = u(() => b.value.map((e, t) => $(e, t)).join("|")), S = u(() => !!(t.addButton || t.selectionShow || f.value || t.enableColumnCache)), C = u(() => l.value ? y.tableData.value : t.data), w = u(() => t.loading === void 0 ? l.value ? y.loading.value : !1 : t.loading), T = u(() => w.value || !!(l.value && t.initTable && !y.loaded.value)), E = u(() => {
|
|
4385
4385
|
let e = { ...r };
|
|
4386
4386
|
l.value && "data" in e && delete e.data, t.load && delete e.load;
|
|
4387
4387
|
let n = {
|
|
4388
|
-
data:
|
|
4388
|
+
data: C.value,
|
|
4389
4389
|
rowKey: t.rowKey,
|
|
4390
4390
|
border: !0,
|
|
4391
4391
|
stripe: !0,
|
|
@@ -4403,84 +4403,84 @@ function fa(e) {
|
|
|
4403
4403
|
tableRef: a,
|
|
4404
4404
|
rebindKey: () => x.value,
|
|
4405
4405
|
onSortEnd: (e) => {
|
|
4406
|
-
let t = [...
|
|
4406
|
+
let t = [...C.value];
|
|
4407
4407
|
if (e.oldIndex == null || e.newIndex == null) return;
|
|
4408
4408
|
let [r] = t.splice(e.oldIndex, 1);
|
|
4409
4409
|
t.splice(e.newIndex, 0, r), n("sort-end", e, t);
|
|
4410
4410
|
}
|
|
4411
4411
|
});
|
|
4412
|
-
function
|
|
4412
|
+
function D() {
|
|
4413
4413
|
l.value && y.fetchData();
|
|
4414
4414
|
}
|
|
4415
|
-
|
|
4415
|
+
ee(() => {
|
|
4416
4416
|
!t.initTable || !t.action || (d.value && p(o.value?.getParams() ?? {}), y.fetchData());
|
|
4417
4417
|
});
|
|
4418
|
-
function
|
|
4418
|
+
function O(e) {
|
|
4419
4419
|
c.value = e.length, n("selection-change", e);
|
|
4420
4420
|
}
|
|
4421
|
-
function
|
|
4421
|
+
function k(e) {
|
|
4422
4422
|
n("sort-change", e);
|
|
4423
4423
|
}
|
|
4424
|
-
function
|
|
4424
|
+
function A() {
|
|
4425
4425
|
a.value?.setCurrentRow();
|
|
4426
4426
|
}
|
|
4427
|
-
function
|
|
4428
|
-
p(e), v.resetPage(), t.clearCurrentRowOnQuery &&
|
|
4427
|
+
function j(e) {
|
|
4428
|
+
p(e), v.resetPage(), t.clearCurrentRowOnQuery && A(), n("query", s.value), D();
|
|
4429
4429
|
}
|
|
4430
|
-
function
|
|
4431
|
-
n("reset"), t.selectionShow &&
|
|
4430
|
+
function M() {
|
|
4431
|
+
n("reset"), t.selectionShow && z(), t.clearCurrentRowOnReset && A();
|
|
4432
4432
|
}
|
|
4433
|
-
function
|
|
4434
|
-
v.setCurrentPage(e), n("page-change", e),
|
|
4433
|
+
function N(e) {
|
|
4434
|
+
v.setCurrentPage(e), n("page-change", e), D();
|
|
4435
4435
|
}
|
|
4436
|
-
function
|
|
4437
|
-
v.setPageSize(e), n("size-change", e),
|
|
4436
|
+
function te(e) {
|
|
4437
|
+
v.setPageSize(e), n("size-change", e), D();
|
|
4438
4438
|
}
|
|
4439
|
-
function
|
|
4439
|
+
function F() {
|
|
4440
4440
|
n("add");
|
|
4441
4441
|
}
|
|
4442
|
-
function
|
|
4442
|
+
function I(e, t, r) {
|
|
4443
4443
|
n("operate-click", e, t, r);
|
|
4444
4444
|
}
|
|
4445
|
-
function
|
|
4445
|
+
function ne(e) {
|
|
4446
4446
|
if (!g.hasRadioColumn.value) return;
|
|
4447
4447
|
let t = g.selectRow(e);
|
|
4448
4448
|
t && n("radio-change", t, g.radioSelected.value);
|
|
4449
4449
|
}
|
|
4450
|
-
function
|
|
4451
|
-
|
|
4450
|
+
function re(e) {
|
|
4451
|
+
ne(e);
|
|
4452
4452
|
}
|
|
4453
|
-
function
|
|
4453
|
+
function ie(e, t) {
|
|
4454
4454
|
h.setColumnVisibleByKey(e, t);
|
|
4455
4455
|
}
|
|
4456
|
-
function
|
|
4456
|
+
function ae() {
|
|
4457
4457
|
return a.value;
|
|
4458
4458
|
}
|
|
4459
|
-
function
|
|
4459
|
+
function L() {
|
|
4460
4460
|
return o.value;
|
|
4461
4461
|
}
|
|
4462
|
-
function
|
|
4462
|
+
function R() {
|
|
4463
4463
|
return a.value?.getSelectionRows() ?? [];
|
|
4464
4464
|
}
|
|
4465
|
-
function
|
|
4465
|
+
function z() {
|
|
4466
4466
|
a.value?.clearSelection(), c.value = 0;
|
|
4467
4467
|
}
|
|
4468
|
-
function
|
|
4468
|
+
function B(e, t) {
|
|
4469
4469
|
a.value?.toggleRowSelection(e, t);
|
|
4470
4470
|
}
|
|
4471
|
-
async function
|
|
4471
|
+
async function oe(e = !1) {
|
|
4472
4472
|
l.value && await y.refresh(e);
|
|
4473
4473
|
}
|
|
4474
|
-
function
|
|
4474
|
+
function V() {
|
|
4475
4475
|
g.clearRadioSelection(), a.value?.setCurrentRow();
|
|
4476
4476
|
}
|
|
4477
|
-
function
|
|
4477
|
+
function H(e) {
|
|
4478
4478
|
g.setRadioSelection(e);
|
|
4479
4479
|
}
|
|
4480
|
-
function
|
|
4480
|
+
function U() {
|
|
4481
4481
|
return g.getRadioSelection();
|
|
4482
4482
|
}
|
|
4483
|
-
function
|
|
4483
|
+
function se(e) {
|
|
4484
4484
|
_.refreshTree(e);
|
|
4485
4485
|
}
|
|
4486
4486
|
return {
|
|
@@ -4488,37 +4488,37 @@ function fa(e) {
|
|
|
4488
4488
|
showToolbar: S,
|
|
4489
4489
|
hasHeaderSlot: f,
|
|
4490
4490
|
renderColumns: b,
|
|
4491
|
-
tableProps:
|
|
4492
|
-
tableLoading:
|
|
4493
|
-
showLoadingEmpty:
|
|
4491
|
+
tableProps: E,
|
|
4492
|
+
tableLoading: w,
|
|
4493
|
+
showLoadingEmpty: T,
|
|
4494
4494
|
columnSelectorItems: h.selectorItems,
|
|
4495
4495
|
paginationBind: v.bindProps,
|
|
4496
4496
|
indexOffset: v.indexOffset,
|
|
4497
4497
|
selectedCount: c,
|
|
4498
4498
|
radioSelected: g.radioSelected,
|
|
4499
4499
|
getColumnIdentity: $,
|
|
4500
|
-
handleSelectionChange:
|
|
4501
|
-
handleSortChange:
|
|
4502
|
-
handleQuery:
|
|
4503
|
-
handleQueryReset:
|
|
4504
|
-
handlePageChange:
|
|
4505
|
-
handleSizeChange:
|
|
4506
|
-
handleAdd:
|
|
4507
|
-
handleOperateClick:
|
|
4508
|
-
handleRowClick:
|
|
4509
|
-
handleRadioChange:
|
|
4510
|
-
handleColumnVisibleChange:
|
|
4500
|
+
handleSelectionChange: O,
|
|
4501
|
+
handleSortChange: k,
|
|
4502
|
+
handleQuery: j,
|
|
4503
|
+
handleQueryReset: M,
|
|
4504
|
+
handlePageChange: N,
|
|
4505
|
+
handleSizeChange: te,
|
|
4506
|
+
handleAdd: F,
|
|
4507
|
+
handleOperateClick: I,
|
|
4508
|
+
handleRowClick: re,
|
|
4509
|
+
handleRadioChange: ne,
|
|
4510
|
+
handleColumnVisibleChange: ie,
|
|
4511
4511
|
resetColumnDisplay: h.resetColumnDisplay,
|
|
4512
|
-
getTableRef:
|
|
4513
|
-
getQueryRef:
|
|
4514
|
-
getSelection:
|
|
4515
|
-
clearSelection:
|
|
4516
|
-
toggleRowSelection:
|
|
4517
|
-
refresh:
|
|
4518
|
-
clearRadioSelection:
|
|
4519
|
-
setRadioSelection:
|
|
4520
|
-
getRadioSelection:
|
|
4521
|
-
refreshTree:
|
|
4512
|
+
getTableRef: ae,
|
|
4513
|
+
getQueryRef: L,
|
|
4514
|
+
getSelection: R,
|
|
4515
|
+
clearSelection: z,
|
|
4516
|
+
toggleRowSelection: B,
|
|
4517
|
+
refresh: oe,
|
|
4518
|
+
clearRadioSelection: V,
|
|
4519
|
+
setRadioSelection: H,
|
|
4520
|
+
getRadioSelection: U,
|
|
4521
|
+
refreshTree: se
|
|
4522
4522
|
};
|
|
4523
4523
|
}
|
|
4524
4524
|
var pa = {
|
|
@@ -4542,7 +4542,7 @@ var pa = {
|
|
|
4542
4542
|
name: "KTable",
|
|
4543
4543
|
inheritAttrs: !0,
|
|
4544
4544
|
__name: "KTable",
|
|
4545
|
-
props: /*@__PURE__*/
|
|
4545
|
+
props: /*@__PURE__*/ w({
|
|
4546
4546
|
columns: {},
|
|
4547
4547
|
data: {},
|
|
4548
4548
|
action: { type: Function },
|
|
@@ -4586,10 +4586,10 @@ var pa = {
|
|
|
4586
4586
|
"sort-change"
|
|
4587
4587
|
],
|
|
4588
4588
|
setup(e, { expose: t, emit: n }) {
|
|
4589
|
-
let r = e, i = n, a =
|
|
4589
|
+
let r = e, i = n, a = H(), o = P(), s = P(), l = te(fa({
|
|
4590
4590
|
props: r,
|
|
4591
4591
|
emit: i,
|
|
4592
|
-
attrs:
|
|
4592
|
+
attrs: oe(),
|
|
4593
4593
|
slots: a,
|
|
4594
4594
|
tableRef: o,
|
|
4595
4595
|
queryRef: s
|
|
@@ -4614,8 +4614,8 @@ var pa = {
|
|
|
4614
4614
|
getRadioSelection: l.getRadioSelection,
|
|
4615
4615
|
refreshTree: l.refreshTree
|
|
4616
4616
|
}), (t, n) => {
|
|
4617
|
-
let r =
|
|
4618
|
-
return
|
|
4617
|
+
let r = re("loading");
|
|
4618
|
+
return M(), p("div", ma, [l.showQuery ? (M(), d(B(Mi), E({
|
|
4619
4619
|
key: 0,
|
|
4620
4620
|
ref_key: "queryRef",
|
|
4621
4621
|
ref: s,
|
|
@@ -4624,7 +4624,7 @@ var pa = {
|
|
|
4624
4624
|
onQuery: l.handleQuery,
|
|
4625
4625
|
onReset: l.handleQueryReset
|
|
4626
4626
|
}), null, 16, ["onQuery", "onReset"])) : f("", !0), m("div", ha, [
|
|
4627
|
-
l.showToolbar ? (
|
|
4627
|
+
l.showToolbar ? (M(), d(na, {
|
|
4628
4628
|
key: 0,
|
|
4629
4629
|
"add-button": e.addButton,
|
|
4630
4630
|
"selection-show": e.selectionShow,
|
|
@@ -4632,11 +4632,11 @@ var pa = {
|
|
|
4632
4632
|
onAdd: l.handleAdd
|
|
4633
4633
|
}, h({ _: 2 }, [l.hasHeaderSlot ? {
|
|
4634
4634
|
name: "header",
|
|
4635
|
-
fn:
|
|
4635
|
+
fn: G(() => [I(t.$slots, "header", {}, void 0, !0)]),
|
|
4636
4636
|
key: "0"
|
|
4637
4637
|
} : void 0, e.enableColumnCache ? {
|
|
4638
4638
|
name: "extra",
|
|
4639
|
-
fn:
|
|
4639
|
+
fn: G(() => [_(Yi, {
|
|
4640
4640
|
items: l.columnSelectorItems,
|
|
4641
4641
|
onChange: l.handleColumnVisibleChange,
|
|
4642
4642
|
onReset: l.resetColumnDisplay
|
|
@@ -4652,7 +4652,7 @@ var pa = {
|
|
|
4652
4652
|
"selected-count",
|
|
4653
4653
|
"onAdd"
|
|
4654
4654
|
])) : f("", !0),
|
|
4655
|
-
|
|
4655
|
+
ce((M(), d(B(Fe), E({
|
|
4656
4656
|
ref_key: "tableRef",
|
|
4657
4657
|
ref: o,
|
|
4658
4658
|
class: "k-table__main"
|
|
@@ -4661,23 +4661,23 @@ var pa = {
|
|
|
4661
4661
|
onSortChange: l.handleSortChange,
|
|
4662
4662
|
onRowClick: l.handleRowClick
|
|
4663
4663
|
}), {
|
|
4664
|
-
empty:
|
|
4665
|
-
default:
|
|
4664
|
+
empty: G(() => [l.showLoadingEmpty ? ce((M(), p("span", ga, null, 512)), [[r, l.showLoadingEmpty]]) : I(t.$slots, "empty", {}, () => [g(L(t.$attrs.emptyText ?? t.$attrs["empty-text"] ?? "暂无数据"), 1)], !0, 1)]),
|
|
4665
|
+
default: G(() => [e.sort ? (M(), d(B(K), {
|
|
4666
4666
|
key: 0,
|
|
4667
4667
|
label: "拖拽排序",
|
|
4668
4668
|
align: "center",
|
|
4669
4669
|
width: "100"
|
|
4670
4670
|
}, {
|
|
4671
|
-
default:
|
|
4671
|
+
default: G(({ row: n, column: r, $index: i }) => [I(t.$slots, "sort", {
|
|
4672
4672
|
row: n,
|
|
4673
4673
|
column: r,
|
|
4674
4674
|
index: i
|
|
4675
4675
|
}, () => [m("span", {
|
|
4676
|
-
class:
|
|
4676
|
+
class: O(e.sortFilter.includes(i) ? "ignore-elements" : "sort-handle k-table__sort-handle"),
|
|
4677
4677
|
"aria-hidden": "true"
|
|
4678
4678
|
}, "⋮⋮", 2)], !0)]),
|
|
4679
4679
|
_: 3
|
|
4680
|
-
})) : f("", !0), (
|
|
4680
|
+
})) : f("", !0), (M(!0), p(c, null, F(l.renderColumns, (n, r) => (M(), d(Gi, {
|
|
4681
4681
|
key: l.getColumnIdentity(n, r),
|
|
4682
4682
|
column: n,
|
|
4683
4683
|
"column-index": r,
|
|
@@ -4688,9 +4688,9 @@ var pa = {
|
|
|
4688
4688
|
"radio-selected": l.radioSelected,
|
|
4689
4689
|
onOperateClick: l.handleOperateClick,
|
|
4690
4690
|
onRadioSelect: l.handleRadioChange
|
|
4691
|
-
}, h({ _: 2 }, [
|
|
4691
|
+
}, h({ _: 2 }, [F(v.value, (e) => ({
|
|
4692
4692
|
name: e,
|
|
4693
|
-
fn:
|
|
4693
|
+
fn: G((n) => [I(t.$slots, e, E({ ref_for: !0 }, n ?? {}), void 0, !0)])
|
|
4694
4694
|
}))]), 1032, [
|
|
4695
4695
|
"column",
|
|
4696
4696
|
"column-index",
|
|
@@ -4708,13 +4708,13 @@ var pa = {
|
|
|
4708
4708
|
"onSortChange",
|
|
4709
4709
|
"onRowClick"
|
|
4710
4710
|
])), [[r, l.tableLoading]]),
|
|
4711
|
-
m("div", _a, [e.hidePagination ? f("", !0) : (
|
|
4711
|
+
m("div", _a, [e.hidePagination ? f("", !0) : (M(), d(B(Yr), E({
|
|
4712
4712
|
key: 0,
|
|
4713
4713
|
class: "pagination"
|
|
4714
4714
|
}, l.paginationBind, {
|
|
4715
4715
|
onCurrentChange: l.handlePageChange,
|
|
4716
4716
|
onSizeChange: l.handleSizeChange
|
|
4717
|
-
}), null, 16, ["onCurrentChange", "onSizeChange"])),
|
|
4717
|
+
}), null, 16, ["onCurrentChange", "onSizeChange"])), I(t.$slots, "footer", {}, void 0, !0)])
|
|
4718
4718
|
])]);
|
|
4719
4719
|
};
|
|
4720
4720
|
}
|
|
@@ -4760,17 +4760,17 @@ function Ca(e, t) {
|
|
|
4760
4760
|
//#endregion
|
|
4761
4761
|
//#region src/components/k-table/composables/useKTableTemplateRef.ts
|
|
4762
4762
|
function wa(e) {
|
|
4763
|
-
return
|
|
4763
|
+
return U(e);
|
|
4764
4764
|
}
|
|
4765
4765
|
//#endregion
|
|
4766
4766
|
//#region src/components/k-table/composables/useKTableCrossPageSelection.ts
|
|
4767
4767
|
function Ta(e) {
|
|
4768
|
-
let t =
|
|
4768
|
+
let t = ae([]), n = ae([]), r = ae(!1), i = wa(e.tableRefKey ?? "tableRef");
|
|
4769
4769
|
function a() {
|
|
4770
|
-
return e.tableRef == null ? i.value :
|
|
4770
|
+
return e.tableRef == null ? i.value : z(e.tableRef);
|
|
4771
4771
|
}
|
|
4772
4772
|
function o(t) {
|
|
4773
|
-
return String(Pi(t,
|
|
4773
|
+
return String(Pi(t, z(e.rowKey)));
|
|
4774
4774
|
}
|
|
4775
4775
|
function s(e) {
|
|
4776
4776
|
t.value = [...e];
|
|
@@ -4784,16 +4784,16 @@ function Ta(e) {
|
|
|
4784
4784
|
function u(i) {
|
|
4785
4785
|
n.value = i;
|
|
4786
4786
|
let s = new Set(t.value.map(o));
|
|
4787
|
-
if (
|
|
4787
|
+
if (z(e.mode) === "single") {
|
|
4788
4788
|
let e = i.find((e) => s.has(o(e)));
|
|
4789
4789
|
e && a()?.setRadioSelection(e);
|
|
4790
4790
|
return;
|
|
4791
4791
|
}
|
|
4792
|
-
r.value = !0,
|
|
4792
|
+
r.value = !0, D(async () => {
|
|
4793
4793
|
let e = a();
|
|
4794
4794
|
i.forEach((t) => {
|
|
4795
4795
|
s.has(o(t)) && e?.toggleRowSelection(t, !0);
|
|
4796
|
-
}), await
|
|
4796
|
+
}), await D(), r.value = !1;
|
|
4797
4797
|
});
|
|
4798
4798
|
}
|
|
4799
4799
|
function d(e) {
|
|
@@ -4851,18 +4851,18 @@ function ka(e) {
|
|
|
4851
4851
|
//#endregion
|
|
4852
4852
|
//#region src/components/k-table/report/useExportKTableReport.ts
|
|
4853
4853
|
function Aa(e) {
|
|
4854
|
-
let t =
|
|
4854
|
+
let t = P(!1);
|
|
4855
4855
|
async function n() {
|
|
4856
4856
|
if (!t.value) {
|
|
4857
4857
|
t.value = !0;
|
|
4858
4858
|
try {
|
|
4859
4859
|
await Oa({
|
|
4860
4860
|
tableRef: e.tableRef,
|
|
4861
|
-
columns:
|
|
4861
|
+
columns: z(e.columns),
|
|
4862
4862
|
exportApi: e.exportApi,
|
|
4863
4863
|
convertParams: e.convertParams,
|
|
4864
|
-
excludeOperates:
|
|
4865
|
-
excludeLast:
|
|
4864
|
+
excludeOperates: z(e.excludeOperates),
|
|
4865
|
+
excludeLast: z(e.excludeLast)
|
|
4866
4866
|
});
|
|
4867
4867
|
} catch {
|
|
4868
4868
|
Ee.error("导出失败");
|