@kayak-sj/design 1.0.42 → 1.0.44
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-CT6JAfEi.css → components-BURG32wy.css} +1 -1
- package/dist/chunks/{Complex-CE6piRyE.js → Complex-Dgv9RrF1.js} +1 -1
- package/dist/chunks/{components-BpJCO84E.js → components-IRqZ4PJq.js} +594 -594
- package/dist/components/index.js +1 -1
- package/dist/components/k-form/formComponent/DatePicker.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -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 ee, mergeDefaults as C, mergeModels as w, mergeProps as T, nextTick as E, normalizeClass as D, normalizeProps as te, normalizeStyle as O, onBeforeUnmount as k, onMounted as A, openBlock as j, provide as ne, reactive as M, ref as N, renderList as P, renderSlot as F, resolveComponent as re, resolveDirective as ie, resolveDynamicComponent as ae, shallowRef as oe, toDisplayString as I, toRef as L, toValue as R, unref as z, useAttrs as B, useModel as se, useSlots as V, useTemplateRef as H, vShow as ce, watch as U, withCtx as W, withDirectives as le, withModifiers as ue } from "vue";
|
|
4
|
+
import { ElButton as de, ElCard as fe, ElCascader as pe, ElCheckbox as me, ElCheckboxGroup as he, ElCollapse as ge, ElCollapseItem as _e, ElDatePicker as ve, ElDialog as ye, ElDivider as G, 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-BURG32wy.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) => (j(), d(z(de), te(b(e.$attrs)), {
|
|
68
|
+
default: W(() => [F(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) => (j(), p("div", nt, [
|
|
96
|
+
e.icon || t.$slots.icon ? (j(), p("div", rt, [F(t.$slots, "icon", {}, () => [(j(), d(ae(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 ? (j(), p("p", at, [F(t.$slots, "title", {}, () => [g(I(e.title), 1)])])) : f("", !0),
|
|
103
|
+
e.description || t.$slots.description ? (j(), p("p", ot, [F(t.$slots, "description", {}, () => [g(I(e.description), 1)])])) : f("", !0),
|
|
104
|
+
F(t.$slots, "default")
|
|
105
105
|
]),
|
|
106
|
-
t.$slots.extra ? (
|
|
106
|
+
t.$slots.extra ? (j(), p("div", st, [F(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__*/ w({
|
|
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__*/ w([
|
|
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 = se(e, "visible"), r = e, i = t, a = B(), o = V(), 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 ee() {
|
|
176
176
|
i("confirm");
|
|
177
177
|
}
|
|
178
|
-
return (t, r) => (
|
|
178
|
+
return (t, r) => (j(), d(z(ye), T({
|
|
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: W(() => [m("div", lt, [F(t.$slots, "default")])]),
|
|
185
185
|
_: 2
|
|
186
186
|
}, [b.value ? {
|
|
187
187
|
name: "header",
|
|
188
|
-
fn:
|
|
188
|
+
fn: W(() => [F(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 }, [z(o).icon ? {
|
|
193
193
|
name: "icon",
|
|
194
|
-
fn:
|
|
194
|
+
fn: W(() => [F(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, z(o).footer ? {
|
|
203
203
|
name: "footer",
|
|
204
|
-
fn:
|
|
204
|
+
fn: W(() => [F(t.$slots, "footer")]),
|
|
205
205
|
key: "1"
|
|
206
|
-
} : !
|
|
206
|
+
} : !z(o).footer && (e.showConfirm !== !1 || e.showCancel !== !1) ? {
|
|
207
207
|
name: "footer",
|
|
208
|
-
fn:
|
|
208
|
+
fn: W(() => [e.showCancel === !1 ? f("", !0) : (j(), d(Y, {
|
|
209
209
|
key: 0,
|
|
210
210
|
onClick: S
|
|
211
211
|
}, {
|
|
212
|
-
default:
|
|
212
|
+
default: W(() => [g(I(y.value), 1)]),
|
|
213
213
|
_: 1
|
|
214
|
-
})), e.showConfirm === !1 ? f("", !0) : (
|
|
214
|
+
})), e.showConfirm === !1 ? f("", !0) : (j(), d(Y, {
|
|
215
215
|
key: 1,
|
|
216
216
|
type: "primary",
|
|
217
217
|
loading: e.confirmLoading,
|
|
218
|
-
onClick:
|
|
218
|
+
onClick: ee
|
|
219
219
|
}, {
|
|
220
|
-
default:
|
|
220
|
+
default: W(() => [g(I(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 = M({}), 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 U(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 }), U(() => e.data?.value, (t) => {
|
|
505
505
|
xt(e) || t && Object.keys(t).length && m(t);
|
|
506
|
-
}, { deep: !0 }),
|
|
506
|
+
}, { deep: !0 }), U(() => 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 ? (j(), p("span", zt, I(o.value), 1)) : (j(), d(z(pe), {
|
|
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 = N([]), s = N(!1), l = N(!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
|
+
U(() => 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) => (j(), p("div", Vt, [e.readonly ? (j(), p("span", Ht, I(h.value), 1)) : (j(), p(c, { key: 1 }, [e.showSelectAll ? (j(), d(z(me), {
|
|
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: W(() => [...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), _(z(he), {
|
|
702
702
|
"model-value": o.value,
|
|
703
703
|
disabled: e.disabled,
|
|
704
704
|
"onUpdate:modelValue": b
|
|
705
705
|
}, {
|
|
706
|
-
default:
|
|
706
|
+
default: W(() => [(j(!0), p(c, null, P(e.options, (e) => (j(), d(z(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: W(() => [_(z(me), {
|
|
713
|
+
value: z(Z)(e.value),
|
|
714
714
|
disabled: e.disabled
|
|
715
715
|
}, {
|
|
716
|
-
default:
|
|
716
|
+
default: W(() => [g(I(e.label), 1)]),
|
|
717
717
|
_: 2
|
|
718
718
|
}, 1032, ["value", "disabled"])]),
|
|
719
719
|
_: 2
|
|
@@ -769,97 +769,97 @@ var zt = {
|
|
|
769
769
|
},
|
|
770
770
|
emits: ["update:modelValue"],
|
|
771
771
|
setup(e, { emit: t }) {
|
|
772
|
-
let n = e, r = t, i = S(Tt, null), a = u(() => n.datePickerValues ?? i?.value ?? {}), o = u(() => jt(n.modelValue)), s = u(() => Mt(n.type)), c = u(() =>
|
|
772
|
+
let n = e, r = t, i = S(Tt, null), a = u(() => n.datePickerValues ?? i?.value ?? {}), o = u(() => jt(n.modelValue)), s = u(() => Mt(n.type)), c = u(() => s.value === "datetimerange" ? "k-form-date-picker--datetimerange" : ""), l = (e, t) => q(e instanceof Date ? e : String(e)).format(t), m = u(() => {
|
|
773
773
|
if (!n.modelValue) return Q(n.modelValue);
|
|
774
774
|
let e = s.value.includes("datetime") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
775
|
-
if (Array.isArray(n.modelValue)) return n.modelValue.map((t) =>
|
|
775
|
+
if (Array.isArray(n.modelValue)) return n.modelValue.map((t) => l(t, e)).join(" - ");
|
|
776
776
|
let t = q(n.modelValue instanceof Date ? n.modelValue : String(n.modelValue));
|
|
777
777
|
return t.isValid() ? t.format(e) : Q(n.modelValue);
|
|
778
|
-
}),
|
|
778
|
+
}), h = u(() => {
|
|
779
779
|
if (!n.limitTime) return;
|
|
780
780
|
let e = q().hour();
|
|
781
781
|
return () => Array.from({ length: 24 }, (e, t) => t).filter((t) => t < e);
|
|
782
782
|
});
|
|
783
|
-
function
|
|
783
|
+
function g(e) {
|
|
784
784
|
let t = new Date(e.getTime());
|
|
785
785
|
return t.setHours(0, 0, 0, 0), t;
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function _(e) {
|
|
788
788
|
if (e == null) return null;
|
|
789
|
-
if (e === "today") return
|
|
789
|
+
if (e === "today") return g(/* @__PURE__ */ new Date());
|
|
790
790
|
if (typeof e == "function") {
|
|
791
791
|
let t = e();
|
|
792
|
-
return t instanceof Date && !Number.isNaN(t.getTime()) ?
|
|
792
|
+
return t instanceof Date && !Number.isNaN(t.getTime()) ? g(t) : null;
|
|
793
793
|
}
|
|
794
|
-
return e instanceof Date && !Number.isNaN(e.getTime()) ?
|
|
794
|
+
return e instanceof Date && !Number.isNaN(e.getTime()) ? g(e) : null;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
797
|
-
if (e.date !== void 0) return
|
|
796
|
+
function v(e) {
|
|
797
|
+
if (e.date !== void 0) return _(e.date);
|
|
798
798
|
if (e.id) {
|
|
799
799
|
let t = a.value[`kitDate-${e.id}`];
|
|
800
800
|
if (!t) return null;
|
|
801
|
-
if (t instanceof Date) return
|
|
801
|
+
if (t instanceof Date) return g(t);
|
|
802
802
|
let n = q(t);
|
|
803
|
-
return n.isValid() ?
|
|
803
|
+
return n.isValid() ? g(n.toDate()) : null;
|
|
804
804
|
}
|
|
805
805
|
return null;
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function y(e, t, n) {
|
|
808
808
|
return n === ">=" ? e >= t : n === ">" ? e > t : n === "<=" ? e <= t : n === "<" ? e < t : n === "==" && e === t;
|
|
809
809
|
}
|
|
810
|
-
function
|
|
811
|
-
let t =
|
|
810
|
+
function b(e) {
|
|
811
|
+
let t = g(e).getTime(), r = _(n.minDate);
|
|
812
812
|
if (r && t < r.getTime()) return !0;
|
|
813
|
-
let i =
|
|
813
|
+
let i = _(n.maxDate);
|
|
814
814
|
if (i && t > i.getTime()) return !0;
|
|
815
815
|
let a = n.dateDisabled;
|
|
816
816
|
return !a || (typeof a == "function" && (a = a()), !a.length) ? !1 : a.some((e) => {
|
|
817
|
-
let n =
|
|
818
|
-
return n ?
|
|
817
|
+
let n = v(e);
|
|
818
|
+
return n ? y(t, n.getTime(), e.condition) : !1;
|
|
819
819
|
});
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function x(e) {
|
|
822
822
|
r("update:modelValue", e);
|
|
823
823
|
}
|
|
824
|
-
return (t, n) => (
|
|
825
|
-
e.prepend ? (
|
|
824
|
+
return (t, n) => (j(), p("div", { class: D(["k-form-date-picker", c.value]) }, [
|
|
825
|
+
e.prepend ? (j(), 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 ? (j(), p("span", Gt, I(m.value), 1)) : (j(), d(z(ve), {
|
|
831
831
|
key: 1,
|
|
832
832
|
"model-value": o.value,
|
|
833
833
|
type: s.value,
|
|
834
|
-
"default-time": c.value,
|
|
835
834
|
"unlink-panels": "",
|
|
836
835
|
placeholder: e.placeholder,
|
|
837
836
|
"start-placeholder": e.startPlaceholder,
|
|
838
837
|
"end-placeholder": e.endPlaceholder,
|
|
839
838
|
"value-format": e.valueFormat,
|
|
840
839
|
disabled: e.disabled,
|
|
841
|
-
"disabled-date":
|
|
842
|
-
"disabled-hours":
|
|
843
|
-
"
|
|
840
|
+
"disabled-date": b,
|
|
841
|
+
"disabled-hours": h.value,
|
|
842
|
+
"default-time": e.defaultTime,
|
|
843
|
+
"onUpdate:modelValue": x
|
|
844
844
|
}, null, 8, [
|
|
845
845
|
"model-value",
|
|
846
846
|
"type",
|
|
847
|
-
"default-time",
|
|
848
847
|
"placeholder",
|
|
849
848
|
"start-placeholder",
|
|
850
849
|
"end-placeholder",
|
|
851
850
|
"value-format",
|
|
852
851
|
"disabled",
|
|
853
|
-
"disabled-hours"
|
|
852
|
+
"disabled-hours",
|
|
853
|
+
"default-time"
|
|
854
854
|
])),
|
|
855
|
-
e.append ? (
|
|
855
|
+
e.append ? (j(), p("span", {
|
|
856
856
|
key: 3,
|
|
857
857
|
class: "k-form-date-picker__text",
|
|
858
858
|
innerHTML: e.append
|
|
859
859
|
}, null, 8, Kt)) : f("", !0)
|
|
860
860
|
], 2));
|
|
861
861
|
}
|
|
862
|
-
}), [["__scopeId", "data-v-
|
|
862
|
+
}), [["__scopeId", "data-v-4885818d"]]), Jt = /* @__PURE__ */ y({
|
|
863
863
|
name: "KFormFallback",
|
|
864
864
|
__name: "Fallback",
|
|
865
865
|
props: {
|
|
@@ -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) => (j(), d(z(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) => (j(), p("div", {
|
|
923
923
|
class: "k-form-input",
|
|
924
924
|
type: o.value ? "textarea" : void 0
|
|
925
925
|
}, [
|
|
926
|
-
e.leftText ? (
|
|
926
|
+
e.leftText ? (j(), p("div", {
|
|
927
927
|
key: 0,
|
|
928
|
-
class:
|
|
928
|
+
class: D(["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
|
+
}, I(e.leftText), 3)) : f("", !0),
|
|
931
|
+
e.readonly ? (j(), p("div", Xt, I(c.value), 1)) : (j(), d(z(we), T({ 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: W(() => [g(I(e.prepend), 1)]),
|
|
943
943
|
key: "0"
|
|
944
944
|
} : void 0, e.append ? {
|
|
945
945
|
name: "append",
|
|
946
|
-
fn:
|
|
946
|
+
fn: W(() => [g(I(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 ? (j(), p("div", {
|
|
957
957
|
key: 3,
|
|
958
|
-
class:
|
|
958
|
+
class: D(["k-form-input__side k-form-input__side--right", e.rightClass]),
|
|
959
959
|
onClick: n[1] ||= (...t) => e.rightClick && e.rightClick(...t)
|
|
960
|
-
},
|
|
960
|
+
}, I(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 = N(["", ""]);
|
|
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
|
+
U(() => 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) => (j(), p("div", { class: D(["k-form-input-mix-input", { "k-form-input-mix-input--readonly": e.readonly }]) }, [
|
|
1016
|
+
e.leftText ? (j(), 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: D(["k-form-input-mix-input__control", { "k-form-input-mix-input__control--affix": c.value }]),
|
|
1023
|
+
style: O(e.readonly ? void 0 : d.value)
|
|
1024
|
+
}, [_(Zt, T({
|
|
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 ? (j(), 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: D(["k-form-input-mix-input__control", { "k-form-input-mix-input__control--affix": l.value }]),
|
|
1044
|
+
style: O(e.readonly ? void 0 : h.value)
|
|
1045
|
+
}, [_(Zt, T({
|
|
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 ? (j(), 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) => (j(), p("div", T({ class: ["k-form-select", { "k-form-select--readonly": e.readonly }] }, t.$attrs), [e.readonly ? (j(), p("span", nn, I(s.value), 1)) : (j(), d(z(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: W(() => [(j(!0), p(c, null, P(o.value, (e) => (j(), d(z(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 = N({}), o = N(""), s = N(""), 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 ee = u(() => y(r.inputProps)), C = u(() => y(r.selectProps)), w = u(() => x(r.selectWidth, "150px", r.selectProps)), E = u(() => x(r.inputWidth, "140px", r.inputProps));
|
|
1215
|
+
function te(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 k = u(() => te(r.selectProps));
|
|
1224
|
+
function A() {
|
|
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 ne(e, t) {
|
|
1233
|
+
a.value[t] = e, o.value = String(a.value[l.value] ?? ""), s.value = a.value[d.value], A();
|
|
1234
1234
|
}
|
|
1235
|
-
return
|
|
1235
|
+
return U(() => 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) => (j(), p("div", { class: D(["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: O(b.value)
|
|
1243
1243
|
}, [
|
|
1244
|
-
e.leftText ? (
|
|
1245
|
-
e.inputBefore ? (
|
|
1246
|
-
e.inputHide ? f("", !0) : (
|
|
1244
|
+
e.leftText ? (j(), p("div", an, I(e.leftText), 1)) : f("", !0),
|
|
1245
|
+
e.inputBefore ? (j(), p(c, { key: 1 }, [
|
|
1246
|
+
e.inputHide ? f("", !0) : (j(), p("div", {
|
|
1247
1247
|
key: 0,
|
|
1248
|
-
class:
|
|
1249
|
-
style:
|
|
1250
|
-
}, [_(Zt,
|
|
1248
|
+
class: D(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": ee.value }]),
|
|
1249
|
+
style: O(E.value)
|
|
1250
|
+
}, [_(Zt, T({
|
|
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) => ne(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 ? (j(), p("div", on, I(e.centerText), 1)) : f("", !0),
|
|
1262
1262
|
m("div", {
|
|
1263
|
-
class:
|
|
1264
|
-
style:
|
|
1265
|
-
}, [_(rn,
|
|
1263
|
+
class: D(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": C.value }]),
|
|
1264
|
+
style: O(w.value)
|
|
1265
|
+
}, [_(rn, T({
|
|
1266
1266
|
"model-value": s.value,
|
|
1267
1267
|
readonly: e.readonly,
|
|
1268
1268
|
disabled: e.disabled,
|
|
1269
|
-
options:
|
|
1269
|
+
options: k.value,
|
|
1270
1270
|
placeholder: e.selectPlaceholder
|
|
1271
|
-
}, g.value, { "onUpdate:modelValue": n[1] ||= (e) =>
|
|
1271
|
+
}, g.value, { "onUpdate:modelValue": n[1] ||= (e) => ne(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)) : (j(), p(c, { key: 2 }, [
|
|
1279
1279
|
m("div", {
|
|
1280
|
-
class:
|
|
1281
|
-
style:
|
|
1282
|
-
}, [_(rn,
|
|
1280
|
+
class: D(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": C.value }]),
|
|
1281
|
+
style: O(w.value)
|
|
1282
|
+
}, [_(rn, T({
|
|
1283
1283
|
"model-value": s.value,
|
|
1284
1284
|
readonly: e.readonly,
|
|
1285
1285
|
disabled: e.disabled,
|
|
1286
|
-
options:
|
|
1286
|
+
options: k.value,
|
|
1287
1287
|
placeholder: e.selectPlaceholder
|
|
1288
|
-
}, g.value, { "onUpdate:modelValue": n[2] ||= (e) =>
|
|
1288
|
+
}, g.value, { "onUpdate:modelValue": n[2] ||= (e) => ne(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 ? (j(), p("div", sn, I(e.centerText), 1)) : f("", !0),
|
|
1296
|
+
e.inputHide ? f("", !0) : (j(), p("div", {
|
|
1297
1297
|
key: 1,
|
|
1298
|
-
class:
|
|
1299
|
-
style:
|
|
1300
|
-
}, [_(Zt,
|
|
1298
|
+
class: D(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": ee.value }]),
|
|
1299
|
+
style: O(E.value)
|
|
1300
|
+
}, [_(Zt, T({
|
|
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) => ne(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 ? (j(), p("div", cn, I(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) => (j(), p("div", un, [
|
|
1354
|
+
e.leftText ? (j(), p("div", dn, I(e.leftText), 1)) : f("", !0),
|
|
1355
|
+
e.readonly ? (j(), p("span", fn, I(z(Q)(i.value)), 1)) : (j(), d(z(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 ? (j(), p("div", pn, I(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) => (j(), p("div", hn, [e.readonly ? (j(), p("span", gn, I(a.value), 1)) : (j(), d(z(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: W(() => [(j(!0), p(c, null, P(e.options, (t) => (j(), p(c, { key: String(t.value) }, [e.type === "button" ? (j(), d(z(Me), {
|
|
1397
1397
|
key: 0,
|
|
1398
|
-
value:
|
|
1398
|
+
value: z(Z)(t.value),
|
|
1399
1399
|
disabled: t.disabled
|
|
1400
1400
|
}, {
|
|
1401
|
-
default:
|
|
1401
|
+
default: W(() => [g(I(t.label), 1)]),
|
|
1402
1402
|
_: 2
|
|
1403
|
-
}, 1032, ["value", "disabled"])) : (
|
|
1403
|
+
}, 1032, ["value", "disabled"])) : (j(), d(z(je), {
|
|
1404
1404
|
key: 1,
|
|
1405
|
-
value:
|
|
1405
|
+
value: z(Z)(t.value),
|
|
1406
1406
|
disabled: t.disabled
|
|
1407
1407
|
}, {
|
|
1408
|
-
default:
|
|
1408
|
+
default: W(() => [g(I(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 = N(n.options?.[0]?.value ?? ""), a = N(""), 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
|
+
U(() => 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
|
+
U([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) => (j(), p("div", { class: D(["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 ? (j(), p(c, { key: 0 }, [
|
|
1505
|
+
e.leftText ? (j(), p("label", vn, I(e.leftText), 1)) : f("", !0),
|
|
1506
|
+
e.type === "inputNumber" ? (j(), d(z(Te), T({
|
|
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
|
+
])) : (j(), d(z(we), T({
|
|
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 ? (j(), p("label", yn, I(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 ? (j(), p("div", bn, [
|
|
1531
|
+
e.leftText ? (j(), p("label", xn, I(e.leftText), 1)) : f("", !0),
|
|
1532
|
+
g(" " + I(a.value) + " ", 1),
|
|
1533
|
+
e.rightText ? (j(), p("label", Sn, I(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 = N([]), a = N(!1), o = N(!1), s = N(1), l = N(""), f = N(null), m = N(n.multiple ? [] : "");
|
|
1572
|
+
U(() => n.modelValue, (e) => {
|
|
1573
1573
|
m.value = n.multiple ? kt(e) : Z(e);
|
|
1574
|
-
}, { immediate: !0 }),
|
|
1574
|
+
}, { immediate: !0 }), U(() => n.defaultSelectedStr, (e) => {
|
|
1575
1575
|
e?.length && (i.value = [...i.value, ...e]);
|
|
1576
1576
|
}, {
|
|
1577
1577
|
immediate: !0,
|
|
1578
1578
|
deep: !0
|
|
1579
|
-
}),
|
|
1579
|
+
}), U(() => 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
|
+
E(() => {
|
|
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 ? (j(), p("span", wn, I(S.value), 1)) : (j(), d(z(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: W(() => [(j(!0), p(c, null, P(i.value, (e, t) => le((j(), d(z(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"])), [[ce, 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 = N([]), 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
|
+
U(() => 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 ? (j(), p("span", En, I(l.value), 1)) : (j(), d(z(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: W(() => [(j(!0), p(c, null, P(o.value, (e) => (j(), d(z(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 = N([]), 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
|
+
U(() => 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) => (j(), p("div", kn, [(j(!0), p(c, null, P(o.value, (e) => (j(), d(z(Ie), {
|
|
1806
1806
|
key: e.value || "__all__",
|
|
1807
|
-
class:
|
|
1807
|
+
class: D(["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: W(() => [g(I(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) => (j(), p("div", jn, [m("p", null, I(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) => (j(), p("div", Nn, [
|
|
1895
|
+
e.prepend ? (j(), 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 ? (j(), p("span", Fn, I(e.leftText), 1)) : f("", !0),
|
|
1901
|
+
e.readonly ? (j(), p("span", In, I(c.value), 1)) : (j(), d(z(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 ? (j(), p("span", Ln, I(e.rightText), 1)) : f("", !0),
|
|
1931
|
+
e.append ? (j(), 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) => (j(), p("div", Bn, [e.readonly ? (j(), p("div", Vn, I(o.value), 1)) : (j(), d(z(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) => (j(), p("div", Un, [i.value ? (j(), 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
|
+
}, [_(z(Se), null, {
|
|
2010
|
+
default: W(() => [_(z(Je))]),
|
|
2011
2011
|
_: 1
|
|
2012
|
-
})])) : (
|
|
2012
|
+
})])) : (j(), p(c, { key: 1 }, [F(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
|
+
}, [_(z(Se), null, {
|
|
2021
|
+
default: W(() => [_(z(Ye))]),
|
|
2022
2022
|
_: 1
|
|
2023
2023
|
})]),
|
|
2024
|
-
e.disabled ? f("", !0) : (
|
|
2024
|
+
e.disabled ? f("", !0) : (j(), 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
|
+
}, [_(z(Se), null, {
|
|
2029
|
+
default: W(() => [_(z(Ge))]),
|
|
2030
2030
|
_: 1
|
|
2031
2031
|
})])),
|
|
2032
|
-
e.disabled ? f("", !0) : (
|
|
2032
|
+
e.disabled ? f("", !0) : (j(), 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
|
+
}, [_(z(Se), null, {
|
|
2037
|
+
default: W(() => [_(z(We))]),
|
|
2038
2038
|
_: 1
|
|
2039
2039
|
})]))
|
|
2040
|
-
])], 64)), a.value ? (
|
|
2040
|
+
])], 64)), a.value ? (j(), d(z(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,20 +2063,20 @@ var zt = {
|
|
|
2063
2063
|
emits: ["downloadTemplate"],
|
|
2064
2064
|
setup(e, { emit: t }) {
|
|
2065
2065
|
let n = t;
|
|
2066
|
-
return (t, r) => (
|
|
2066
|
+
return (t, r) => (j(), p("div", qn, [e.templateCode ? (j(), p("button", {
|
|
2067
2067
|
key: 0,
|
|
2068
2068
|
type: "button",
|
|
2069
2069
|
class: "k-upload__download",
|
|
2070
|
-
onClick: r[0] ||=
|
|
2071
|
-
}, [_(
|
|
2072
|
-
default:
|
|
2070
|
+
onClick: r[0] ||= ue((e) => n("downloadTemplate"), ["stop"])
|
|
2071
|
+
}, [_(z(Se), { class: "k-upload__download-icon" }, {
|
|
2072
|
+
default: W(() => [_(z(Ge))]),
|
|
2073
2073
|
_: 1
|
|
2074
|
-
}), m("span", null,
|
|
2074
|
+
}), m("span", null, I(e.templateBtnText), 1)])) : f("", !0), e.tipType === "tooltip" && e.tipText ? (j(), d(z(Re), {
|
|
2075
2075
|
key: 1,
|
|
2076
2076
|
placement: "top",
|
|
2077
2077
|
content: e.tipText
|
|
2078
2078
|
}, {
|
|
2079
|
-
default:
|
|
2079
|
+
default: W(() => [...r[1] ||= [m("i", {
|
|
2080
2080
|
class: "k-upload__tip-icon",
|
|
2081
2081
|
"aria-label": "上传说明"
|
|
2082
2082
|
}, "?", -1)]]),
|
|
@@ -2086,7 +2086,7 @@ var zt = {
|
|
|
2086
2086
|
}), [["__scopeId", "data-v-55d9c320"]]), Yn = { class: "k-upload__media-wrap" }, Xn = ["src"], Zn = ["src"], Qn = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
2087
2087
|
name: "KUploadMediaDialog",
|
|
2088
2088
|
__name: "UploadMediaDialog",
|
|
2089
|
-
props: /*@__PURE__*/
|
|
2089
|
+
props: /*@__PURE__*/ w({
|
|
2090
2090
|
url: {},
|
|
2091
2091
|
type: {}
|
|
2092
2092
|
}, {
|
|
@@ -2098,8 +2098,8 @@ var zt = {
|
|
|
2098
2098
|
}),
|
|
2099
2099
|
emits: ["update:visible"],
|
|
2100
2100
|
setup(e) {
|
|
2101
|
-
let t =
|
|
2102
|
-
return (n, r) => (
|
|
2101
|
+
let t = se(e, "visible");
|
|
2102
|
+
return (n, r) => (j(), d(ut, {
|
|
2103
2103
|
visible: t.value,
|
|
2104
2104
|
"onUpdate:visible": r[0] ||= (e) => t.value = e,
|
|
2105
2105
|
"show-confirm": !1,
|
|
@@ -2107,12 +2107,12 @@ var zt = {
|
|
|
2107
2107
|
width: "640px",
|
|
2108
2108
|
title: "预览"
|
|
2109
2109
|
}, {
|
|
2110
|
-
default:
|
|
2110
|
+
default: W(() => [m("div", Yn, [e.type === "video" ? (j(), p("video", {
|
|
2111
2111
|
key: 0,
|
|
2112
2112
|
src: e.url,
|
|
2113
2113
|
controls: "",
|
|
2114
2114
|
class: "k-upload__media"
|
|
2115
|
-
}, "您的浏览器不支持视频播放", 8, Xn)) : (
|
|
2115
|
+
}, "您的浏览器不支持视频播放", 8, Xn)) : (j(), p("audio", {
|
|
2116
2116
|
key: 1,
|
|
2117
2117
|
src: e.url,
|
|
2118
2118
|
controls: "",
|
|
@@ -2130,11 +2130,11 @@ var zt = {
|
|
|
2130
2130
|
percentage: { default: 0 }
|
|
2131
2131
|
},
|
|
2132
2132
|
setup(e) {
|
|
2133
|
-
return (t, n) => (
|
|
2133
|
+
return (t, n) => (j(), p("div", $n, [e.tipType === "text" && e.tipText ? (j(), p("div", {
|
|
2134
2134
|
key: 0,
|
|
2135
2135
|
class: "el-upload__tip",
|
|
2136
2136
|
innerHTML: e.tipText
|
|
2137
|
-
}, null, 8, er)) : f("", !0), e.percentage > 0 ? (
|
|
2137
|
+
}, null, 8, er)) : f("", !0), e.percentage > 0 ? (j(), d(z(Ae), {
|
|
2138
2138
|
key: 1,
|
|
2139
2139
|
class: "k-upload__progress",
|
|
2140
2140
|
percentage: e.percentage,
|
|
@@ -2145,7 +2145,7 @@ var zt = {
|
|
|
2145
2145
|
//#endregion
|
|
2146
2146
|
//#region src/components/k-upload/composables/useImagePreview.ts
|
|
2147
2147
|
function nr() {
|
|
2148
|
-
let e =
|
|
2148
|
+
let e = N(!1), t = N([]), n = N(0);
|
|
2149
2149
|
function r(r, i) {
|
|
2150
2150
|
let a = i.map((e) => e.url).filter((e) => !!e), o = r.url;
|
|
2151
2151
|
if (o && !a.includes(o) && a.unshift(o), !a.length) return !1;
|
|
@@ -2166,7 +2166,7 @@ function nr() {
|
|
|
2166
2166
|
//#endregion
|
|
2167
2167
|
//#region src/components/k-upload/composables/useMediaPreview.ts
|
|
2168
2168
|
function rr() {
|
|
2169
|
-
let e =
|
|
2169
|
+
let e = N(!1), t = N(""), n = N("video");
|
|
2170
2170
|
function r(r, i) {
|
|
2171
2171
|
r.url && (t.value = r.url, n.value = i, e.value = !0);
|
|
2172
2172
|
}
|
|
@@ -2187,8 +2187,8 @@ function ir(e, t) {
|
|
|
2187
2187
|
return String(e) === String(t);
|
|
2188
2188
|
}
|
|
2189
2189
|
function ar(e) {
|
|
2190
|
-
let t =
|
|
2191
|
-
|
|
2190
|
+
let t = N([]);
|
|
2191
|
+
U(() => e.getModelValue(), (e) => {
|
|
2192
2192
|
t.value = Array.isArray(e) ? e.map((e) => ({ ...e })) : [];
|
|
2193
2193
|
}, {
|
|
2194
2194
|
immediate: !0,
|
|
@@ -2360,8 +2360,8 @@ var fr = {
|
|
|
2360
2360
|
let n = e instanceof Error ? e.message : String(e ?? "");
|
|
2361
2361
|
return /timeout/i.test(n) || /ECONNABORTED/i.test(n) ? "请求超时,请稍后重试" : n || t;
|
|
2362
2362
|
}
|
|
2363
|
-
let o = e, c = n, l =
|
|
2364
|
-
|
|
2363
|
+
let o = e, c = n, l = N(), y = H("cutterRef"), x = N(null), S = N(0);
|
|
2364
|
+
U(y, (e) => {
|
|
2365
2365
|
if (!e || !x.value) return;
|
|
2366
2366
|
let t = x.value;
|
|
2367
2367
|
x.value = null, e.openImgCutter({
|
|
@@ -2369,7 +2369,7 @@ var fr = {
|
|
|
2369
2369
|
raw: t.raw
|
|
2370
2370
|
});
|
|
2371
2371
|
});
|
|
2372
|
-
function
|
|
2372
|
+
function C(e) {
|
|
2373
2373
|
if (y.value) {
|
|
2374
2374
|
y.value.openImgCutter({
|
|
2375
2375
|
name: e.name,
|
|
@@ -2379,14 +2379,14 @@ var fr = {
|
|
|
2379
2379
|
}
|
|
2380
2380
|
x.value = e;
|
|
2381
2381
|
}
|
|
2382
|
-
let
|
|
2382
|
+
let w = u(() => o.accept ? o.accept.toLowerCase() : i[o.listType] ?? ""), { fileList: O, elFileList: k, removeByUid: A, upsert: ne, findByUid: M } = ar({
|
|
2383
2383
|
getModelValue: () => o.modelValue,
|
|
2384
2384
|
onUpdate: (e) => c("update:modelValue", e),
|
|
2385
2385
|
getLimit: () => o.limit
|
|
2386
|
-
}),
|
|
2387
|
-
getAccept: () =>
|
|
2386
|
+
}), P = lr({
|
|
2387
|
+
getAccept: () => w.value,
|
|
2388
2388
|
getMaxSize: () => o.maxSize
|
|
2389
|
-
}),
|
|
2389
|
+
}), re = cr({ getTemplateCode: () => o.templateCode }), { visible: ie, urlList: ae, initialIndex: oe, open: L, close: R } = nr(), { visible: B, url: se, type: V, open: ce } = rr(), le = u(() => ur(o.listType, o.action)), ue = u(() => {
|
|
2390
2390
|
switch (o.listType) {
|
|
2391
2391
|
case "picture": return "picture";
|
|
2392
2392
|
case "picture-card":
|
|
@@ -2394,19 +2394,19 @@ var fr = {
|
|
|
2394
2394
|
case "lottie": return "picture-card";
|
|
2395
2395
|
default: return "text";
|
|
2396
2396
|
}
|
|
2397
|
-
}),
|
|
2397
|
+
}), de = u(() => [
|
|
2398
2398
|
"picture",
|
|
2399
2399
|
"picture-card",
|
|
2400
2400
|
"picture2",
|
|
2401
2401
|
"lottie"
|
|
2402
|
-
].includes(o.listType)),
|
|
2402
|
+
].includes(o.listType)), fe = u(() => [
|
|
2403
2403
|
"picture-card",
|
|
2404
2404
|
"lottie",
|
|
2405
2405
|
"video",
|
|
2406
2406
|
"audio"
|
|
2407
|
-
].includes(o.listType)),
|
|
2407
|
+
].includes(o.listType)), pe = u(() => o.listType === "picture-card" || o.listType === "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 && O.value.length >= o.limit)), ve = u(() => !o.disabled), ye = u(() => !pe.value && !o.disabled), G = u(() => o.disabled ? "" : o.fileTips || (w.value ? `支持上传 ${w.value} 后缀文件,且不超过${o.maxSize}M` : "")), be = u(() => {
|
|
2408
2408
|
let e = ["k-upload", `k-upload--${o.listType}`];
|
|
2409
|
-
return o.disabled && e.push("k-upload_detail"),
|
|
2409
|
+
return o.disabled && e.push("k-upload_detail"), _e.value && e.push("k-upload--limit"), e.join(" ");
|
|
2410
2410
|
});
|
|
2411
2411
|
function xe(e, t, n) {
|
|
2412
2412
|
let r = e ?? {}, i = String(r.resource_id ?? ""), a = String(r.file_name ?? n), s = dr(o.listType);
|
|
@@ -2423,29 +2423,29 @@ var fr = {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
function we(e, t, n) {
|
|
2425
2425
|
let r = xe(e, t, n);
|
|
2426
|
-
|
|
2426
|
+
ne(r), S.value = 0, o.showSuccMessage && Ee.success("文件上传成功!"), c("success", e, r);
|
|
2427
2427
|
}
|
|
2428
|
-
let Te = (e) =>
|
|
2428
|
+
let Te = (e) => P.validate(e), De = (e, t) => {
|
|
2429
2429
|
we(e ?? {}, t.uid, t.name);
|
|
2430
2430
|
}, Oe = (e, t) => {
|
|
2431
|
-
S.value = 0, Ee.error(a(e, "文件上传失败!")),
|
|
2431
|
+
S.value = 0, Ee.error(a(e, "文件上传失败!")), A(t.uid), c("error", e, t);
|
|
2432
2432
|
}, ke = (e) => {
|
|
2433
|
-
if (typeof e.uid == "number" &&
|
|
2434
|
-
let t =
|
|
2435
|
-
|
|
2433
|
+
if (typeof e.uid == "number" && P.consumeRejected(e.uid)) return;
|
|
2434
|
+
let t = M(e.uid);
|
|
2435
|
+
A(e.uid), t && c("remove", t);
|
|
2436
2436
|
}, Ae = (e) => {
|
|
2437
|
-
let t =
|
|
2438
|
-
t && (c("preview", t), !(
|
|
2437
|
+
let t = M(e.uid);
|
|
2438
|
+
t && (c("preview", t), !(de.value && L(t, O.value)) && ze(t));
|
|
2439
2439
|
}, je = (e) => {
|
|
2440
2440
|
o.listType === "picture2" && (S.value = Math.round(e.percent ?? 0));
|
|
2441
2441
|
}, Me = (e) => {
|
|
2442
2442
|
if (c("change", e), !(!o.openCutter || e.status !== "ready" || !e.raw)) {
|
|
2443
|
-
if (
|
|
2444
|
-
|
|
2443
|
+
if (P.validate(e.raw) === !1) {
|
|
2444
|
+
A(e.uid);
|
|
2445
2445
|
return;
|
|
2446
2446
|
}
|
|
2447
|
-
|
|
2448
|
-
l.value?.handleRemove(e),
|
|
2447
|
+
A(e.uid), E(() => {
|
|
2448
|
+
l.value?.handleRemove(e), C({
|
|
2449
2449
|
name: e.name,
|
|
2450
2450
|
raw: e.raw
|
|
2451
2451
|
});
|
|
@@ -2455,25 +2455,25 @@ var fr = {
|
|
|
2455
2455
|
c("exceed", e, t);
|
|
2456
2456
|
};
|
|
2457
2457
|
function Pe(e) {
|
|
2458
|
-
let t =
|
|
2459
|
-
t &&
|
|
2458
|
+
let t = M(e.uid);
|
|
2459
|
+
t && L(t, O.value);
|
|
2460
2460
|
}
|
|
2461
2461
|
function Fe(e) {
|
|
2462
|
-
let t =
|
|
2462
|
+
let t = M(e.uid);
|
|
2463
2463
|
t && ze(t);
|
|
2464
2464
|
}
|
|
2465
2465
|
function K(e) {
|
|
2466
|
-
let t =
|
|
2467
|
-
|
|
2466
|
+
let t = M(e.uid);
|
|
2467
|
+
A(e.uid), t && c("remove", t);
|
|
2468
2468
|
}
|
|
2469
2469
|
function Ie(e) {
|
|
2470
|
-
let t =
|
|
2471
|
-
t &&
|
|
2470
|
+
let t = M(e.uid);
|
|
2471
|
+
t && ce(t, o.listType === "audio" ? "audio" : "video");
|
|
2472
2472
|
}
|
|
2473
2473
|
async function Le(e) {
|
|
2474
2474
|
try {
|
|
2475
2475
|
let t = ur("picture", o.action);
|
|
2476
|
-
we(await
|
|
2476
|
+
we(await re.uploadFile(e, t), -Date.now(), e.name);
|
|
2477
2477
|
} catch (e) {
|
|
2478
2478
|
Ee.error(a(e, "图片上传失败!"));
|
|
2479
2479
|
}
|
|
@@ -2497,20 +2497,20 @@ var fr = {
|
|
|
2497
2497
|
submit: () => l.value?.submit(),
|
|
2498
2498
|
clearFiles: () => l.value?.clearFiles(),
|
|
2499
2499
|
uploadRef: l
|
|
2500
|
-
}), (t, n) => (
|
|
2501
|
-
_(
|
|
2500
|
+
}), (t, n) => (j(), p("div", { class: D(["k-upload-wrap", be.value]) }, [
|
|
2501
|
+
_(z(Be), T({
|
|
2502
2502
|
ref_key: "uploadRef",
|
|
2503
2503
|
ref: l
|
|
2504
2504
|
}, t.$attrs, {
|
|
2505
2505
|
class: "k-upload__inner",
|
|
2506
|
-
"file-list":
|
|
2507
|
-
action:
|
|
2508
|
-
"list-type":
|
|
2509
|
-
accept:
|
|
2510
|
-
limit:
|
|
2506
|
+
"file-list": z(k),
|
|
2507
|
+
action: le.value,
|
|
2508
|
+
"list-type": ue.value,
|
|
2509
|
+
accept: w.value,
|
|
2510
|
+
limit: ge.value,
|
|
2511
2511
|
disabled: e.disabled,
|
|
2512
|
-
"auto-upload":
|
|
2513
|
-
"http-request":
|
|
2512
|
+
"auto-upload": he.value,
|
|
2513
|
+
"http-request": z(re).httpRequest,
|
|
2514
2514
|
"before-upload": Te,
|
|
2515
2515
|
"on-success": De,
|
|
2516
2516
|
"on-error": Oe,
|
|
@@ -2520,22 +2520,22 @@ var fr = {
|
|
|
2520
2520
|
"on-change": Me,
|
|
2521
2521
|
"on-exceed": Ne
|
|
2522
2522
|
}), h({
|
|
2523
|
-
tip:
|
|
2523
|
+
tip: W(() => [F(t.$slots, "tip", {}, () => [pe.value && (e.templateCode || e.tipType === "tooltip" && G.value) ? (j(), d(Jn, {
|
|
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": G.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 ? (j(), d(tr, {
|
|
2536
2536
|
key: 1,
|
|
2537
2537
|
"tip-type": e.tipType,
|
|
2538
|
-
"tip-text":
|
|
2538
|
+
"tip-text": G.value,
|
|
2539
2539
|
percentage: S.value
|
|
2540
2540
|
}, null, 8, [
|
|
2541
2541
|
"tip-type",
|
|
@@ -2543,22 +2543,22 @@ var fr = {
|
|
|
2543
2543
|
"percentage"
|
|
2544
2544
|
])) : f("", !0)], !0)]),
|
|
2545
2545
|
_: 2
|
|
2546
|
-
}, [
|
|
2546
|
+
}, [ve.value ? {
|
|
2547
2547
|
name: "default",
|
|
2548
|
-
fn:
|
|
2549
|
-
|
|
2550
|
-
|
|
2548
|
+
fn: W(() => [me.value ? (j(), p("div", fr, [
|
|
2549
|
+
F(t.$slots, "buttonBefore", {}, void 0, !0),
|
|
2550
|
+
F(t.$slots, "content", {}, () => [_(Y, {
|
|
2551
2551
|
type: "primary",
|
|
2552
|
-
disabled:
|
|
2552
|
+
disabled: _e.value
|
|
2553
2553
|
}, {
|
|
2554
|
-
default:
|
|
2554
|
+
default: W(() => [g(I(e.btnText), 1)]),
|
|
2555
2555
|
_: 1
|
|
2556
2556
|
}, 8, ["disabled"])], !0),
|
|
2557
2557
|
_(Jn, {
|
|
2558
2558
|
"template-code": e.templateCode,
|
|
2559
2559
|
"template-btn-text": e.templateBtnText,
|
|
2560
2560
|
"tip-type": e.tipType,
|
|
2561
|
-
"tip-text":
|
|
2561
|
+
"tip-text": G.value,
|
|
2562
2562
|
onDownloadTemplate: q
|
|
2563
2563
|
}, null, 8, [
|
|
2564
2564
|
"template-code",
|
|
@@ -2566,19 +2566,19 @@ var fr = {
|
|
|
2566
2566
|
"tip-type",
|
|
2567
2567
|
"tip-text"
|
|
2568
2568
|
]),
|
|
2569
|
-
|
|
2570
|
-
])) :
|
|
2571
|
-
default:
|
|
2569
|
+
F(t.$slots, "buttonAfter", {}, void 0, !0)
|
|
2570
|
+
])) : F(t.$slots, "content", {}, () => [m("div", pr, [_(z(Se), { class: "k-upload__plus" }, {
|
|
2571
|
+
default: W(() => [_(z(qe))]),
|
|
2572
2572
|
_: 1
|
|
2573
|
-
}), e.tipType === "text" &&
|
|
2573
|
+
}), e.tipType === "text" && G.value ? (j(), p("span", {
|
|
2574
2574
|
key: 0,
|
|
2575
2575
|
class: "picture-card-tips",
|
|
2576
|
-
innerHTML:
|
|
2576
|
+
innerHTML: G.value
|
|
2577
2577
|
}, null, 8, mr)) : f("", !0)])], !0, 1)]),
|
|
2578
2578
|
key: "0"
|
|
2579
|
-
} : void 0,
|
|
2579
|
+
} : void 0, fe.value ? {
|
|
2580
2580
|
name: "file",
|
|
2581
|
-
fn:
|
|
2581
|
+
fn: W(({ file: n }) => [F(t.$slots, "file", { file: n }, () => [_(Kn, {
|
|
2582
2582
|
file: n,
|
|
2583
2583
|
"list-type": e.listType,
|
|
2584
2584
|
disabled: e.disabled,
|
|
@@ -2588,7 +2588,7 @@ var fr = {
|
|
|
2588
2588
|
onPlay: Ie
|
|
2589
2589
|
}, h({ _: 2 }, [t.$slots.preview ? {
|
|
2590
2590
|
name: "preview",
|
|
2591
|
-
fn:
|
|
2591
|
+
fn: W((e) => [F(t.$slots, "preview", te(b(e)), void 0, !0)]),
|
|
2592
2592
|
key: "0"
|
|
2593
2593
|
} : void 0]), 1032, [
|
|
2594
2594
|
"file",
|
|
@@ -2606,28 +2606,28 @@ var fr = {
|
|
|
2606
2606
|
"auto-upload",
|
|
2607
2607
|
"http-request"
|
|
2608
2608
|
]),
|
|
2609
|
-
e.openCutter ? (
|
|
2609
|
+
e.openCutter ? (j(), d(z(r), {
|
|
2610
2610
|
key: 0,
|
|
2611
2611
|
ref_key: "cutterRef",
|
|
2612
2612
|
ref: y,
|
|
2613
2613
|
option: e.cutterOption,
|
|
2614
2614
|
onCut: Le
|
|
2615
2615
|
}, null, 8, ["option"])) : f("", !0),
|
|
2616
|
-
|
|
2616
|
+
z(ie) ? (j(), d(z(Ce), {
|
|
2617
2617
|
key: 1,
|
|
2618
|
-
"url-list":
|
|
2619
|
-
"initial-index":
|
|
2620
|
-
onClose:
|
|
2618
|
+
"url-list": z(ae),
|
|
2619
|
+
"initial-index": z(oe),
|
|
2620
|
+
onClose: z(R)
|
|
2621
2621
|
}, null, 8, [
|
|
2622
2622
|
"url-list",
|
|
2623
2623
|
"initial-index",
|
|
2624
2624
|
"onClose"
|
|
2625
2625
|
])) : f("", !0),
|
|
2626
2626
|
_(Qn, {
|
|
2627
|
-
visible: B
|
|
2628
|
-
"onUpdate:visible": n[0] ||= (e) =>
|
|
2629
|
-
url:
|
|
2630
|
-
type:
|
|
2627
|
+
visible: z(B),
|
|
2628
|
+
"onUpdate:visible": n[0] ||= (e) => ee(B) ? B.value = e : null,
|
|
2629
|
+
url: z(se),
|
|
2630
|
+
type: z(V)
|
|
2631
2631
|
}, null, 8, [
|
|
2632
2632
|
"visible",
|
|
2633
2633
|
"url",
|
|
@@ -2664,7 +2664,7 @@ var fr = {
|
|
|
2664
2664
|
function a(e) {
|
|
2665
2665
|
r("update:modelValue", e);
|
|
2666
2666
|
}
|
|
2667
|
-
return (e, t) => (
|
|
2667
|
+
return (e, t) => (j(), d(hr, T(e.$attrs, {
|
|
2668
2668
|
"model-value": i.value,
|
|
2669
2669
|
"list-type": n.listType,
|
|
2670
2670
|
action: n.action,
|
|
@@ -2708,7 +2708,7 @@ var fr = {
|
|
|
2708
2708
|
InputMixInput: tn,
|
|
2709
2709
|
InputMixSelect: ln,
|
|
2710
2710
|
RadioInput: Cn,
|
|
2711
|
-
Complex: v(() => import("./Complex-
|
|
2711
|
+
Complex: v(() => import("./Complex-Dgv9RrF1.js")),
|
|
2712
2712
|
ScrollSelect: Tn,
|
|
2713
2713
|
Upload: gr,
|
|
2714
2714
|
Tag: An,
|
|
@@ -2766,7 +2766,7 @@ var wr = /* @__PURE__ */ y({
|
|
|
2766
2766
|
function c(e) {
|
|
2767
2767
|
r("update:modelValue", e);
|
|
2768
2768
|
}
|
|
2769
|
-
return (t, n) => (
|
|
2769
|
+
return (t, n) => (j(), d(ae(i.value), T({
|
|
2770
2770
|
"model-value": e.modelValue,
|
|
2771
2771
|
options: s.value,
|
|
2772
2772
|
readonly: e.readonly,
|
|
@@ -2812,8 +2812,8 @@ var wr = /* @__PURE__ */ y({
|
|
|
2812
2812
|
},
|
|
2813
2813
|
emits: ["update:modelValue", "change"],
|
|
2814
2814
|
setup(e, { expose: t, emit: n }) {
|
|
2815
|
-
let r =
|
|
2816
|
-
|
|
2815
|
+
let r = V(), i = e, a = n, o = B(), s = N(), l = N({});
|
|
2816
|
+
ne(Tt, l);
|
|
2817
2817
|
function f(e) {
|
|
2818
2818
|
if (e == null || e === "") return;
|
|
2819
2819
|
if (e instanceof Date) return Number.isNaN(e.getTime()) ? void 0 : e;
|
|
@@ -2844,38 +2844,38 @@ var wr = /* @__PURE__ */ y({
|
|
|
2844
2844
|
"k-form--inline-layout": i.inline,
|
|
2845
2845
|
"k-form--query-layout": i.autoLayout,
|
|
2846
2846
|
"k-form--grid-layout": !i.autoLayout && !i.inline
|
|
2847
|
-
})),
|
|
2848
|
-
formConfigs:
|
|
2849
|
-
data:
|
|
2850
|
-
modelValue:
|
|
2851
|
-
controlled:
|
|
2847
|
+
})), ee = u(() => ({ "--k-form-cols": String(i.colLength) })), C = u(() => i.modelValue !== void 0), w = wt({
|
|
2848
|
+
formConfigs: L(i, "formConfigs"),
|
|
2849
|
+
data: L(i, "data"),
|
|
2850
|
+
modelValue: L(i, "modelValue"),
|
|
2851
|
+
controlled: C,
|
|
2852
2852
|
onChange: (e) => {
|
|
2853
|
-
a("change", e),
|
|
2853
|
+
a("change", e), C.value && a("update:modelValue", e);
|
|
2854
2854
|
}
|
|
2855
2855
|
});
|
|
2856
|
-
function
|
|
2856
|
+
function te() {
|
|
2857
2857
|
let e = {};
|
|
2858
2858
|
i.formConfigs.forEach((t) => {
|
|
2859
|
-
y(t) && (e[`kitDate-${t.id}`] = f(
|
|
2859
|
+
y(t) && (e[`kitDate-${t.id}`] = f(w.formModel[t.id]));
|
|
2860
2860
|
}), l.value = e;
|
|
2861
2861
|
}
|
|
2862
|
-
let { normalizedConfigs:
|
|
2863
|
-
formConfigs:
|
|
2862
|
+
let { normalizedConfigs: k, getFieldOptions: A, resolveItemRules: M, itemStyle: re, itemDisplay: ie, isItemReadonly: ae, isItemDisabled: oe } = vt({
|
|
2863
|
+
formConfigs: L(i, "formConfigs"),
|
|
2864
2864
|
layout: b,
|
|
2865
|
-
formReadonly:
|
|
2865
|
+
formReadonly: L(i, "readonly")
|
|
2866
2866
|
});
|
|
2867
|
-
|
|
2867
|
+
U(() => i.formConfigs, () => te(), {
|
|
2868
2868
|
immediate: !0,
|
|
2869
2869
|
deep: !0
|
|
2870
|
-
}),
|
|
2871
|
-
function
|
|
2872
|
-
let t =
|
|
2870
|
+
}), U(() => w.formModel, () => te(), { deep: !0 });
|
|
2871
|
+
function R(e) {
|
|
2872
|
+
let t = ie(e);
|
|
2873
2873
|
return {
|
|
2874
|
-
...
|
|
2874
|
+
...re(e),
|
|
2875
2875
|
...t ? { display: t } : {}
|
|
2876
2876
|
};
|
|
2877
2877
|
}
|
|
2878
|
-
let
|
|
2878
|
+
let se = u(() => {
|
|
2879
2879
|
let e = { ...o };
|
|
2880
2880
|
return delete e.readonly, {
|
|
2881
2881
|
inline: i.inline && !i.autoLayout,
|
|
@@ -2884,92 +2884,92 @@ var wr = /* @__PURE__ */ y({
|
|
|
2884
2884
|
...e
|
|
2885
2885
|
};
|
|
2886
2886
|
});
|
|
2887
|
-
function
|
|
2888
|
-
|
|
2887
|
+
function H(e, t) {
|
|
2888
|
+
w.updateFieldValue(e, t), y(e) && v(e.id, t), ce(e);
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function ce(e) {
|
|
2891
2891
|
if (!s.value) return;
|
|
2892
|
-
let t = e.validatePeers ?? [], n =
|
|
2893
|
-
!n && !t.length ||
|
|
2892
|
+
let t = e.validatePeers ?? [], n = M(e).length > 0;
|
|
2893
|
+
!n && !t.length || E(() => {
|
|
2894
2894
|
n && s.value?.validateField(e.id).catch(() => {});
|
|
2895
2895
|
for (let e of t) s.value?.validateField(e).catch(() => {});
|
|
2896
2896
|
});
|
|
2897
2897
|
}
|
|
2898
|
-
async function
|
|
2899
|
-
let e =
|
|
2898
|
+
async function le() {
|
|
2899
|
+
let e = w.getVisibleFieldsValue();
|
|
2900
2900
|
if (!s.value) return e;
|
|
2901
2901
|
try {
|
|
2902
|
-
return await s.value.validate() === !1 ? i.ignoreValidate ? (s.value.clearValidate(), e) : (
|
|
2902
|
+
return await s.value.validate() === !1 ? i.ignoreValidate ? (s.value.clearValidate(), e) : (de(), null) : e;
|
|
2903
2903
|
} catch {
|
|
2904
|
-
return i.ignoreValidate ? (s.value.clearValidate(), e) : (
|
|
2904
|
+
return i.ignoreValidate ? (s.value.clearValidate(), e) : (de(), null);
|
|
2905
2905
|
}
|
|
2906
2906
|
}
|
|
2907
|
-
function
|
|
2907
|
+
function de() {
|
|
2908
2908
|
((s.value?.$el)?.querySelector(".el-form-item.is-error") ?? document.querySelector(".k-form .el-form-item.is-error"))?.scrollIntoView({
|
|
2909
2909
|
block: "center",
|
|
2910
2910
|
behavior: "smooth"
|
|
2911
2911
|
});
|
|
2912
2912
|
}
|
|
2913
|
-
function
|
|
2914
|
-
return
|
|
2913
|
+
function fe(e) {
|
|
2914
|
+
return w.getFieldsValue(e);
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2917
|
-
return
|
|
2916
|
+
function pe() {
|
|
2917
|
+
return w.getVisibleFieldsValue();
|
|
2918
2918
|
}
|
|
2919
|
-
function
|
|
2920
|
-
|
|
2919
|
+
function me(e) {
|
|
2920
|
+
w.setFieldsValue(e);
|
|
2921
2921
|
}
|
|
2922
|
-
function
|
|
2923
|
-
s.value?.resetFields(),
|
|
2922
|
+
function he() {
|
|
2923
|
+
s.value?.resetFields(), w.resetFormModel();
|
|
2924
2924
|
}
|
|
2925
|
-
function
|
|
2926
|
-
|
|
2925
|
+
function ge(e) {
|
|
2926
|
+
w.resetFieldsValue(e), e.forEach((e) => s.value?.clearValidate(e));
|
|
2927
2927
|
}
|
|
2928
|
-
function
|
|
2928
|
+
function _e() {
|
|
2929
2929
|
s.value?.clearValidate();
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2931
|
+
function ve() {
|
|
2932
2932
|
return s.value;
|
|
2933
2933
|
}
|
|
2934
2934
|
return t({
|
|
2935
|
-
validateFields:
|
|
2936
|
-
getFieldsValue:
|
|
2937
|
-
getParams:
|
|
2938
|
-
setFieldsValue:
|
|
2939
|
-
resetForm:
|
|
2940
|
-
resetFieldsValue:
|
|
2941
|
-
getFormRef:
|
|
2942
|
-
clearValidate:
|
|
2943
|
-
}), (e, t) => (
|
|
2935
|
+
validateFields: le,
|
|
2936
|
+
getFieldsValue: fe,
|
|
2937
|
+
getParams: pe,
|
|
2938
|
+
setFieldsValue: me,
|
|
2939
|
+
resetForm: he,
|
|
2940
|
+
resetFieldsValue: ge,
|
|
2941
|
+
getFormRef: ve,
|
|
2942
|
+
clearValidate: _e
|
|
2943
|
+
}), (e, t) => (j(), d(z(be), T({
|
|
2944
2944
|
ref_key: "formRef",
|
|
2945
2945
|
ref: s,
|
|
2946
2946
|
class: ["k-form", S.value],
|
|
2947
|
-
style:
|
|
2948
|
-
model:
|
|
2949
|
-
},
|
|
2950
|
-
default:
|
|
2947
|
+
style: ee.value,
|
|
2948
|
+
model: z(w).formModel
|
|
2949
|
+
}, se.value, { onSubmit: t[0] ||= ue(() => {}, ["prevent"]) }), {
|
|
2950
|
+
default: W(() => [(j(!0), p(c, null, P(z(k), (n) => (j(), d(z(xe), {
|
|
2951
2951
|
key: n.id,
|
|
2952
2952
|
"data-label": n.label || "",
|
|
2953
2953
|
"data-field-id": n.id,
|
|
2954
2954
|
label: n.label ? `${n.label}:` : void 0,
|
|
2955
2955
|
prop: n.id,
|
|
2956
|
-
rules:
|
|
2957
|
-
class:
|
|
2958
|
-
"k-form__item--readonly":
|
|
2959
|
-
"k-form__item--disabled":
|
|
2956
|
+
rules: z(M)(n),
|
|
2957
|
+
class: D(["k-form__item", [n.class, {
|
|
2958
|
+
"k-form__item--readonly": z(ae)(n),
|
|
2959
|
+
"k-form__item--disabled": z(oe)(n),
|
|
2960
2960
|
"k-form__item--full-row": n.newLineStart,
|
|
2961
|
-
"k-form__item--choice":
|
|
2961
|
+
"k-form__item--choice": z(xr)(n.component) && (n.component === "Radio" || n.component === "Checkbox" || n.component === "Tag")
|
|
2962
2962
|
}]]),
|
|
2963
|
-
style:
|
|
2963
|
+
style: O(R(n))
|
|
2964
2964
|
}, h({
|
|
2965
|
-
default:
|
|
2965
|
+
default: W(() => [!n.slot || !z(r)[n.id] ? (j(), d(wr, {
|
|
2966
2966
|
key: 0,
|
|
2967
2967
|
item: n,
|
|
2968
|
-
"model-value":
|
|
2969
|
-
options:
|
|
2970
|
-
readonly:
|
|
2971
|
-
disabled:
|
|
2972
|
-
"onUpdate:modelValue": (e) =>
|
|
2968
|
+
"model-value": z(w).formModel[n.id],
|
|
2969
|
+
options: z(A)(n),
|
|
2970
|
+
readonly: z(ae)(n),
|
|
2971
|
+
disabled: z(oe)(n),
|
|
2972
|
+
"onUpdate:modelValue": (e) => H(n, e)
|
|
2973
2973
|
}, null, 8, [
|
|
2974
2974
|
"item",
|
|
2975
2975
|
"model-value",
|
|
@@ -2977,26 +2977,26 @@ var wr = /* @__PURE__ */ y({
|
|
|
2977
2977
|
"readonly",
|
|
2978
2978
|
"disabled",
|
|
2979
2979
|
"onUpdate:modelValue"
|
|
2980
|
-
])) :
|
|
2980
|
+
])) : F(e.$slots, n.id, {
|
|
2981
2981
|
item: n,
|
|
2982
|
-
value:
|
|
2983
|
-
updateValue: (e) =>
|
|
2982
|
+
value: z(w).formModel[n.id],
|
|
2983
|
+
updateValue: (e) => H(n, e)
|
|
2984
2984
|
}, void 0, void 0, 1)]),
|
|
2985
2985
|
_: 2
|
|
2986
2986
|
}, [n.toolTip ? {
|
|
2987
2987
|
name: "label",
|
|
2988
|
-
fn:
|
|
2988
|
+
fn: W(() => [_(z(Re), {
|
|
2989
2989
|
effect: "dark",
|
|
2990
2990
|
placement: "bottom",
|
|
2991
2991
|
"popper-class": "k-form__tooltip"
|
|
2992
2992
|
}, {
|
|
2993
|
-
content:
|
|
2994
|
-
default:
|
|
2993
|
+
content: W(() => [m("span", { innerHTML: n.toolTip }, null, 8, Tr)]),
|
|
2994
|
+
default: W(() => [t[1] ||= m("span", {
|
|
2995
2995
|
class: "k-form__tip-icon",
|
|
2996
2996
|
"aria-hidden": "true"
|
|
2997
2997
|
}, "i", -1)]),
|
|
2998
2998
|
_: 2
|
|
2999
|
-
}, 1024), g(" " +
|
|
2999
|
+
}, 1024), g(" " + I(n.label ? `${n.label}:` : ""), 1)]),
|
|
3000
3000
|
key: "0"
|
|
3001
3001
|
} : void 0]), 1032, [
|
|
3002
3002
|
"data-label",
|
|
@@ -3006,7 +3006,7 @@ var wr = /* @__PURE__ */ y({
|
|
|
3006
3006
|
"rules",
|
|
3007
3007
|
"class",
|
|
3008
3008
|
"style"
|
|
3009
|
-
]))), 128)),
|
|
3009
|
+
]))), 128)), F(e.$slots, "default")]),
|
|
3010
3010
|
_: 3
|
|
3011
3011
|
}, 16, [
|
|
3012
3012
|
"class",
|
|
@@ -3018,7 +3018,7 @@ var wr = /* @__PURE__ */ y({
|
|
|
3018
3018
|
//#endregion
|
|
3019
3019
|
//#region src/components/k-form/composables/useKFormTemplateRef.ts
|
|
3020
3020
|
function Dr(e) {
|
|
3021
|
-
return
|
|
3021
|
+
return H(e);
|
|
3022
3022
|
}
|
|
3023
3023
|
//#endregion
|
|
3024
3024
|
//#region src/components/k-handle-page/KHandlePage.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -3072,7 +3072,7 @@ var Or = { class: "k-handle-page" }, kr = {
|
|
|
3072
3072
|
},
|
|
3073
3073
|
emits: ["cancel", "submit"],
|
|
3074
3074
|
setup(e, { emit: t }) {
|
|
3075
|
-
let n = e, r = t, i =
|
|
3075
|
+
let n = e, r = t, i = V(), a = N(!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);
|
|
3076
3076
|
async function x() {
|
|
3077
3077
|
if (!y.value) {
|
|
3078
3078
|
if (n.onSubmit) {
|
|
@@ -3087,34 +3087,34 @@ var Or = { class: "k-handle-page" }, kr = {
|
|
|
3087
3087
|
r("submit");
|
|
3088
3088
|
}
|
|
3089
3089
|
}
|
|
3090
|
-
return (t, n) => (
|
|
3091
|
-
b.value ? (
|
|
3090
|
+
return (t, n) => (j(), p("div", Or, [
|
|
3091
|
+
b.value ? (j(), p("header", kr, [F(t.$slots, "header")])) : f("", !0),
|
|
3092
3092
|
m("div", Ar, [_(l, { name: "k-handle-page-loading" }, {
|
|
3093
|
-
default:
|
|
3093
|
+
default: W(() => [e.loading ? (j(), p("div", jr, [m("div", Mr, [_(z(Se), {
|
|
3094
3094
|
class: "k-handle-page__loading-icon is-loading",
|
|
3095
3095
|
size: 32
|
|
3096
3096
|
}, {
|
|
3097
|
-
default:
|
|
3097
|
+
default: W(() => [_(z(Ke))]),
|
|
3098
3098
|
_: 1
|
|
3099
3099
|
}), n[1] ||= m("span", { class: "k-handle-page__loading-text" }, "加载中...", -1)])])) : f("", !0)]),
|
|
3100
3100
|
_: 1
|
|
3101
3101
|
}), m("div", {
|
|
3102
|
-
class:
|
|
3103
|
-
style:
|
|
3104
|
-
}, [
|
|
3105
|
-
e.showFooter ? (
|
|
3102
|
+
class: D(["k-handle-page__content", { "k-handle-page__content--loading": e.loading }]),
|
|
3103
|
+
style: O(o.value)
|
|
3104
|
+
}, [F(t.$slots, "default")], 6)]),
|
|
3105
|
+
e.showFooter ? (j(), p("footer", Nr, [F(t.$slots, "footer", {}, () => [h.value ? (j(), d(Y, {
|
|
3106
3106
|
key: 0,
|
|
3107
3107
|
onClick: n[0] ||= (e) => r("cancel")
|
|
3108
3108
|
}, {
|
|
3109
|
-
default:
|
|
3109
|
+
default: W(() => [g(I(s.value), 1)]),
|
|
3110
3110
|
_: 1
|
|
3111
|
-
})) : f("", !0), v.value ? (
|
|
3111
|
+
})) : f("", !0), v.value ? (j(), d(Y, {
|
|
3112
3112
|
key: 1,
|
|
3113
3113
|
type: "primary",
|
|
3114
3114
|
loading: y.value,
|
|
3115
3115
|
onClick: x
|
|
3116
3116
|
}, {
|
|
3117
|
-
default:
|
|
3117
|
+
default: W(() => [g(I(c.value), 1)]),
|
|
3118
3118
|
_: 1
|
|
3119
3119
|
}, 8, ["loading"])) : f("", !0)])])) : f("", !0)
|
|
3120
3120
|
]));
|
|
@@ -3123,16 +3123,16 @@ var Or = { class: "k-handle-page" }, kr = {
|
|
|
3123
3123
|
//#endregion
|
|
3124
3124
|
//#region src/components/k-handle-page/useHandlePageInit.ts
|
|
3125
3125
|
function Fr(e, t) {
|
|
3126
|
-
let n =
|
|
3126
|
+
let n = N(!1);
|
|
3127
3127
|
async function r() {
|
|
3128
|
-
(
|
|
3128
|
+
(R(t?.skipLoading) ?? !1) || (n.value = !0);
|
|
3129
3129
|
try {
|
|
3130
3130
|
await e();
|
|
3131
3131
|
} finally {
|
|
3132
3132
|
n.value = !1;
|
|
3133
3133
|
}
|
|
3134
3134
|
}
|
|
3135
|
-
return t?.immediate !== !1 &&
|
|
3135
|
+
return t?.immediate !== !1 && A(() => {
|
|
3136
3136
|
r();
|
|
3137
3137
|
}), {
|
|
3138
3138
|
pageLoading: n,
|
|
@@ -3174,7 +3174,7 @@ var Ur = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3174
3174
|
},
|
|
3175
3175
|
setup(e) {
|
|
3176
3176
|
let t = e, n = u(() => zr(t.name));
|
|
3177
|
-
return (t, r) => n.value ? (
|
|
3177
|
+
return (t, r) => n.value ? (j(), d(ae(n.value), {
|
|
3178
3178
|
key: 0,
|
|
3179
3179
|
class: "k-icon",
|
|
3180
3180
|
size: e.size,
|
|
@@ -3217,19 +3217,19 @@ var Ur = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3217
3217
|
function h(e) {
|
|
3218
3218
|
return typeof e.slot == "string" ? e.slot : "default";
|
|
3219
3219
|
}
|
|
3220
|
-
return (t, n) => (
|
|
3220
|
+
return (t, n) => (j(), p("div", {
|
|
3221
3221
|
class: "k-link-button",
|
|
3222
|
-
style:
|
|
3223
|
-
}, [(
|
|
3222
|
+
style: O({ justifyContent: e.align })
|
|
3223
|
+
}, [(j(!0), p(c, null, P(i.value, (e, n) => (j(), d(z(Re), {
|
|
3224
3224
|
key: `${e.label}-${n}`,
|
|
3225
3225
|
content: e.tooltip,
|
|
3226
3226
|
placement: "top",
|
|
3227
3227
|
disabled: !e.tooltip
|
|
3228
3228
|
}, {
|
|
3229
|
-
default:
|
|
3230
|
-
class:
|
|
3231
|
-
onClick:
|
|
3232
|
-
}, [l(e) ?
|
|
3229
|
+
default: W(() => [m("div", Wr, [n > 0 ? (j(), p("span", Gr)) : f("", !0), m("a", {
|
|
3230
|
+
class: D(["k-link-button__btn", [o(e), { "k-link-button__btn--readonly": a(e) }]]),
|
|
3231
|
+
onClick: ue((t) => s(e, n), ["prevent"])
|
|
3232
|
+
}, [l(e) ? F(t.$slots, h(e), { item: e }, () => [g(I(e.label), 1)], void 0, 0) : (j(), p(c, { key: 1 }, [g(I(e.label), 1)], 64))], 10, Kr)])]),
|
|
3233
3233
|
_: 2
|
|
3234
3234
|
}, 1032, ["content", "disabled"]))), 128))], 4));
|
|
3235
3235
|
}
|
|
@@ -3253,7 +3253,7 @@ var Ur = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3253
3253
|
] }
|
|
3254
3254
|
},
|
|
3255
3255
|
setup(e) {
|
|
3256
|
-
return (t, n) => (
|
|
3256
|
+
return (t, n) => (j(), d(z(Oe), T(t.$attrs, {
|
|
3257
3257
|
layout: e.layout,
|
|
3258
3258
|
"page-size": e.pageSize,
|
|
3259
3259
|
"page-sizes": e.pageSizes
|
|
@@ -3271,10 +3271,10 @@ var Ur = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3271
3271
|
title: { default: "" }
|
|
3272
3272
|
},
|
|
3273
3273
|
setup(e) {
|
|
3274
|
-
return (t, n) => (
|
|
3274
|
+
return (t, n) => (j(), p("div", {
|
|
3275
3275
|
id: e.panelId || void 0,
|
|
3276
3276
|
class: "k-long-page-panel"
|
|
3277
|
-
}, [m("div", Xr,
|
|
3277
|
+
}, [m("div", Xr, I(e.title), 1), m("div", Zr, [F(t.$slots, "default", {}, void 0, !0)])], 8, Yr));
|
|
3278
3278
|
}
|
|
3279
3279
|
}), [["__scopeId", "data-v-9d6e7832"]]), $r = 4;
|
|
3280
3280
|
function ei(e) {
|
|
@@ -3299,7 +3299,7 @@ function ei(e) {
|
|
|
3299
3299
|
function u() {
|
|
3300
3300
|
return i ? (i = !1, !0) : !1;
|
|
3301
3301
|
}
|
|
3302
|
-
return
|
|
3302
|
+
return k(s), {
|
|
3303
3303
|
onPointerDown: l,
|
|
3304
3304
|
consumeClickIfDragged: u
|
|
3305
3305
|
};
|
|
@@ -3326,37 +3326,37 @@ var pi = ["onClick"], mi = ["src", "alt"], hi = ["src", "alt"], gi = /*#__PURE__
|
|
|
3326
3326
|
label: "面板一"
|
|
3327
3327
|
}] } },
|
|
3328
3328
|
setup(e) {
|
|
3329
|
-
let t =
|
|
3329
|
+
let t = H("rootRef"), n = H("navRef"), { onPointerDown: r, consumeClickIfDragged: i } = ei(n);
|
|
3330
3330
|
function a(e) {
|
|
3331
3331
|
return fi(e);
|
|
3332
3332
|
}
|
|
3333
3333
|
async function o(e) {
|
|
3334
3334
|
if (i()) return;
|
|
3335
|
-
await
|
|
3335
|
+
await E();
|
|
3336
3336
|
let n = t.value?.querySelector(`#${CSS.escape(e)}`);
|
|
3337
3337
|
(n?.querySelector(".k-long-page-panel__title") ?? n)?.scrollIntoView({
|
|
3338
3338
|
block: "start",
|
|
3339
3339
|
behavior: "smooth"
|
|
3340
3340
|
});
|
|
3341
3341
|
}
|
|
3342
|
-
return (i, s) => (
|
|
3342
|
+
return (i, s) => (j(), p("div", {
|
|
3343
3343
|
ref_key: "rootRef",
|
|
3344
3344
|
ref: t,
|
|
3345
3345
|
class: "k-long-page"
|
|
3346
|
-
}, [(
|
|
3346
|
+
}, [(j(!0), p(c, null, P(e.panels, (e) => (j(), d(Qr, {
|
|
3347
3347
|
key: e.name,
|
|
3348
3348
|
class: "k-long-page__panel",
|
|
3349
3349
|
"panel-id": e.name,
|
|
3350
3350
|
title: e.label
|
|
3351
3351
|
}, {
|
|
3352
|
-
default:
|
|
3352
|
+
default: W(() => [F(i.$slots, e.name, {}, void 0, !0)]),
|
|
3353
3353
|
_: 2
|
|
3354
3354
|
}, 1032, ["panel-id", "title"]))), 128)), m("div", {
|
|
3355
3355
|
ref_key: "navRef",
|
|
3356
3356
|
ref: n,
|
|
3357
3357
|
class: "k-long-page__nav",
|
|
3358
|
-
onPointerdown: s[0] ||= (...e) =>
|
|
3359
|
-
}, [(
|
|
3358
|
+
onPointerdown: s[0] ||= (...e) => z(r) && z(r)(...e)
|
|
3359
|
+
}, [(j(!0), p(c, null, P(e.panels, (e) => (j(), p("div", {
|
|
3360
3360
|
key: e.name,
|
|
3361
3361
|
class: "k-long-page__nav-item",
|
|
3362
3362
|
role: "button",
|
|
@@ -3379,23 +3379,23 @@ var pi = ["onClick"], mi = ["src", "alt"], hi = ["src", "alt"], gi = /*#__PURE__
|
|
|
3379
3379
|
height: "28",
|
|
3380
3380
|
draggable: "false"
|
|
3381
3381
|
}, null, 8, hi),
|
|
3382
|
-
m("span", null,
|
|
3382
|
+
m("span", null, I(e.label), 1)
|
|
3383
3383
|
], 8, pi))), 128))], 544)], 512));
|
|
3384
3384
|
}
|
|
3385
3385
|
}), [["__scopeId", "data-v-ac934c5d"]]), _i = /* @__PURE__ */ y({
|
|
3386
3386
|
name: "KCard",
|
|
3387
3387
|
__name: "KCard",
|
|
3388
3388
|
setup(e) {
|
|
3389
|
-
return (e, t) => (
|
|
3390
|
-
default:
|
|
3389
|
+
return (e, t) => (j(), d(z(fe), te(b(e.$attrs)), h({
|
|
3390
|
+
default: W(() => [F(e.$slots, "default")]),
|
|
3391
3391
|
_: 2
|
|
3392
3392
|
}, [e.$slots.header ? {
|
|
3393
3393
|
name: "header",
|
|
3394
|
-
fn:
|
|
3394
|
+
fn: W(() => [F(e.$slots, "header")]),
|
|
3395
3395
|
key: "0"
|
|
3396
3396
|
} : void 0, e.$slots.footer ? {
|
|
3397
3397
|
name: "footer",
|
|
3398
|
-
fn:
|
|
3398
|
+
fn: W(() => [F(e.$slots, "footer")]),
|
|
3399
3399
|
key: "1"
|
|
3400
3400
|
} : void 0]), 1040));
|
|
3401
3401
|
}
|
|
@@ -3421,24 +3421,24 @@ var pi = ["onClick"], mi = ["src", "alt"], hi = ["src", "alt"], gi = /*#__PURE__
|
|
|
3421
3421
|
}
|
|
3422
3422
|
},
|
|
3423
3423
|
setup(e) {
|
|
3424
|
-
let t = e, n =
|
|
3424
|
+
let t = e, n = N(t.unfold ? ["content"] : []), r = u(() => ({
|
|
3425
3425
|
panel: !0,
|
|
3426
3426
|
"panel-hover": t.hover
|
|
3427
3427
|
}));
|
|
3428
|
-
return (t, i) => (
|
|
3428
|
+
return (t, i) => (j(), p("div", { class: D(r.value) }, [e.isFold ? (j(), d(z(ge), {
|
|
3429
3429
|
key: 0,
|
|
3430
3430
|
modelValue: n.value,
|
|
3431
3431
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e
|
|
3432
3432
|
}, {
|
|
3433
|
-
default:
|
|
3433
|
+
default: W(() => [_(z(_e), {
|
|
3434
3434
|
name: "content",
|
|
3435
3435
|
title: e.title
|
|
3436
3436
|
}, {
|
|
3437
|
-
default:
|
|
3437
|
+
default: W(() => [F(t.$slots, "default")]),
|
|
3438
3438
|
_: 3
|
|
3439
3439
|
}, 8, ["title"])]),
|
|
3440
3440
|
_: 3
|
|
3441
|
-
}, 8, ["modelValue"])) : (
|
|
3441
|
+
}, 8, ["modelValue"])) : (j(), p(c, { key: 1 }, [e.title || t.$slots.title ? (j(), p("div", vi, [m("div", yi, [F(t.$slots, "title", {}, () => [g(I(e.title), 1)])])])) : f("", !0), m("div", bi, [F(t.$slots, "default")])], 64))], 2));
|
|
3442
3442
|
}
|
|
3443
3443
|
}), Si = {
|
|
3444
3444
|
key: 0,
|
|
@@ -3453,29 +3453,29 @@ var pi = ["onClick"], mi = ["src", "alt"], hi = ["src", "alt"], gi = /*#__PURE__
|
|
|
3453
3453
|
emits: ["query", "reset"],
|
|
3454
3454
|
setup(e, { emit: t }) {
|
|
3455
3455
|
let n = t;
|
|
3456
|
-
return (t, r) => e.footer ? (
|
|
3456
|
+
return (t, r) => e.footer ? (j(), p("div", Si, [_(Y, {
|
|
3457
3457
|
type: "primary",
|
|
3458
3458
|
onClick: r[0] ||= (e) => n("query")
|
|
3459
3459
|
}, {
|
|
3460
|
-
default:
|
|
3460
|
+
default: W(() => [...r[4] ||= [g("查询", -1)]]),
|
|
3461
3461
|
_: 1
|
|
3462
3462
|
}), _(Y, {
|
|
3463
3463
|
class: "k-panel-query__btn-reset",
|
|
3464
3464
|
onClick: r[1] ||= (e) => n("reset")
|
|
3465
3465
|
}, {
|
|
3466
|
-
default:
|
|
3466
|
+
default: W(() => [...r[5] ||= [g("重置", -1)]]),
|
|
3467
3467
|
_: 1
|
|
3468
|
-
})])) : (
|
|
3468
|
+
})])) : (j(), p(c, { key: 1 }, [_(Y, {
|
|
3469
3469
|
type: "primary",
|
|
3470
3470
|
onClick: r[2] ||= (e) => n("query")
|
|
3471
3471
|
}, {
|
|
3472
|
-
default:
|
|
3472
|
+
default: W(() => [...r[6] ||= [g("查询", -1)]]),
|
|
3473
3473
|
_: 1
|
|
3474
3474
|
}), _(Y, {
|
|
3475
3475
|
class: "k-panel-query__btn-reset",
|
|
3476
3476
|
onClick: r[3] ||= (e) => n("reset")
|
|
3477
3477
|
}, {
|
|
3478
|
-
default:
|
|
3478
|
+
default: W(() => [...r[7] ||= [g("重置", -1)]]),
|
|
3479
3479
|
_: 1
|
|
3480
3480
|
})], 64));
|
|
3481
3481
|
}
|
|
@@ -3501,13 +3501,13 @@ var pi = ["onClick"], mi = ["src", "alt"], hi = ["src", "alt"], gi = /*#__PURE__
|
|
|
3501
3501
|
}
|
|
3502
3502
|
},
|
|
3503
3503
|
setup(e, { expose: t }) {
|
|
3504
|
-
let n =
|
|
3504
|
+
let n = N();
|
|
3505
3505
|
return t({
|
|
3506
3506
|
validateFields: () => n.value?.validateFields(),
|
|
3507
3507
|
getParams: () => n.value?.getParams() ?? {},
|
|
3508
3508
|
resetForm: () => n.value?.resetForm(),
|
|
3509
3509
|
getFormRef: () => n.value?.getFormRef()
|
|
3510
|
-
}), (t, r) => (
|
|
3510
|
+
}), (t, r) => (j(), d(z(Er), {
|
|
3511
3511
|
ref_key: "formRef",
|
|
3512
3512
|
ref: n,
|
|
3513
3513
|
class: "k-panel-query-form",
|
|
@@ -3539,16 +3539,16 @@ var pi = ["onClick"], mi = ["src", "alt"], hi = ["src", "alt"], gi = /*#__PURE__
|
|
|
3539
3539
|
__name: "KPanelQueryItem",
|
|
3540
3540
|
props: { formConfigs: {} },
|
|
3541
3541
|
setup(e, { expose: t }) {
|
|
3542
|
-
let n = e, r =
|
|
3542
|
+
let n = e, r = V(), i = u(() => ({
|
|
3543
3543
|
colLength: 1,
|
|
3544
3544
|
inline: !0,
|
|
3545
3545
|
autoLayout: !1,
|
|
3546
3546
|
hideLabel: !1
|
|
3547
3547
|
})), a = wt({
|
|
3548
|
-
formConfigs:
|
|
3548
|
+
formConfigs: L(n, "formConfigs"),
|
|
3549
3549
|
controlled: u(() => !1)
|
|
3550
3550
|
}), { normalizedConfigs: o, getFieldOptions: s } = vt({
|
|
3551
|
-
formConfigs:
|
|
3551
|
+
formConfigs: L(n, "formConfigs"),
|
|
3552
3552
|
layout: i
|
|
3553
3553
|
});
|
|
3554
3554
|
function l(e, t) {
|
|
@@ -3568,20 +3568,20 @@ var pi = ["onClick"], mi = ["src", "alt"], hi = ["src", "alt"], gi = /*#__PURE__
|
|
|
3568
3568
|
getParams: h,
|
|
3569
3569
|
resetForm: g,
|
|
3570
3570
|
getFormRef: () => void 0
|
|
3571
|
-
}), (e, t) => (
|
|
3571
|
+
}), (e, t) => (j(), p("div", Ti, [m("ul", Ei, [(j(!0), p(c, null, P(z(o), (e) => (j(), p("li", {
|
|
3572
3572
|
key: e.id,
|
|
3573
|
-
class:
|
|
3574
|
-
}, [e.label ? (
|
|
3573
|
+
class: D(["k-item", { "k-item_flex": !!e.label }])
|
|
3574
|
+
}, [e.label ? (j(), p("label", Di, I(e.label), 1)) : f("", !0), m("div", Oi, [_(wr, {
|
|
3575
3575
|
item: e,
|
|
3576
|
-
"model-value":
|
|
3577
|
-
options:
|
|
3576
|
+
"model-value": z(a).formModel[e.id],
|
|
3577
|
+
options: z(s)(e),
|
|
3578
3578
|
"onUpdate:modelValue": (t) => l(e, t)
|
|
3579
3579
|
}, null, 8, [
|
|
3580
3580
|
"item",
|
|
3581
3581
|
"model-value",
|
|
3582
3582
|
"options",
|
|
3583
3583
|
"onUpdate:modelValue"
|
|
3584
|
-
])])], 2))), 128)),
|
|
3584
|
+
])])], 2))), 128)), z(r).button ? (j(), p("li", ki, [F(e.$slots, "button")])) : f("", !0)])]));
|
|
3585
3585
|
}
|
|
3586
3586
|
}), ji = /* @__PURE__ */ y({
|
|
3587
3587
|
name: "KPanelQuery",
|
|
@@ -3617,7 +3617,7 @@ var pi = ["onClick"], mi = ["src", "alt"], hi = ["src", "alt"], gi = /*#__PURE__
|
|
|
3617
3617
|
},
|
|
3618
3618
|
emits: ["query", "reset"],
|
|
3619
3619
|
setup(e, { expose: t, emit: n }) {
|
|
3620
|
-
let r = e, i = n, a =
|
|
3620
|
+
let r = e, i = n, a = N(), o = /* @__PURE__ */ new Set([
|
|
3621
3621
|
"Input",
|
|
3622
3622
|
"Select",
|
|
3623
3623
|
"TreeSelect",
|
|
@@ -3653,7 +3653,7 @@ var pi = ["onClick"], mi = ["src", "alt"], hi = ["src", "alt"], gi = /*#__PURE__
|
|
|
3653
3653
|
e && i("query", e);
|
|
3654
3654
|
}
|
|
3655
3655
|
async function v() {
|
|
3656
|
-
a.value?.resetForm(), i("reset"), await
|
|
3656
|
+
a.value?.resetForm(), i("reset"), await E();
|
|
3657
3657
|
let e = await a.value?.validateFields();
|
|
3658
3658
|
e && i("query", e);
|
|
3659
3659
|
}
|
|
@@ -3668,31 +3668,31 @@ var pi = ["onClick"], mi = ["src", "alt"], hi = ["src", "alt"], gi = /*#__PURE__
|
|
|
3668
3668
|
resetForm: b,
|
|
3669
3669
|
getFormRef: () => a.value?.getFormRef(),
|
|
3670
3670
|
submit: g
|
|
3671
|
-
}), (t, n) => (
|
|
3671
|
+
}), (t, n) => (j(), p("div", { class: D(["k-panel-query", {
|
|
3672
3672
|
"k-panel-query__form": e.model === "form" && !e.showPanel,
|
|
3673
3673
|
"k-panel-query__item": m.value
|
|
3674
|
-
}]) }, [e.showPanel ? (
|
|
3674
|
+
}]) }, [e.showPanel ? (j(), d(z(xi), {
|
|
3675
3675
|
key: 1,
|
|
3676
3676
|
title: e.title,
|
|
3677
3677
|
"is-fold": e.isFold,
|
|
3678
3678
|
unfold: e.unfold,
|
|
3679
3679
|
hover: e.hover
|
|
3680
3680
|
}, {
|
|
3681
|
-
default:
|
|
3681
|
+
default: W(() => [l.value ? (j(), p(c, { key: 0 }, [m.value ? (j(), d(Ai, T({
|
|
3682
3682
|
key: 0,
|
|
3683
3683
|
ref_key: "formRef",
|
|
3684
3684
|
ref: a
|
|
3685
3685
|
}, l.value), h({ _: 2 }, [e.hideButton ? void 0 : {
|
|
3686
3686
|
name: "button",
|
|
3687
|
-
fn:
|
|
3687
|
+
fn: W(() => [_(Ci, {
|
|
3688
3688
|
onQuery: g,
|
|
3689
3689
|
onReset: v
|
|
3690
3690
|
})]),
|
|
3691
3691
|
key: "0"
|
|
3692
|
-
}]), 1040)) : (
|
|
3692
|
+
}]), 1040)) : (j(), p(c, { key: 1 }, [_(wi, T({
|
|
3693
3693
|
ref_key: "formRef",
|
|
3694
3694
|
ref: a
|
|
3695
|
-
}, l.value, { "hide-label": e.hideLabel }), null, 16, ["hide-label"]), e.hideButton ? f("", !0) : (
|
|
3695
|
+
}, l.value, { "hide-label": e.hideLabel }), null, 16, ["hide-label"]), e.hideButton ? f("", !0) : (j(), d(Ci, {
|
|
3696
3696
|
key: 0,
|
|
3697
3697
|
footer: "",
|
|
3698
3698
|
onQuery: g,
|
|
@@ -3704,21 +3704,21 @@ var pi = ["onClick"], mi = ["src", "alt"], hi = ["src", "alt"], gi = /*#__PURE__
|
|
|
3704
3704
|
"is-fold",
|
|
3705
3705
|
"unfold",
|
|
3706
3706
|
"hover"
|
|
3707
|
-
])) : (
|
|
3707
|
+
])) : (j(), p(c, { key: 0 }, [l.value ? (j(), p(c, { key: 0 }, [m.value ? (j(), d(Ai, T({
|
|
3708
3708
|
key: 0,
|
|
3709
3709
|
ref_key: "formRef",
|
|
3710
3710
|
ref: a
|
|
3711
3711
|
}, l.value), h({ _: 2 }, [e.hideButton ? void 0 : {
|
|
3712
3712
|
name: "button",
|
|
3713
|
-
fn:
|
|
3713
|
+
fn: W(() => [_(Ci, {
|
|
3714
3714
|
onQuery: g,
|
|
3715
3715
|
onReset: v
|
|
3716
3716
|
})]),
|
|
3717
3717
|
key: "0"
|
|
3718
|
-
}]), 1040)) : (
|
|
3718
|
+
}]), 1040)) : (j(), p(c, { key: 1 }, [_(wi, T({
|
|
3719
3719
|
ref_key: "formRef",
|
|
3720
3720
|
ref: a
|
|
3721
|
-
}, l.value, { "hide-label": e.hideLabel }), null, 16, ["hide-label"]), e.hideButton ? f("", !0) : (
|
|
3721
|
+
}, l.value, { "hide-label": e.hideLabel }), null, 16, ["hide-label"]), e.hideButton ? f("", !0) : (j(), d(Ci, {
|
|
3722
3722
|
key: 0,
|
|
3723
3723
|
footer: "",
|
|
3724
3724
|
onQuery: g,
|
|
@@ -3849,7 +3849,7 @@ var Wi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3849
3849
|
},
|
|
3850
3850
|
emits: ["operate-click", "radio-select"],
|
|
3851
3851
|
setup(e, { emit: t }) {
|
|
3852
|
-
let n = e, r = t, i =
|
|
3852
|
+
let n = e, r = t, i = V(), { getCellDisplayValue: a } = Hi(n.nullValueFormat);
|
|
3853
3853
|
function o(e) {
|
|
3854
3854
|
return e ?? "";
|
|
3855
3855
|
}
|
|
@@ -3867,18 +3867,18 @@ var Wi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3867
3867
|
return Ni(e, n.rowKey);
|
|
3868
3868
|
}
|
|
3869
3869
|
return (t, n) => {
|
|
3870
|
-
let u =
|
|
3871
|
-
return e.column.type === "selection" ? (
|
|
3872
|
-
key: `${
|
|
3870
|
+
let u = re("KTableColumn", !0);
|
|
3871
|
+
return e.column.type === "selection" ? (j(), d(z(K), T({
|
|
3872
|
+
key: `${z($)(e.column, e.columnIndex)}:selection`,
|
|
3873
3873
|
type: "selection"
|
|
3874
|
-
}, s.value), null, 16)) : e.column.type === "index" ? (
|
|
3875
|
-
default:
|
|
3874
|
+
}, s.value), null, 16)) : e.column.type === "index" ? (j(), d(z(K), T({ key: `${z($)(e.column, e.columnIndex)}:index` }, s.value), {
|
|
3875
|
+
default: W(({ $index: e }) => [F(t.$slots, "index", {
|
|
3876
3876
|
index: e,
|
|
3877
3877
|
displayIndex: l(e)
|
|
3878
|
-
}, () => [g(
|
|
3878
|
+
}, () => [g(I(l(e)), 1)], !0)]),
|
|
3879
3879
|
_: 3
|
|
3880
|
-
}, 16)) : e.column.type === "radio" ? (
|
|
3881
|
-
default:
|
|
3880
|
+
}, 16)) : e.column.type === "radio" ? (j(), d(z(K), T({ key: `${z($)(e.column, e.columnIndex)}:radio` }, s.value), {
|
|
3881
|
+
default: W(({ row: t }) => [_(z(je), {
|
|
3882
3882
|
class: "k-table-column__radio",
|
|
3883
3883
|
"model-value": e.radioSelected,
|
|
3884
3884
|
label: x(t),
|
|
@@ -3889,44 +3889,44 @@ var Wi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3889
3889
|
"onUpdate:modelValue"
|
|
3890
3890
|
])]),
|
|
3891
3891
|
_: 1
|
|
3892
|
-
}, 16)) : e.column.type === "operates" ? (
|
|
3893
|
-
default:
|
|
3892
|
+
}, 16)) : e.column.type === "operates" ? (j(), d(z(K), T({ key: `${z($)(e.column, e.columnIndex)}:operates` }, s.value), {
|
|
3893
|
+
default: W(({ row: n, column: r, $index: a }) => [v.value ? F(t.$slots, z(i).operates ? "operates" : o(e.column.prop), {
|
|
3894
3894
|
row: n,
|
|
3895
3895
|
column: r,
|
|
3896
3896
|
index: a
|
|
3897
|
-
}, void 0, !0, 0) : (
|
|
3897
|
+
}, void 0, !0, 0) : (j(), d(z(qr), {
|
|
3898
3898
|
key: 1,
|
|
3899
3899
|
data: e.column.operates ?? [],
|
|
3900
3900
|
disabled: e.disabled,
|
|
3901
3901
|
"table-mode": "",
|
|
3902
3902
|
onClick: (e, t) => y(e, t, n)
|
|
3903
|
-
}, h({ _: 2 }, [
|
|
3903
|
+
}, h({ _: 2 }, [P(e.column.operates ?? [], (e) => ({
|
|
3904
3904
|
name: b(e),
|
|
3905
|
-
fn:
|
|
3905
|
+
fn: W(({ item: i }) => [F(t.$slots, b(e), {
|
|
3906
3906
|
row: n,
|
|
3907
3907
|
column: r,
|
|
3908
3908
|
index: a,
|
|
3909
3909
|
item: i
|
|
3910
|
-
}, () => [g(
|
|
3910
|
+
}, () => [g(I(i.label), 1)], !0)])
|
|
3911
3911
|
}))]), 1032, [
|
|
3912
3912
|
"data",
|
|
3913
3913
|
"disabled",
|
|
3914
3914
|
"onClick"
|
|
3915
3915
|
]))]),
|
|
3916
3916
|
_: 3
|
|
3917
|
-
}, 16)) : e.column.type === "expand" ? (
|
|
3918
|
-
key: `${
|
|
3917
|
+
}, 16)) : e.column.type === "expand" ? (j(), d(z(K), T({
|
|
3918
|
+
key: `${z($)(e.column, e.columnIndex)}:expand`,
|
|
3919
3919
|
type: "expand"
|
|
3920
3920
|
}, s.value), {
|
|
3921
|
-
default:
|
|
3921
|
+
default: W(({ row: e, column: n, $index: r }) => [F(t.$slots, "expand", {
|
|
3922
3922
|
row: e,
|
|
3923
3923
|
column: n,
|
|
3924
3924
|
index: r
|
|
3925
3925
|
}, void 0, !0)]),
|
|
3926
3926
|
_: 3
|
|
3927
|
-
}, 16)) : e.column.children?.length ? (
|
|
3928
|
-
default:
|
|
3929
|
-
key:
|
|
3927
|
+
}, 16)) : e.column.children?.length ? (j(), d(z(K), T({ key: `${z($)(e.column, e.columnIndex)}:group` }, s.value), {
|
|
3928
|
+
default: W(() => [(j(!0), p(c, null, P(e.column.children, (i, a) => (j(), d(u, {
|
|
3929
|
+
key: z($)(i, a),
|
|
3930
3930
|
column: i,
|
|
3931
3931
|
"column-index": a,
|
|
3932
3932
|
"index-offset": e.indexOffset,
|
|
@@ -3936,9 +3936,9 @@ var Wi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3936
3936
|
"radio-selected": e.radioSelected,
|
|
3937
3937
|
onOperateClick: n[0] ||= (e, t, n) => r("operate-click", e, t, n),
|
|
3938
3938
|
onRadioSelect: n[1] ||= (e) => r("radio-select", e)
|
|
3939
|
-
}, h({ _: 2 }, [
|
|
3939
|
+
}, h({ _: 2 }, [P(t.$slots, (e, n) => ({
|
|
3940
3940
|
name: n,
|
|
3941
|
-
fn:
|
|
3941
|
+
fn: W((e) => [F(t.$slots, n, T({ ref_for: !0 }, e ?? {}), void 0, !0)])
|
|
3942
3942
|
}))]), 1032, [
|
|
3943
3943
|
"column",
|
|
3944
3944
|
"column-index",
|
|
@@ -3949,20 +3949,20 @@ var Wi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3949
3949
|
"radio-selected"
|
|
3950
3950
|
]))), 128))]),
|
|
3951
3951
|
_: 3
|
|
3952
|
-
}, 16)) : (
|
|
3953
|
-
default:
|
|
3952
|
+
}, 16)) : (j(), d(z(K), T({ key: `${z($)(e.column, e.columnIndex)}:default` }, s.value), h({
|
|
3953
|
+
default: W(({ row: n, column: r, $index: i }) => [f.value ? F(t.$slots, o(e.column.prop), {
|
|
3954
3954
|
row: n,
|
|
3955
3955
|
column: r,
|
|
3956
3956
|
index: i
|
|
3957
|
-
}, void 0, !0, 0) : (
|
|
3957
|
+
}, void 0, !0, 0) : (j(), p(c, { key: 1 }, [g(I(z(a)(e.column, n, i)), 1)], 64))]),
|
|
3958
3958
|
_: 2
|
|
3959
3959
|
}, [e.column.toolTip ? {
|
|
3960
3960
|
name: "header",
|
|
3961
|
-
fn:
|
|
3961
|
+
fn: W(() => [m("span", null, I(e.column.label), 1), _(z(Re), {
|
|
3962
3962
|
content: e.column.toolTip,
|
|
3963
3963
|
placement: "top"
|
|
3964
3964
|
}, {
|
|
3965
|
-
default:
|
|
3965
|
+
default: W(() => [...n[2] ||= [m("span", { class: "k-table-column__tip" }, "i", -1)]]),
|
|
3966
3966
|
_: 1
|
|
3967
3967
|
}, 8, ["content"])]),
|
|
3968
3968
|
key: "0"
|
|
@@ -3975,14 +3975,14 @@ var Wi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3975
3975
|
props: { items: {} },
|
|
3976
3976
|
emits: ["change", "reset"],
|
|
3977
3977
|
setup(e, { emit: t }) {
|
|
3978
|
-
let n = t, r =
|
|
3978
|
+
let n = t, r = N(!1);
|
|
3979
3979
|
function i(e, t) {
|
|
3980
3980
|
n("change", e, t);
|
|
3981
3981
|
}
|
|
3982
3982
|
function a() {
|
|
3983
3983
|
n("reset");
|
|
3984
3984
|
}
|
|
3985
|
-
return (t, n) => (
|
|
3985
|
+
return (t, n) => (j(), d(z(ke), {
|
|
3986
3986
|
visible: r.value,
|
|
3987
3987
|
"onUpdate:visible": n[0] ||= (e) => r.value = e,
|
|
3988
3988
|
placement: "bottom-end",
|
|
@@ -3990,28 +3990,28 @@ var Wi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3990
3990
|
trigger: "click",
|
|
3991
3991
|
"popper-class": "k-table-column-selector__popover"
|
|
3992
3992
|
}, {
|
|
3993
|
-
reference:
|
|
3993
|
+
reference: W(() => [...n[1] ||= [m("button", {
|
|
3994
3994
|
type: "button",
|
|
3995
3995
|
class: "k-table-column-selector__trigger",
|
|
3996
3996
|
"aria-label": "列展示设置"
|
|
3997
3997
|
}, [m("span", { class: "k-table-column-selector__icon" })], -1)]]),
|
|
3998
|
-
default:
|
|
3999
|
-
m("div", Ki, [n[3] ||= m("span", null, "列展示", -1), _(
|
|
3998
|
+
default: W(() => [m("div", Gi, [
|
|
3999
|
+
m("div", Ki, [n[3] ||= m("span", null, "列展示", -1), _(z(de), {
|
|
4000
4000
|
type: "primary",
|
|
4001
4001
|
link: "",
|
|
4002
4002
|
onClick: a
|
|
4003
4003
|
}, {
|
|
4004
|
-
default:
|
|
4004
|
+
default: W(() => [...n[2] ||= [g("恢复默认", -1)]]),
|
|
4005
4005
|
_: 1
|
|
4006
4006
|
})]),
|
|
4007
|
-
_(
|
|
4008
|
-
m("div", qi, [(
|
|
4007
|
+
_(z(G), { class: "k-table-column-selector__divider" }),
|
|
4008
|
+
m("div", qi, [(j(!0), p(c, null, P(e.items, (e) => (j(), d(z(me), {
|
|
4009
4009
|
key: e.key,
|
|
4010
4010
|
"model-value": e.checked,
|
|
4011
4011
|
disabled: e.disabled,
|
|
4012
4012
|
onChange: (t) => i(e.key, !!t)
|
|
4013
4013
|
}, {
|
|
4014
|
-
default:
|
|
4014
|
+
default: W(() => [g(I(e.label), 1)]),
|
|
4015
4015
|
_: 2
|
|
4016
4016
|
}, 1032, [
|
|
4017
4017
|
"model-value",
|
|
@@ -4056,23 +4056,23 @@ var Wi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
4056
4056
|
},
|
|
4057
4057
|
emits: ["add"],
|
|
4058
4058
|
setup(e, { emit: t }) {
|
|
4059
|
-
let n = e, r = t, i =
|
|
4060
|
-
return (t, n) => a.value || e.selectionShow ? (
|
|
4061
|
-
a.value ? (
|
|
4062
|
-
e.addButton ? (
|
|
4059
|
+
let n = e, r = t, i = V(), a = u(() => !!(n.addButton || i.header || i.extra)), o = u(() => !!(n.addButton && n.selectionShow));
|
|
4060
|
+
return (t, n) => a.value || e.selectionShow ? (j(), p("div", Yi, [
|
|
4061
|
+
a.value ? (j(), p("div", Xi, [
|
|
4062
|
+
e.addButton ? (j(), d(Y, {
|
|
4063
4063
|
key: 0,
|
|
4064
4064
|
type: "primary",
|
|
4065
|
-
icon:
|
|
4065
|
+
icon: z(qe),
|
|
4066
4066
|
onClick: n[0] ||= (e) => r("add")
|
|
4067
4067
|
}, {
|
|
4068
|
-
default:
|
|
4068
|
+
default: W(() => [g(I(e.addButton === !0 ? "新建" : e.addButton), 1)]),
|
|
4069
4069
|
_: 1
|
|
4070
4070
|
}, 8, ["icon"])) : f("", !0),
|
|
4071
|
-
|
|
4072
|
-
|
|
4071
|
+
z(i).header ? (j(), p("div", Zi, [F(t.$slots, "header", {}, void 0, !0)])) : f("", !0),
|
|
4072
|
+
z(i).extra ? (j(), p("div", Qi, [F(t.$slots, "extra", {}, void 0, !0)])) : f("", !0)
|
|
4073
4073
|
])) : f("", !0),
|
|
4074
|
-
o.value ? (
|
|
4075
|
-
e.selectionShow ? (
|
|
4074
|
+
o.value ? (j(), p("div", $i)) : f("", !0),
|
|
4075
|
+
e.selectionShow ? (j(), p("div", ea, "已选择" + I(e.selectedCount) + "条数据", 1)) : f("", !0)
|
|
4076
4076
|
])) : f("", !0);
|
|
4077
4077
|
}
|
|
4078
4078
|
}), [["__scopeId", "data-v-bff19ed1"]]), na = "kayak_table_column_display";
|
|
@@ -4083,13 +4083,13 @@ function ia(e) {
|
|
|
4083
4083
|
return !(e.type === "radio" || e.type === "expand" || e.children?.length);
|
|
4084
4084
|
}
|
|
4085
4085
|
function aa(e) {
|
|
4086
|
-
let t =
|
|
4086
|
+
let t = N({}), n = N(""), r = Ue(na, {}), i = u(() => !!R(e.enableColumnCache)), a = u(() => R(e.columns).filter((e) => ia(e)));
|
|
4087
4087
|
function o() {
|
|
4088
|
-
return
|
|
4088
|
+
return R(e.tableKey) || n.value;
|
|
4089
4089
|
}
|
|
4090
4090
|
function s() {
|
|
4091
4091
|
let t = {};
|
|
4092
|
-
return
|
|
4092
|
+
return R(e.columns).forEach((e, n) => {
|
|
4093
4093
|
ia(e) && (t[$(e, n)] = !0);
|
|
4094
4094
|
}), t;
|
|
4095
4095
|
}
|
|
@@ -4114,16 +4114,16 @@ function aa(e) {
|
|
|
4114
4114
|
delete t[e], r.value = t;
|
|
4115
4115
|
}
|
|
4116
4116
|
function f(t, n) {
|
|
4117
|
-
let r =
|
|
4117
|
+
let r = R(e.columns), i = r.findIndex((e) => e === t || e.prop && e.prop === t.prop && e.type === t.type);
|
|
4118
4118
|
return i >= 0 ? $(r[i], i) : $(t, n);
|
|
4119
4119
|
}
|
|
4120
4120
|
function p() {
|
|
4121
|
-
n.value =
|
|
4121
|
+
n.value = R(e.tableKey) || `table_${Math.random().toString(36).slice(2, 11)}`;
|
|
4122
4122
|
let r = c();
|
|
4123
4123
|
t.value = r ? J(r) : s();
|
|
4124
4124
|
}
|
|
4125
4125
|
function m() {
|
|
4126
|
-
|
|
4126
|
+
E(() => e.onLayout?.());
|
|
4127
4127
|
}
|
|
4128
4128
|
function h(n, r) {
|
|
4129
4129
|
t.value = {
|
|
@@ -4138,7 +4138,7 @@ function aa(e) {
|
|
|
4138
4138
|
d(), t.value = s(), e.onDisplayChange?.(t.value), m();
|
|
4139
4139
|
}
|
|
4140
4140
|
let v = u(() => {
|
|
4141
|
-
let n =
|
|
4141
|
+
let n = R(e.renderColumns);
|
|
4142
4142
|
return i.value ? n.filter((e, n) => {
|
|
4143
4143
|
if (ra(e)) return !0;
|
|
4144
4144
|
let r = f(e, n);
|
|
@@ -4154,12 +4154,12 @@ function aa(e) {
|
|
|
4154
4154
|
disabled: ra(e)
|
|
4155
4155
|
};
|
|
4156
4156
|
}));
|
|
4157
|
-
return
|
|
4157
|
+
return U(() => R(e.columns), () => {
|
|
4158
4158
|
let e = s();
|
|
4159
4159
|
Object.keys(e).forEach((e) => {
|
|
4160
4160
|
t.value[e] === void 0 && (t.value[e] = !0);
|
|
4161
4161
|
});
|
|
4162
|
-
}, { deep: !0 }),
|
|
4162
|
+
}, { deep: !0 }), A(() => {
|
|
4163
4163
|
p();
|
|
4164
4164
|
}), {
|
|
4165
4165
|
columnDisplay: t,
|
|
@@ -4174,18 +4174,18 @@ function aa(e) {
|
|
|
4174
4174
|
//#endregion
|
|
4175
4175
|
//#region src/components/k-table/composables/useTableData.ts
|
|
4176
4176
|
function oa(e) {
|
|
4177
|
-
let t =
|
|
4177
|
+
let t = N([]), n = N(e.initialLoading ?? !1), r = N(!1), i = N(!1);
|
|
4178
4178
|
function a() {
|
|
4179
4179
|
return {
|
|
4180
4180
|
...ft,
|
|
4181
|
-
...
|
|
4181
|
+
...R(e.responseConfig)
|
|
4182
4182
|
};
|
|
4183
4183
|
}
|
|
4184
4184
|
function o() {
|
|
4185
4185
|
let t = a(), { currentPage: n, pageSize: r } = e.pagination.state.value;
|
|
4186
4186
|
return {
|
|
4187
|
-
...
|
|
4188
|
-
...
|
|
4187
|
+
...R(e.params) ?? {},
|
|
4188
|
+
...R(e.queryParams) ?? {},
|
|
4189
4189
|
[t.page]: String(n),
|
|
4190
4190
|
[t.limit]: String(r)
|
|
4191
4191
|
};
|
|
@@ -4218,7 +4218,7 @@ function oa(e) {
|
|
|
4218
4218
|
//#endregion
|
|
4219
4219
|
//#region src/components/k-table/composables/useTablePagination.ts
|
|
4220
4220
|
function sa(e) {
|
|
4221
|
-
let t =
|
|
4221
|
+
let t = R(e.pagination), n = N({
|
|
4222
4222
|
total: t?.total ?? pt.total,
|
|
4223
4223
|
currentPage: t?.currentPage ?? pt.currentPage,
|
|
4224
4224
|
pageSize: t?.pageSize ?? pt.pageSize,
|
|
@@ -4231,8 +4231,8 @@ function sa(e) {
|
|
|
4231
4231
|
pageSizes: n.value.pageSizes,
|
|
4232
4232
|
layout: n.value.layout
|
|
4233
4233
|
})), i = u(() => (n.value.currentPage - 1) * n.value.pageSize);
|
|
4234
|
-
|
|
4235
|
-
let t =
|
|
4234
|
+
U(() => {
|
|
4235
|
+
let t = R(e.pagination);
|
|
4236
4236
|
return [
|
|
4237
4237
|
t?.total,
|
|
4238
4238
|
t?.currentPage,
|
|
@@ -4267,15 +4267,15 @@ function sa(e) {
|
|
|
4267
4267
|
//#endregion
|
|
4268
4268
|
//#region src/components/k-table/composables/useTableRadio.ts
|
|
4269
4269
|
function ca(e) {
|
|
4270
|
-
let t =
|
|
4270
|
+
let t = N(""), n = u(() => R(e.columns).some((e) => e.type === "radio"));
|
|
4271
4271
|
function r(n) {
|
|
4272
|
-
return t.value = n ? Ni(n,
|
|
4272
|
+
return t.value = n ? Ni(n, R(e.rowKey)) : "", n;
|
|
4273
4273
|
}
|
|
4274
4274
|
function i() {
|
|
4275
4275
|
t.value = "";
|
|
4276
4276
|
}
|
|
4277
4277
|
function a(n) {
|
|
4278
|
-
t.value = Ni(n,
|
|
4278
|
+
t.value = Ni(n, R(e.rowKey));
|
|
4279
4279
|
}
|
|
4280
4280
|
function o() {
|
|
4281
4281
|
return t.value;
|
|
@@ -4297,10 +4297,10 @@ function la(e) {
|
|
|
4297
4297
|
t?.destroy(), t = null;
|
|
4298
4298
|
}
|
|
4299
4299
|
function r() {
|
|
4300
|
-
if (n(), !
|
|
4300
|
+
if (n(), !R(e.enabled)) return;
|
|
4301
4301
|
let r = e.tableRef.value?.$el?.querySelector(".el-table__body-wrapper tbody");
|
|
4302
4302
|
r && (t = Ze.create(r, {
|
|
4303
|
-
disabled:
|
|
4303
|
+
disabled: R(e.disabled),
|
|
4304
4304
|
animation: 300,
|
|
4305
4305
|
handle: ".sort-handle",
|
|
4306
4306
|
filter: ".ignore-elements",
|
|
@@ -4308,16 +4308,16 @@ function la(e) {
|
|
|
4308
4308
|
onEnd: (t) => e.onSortEnd(t)
|
|
4309
4309
|
}));
|
|
4310
4310
|
}
|
|
4311
|
-
return
|
|
4312
|
-
|
|
4313
|
-
|
|
4311
|
+
return U(() => [
|
|
4312
|
+
R(e.enabled),
|
|
4313
|
+
R(e.rebindKey),
|
|
4314
4314
|
e.tableRef.value
|
|
4315
4315
|
], () => {
|
|
4316
|
-
|
|
4317
|
-
}, { flush: "post" }),
|
|
4316
|
+
E(r);
|
|
4317
|
+
}, { flush: "post" }), U(() => R(e.disabled), (e) => {
|
|
4318
4318
|
t && t.option("disabled", e);
|
|
4319
|
-
}),
|
|
4320
|
-
initSortable: () =>
|
|
4319
|
+
}), k(n), {
|
|
4320
|
+
initSortable: () => E(r),
|
|
4321
4321
|
destroySortable: n
|
|
4322
4322
|
};
|
|
4323
4323
|
}
|
|
@@ -4327,7 +4327,7 @@ function ua(e) {
|
|
|
4327
4327
|
let t = /* @__PURE__ */ new Map();
|
|
4328
4328
|
function n(n) {
|
|
4329
4329
|
return (r, i, a) => {
|
|
4330
|
-
let o = Ni(r,
|
|
4330
|
+
let o = Ni(r, R(e.rowKey));
|
|
4331
4331
|
o != null && t.set(o, {
|
|
4332
4332
|
row: r,
|
|
4333
4333
|
treeNode: i,
|
|
@@ -4336,7 +4336,7 @@ function ua(e) {
|
|
|
4336
4336
|
};
|
|
4337
4337
|
}
|
|
4338
4338
|
function r(n) {
|
|
4339
|
-
let r =
|
|
4339
|
+
let r = R(e.load), i = t.get(n);
|
|
4340
4340
|
if (!i || !r) return;
|
|
4341
4341
|
let a = e.tableRef.value?.store?.states?.lazyTreeNodeMap;
|
|
4342
4342
|
a && n != null && (a[String(n)] = []), r(i.row, i.treeNode, i.resolve);
|
|
@@ -4353,7 +4353,7 @@ function ua(e) {
|
|
|
4353
4353
|
//#endregion
|
|
4354
4354
|
//#region src/components/k-table/composables/useKTable.ts
|
|
4355
4355
|
function da(e) {
|
|
4356
|
-
let { props: t, emit: n, attrs: r, slots: i, tableRef: a, queryRef: o } = e, s =
|
|
4356
|
+
let { props: t, emit: n, attrs: r, slots: i, tableRef: a, queryRef: o } = e, s = N({}), c = N(0), l = u(() => !!t.action), d = u(() => !!t.query?.form?.formConfigs?.length), f = u(() => !!i.header);
|
|
4357
4357
|
function p(e) {
|
|
4358
4358
|
let n = { ...e };
|
|
4359
4359
|
s.value = t.convertParams ? t.convertParams(n) : n;
|
|
@@ -4386,11 +4386,11 @@ function da(e) {
|
|
|
4386
4386
|
pagination: v,
|
|
4387
4387
|
initialLoading: !!(t.action && t.initTable),
|
|
4388
4388
|
onDataLoaded: (e, t) => n("data-loaded", e, t)
|
|
4389
|
-
}), 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)),
|
|
4389
|
+
}), 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)), ee = u(() => l.value ? y.tableData.value : t.data), C = u(() => t.loading === void 0 ? l.value ? y.loading.value : !1 : t.loading), w = u(() => C.value || !!(l.value && t.initTable && !y.loaded.value)), T = u(() => {
|
|
4390
4390
|
let e = { ...r };
|
|
4391
4391
|
l.value && "data" in e && delete e.data, t.load && delete e.load;
|
|
4392
4392
|
let n = {
|
|
4393
|
-
data:
|
|
4393
|
+
data: ee.value,
|
|
4394
4394
|
rowKey: t.rowKey,
|
|
4395
4395
|
border: !0,
|
|
4396
4396
|
stripe: !0,
|
|
@@ -4408,84 +4408,84 @@ function da(e) {
|
|
|
4408
4408
|
tableRef: a,
|
|
4409
4409
|
rebindKey: () => x.value,
|
|
4410
4410
|
onSortEnd: (e) => {
|
|
4411
|
-
let t = [...
|
|
4411
|
+
let t = [...ee.value];
|
|
4412
4412
|
if (e.oldIndex == null || e.newIndex == null) return;
|
|
4413
4413
|
let [r] = t.splice(e.oldIndex, 1);
|
|
4414
4414
|
t.splice(e.newIndex, 0, r), n("sort-end", e, t);
|
|
4415
4415
|
}
|
|
4416
4416
|
});
|
|
4417
|
-
function
|
|
4417
|
+
function E() {
|
|
4418
4418
|
l.value && y.fetchData();
|
|
4419
4419
|
}
|
|
4420
|
-
|
|
4420
|
+
A(() => {
|
|
4421
4421
|
!t.initTable || !t.action || (d.value && p(o.value?.getParams() ?? {}), y.fetchData());
|
|
4422
4422
|
});
|
|
4423
|
-
function
|
|
4423
|
+
function D(e) {
|
|
4424
4424
|
c.value = e.length, n("selection-change", e);
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4426
|
+
function te(e) {
|
|
4427
4427
|
n("sort-change", e);
|
|
4428
4428
|
}
|
|
4429
|
-
function
|
|
4429
|
+
function O() {
|
|
4430
4430
|
a.value?.setCurrentRow();
|
|
4431
4431
|
}
|
|
4432
|
-
function
|
|
4433
|
-
p(e), v.resetPage(), t.clearCurrentRowOnQuery &&
|
|
4432
|
+
function k(e) {
|
|
4433
|
+
p(e), v.resetPage(), t.clearCurrentRowOnQuery && O(), n("query", s.value), E();
|
|
4434
4434
|
}
|
|
4435
|
-
function
|
|
4436
|
-
n("reset"), t.selectionShow &&
|
|
4435
|
+
function j() {
|
|
4436
|
+
n("reset"), t.selectionShow && R(), t.clearCurrentRowOnReset && O();
|
|
4437
4437
|
}
|
|
4438
|
-
function
|
|
4439
|
-
v.setCurrentPage(e), n("page-change", e),
|
|
4438
|
+
function ne(e) {
|
|
4439
|
+
v.setCurrentPage(e), n("page-change", e), E();
|
|
4440
4440
|
}
|
|
4441
|
-
function
|
|
4442
|
-
v.setPageSize(e), n("size-change", e),
|
|
4441
|
+
function M(e) {
|
|
4442
|
+
v.setPageSize(e), n("size-change", e), E();
|
|
4443
4443
|
}
|
|
4444
|
-
function
|
|
4444
|
+
function P() {
|
|
4445
4445
|
n("add");
|
|
4446
4446
|
}
|
|
4447
|
-
function
|
|
4447
|
+
function F(e, t, r) {
|
|
4448
4448
|
n("operate-click", e, t, r);
|
|
4449
4449
|
}
|
|
4450
|
-
function
|
|
4450
|
+
function re(e) {
|
|
4451
4451
|
if (!g.hasRadioColumn.value) return;
|
|
4452
4452
|
let t = g.selectRow(e);
|
|
4453
4453
|
t && n("radio-change", t, g.radioSelected.value);
|
|
4454
4454
|
}
|
|
4455
|
-
function
|
|
4456
|
-
|
|
4455
|
+
function ie(e) {
|
|
4456
|
+
re(e);
|
|
4457
4457
|
}
|
|
4458
|
-
function
|
|
4458
|
+
function ae(e, t) {
|
|
4459
4459
|
h.setColumnVisibleByKey(e, t);
|
|
4460
4460
|
}
|
|
4461
|
-
function
|
|
4461
|
+
function oe() {
|
|
4462
4462
|
return a.value;
|
|
4463
4463
|
}
|
|
4464
|
-
function
|
|
4464
|
+
function I() {
|
|
4465
4465
|
return o.value;
|
|
4466
4466
|
}
|
|
4467
|
-
function
|
|
4467
|
+
function L() {
|
|
4468
4468
|
return a.value?.getSelectionRows() ?? [];
|
|
4469
4469
|
}
|
|
4470
|
-
function
|
|
4470
|
+
function R() {
|
|
4471
4471
|
a.value?.clearSelection(), c.value = 0;
|
|
4472
4472
|
}
|
|
4473
|
-
function
|
|
4473
|
+
function z(e, t) {
|
|
4474
4474
|
a.value?.toggleRowSelection(e, t);
|
|
4475
4475
|
}
|
|
4476
|
-
async function
|
|
4476
|
+
async function B(e = !1) {
|
|
4477
4477
|
l.value && await y.refresh(e);
|
|
4478
4478
|
}
|
|
4479
|
-
function
|
|
4479
|
+
function se() {
|
|
4480
4480
|
g.clearRadioSelection(), a.value?.setCurrentRow();
|
|
4481
4481
|
}
|
|
4482
|
-
function
|
|
4482
|
+
function V(e) {
|
|
4483
4483
|
g.setRadioSelection(e);
|
|
4484
4484
|
}
|
|
4485
|
-
function
|
|
4485
|
+
function H() {
|
|
4486
4486
|
return g.getRadioSelection();
|
|
4487
4487
|
}
|
|
4488
|
-
function
|
|
4488
|
+
function ce(e) {
|
|
4489
4489
|
_.refreshTree(e);
|
|
4490
4490
|
}
|
|
4491
4491
|
return {
|
|
@@ -4493,37 +4493,37 @@ function da(e) {
|
|
|
4493
4493
|
showToolbar: S,
|
|
4494
4494
|
hasHeaderSlot: f,
|
|
4495
4495
|
renderColumns: b,
|
|
4496
|
-
tableProps:
|
|
4497
|
-
tableLoading:
|
|
4498
|
-
showLoadingEmpty:
|
|
4496
|
+
tableProps: T,
|
|
4497
|
+
tableLoading: C,
|
|
4498
|
+
showLoadingEmpty: w,
|
|
4499
4499
|
columnSelectorItems: h.selectorItems,
|
|
4500
4500
|
paginationBind: v.bindProps,
|
|
4501
4501
|
indexOffset: v.indexOffset,
|
|
4502
4502
|
selectedCount: c,
|
|
4503
4503
|
radioSelected: g.radioSelected,
|
|
4504
4504
|
getColumnIdentity: $,
|
|
4505
|
-
handleSelectionChange:
|
|
4506
|
-
handleSortChange:
|
|
4507
|
-
handleQuery:
|
|
4508
|
-
handleQueryReset:
|
|
4509
|
-
handlePageChange:
|
|
4510
|
-
handleSizeChange:
|
|
4511
|
-
handleAdd:
|
|
4512
|
-
handleOperateClick:
|
|
4513
|
-
handleRowClick:
|
|
4514
|
-
handleRadioChange:
|
|
4515
|
-
handleColumnVisibleChange:
|
|
4505
|
+
handleSelectionChange: D,
|
|
4506
|
+
handleSortChange: te,
|
|
4507
|
+
handleQuery: k,
|
|
4508
|
+
handleQueryReset: j,
|
|
4509
|
+
handlePageChange: ne,
|
|
4510
|
+
handleSizeChange: M,
|
|
4511
|
+
handleAdd: P,
|
|
4512
|
+
handleOperateClick: F,
|
|
4513
|
+
handleRowClick: ie,
|
|
4514
|
+
handleRadioChange: re,
|
|
4515
|
+
handleColumnVisibleChange: ae,
|
|
4516
4516
|
resetColumnDisplay: h.resetColumnDisplay,
|
|
4517
|
-
getTableRef:
|
|
4518
|
-
getQueryRef:
|
|
4519
|
-
getSelection:
|
|
4520
|
-
clearSelection:
|
|
4521
|
-
toggleRowSelection:
|
|
4522
|
-
refresh:
|
|
4523
|
-
clearRadioSelection:
|
|
4524
|
-
setRadioSelection:
|
|
4525
|
-
getRadioSelection:
|
|
4526
|
-
refreshTree:
|
|
4517
|
+
getTableRef: oe,
|
|
4518
|
+
getQueryRef: I,
|
|
4519
|
+
getSelection: L,
|
|
4520
|
+
clearSelection: R,
|
|
4521
|
+
toggleRowSelection: z,
|
|
4522
|
+
refresh: B,
|
|
4523
|
+
clearRadioSelection: se,
|
|
4524
|
+
setRadioSelection: V,
|
|
4525
|
+
getRadioSelection: H,
|
|
4526
|
+
refreshTree: ce
|
|
4527
4527
|
};
|
|
4528
4528
|
}
|
|
4529
4529
|
var fa = {
|
|
@@ -4547,7 +4547,7 @@ var fa = {
|
|
|
4547
4547
|
name: "KTable",
|
|
4548
4548
|
inheritAttrs: !0,
|
|
4549
4549
|
__name: "KTable",
|
|
4550
|
-
props: /*@__PURE__*/
|
|
4550
|
+
props: /*@__PURE__*/ C({
|
|
4551
4551
|
columns: {},
|
|
4552
4552
|
data: {},
|
|
4553
4553
|
action: { type: Function },
|
|
@@ -4591,10 +4591,10 @@ var fa = {
|
|
|
4591
4591
|
"sort-change"
|
|
4592
4592
|
],
|
|
4593
4593
|
setup(e, { expose: t, emit: n }) {
|
|
4594
|
-
let r = e, i = n, a =
|
|
4594
|
+
let r = e, i = n, a = V(), o = N(), s = N(), l = M(da({
|
|
4595
4595
|
props: r,
|
|
4596
4596
|
emit: i,
|
|
4597
|
-
attrs:
|
|
4597
|
+
attrs: B(),
|
|
4598
4598
|
slots: a,
|
|
4599
4599
|
tableRef: o,
|
|
4600
4600
|
queryRef: s
|
|
@@ -4619,8 +4619,8 @@ var fa = {
|
|
|
4619
4619
|
getRadioSelection: l.getRadioSelection,
|
|
4620
4620
|
refreshTree: l.refreshTree
|
|
4621
4621
|
}), (t, n) => {
|
|
4622
|
-
let r =
|
|
4623
|
-
return
|
|
4622
|
+
let r = ie("loading");
|
|
4623
|
+
return j(), p("div", pa, [l.showQuery ? (j(), d(z(ji), T({
|
|
4624
4624
|
key: 0,
|
|
4625
4625
|
ref_key: "queryRef",
|
|
4626
4626
|
ref: s,
|
|
@@ -4629,7 +4629,7 @@ var fa = {
|
|
|
4629
4629
|
onQuery: l.handleQuery,
|
|
4630
4630
|
onReset: l.handleQueryReset
|
|
4631
4631
|
}), null, 16, ["onQuery", "onReset"])) : f("", !0), m("div", ma, [
|
|
4632
|
-
l.showToolbar ? (
|
|
4632
|
+
l.showToolbar ? (j(), d(ta, {
|
|
4633
4633
|
key: 0,
|
|
4634
4634
|
"add-button": e.addButton,
|
|
4635
4635
|
"selection-show": e.selectionShow,
|
|
@@ -4637,11 +4637,11 @@ var fa = {
|
|
|
4637
4637
|
onAdd: l.handleAdd
|
|
4638
4638
|
}, h({ _: 2 }, [l.hasHeaderSlot ? {
|
|
4639
4639
|
name: "header",
|
|
4640
|
-
fn:
|
|
4640
|
+
fn: W(() => [F(t.$slots, "header", {}, void 0, !0)]),
|
|
4641
4641
|
key: "0"
|
|
4642
4642
|
} : void 0, e.enableColumnCache ? {
|
|
4643
4643
|
name: "extra",
|
|
4644
|
-
fn:
|
|
4644
|
+
fn: W(() => [_(Ji, {
|
|
4645
4645
|
items: l.columnSelectorItems,
|
|
4646
4646
|
onChange: l.handleColumnVisibleChange,
|
|
4647
4647
|
onReset: l.resetColumnDisplay
|
|
@@ -4657,7 +4657,7 @@ var fa = {
|
|
|
4657
4657
|
"selected-count",
|
|
4658
4658
|
"onAdd"
|
|
4659
4659
|
])) : f("", !0),
|
|
4660
|
-
|
|
4660
|
+
le((j(), d(z(Fe), T({
|
|
4661
4661
|
ref_key: "tableRef",
|
|
4662
4662
|
ref: o,
|
|
4663
4663
|
class: "k-table__main"
|
|
@@ -4666,23 +4666,23 @@ var fa = {
|
|
|
4666
4666
|
onSortChange: l.handleSortChange,
|
|
4667
4667
|
onRowClick: l.handleRowClick
|
|
4668
4668
|
}), {
|
|
4669
|
-
empty:
|
|
4670
|
-
default:
|
|
4669
|
+
empty: W(() => [l.showLoadingEmpty ? le((j(), p("span", ha, null, 512)), [[r, l.showLoadingEmpty]]) : F(t.$slots, "empty", {}, () => [g(I(t.$attrs.emptyText ?? t.$attrs["empty-text"] ?? "暂无数据"), 1)], !0, 1)]),
|
|
4670
|
+
default: W(() => [e.sort ? (j(), d(z(K), {
|
|
4671
4671
|
key: 0,
|
|
4672
4672
|
label: "拖拽排序",
|
|
4673
4673
|
align: "center",
|
|
4674
4674
|
width: "100"
|
|
4675
4675
|
}, {
|
|
4676
|
-
default:
|
|
4676
|
+
default: W(({ row: n, column: r, $index: i }) => [F(t.$slots, "sort", {
|
|
4677
4677
|
row: n,
|
|
4678
4678
|
column: r,
|
|
4679
4679
|
index: i
|
|
4680
4680
|
}, () => [m("span", {
|
|
4681
|
-
class:
|
|
4681
|
+
class: D(e.sortFilter.includes(i) ? "ignore-elements" : "sort-handle k-table__sort-handle"),
|
|
4682
4682
|
"aria-hidden": "true"
|
|
4683
4683
|
}, "⋮⋮", 2)], !0)]),
|
|
4684
4684
|
_: 3
|
|
4685
|
-
})) : f("", !0), (
|
|
4685
|
+
})) : f("", !0), (j(!0), p(c, null, P(l.renderColumns, (n, r) => (j(), d(Wi, {
|
|
4686
4686
|
key: l.getColumnIdentity(n, r),
|
|
4687
4687
|
column: n,
|
|
4688
4688
|
"column-index": r,
|
|
@@ -4693,9 +4693,9 @@ var fa = {
|
|
|
4693
4693
|
"radio-selected": l.radioSelected,
|
|
4694
4694
|
onOperateClick: l.handleOperateClick,
|
|
4695
4695
|
onRadioSelect: l.handleRadioChange
|
|
4696
|
-
}, h({ _: 2 }, [
|
|
4696
|
+
}, h({ _: 2 }, [P(v.value, (e) => ({
|
|
4697
4697
|
name: e,
|
|
4698
|
-
fn:
|
|
4698
|
+
fn: W((n) => [F(t.$slots, e, T({ ref_for: !0 }, n ?? {}), void 0, !0)])
|
|
4699
4699
|
}))]), 1032, [
|
|
4700
4700
|
"column",
|
|
4701
4701
|
"column-index",
|
|
@@ -4713,13 +4713,13 @@ var fa = {
|
|
|
4713
4713
|
"onSortChange",
|
|
4714
4714
|
"onRowClick"
|
|
4715
4715
|
])), [[r, l.tableLoading]]),
|
|
4716
|
-
m("div", ga, [e.hidePagination ? f("", !0) : (
|
|
4716
|
+
m("div", ga, [e.hidePagination ? f("", !0) : (j(), d(z(Jr), T({
|
|
4717
4717
|
key: 0,
|
|
4718
4718
|
class: "pagination"
|
|
4719
4719
|
}, l.paginationBind, {
|
|
4720
4720
|
onCurrentChange: l.handlePageChange,
|
|
4721
4721
|
onSizeChange: l.handleSizeChange
|
|
4722
|
-
}), null, 16, ["onCurrentChange", "onSizeChange"])),
|
|
4722
|
+
}), null, 16, ["onCurrentChange", "onSizeChange"])), F(t.$slots, "footer", {}, void 0, !0)])
|
|
4723
4723
|
])]);
|
|
4724
4724
|
};
|
|
4725
4725
|
}
|
|
@@ -4735,17 +4735,17 @@ function ya(e) {
|
|
|
4735
4735
|
//#endregion
|
|
4736
4736
|
//#region src/components/k-table/composables/useKTableTemplateRef.ts
|
|
4737
4737
|
function ba(e) {
|
|
4738
|
-
return
|
|
4738
|
+
return H(e);
|
|
4739
4739
|
}
|
|
4740
4740
|
//#endregion
|
|
4741
4741
|
//#region src/components/k-table/composables/useKTableCrossPageSelection.ts
|
|
4742
4742
|
function xa(e) {
|
|
4743
|
-
let t =
|
|
4743
|
+
let t = oe([]), n = oe([]), r = oe(!1), i = ba(e.tableRefKey ?? "tableRef");
|
|
4744
4744
|
function a() {
|
|
4745
|
-
return e.tableRef == null ? i.value :
|
|
4745
|
+
return e.tableRef == null ? i.value : R(e.tableRef);
|
|
4746
4746
|
}
|
|
4747
4747
|
function o(t) {
|
|
4748
|
-
return String(Ni(t,
|
|
4748
|
+
return String(Ni(t, R(e.rowKey)));
|
|
4749
4749
|
}
|
|
4750
4750
|
function s(e) {
|
|
4751
4751
|
t.value = [...e];
|
|
@@ -4759,16 +4759,16 @@ function xa(e) {
|
|
|
4759
4759
|
function u(i) {
|
|
4760
4760
|
n.value = i;
|
|
4761
4761
|
let s = new Set(t.value.map(o));
|
|
4762
|
-
if (
|
|
4762
|
+
if (R(e.mode) === "single") {
|
|
4763
4763
|
let e = i.find((e) => s.has(o(e)));
|
|
4764
4764
|
e && a()?.setRadioSelection(e);
|
|
4765
4765
|
return;
|
|
4766
4766
|
}
|
|
4767
|
-
r.value = !0,
|
|
4767
|
+
r.value = !0, E(async () => {
|
|
4768
4768
|
let e = a();
|
|
4769
4769
|
i.forEach((t) => {
|
|
4770
4770
|
s.has(o(t)) && e?.toggleRowSelection(t, !0);
|
|
4771
|
-
}), await
|
|
4771
|
+
}), await E(), r.value = !1;
|
|
4772
4772
|
});
|
|
4773
4773
|
}
|
|
4774
4774
|
function d(e) {
|
|
@@ -4856,18 +4856,18 @@ function Oa(e, t) {
|
|
|
4856
4856
|
//#endregion
|
|
4857
4857
|
//#region src/components/k-table/report/useExportKTableReport.ts
|
|
4858
4858
|
function ka(e) {
|
|
4859
|
-
let t =
|
|
4859
|
+
let t = N(!1);
|
|
4860
4860
|
async function n() {
|
|
4861
4861
|
if (!t.value) {
|
|
4862
4862
|
t.value = !0;
|
|
4863
4863
|
try {
|
|
4864
4864
|
await wa({
|
|
4865
4865
|
tableRef: e.tableRef,
|
|
4866
|
-
columns:
|
|
4866
|
+
columns: R(e.columns),
|
|
4867
4867
|
exportApi: e.exportApi,
|
|
4868
4868
|
convertParams: e.convertParams,
|
|
4869
|
-
excludeOperates:
|
|
4870
|
-
excludeLast:
|
|
4869
|
+
excludeOperates: R(e.excludeOperates),
|
|
4870
|
+
excludeLast: R(e.excludeLast)
|
|
4871
4871
|
});
|
|
4872
4872
|
} finally {
|
|
4873
4873
|
t.value = !1;
|