@a2simcode/ui 0.0.11 → 0.0.13
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/simcode-ui.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as K, computed as $, createElementBlock as V, openBlock as i, mergeProps as we, createVNode as Q, unref as
|
|
1
|
+
import { defineComponent as K, computed as $, createElementBlock as V, openBlock as i, mergeProps as we, createVNode as Q, unref as P, shallowRef as it, ref as j, watch as ke, withModifiers as Be, normalizeClass as ze, createBlock as w, createCommentVNode as A, renderSlot as te, toDisplayString as ne, resolveComponent as F, normalizeStyle as ue, withCtx as L, Fragment as se, renderList as ce, createSlots as Ue, createTextVNode as Se, createElementVNode as H, useSlots as Bt, reactive as Ye, onMounted as Xe, onUnmounted as et, onBeforeUnmount as kt, inject as $e, nextTick as xe, resolveDynamicComponent as We, resolveDirective as ut, withDirectives as Ee, provide as rt, withKeys as $t, vShow as ot, useTemplateRef as Me, mergeModels as ft, useModel as zt, watchEffect as Vt, normalizeProps as Tt } from "vue";
|
|
2
2
|
import { getIcon as mt, Icon as pt } from "@iconify/vue";
|
|
3
3
|
import Ct from "dayjs";
|
|
4
4
|
import { encrypt as Lt, decrypt as xt } from "crypto-js/aes";
|
|
5
5
|
import Qe, { parse as vt } from "crypto-js/enc-utf8";
|
|
6
|
-
import
|
|
6
|
+
import Ft from "crypto-js/pad-pkcs7";
|
|
7
7
|
import gt from "crypto-js/enc-base64";
|
|
8
|
-
import
|
|
8
|
+
import It from "crypto-js/md5";
|
|
9
9
|
import Ot from "crypto-js/sha256";
|
|
10
10
|
import Mt from "crypto-js/sha512";
|
|
11
11
|
import * as ht from "@visactor/vtable";
|
|
@@ -26,7 +26,7 @@ function Jt(e, l) {
|
|
|
26
26
|
function _a(e) {
|
|
27
27
|
return e !== null && Jt(e, "Object");
|
|
28
28
|
}
|
|
29
|
-
const Le = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0),
|
|
29
|
+
const Le = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0), Je = /* @__PURE__ */ K({
|
|
30
30
|
name: "JIcon",
|
|
31
31
|
inheritAttrs: !1,
|
|
32
32
|
__name: "icon",
|
|
@@ -52,20 +52,20 @@ const Le = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
|
|
|
52
52
|
class: "j-icon jicon",
|
|
53
53
|
style: { height: `${e.size}px` }
|
|
54
54
|
}), [
|
|
55
|
-
Q(
|
|
55
|
+
Q(P(pt), we(t.value, {
|
|
56
56
|
height: `${e.size}px`,
|
|
57
57
|
width: `${e.size}px`,
|
|
58
58
|
mode: "svg"
|
|
59
59
|
}), null, 16, ["height", "width"])
|
|
60
60
|
], 16)) : (i(), V("span", we({ key: 1 }, n.$attrs, { class: "jicon" }), [
|
|
61
|
-
Q(
|
|
61
|
+
Q(P(pt), we(t.value, {
|
|
62
62
|
height: `${e.size}px`,
|
|
63
63
|
width: `${e.size}px`,
|
|
64
64
|
mode: "svg"
|
|
65
65
|
}), null, 16, ["height", "width"])
|
|
66
66
|
], 16));
|
|
67
67
|
}
|
|
68
|
-
}), Ut = ["disabled"],
|
|
68
|
+
}), Ut = ["disabled"], Wt = { key: 2 }, Pt = /* @__PURE__ */ K({
|
|
69
69
|
name: "JButton",
|
|
70
70
|
__name: "button",
|
|
71
71
|
props: {
|
|
@@ -230,21 +230,21 @@ const Le = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
|
|
|
230
230
|
disabled: e.disabled,
|
|
231
231
|
onClick: Be(a, ["stop"])
|
|
232
232
|
}, [
|
|
233
|
-
m.value ? (i(),
|
|
233
|
+
m.value ? (i(), w(Je, {
|
|
234
234
|
key: 0,
|
|
235
235
|
icon: "mdi-light:loading",
|
|
236
236
|
size: e.size == "large" ? 14 : 12,
|
|
237
237
|
class: "loading-spin j-button-loading-icon"
|
|
238
238
|
}, null, 8, ["size"])) : A("", !0),
|
|
239
|
-
e.icon ? (i(),
|
|
239
|
+
e.icon ? (i(), w(Je, {
|
|
240
240
|
key: 1,
|
|
241
241
|
icon: e.icon
|
|
242
242
|
}, null, 8, ["icon"])) : A("", !0),
|
|
243
|
-
e.notLabel ? A("", !0) : (i(), V("div",
|
|
244
|
-
|
|
243
|
+
e.notLabel ? A("", !0) : (i(), V("div", Wt, ne(r.value), 1)),
|
|
244
|
+
te(p.$slots, "iconAfter")
|
|
245
245
|
], 10, Ut));
|
|
246
246
|
}
|
|
247
|
-
}), Ht = _(
|
|
247
|
+
}), Ht = _(Pt);
|
|
248
248
|
function Ze(e) {
|
|
249
249
|
Object.keys(e || {}).forEach((l) => {
|
|
250
250
|
delete e[l];
|
|
@@ -444,7 +444,7 @@ const tl = /* @__PURE__ */ (() => {
|
|
|
444
444
|
}, 400)));
|
|
445
445
|
};
|
|
446
446
|
})();
|
|
447
|
-
function
|
|
447
|
+
function Pe(e) {
|
|
448
448
|
tl(e);
|
|
449
449
|
}
|
|
450
450
|
const bt = (e, l = 32) => {
|
|
@@ -464,7 +464,7 @@ class ll {
|
|
|
464
464
|
}
|
|
465
465
|
get getOptions() {
|
|
466
466
|
return {
|
|
467
|
-
padding:
|
|
467
|
+
padding: Ft,
|
|
468
468
|
iv: this.iv
|
|
469
469
|
};
|
|
470
470
|
}
|
|
@@ -475,14 +475,14 @@ class ll {
|
|
|
475
475
|
return xt(l, this.key, this.getOptions).toString(Qe);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
|
-
class
|
|
478
|
+
class De {
|
|
479
479
|
static instance;
|
|
480
480
|
constructor() {
|
|
481
481
|
}
|
|
482
482
|
// Get the singleton instance
|
|
483
483
|
// 获取单例实例
|
|
484
484
|
static getInstance() {
|
|
485
|
-
return
|
|
485
|
+
return De.instance || (De.instance = new De()), De.instance;
|
|
486
486
|
}
|
|
487
487
|
encrypt(l) {
|
|
488
488
|
return Qe.parse(l).toString(gt);
|
|
@@ -491,40 +491,40 @@ class Ae {
|
|
|
491
491
|
return gt.parse(l).toString(Qe);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
class
|
|
494
|
+
class Ae {
|
|
495
495
|
static instance;
|
|
496
496
|
constructor() {
|
|
497
497
|
}
|
|
498
498
|
// Get the singleton instance
|
|
499
499
|
// 获取单例实例
|
|
500
500
|
static getInstance() {
|
|
501
|
-
return
|
|
501
|
+
return Ae.instance || (Ae.instance = new Ae()), Ae.instance;
|
|
502
502
|
}
|
|
503
503
|
hash(l) {
|
|
504
|
-
return
|
|
504
|
+
return It(l).toString();
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
class
|
|
507
|
+
class Ne {
|
|
508
508
|
static instance;
|
|
509
509
|
constructor() {
|
|
510
510
|
}
|
|
511
511
|
// Get the singleton instance
|
|
512
512
|
// 获取单例实例
|
|
513
513
|
static getInstance() {
|
|
514
|
-
return
|
|
514
|
+
return Ne.instance || (Ne.instance = new Ne()), Ne.instance;
|
|
515
515
|
}
|
|
516
516
|
hash(l) {
|
|
517
517
|
return Ot(l).toString();
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
class
|
|
520
|
+
class Re {
|
|
521
521
|
static instance;
|
|
522
522
|
constructor() {
|
|
523
523
|
}
|
|
524
524
|
// Get the singleton instance
|
|
525
525
|
// 获取单例实例
|
|
526
526
|
static getInstance() {
|
|
527
|
-
return
|
|
527
|
+
return Re.instance || (Re.instance = new Re()), Re.instance;
|
|
528
528
|
}
|
|
529
529
|
hash(l) {
|
|
530
530
|
return Mt(l).toString();
|
|
@@ -535,18 +535,18 @@ class ol {
|
|
|
535
535
|
return new ll(l);
|
|
536
536
|
}
|
|
537
537
|
static createBase64Encryption() {
|
|
538
|
-
return
|
|
538
|
+
return De.getInstance();
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
class nn {
|
|
542
542
|
static createMD5Hashing() {
|
|
543
|
-
return
|
|
543
|
+
return Ae.getInstance();
|
|
544
544
|
}
|
|
545
545
|
static createSHA256Hashing() {
|
|
546
|
-
return
|
|
546
|
+
return Ne.getInstance();
|
|
547
547
|
}
|
|
548
548
|
static createSHA512Hashing() {
|
|
549
|
-
return
|
|
549
|
+
return Re.getInstance();
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
const sn = (e, l) => xt(e, l).toString(Qe);
|
|
@@ -625,19 +625,19 @@ const nl = /* @__PURE__ */ K({
|
|
|
625
625
|
return a;
|
|
626
626
|
}), t = j(), { handleClick: n } = al(t);
|
|
627
627
|
return (a, s) => {
|
|
628
|
-
const u =
|
|
629
|
-
return i(),
|
|
628
|
+
const u = F("j-button"), v = F("el-space"), d = F("el-dropdown"), m = F("j-dynamic-layer");
|
|
629
|
+
return i(), w(v, {
|
|
630
630
|
style: ue({ display: e.readonly ? "none" : "" }),
|
|
631
631
|
size: e.isLink ? 0 : 8
|
|
632
632
|
}, {
|
|
633
|
-
default:
|
|
633
|
+
default: L(() => [
|
|
634
634
|
(i(!0), V(se, null, ce(o.value, (r, p) => (i(), V("div", we({ key: p }, { ref_for: !0 }, a.$attrs), [
|
|
635
635
|
(i(!0), V(se, null, ce(r, (h, c) => (i(), V(se, { key: c }, [
|
|
636
|
-
h.children?.length && h.children?.length > 0 ? (i(),
|
|
637
|
-
dropdown:
|
|
636
|
+
h.children?.length && h.children?.length > 0 ? (i(), w(d, { key: 0 }, {
|
|
637
|
+
dropdown: L(() => [
|
|
638
638
|
Q(v, { direction: "vertical" }, {
|
|
639
|
-
default:
|
|
640
|
-
(i(!0), V(se, null, ce(h.children || [], (g) => (i(),
|
|
639
|
+
default: L(() => [
|
|
640
|
+
(i(!0), V(se, null, ce(h.children || [], (g) => (i(), w(u, {
|
|
641
641
|
key: g.prop,
|
|
642
642
|
label: g.label,
|
|
643
643
|
type: "text",
|
|
@@ -645,24 +645,24 @@ const nl = /* @__PURE__ */ K({
|
|
|
645
645
|
size: e.size,
|
|
646
646
|
disabled: g.disabled,
|
|
647
647
|
icon: g.icon,
|
|
648
|
-
onClick: Be((y) =>
|
|
648
|
+
onClick: Be((y) => P(n)(g), ["stop"])
|
|
649
649
|
}, null, 8, ["label", "danger", "size", "disabled", "icon", "onClick"]))), 128))
|
|
650
650
|
]),
|
|
651
651
|
_: 2
|
|
652
652
|
}, 1024)
|
|
653
653
|
]),
|
|
654
|
-
default:
|
|
654
|
+
default: L(() => [
|
|
655
655
|
Q(u, {
|
|
656
656
|
label: h.label,
|
|
657
657
|
type: e.isLink ? "link" : h.type,
|
|
658
658
|
danger: h.danger,
|
|
659
659
|
size: e.size,
|
|
660
660
|
icon: h.icon,
|
|
661
|
-
onClick: Be((g) =>
|
|
661
|
+
onClick: Be((g) => P(n)(h), ["stop"])
|
|
662
662
|
}, null, 8, ["label", "type", "danger", "size", "icon", "onClick"])
|
|
663
663
|
]),
|
|
664
664
|
_: 2
|
|
665
|
-
}, 1024)) : (i(),
|
|
665
|
+
}, 1024)) : (i(), w(u, {
|
|
666
666
|
key: 1,
|
|
667
667
|
label: h.label,
|
|
668
668
|
type: e.isLink ? "link" : h.type,
|
|
@@ -672,7 +672,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
672
672
|
compact: !0,
|
|
673
673
|
"last-compact-item": c === r.length - 1,
|
|
674
674
|
"first-compact-item": c === 0,
|
|
675
|
-
onClick: Be((g) =>
|
|
675
|
+
onClick: Be((g) => P(n)(h), ["stop"])
|
|
676
676
|
}, null, 8, ["label", "type", "danger", "size", "icon", "last-compact-item", "first-compact-item", "onClick"]))
|
|
677
677
|
], 64))), 128))
|
|
678
678
|
], 16))), 128)),
|
|
@@ -745,8 +745,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
745
745
|
t("change", m);
|
|
746
746
|
};
|
|
747
747
|
return (m, r) => {
|
|
748
|
-
const p =
|
|
749
|
-
return i(),
|
|
748
|
+
const p = F("j-icon"), h = F("el-input");
|
|
749
|
+
return i(), w(h, we({
|
|
750
750
|
modelValue: n.value,
|
|
751
751
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => n.value = c),
|
|
752
752
|
type: e.type,
|
|
@@ -786,17 +786,17 @@ const nl = /* @__PURE__ */ K({
|
|
|
786
786
|
onBlur: u,
|
|
787
787
|
onClear: v,
|
|
788
788
|
onChange: d
|
|
789
|
-
}),
|
|
789
|
+
}), Ue({ _: 2 }, [
|
|
790
790
|
e.prefixIcon ? {
|
|
791
791
|
name: "prefix",
|
|
792
|
-
fn:
|
|
792
|
+
fn: L(() => [
|
|
793
793
|
Q(p, { icon: e.prefixIcon }, null, 8, ["icon"])
|
|
794
794
|
]),
|
|
795
795
|
key: "0"
|
|
796
796
|
} : void 0,
|
|
797
797
|
e.suffixIcon ? {
|
|
798
798
|
name: "suffix",
|
|
799
|
-
fn:
|
|
799
|
+
fn: L(() => [
|
|
800
800
|
Q(p, { icon: e.suffixIcon }, null, 8, ["icon"])
|
|
801
801
|
]),
|
|
802
802
|
key: "1"
|
|
@@ -804,7 +804,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
804
804
|
]), 1040, ["modelValue", "type", "model-modifiers", "maxlength", "minlength", "show-word-limit", "word-limit-position", "placeholder", "clearable", "clear-icon", "formatter", "parser", "show-password", "disabled", "size", "rows", "autosize", "autocomplete", "name", "readonly", "max", "min", "step", "resize", "autofocus", "form", "aria-label", "tabindex", "validate-event", "input-style", "label", "inputmode"]);
|
|
805
805
|
};
|
|
806
806
|
}
|
|
807
|
-
}), ul = _(il), rl = _(
|
|
807
|
+
}), ul = _(il), rl = _(Je), cl = { key: 1 }, dl = /* @__PURE__ */ K({
|
|
808
808
|
name: "JRadio",
|
|
809
809
|
__name: "radio",
|
|
810
810
|
props: {
|
|
@@ -873,29 +873,29 @@ const nl = /* @__PURE__ */ K({
|
|
|
873
873
|
}
|
|
874
874
|
});
|
|
875
875
|
return (a, s) => {
|
|
876
|
-
const u =
|
|
877
|
-
return i(),
|
|
876
|
+
const u = F("el-radio-button"), v = F("el-tag"), d = F("el-radio"), m = F("el-radio-group");
|
|
877
|
+
return i(), w(m, {
|
|
878
878
|
modelValue: n.value,
|
|
879
879
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => n.value = r),
|
|
880
880
|
disabled: e.readonly
|
|
881
881
|
}, {
|
|
882
|
-
default:
|
|
883
|
-
e.isButton ? (i(!0), V(se, { key: 0 }, ce(e.options, (r) => (i(),
|
|
882
|
+
default: L(() => [
|
|
883
|
+
e.isButton ? (i(!0), V(se, { key: 0 }, ce(e.options, (r) => (i(), w(u, {
|
|
884
884
|
key: r.value,
|
|
885
885
|
value: r.value,
|
|
886
886
|
size: e.size
|
|
887
887
|
}, {
|
|
888
|
-
default:
|
|
888
|
+
default: L(() => [
|
|
889
889
|
Se(ne(r.label), 1)
|
|
890
890
|
]),
|
|
891
891
|
_: 2
|
|
892
|
-
}, 1032, ["value", "size"]))), 128)) : (i(!0), V(se, { key: 1 }, ce(e.options, (r, p) => (i(),
|
|
892
|
+
}, 1032, ["value", "size"]))), 128)) : (i(!0), V(se, { key: 1 }, ce(e.options, (r, p) => (i(), w(d, {
|
|
893
893
|
key: r.value,
|
|
894
894
|
value: r.value,
|
|
895
895
|
size: e.size
|
|
896
896
|
}, {
|
|
897
|
-
default:
|
|
898
|
-
e.isColor ? (i(),
|
|
897
|
+
default: L(() => [
|
|
898
|
+
e.isColor ? (i(), w(v, {
|
|
899
899
|
key: 0,
|
|
900
900
|
color: e.colors[p] || r.color || "",
|
|
901
901
|
size: e.size,
|
|
@@ -903,7 +903,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
903
903
|
effect: "dark",
|
|
904
904
|
style: { "border-width": "0" }
|
|
905
905
|
}, {
|
|
906
|
-
default:
|
|
906
|
+
default: L(() => [
|
|
907
907
|
Se(ne(r.label), 1)
|
|
908
908
|
]),
|
|
909
909
|
_: 2
|
|
@@ -992,8 +992,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
992
992
|
}
|
|
993
993
|
};
|
|
994
994
|
return (m, r) => {
|
|
995
|
-
const p =
|
|
996
|
-
return i(),
|
|
995
|
+
const p = F("el-tooltip"), h = F("el-option"), c = F("el-option-group"), g = F("el-select");
|
|
996
|
+
return i(), w(g, we(m.$attrs, {
|
|
997
997
|
modelValue: n.value,
|
|
998
998
|
"onUpdate:modelValue": r[0] || (r[0] = (y) => n.value = y),
|
|
999
999
|
class: [{ "no-border": e.noBorder, "rows-background": e.isRows }],
|
|
@@ -1007,42 +1007,42 @@ const nl = /* @__PURE__ */ K({
|
|
|
1007
1007
|
"collapse-tags-tooltip": e.collapseTagsTooltip,
|
|
1008
1008
|
placeholder: e.placeholder,
|
|
1009
1009
|
onChange: d
|
|
1010
|
-
}),
|
|
1011
|
-
default:
|
|
1012
|
-
e.isGroup ? (i(!0), V(se, { key: 0 }, ce(v.value, (y) => (i(),
|
|
1010
|
+
}), Ue({
|
|
1011
|
+
default: L(() => [
|
|
1012
|
+
e.isGroup ? (i(!0), V(se, { key: 0 }, ce(v.value, (y) => (i(), w(c, {
|
|
1013
1013
|
key: y.label,
|
|
1014
1014
|
label: y.label
|
|
1015
1015
|
}, {
|
|
1016
|
-
default:
|
|
1017
|
-
(i(!0), V(se, null, ce(y.children, (
|
|
1018
|
-
key:
|
|
1019
|
-
label:
|
|
1020
|
-
value:
|
|
1021
|
-
disabled: !!
|
|
1016
|
+
default: L(() => [
|
|
1017
|
+
(i(!0), V(se, null, ce(y.children, (k) => (i(), w(h, {
|
|
1018
|
+
key: k.value,
|
|
1019
|
+
label: k.label,
|
|
1020
|
+
value: k.value || " ",
|
|
1021
|
+
disabled: !!k.disabled
|
|
1022
1022
|
}, {
|
|
1023
|
-
default:
|
|
1023
|
+
default: L(() => [
|
|
1024
1024
|
H("div", pl, [
|
|
1025
|
-
|
|
1025
|
+
k.icon ? (i(), w(Je, {
|
|
1026
1026
|
key: 0,
|
|
1027
1027
|
class: "j-select-option-icon",
|
|
1028
|
-
icon:
|
|
1028
|
+
icon: k.icon
|
|
1029
1029
|
}, null, 8, ["icon"])) : A("", !0),
|
|
1030
|
-
H("div", null, ne(
|
|
1030
|
+
H("div", null, ne(k.label), 1)
|
|
1031
1031
|
])
|
|
1032
1032
|
]),
|
|
1033
1033
|
_: 2
|
|
1034
1034
|
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
1035
1035
|
]),
|
|
1036
1036
|
_: 2
|
|
1037
|
-
}, 1032, ["label"]))), 128)) : (i(!0), V(se, { key: 1 }, ce(v.value, (y) => (i(),
|
|
1037
|
+
}, 1032, ["label"]))), 128)) : (i(!0), V(se, { key: 1 }, ce(v.value, (y) => (i(), w(h, {
|
|
1038
1038
|
key: y.value,
|
|
1039
1039
|
label: y.label,
|
|
1040
1040
|
value: y.value + "",
|
|
1041
1041
|
disabled: !!y.disabled
|
|
1042
1042
|
}, {
|
|
1043
|
-
default:
|
|
1043
|
+
default: L(() => [
|
|
1044
1044
|
H("div", vl, [
|
|
1045
|
-
y.icon ? (i(),
|
|
1045
|
+
y.icon ? (i(), w(Je, {
|
|
1046
1046
|
key: 0,
|
|
1047
1047
|
class: "j-select-option-icon",
|
|
1048
1048
|
icon: y.icon
|
|
@@ -1057,20 +1057,20 @@ const nl = /* @__PURE__ */ K({
|
|
|
1057
1057
|
}, [
|
|
1058
1058
|
e.multiple ? void 0 : {
|
|
1059
1059
|
name: "label",
|
|
1060
|
-
fn:
|
|
1060
|
+
fn: L(() => [
|
|
1061
1061
|
H("div", ml, [
|
|
1062
|
-
s.value ? (i(),
|
|
1062
|
+
s.value ? (i(), w(Je, {
|
|
1063
1063
|
key: 0,
|
|
1064
1064
|
class: "j-select-option-icon",
|
|
1065
1065
|
icon: s.value
|
|
1066
1066
|
}, null, 8, ["icon"])) : A("", !0),
|
|
1067
1067
|
H("div", null, [
|
|
1068
|
-
e.isShowTooltip ? (i(),
|
|
1068
|
+
e.isShowTooltip ? (i(), w(p, {
|
|
1069
1069
|
key: 0,
|
|
1070
1070
|
content: a.value,
|
|
1071
1071
|
placement: "top"
|
|
1072
1072
|
}, {
|
|
1073
|
-
default:
|
|
1073
|
+
default: L(() => [
|
|
1074
1074
|
Se(ne(a.value), 1)
|
|
1075
1075
|
]),
|
|
1076
1076
|
_: 1
|
|
@@ -1152,8 +1152,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
1152
1152
|
leaf: "leaf"
|
|
1153
1153
|
}));
|
|
1154
1154
|
return (p, h) => {
|
|
1155
|
-
const c =
|
|
1156
|
-
return i(),
|
|
1155
|
+
const c = F("el-cascader");
|
|
1156
|
+
return i(), w(c, {
|
|
1157
1157
|
ref_key: "cascaderRef",
|
|
1158
1158
|
ref: n,
|
|
1159
1159
|
modelValue: d.value,
|
|
@@ -1173,35 +1173,35 @@ const nl = /* @__PURE__ */ K({
|
|
|
1173
1173
|
size: e.size,
|
|
1174
1174
|
onChange: m
|
|
1175
1175
|
}, {
|
|
1176
|
-
default:
|
|
1177
|
-
|
|
1176
|
+
default: L(({ node: g, data: y }) => [
|
|
1177
|
+
te(p.$slots, "default", {
|
|
1178
1178
|
node: g,
|
|
1179
1179
|
data: y
|
|
1180
1180
|
}, () => [
|
|
1181
1181
|
Se(ne(y?.label), 1)
|
|
1182
1182
|
])
|
|
1183
1183
|
]),
|
|
1184
|
-
prefix:
|
|
1185
|
-
|
|
1184
|
+
prefix: L(() => [
|
|
1185
|
+
te(p.$slots, "prefix")
|
|
1186
1186
|
]),
|
|
1187
|
-
"suggestion-item":
|
|
1188
|
-
|
|
1187
|
+
"suggestion-item": L(({ item: g }) => [
|
|
1188
|
+
te(p.$slots, "suggestion-item", { item: g })
|
|
1189
1189
|
]),
|
|
1190
|
-
tag:
|
|
1191
|
-
|
|
1190
|
+
tag: L(({ option: g, handleClose: y, disabled: k }) => [
|
|
1191
|
+
te(p.$slots, "tag", {
|
|
1192
1192
|
option: g,
|
|
1193
1193
|
handleClose: y,
|
|
1194
|
-
disabled:
|
|
1194
|
+
disabled: k
|
|
1195
1195
|
})
|
|
1196
1196
|
]),
|
|
1197
|
-
header:
|
|
1198
|
-
|
|
1197
|
+
header: L(() => [
|
|
1198
|
+
te(p.$slots, "header")
|
|
1199
1199
|
]),
|
|
1200
|
-
footer:
|
|
1201
|
-
|
|
1200
|
+
footer: L(() => [
|
|
1201
|
+
te(p.$slots, "footer")
|
|
1202
1202
|
]),
|
|
1203
|
-
empty:
|
|
1204
|
-
|
|
1203
|
+
empty: L(() => [
|
|
1204
|
+
te(p.$slots, "empty")
|
|
1205
1205
|
]),
|
|
1206
1206
|
_: 3
|
|
1207
1207
|
}, 8, ["modelValue", "cascader-panel-ref", "props", "options", "placeholder", "disabled", "clearable", "collapse-tags", "max-collapse-tags", "collapse-tags-tooltip", "filterable", "show-all-levels", "separator", "size"]);
|
|
@@ -1238,8 +1238,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
1238
1238
|
t("change", s);
|
|
1239
1239
|
};
|
|
1240
1240
|
return (s, u) => {
|
|
1241
|
-
const v =
|
|
1242
|
-
return i(),
|
|
1241
|
+
const v = F("el-checkbox"), d = F("el-checkbox-button"), m = F("el-checkbox-group");
|
|
1242
|
+
return i(), w(m, {
|
|
1243
1243
|
modelValue: n.value,
|
|
1244
1244
|
"onUpdate:modelValue": u[0] || (u[0] = (r) => n.value = r),
|
|
1245
1245
|
disabled: e.disabled || e.readonly,
|
|
@@ -1254,14 +1254,14 @@ const nl = /* @__PURE__ */ K({
|
|
|
1254
1254
|
type: e.type,
|
|
1255
1255
|
onChange: a
|
|
1256
1256
|
}, {
|
|
1257
|
-
default:
|
|
1258
|
-
e.type === "checkbox" ? (i(!0), V(se, { key: 0 }, ce(e.options, (r) => (i(),
|
|
1257
|
+
default: L(() => [
|
|
1258
|
+
e.type === "checkbox" ? (i(!0), V(se, { key: 0 }, ce(e.options, (r) => (i(), w(v, {
|
|
1259
1259
|
key: r.value,
|
|
1260
1260
|
value: r.value,
|
|
1261
1261
|
disabled: r.disabled,
|
|
1262
1262
|
size: e.size,
|
|
1263
1263
|
label: r.label
|
|
1264
|
-
}, null, 8, ["value", "disabled", "size", "label"]))), 128)) : (i(!0), V(se, { key: 1 }, ce(e.options, (r) => (i(),
|
|
1264
|
+
}, null, 8, ["value", "disabled", "size", "label"]))), 128)) : (i(!0), V(se, { key: 1 }, ce(e.options, (r) => (i(), w(d, {
|
|
1265
1265
|
key: r.value,
|
|
1266
1266
|
value: r.value,
|
|
1267
1267
|
disabled: r.disabled,
|
|
@@ -1323,8 +1323,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
1323
1323
|
}, focus: () => {
|
|
1324
1324
|
n.value?.focus();
|
|
1325
1325
|
} }), (p, h) => {
|
|
1326
|
-
const c =
|
|
1327
|
-
return i(),
|
|
1326
|
+
const c = F("j-icon"), g = F("el-input-number");
|
|
1327
|
+
return i(), w(g, {
|
|
1328
1328
|
id: e.id,
|
|
1329
1329
|
ref_key: "inputNumberRef",
|
|
1330
1330
|
ref: n,
|
|
@@ -1352,32 +1352,32 @@ const nl = /* @__PURE__ */ K({
|
|
|
1352
1352
|
onBlur: v,
|
|
1353
1353
|
onFocus: d
|
|
1354
1354
|
}, {
|
|
1355
|
-
prefix:
|
|
1355
|
+
prefix: L(() => [
|
|
1356
1356
|
H("span", null, ne(e.prefix || ""), 1)
|
|
1357
1357
|
]),
|
|
1358
|
-
suffix:
|
|
1358
|
+
suffix: L(() => [
|
|
1359
1359
|
H("span", null, ne(e.suffix || ""), 1)
|
|
1360
1360
|
]),
|
|
1361
|
-
"decrease-icon":
|
|
1362
|
-
e.decreaseIcon ? (i(),
|
|
1361
|
+
"decrease-icon": L(() => [
|
|
1362
|
+
e.decreaseIcon ? (i(), w(c, {
|
|
1363
1363
|
key: 0,
|
|
1364
1364
|
icon: e.decreaseIcon
|
|
1365
|
-
}, null, 8, ["icon"])) : e.controlsPosition === "right" ? (i(),
|
|
1365
|
+
}, null, 8, ["icon"])) : e.controlsPosition === "right" ? (i(), w(c, {
|
|
1366
1366
|
key: 1,
|
|
1367
1367
|
icon: "ep:arrow-down"
|
|
1368
|
-
})) : (i(),
|
|
1368
|
+
})) : (i(), w(c, {
|
|
1369
1369
|
key: 2,
|
|
1370
1370
|
icon: "ep:minus"
|
|
1371
1371
|
}))
|
|
1372
1372
|
]),
|
|
1373
|
-
"increase-icon":
|
|
1374
|
-
e.increaseIcon ? (i(),
|
|
1373
|
+
"increase-icon": L(() => [
|
|
1374
|
+
e.increaseIcon ? (i(), w(c, {
|
|
1375
1375
|
key: 0,
|
|
1376
1376
|
icon: e.increaseIcon
|
|
1377
|
-
}, null, 8, ["icon"])) : e.controlsPosition === "right" ? (i(),
|
|
1377
|
+
}, null, 8, ["icon"])) : e.controlsPosition === "right" ? (i(), w(c, {
|
|
1378
1378
|
key: 1,
|
|
1379
1379
|
icon: "ep:arrow-up"
|
|
1380
|
-
})) : (i(),
|
|
1380
|
+
})) : (i(), w(c, {
|
|
1381
1381
|
key: 2,
|
|
1382
1382
|
icon: "ep:plus"
|
|
1383
1383
|
}))
|
|
@@ -1426,8 +1426,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
1426
1426
|
t.fetchSuggestions(g, y);
|
|
1427
1427
|
return;
|
|
1428
1428
|
}
|
|
1429
|
-
const
|
|
1430
|
-
y(
|
|
1429
|
+
const k = g ? t.options.filter(v(g)) : t.options;
|
|
1430
|
+
y(k);
|
|
1431
1431
|
}, v = (g) => (y) => y?.[t.valueKey]?.toLowerCase().indexOf(g.toLowerCase()) === 0, d = (g) => {
|
|
1432
1432
|
a("select", g);
|
|
1433
1433
|
}, m = (g) => {
|
|
@@ -1445,8 +1445,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
1445
1445
|
n.value?.blur();
|
|
1446
1446
|
}
|
|
1447
1447
|
}), (g, y) => {
|
|
1448
|
-
const
|
|
1449
|
-
return i(), k
|
|
1448
|
+
const k = F("el-autocomplete");
|
|
1449
|
+
return i(), w(k, {
|
|
1450
1450
|
ref_key: "autocompleteRef",
|
|
1451
1451
|
ref: n,
|
|
1452
1452
|
modelValue: s.value,
|
|
@@ -1473,9 +1473,9 @@ const nl = /* @__PURE__ */ K({
|
|
|
1473
1473
|
onChange: m,
|
|
1474
1474
|
onFocus: r,
|
|
1475
1475
|
onBlur: p
|
|
1476
|
-
},
|
|
1477
|
-
default:
|
|
1478
|
-
|
|
1476
|
+
}, Ue({
|
|
1477
|
+
default: L(({ item: C }) => [
|
|
1478
|
+
te(g.$slots, "default", { item: C }, () => [
|
|
1479
1479
|
H("div", null, ne(C[e.valueKey] || ""), 1)
|
|
1480
1480
|
])
|
|
1481
1481
|
]),
|
|
@@ -1483,50 +1483,50 @@ const nl = /* @__PURE__ */ K({
|
|
|
1483
1483
|
}, [
|
|
1484
1484
|
g.$slots.prefix ? {
|
|
1485
1485
|
name: "prefix",
|
|
1486
|
-
fn:
|
|
1487
|
-
|
|
1486
|
+
fn: L(() => [
|
|
1487
|
+
te(g.$slots, "prefix")
|
|
1488
1488
|
]),
|
|
1489
1489
|
key: "0"
|
|
1490
1490
|
} : void 0,
|
|
1491
1491
|
g.$slots.suffix ? {
|
|
1492
1492
|
name: "suffix",
|
|
1493
|
-
fn:
|
|
1494
|
-
|
|
1493
|
+
fn: L(() => [
|
|
1494
|
+
te(g.$slots, "suffix")
|
|
1495
1495
|
]),
|
|
1496
1496
|
key: "1"
|
|
1497
1497
|
} : void 0,
|
|
1498
1498
|
g.$slots.header ? {
|
|
1499
1499
|
name: "header",
|
|
1500
|
-
fn:
|
|
1501
|
-
|
|
1500
|
+
fn: L(() => [
|
|
1501
|
+
te(g.$slots, "header")
|
|
1502
1502
|
]),
|
|
1503
1503
|
key: "2"
|
|
1504
1504
|
} : void 0,
|
|
1505
1505
|
g.$slots.footer ? {
|
|
1506
1506
|
name: "footer",
|
|
1507
|
-
fn:
|
|
1508
|
-
|
|
1507
|
+
fn: L(() => [
|
|
1508
|
+
te(g.$slots, "footer")
|
|
1509
1509
|
]),
|
|
1510
1510
|
key: "3"
|
|
1511
1511
|
} : void 0,
|
|
1512
1512
|
g.$slots.prepend ? {
|
|
1513
1513
|
name: "prepend",
|
|
1514
|
-
fn:
|
|
1515
|
-
|
|
1514
|
+
fn: L(() => [
|
|
1515
|
+
te(g.$slots, "prepend")
|
|
1516
1516
|
]),
|
|
1517
1517
|
key: "4"
|
|
1518
1518
|
} : void 0,
|
|
1519
1519
|
g.$slots.append ? {
|
|
1520
1520
|
name: "append",
|
|
1521
|
-
fn:
|
|
1522
|
-
|
|
1521
|
+
fn: L(() => [
|
|
1522
|
+
te(g.$slots, "append")
|
|
1523
1523
|
]),
|
|
1524
1524
|
key: "5"
|
|
1525
1525
|
} : void 0,
|
|
1526
1526
|
g.$slots.loading ? {
|
|
1527
1527
|
name: "loading",
|
|
1528
|
-
fn:
|
|
1529
|
-
|
|
1528
|
+
fn: L(() => [
|
|
1529
|
+
te(g.$slots, "loading")
|
|
1530
1530
|
]),
|
|
1531
1531
|
key: "6"
|
|
1532
1532
|
} : void 0
|
|
@@ -1674,21 +1674,21 @@ const nl = /* @__PURE__ */ K({
|
|
|
1674
1674
|
set(R) {
|
|
1675
1675
|
v.value = R;
|
|
1676
1676
|
}
|
|
1677
|
-
}), y = $(() => o.left),
|
|
1677
|
+
}), y = $(() => o.left), k = $(() => o.right), C = $(() => o.top), E = $(() => o.bottom), Z = $(() => y.value ? m.value && l.hideMidWhenNarrow && k.value ? "50%" : m.value && l.hideMidWhenNarrow && !k.value ? "100%" : typeof p.value == "number" ? p.value + "px" : p.value : "0"), Y = $(() => k.value ? m.value && l.hideMidWhenNarrow && y.value ? "50%" : m.value && l.hideMidWhenNarrow && !y.value ? "100%" : typeof h.value == "number" ? h.value + "px" : h.value : "0"), f = $(() => C.value ? typeof c.value == "number" ? c.value + "px" : c.value : "0"), B = $(() => E.value ? typeof g.value == "number" ? g.value + "px" : g.value : "0"), O = $(() => ({
|
|
1678
1678
|
minWidth: l.midMinWidth + "px",
|
|
1679
1679
|
minHeight: l.midMinHeight + "px"
|
|
1680
|
-
})),
|
|
1680
|
+
})), I = (R, G) => {
|
|
1681
1681
|
r.type = R, r.isMove = !0, r.pageX = G.pageX, r.pageY = G.pageY, r.h = n.value.clientHeight, r.w = n.value.clientWidth;
|
|
1682
|
-
const
|
|
1682
|
+
const W = t.value.clientWidth, ie = t.value.clientHeight;
|
|
1683
1683
|
switch (R) {
|
|
1684
1684
|
case "left": {
|
|
1685
1685
|
const oe = p.value;
|
|
1686
|
-
r.size = typeof oe == "string" && oe.includes("%") ? parseFloat(oe) / 100 *
|
|
1686
|
+
r.size = typeof oe == "string" && oe.includes("%") ? parseFloat(oe) / 100 * W : Number(oe);
|
|
1687
1687
|
break;
|
|
1688
1688
|
}
|
|
1689
1689
|
case "right": {
|
|
1690
1690
|
const oe = h.value;
|
|
1691
|
-
r.size = typeof oe == "string" && oe.includes("%") ? parseFloat(oe) / 100 *
|
|
1691
|
+
r.size = typeof oe == "string" && oe.includes("%") ? parseFloat(oe) / 100 * W : Number(oe);
|
|
1692
1692
|
break;
|
|
1693
1693
|
}
|
|
1694
1694
|
case "top": {
|
|
@@ -1702,36 +1702,36 @@ const nl = /* @__PURE__ */ K({
|
|
|
1702
1702
|
break;
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
1705
|
-
document.onmouseup =
|
|
1705
|
+
document.onmouseup = T, document.onmousemove = X;
|
|
1706
1706
|
}, X = (R) => {
|
|
1707
1707
|
if (r.isMove)
|
|
1708
1708
|
switch (r.type) {
|
|
1709
1709
|
case "left": {
|
|
1710
1710
|
const G = R.pageX - r.pageX;
|
|
1711
|
-
let
|
|
1712
|
-
|
|
1711
|
+
let W = r.size + G;
|
|
1712
|
+
W < 0 ? W = 4 : W > r.size + r.w - l.midMinWidth && (W = r.size + r.w - l.midMinWidth), p.value = W;
|
|
1713
1713
|
break;
|
|
1714
1714
|
}
|
|
1715
1715
|
case "right": {
|
|
1716
1716
|
const G = R.pageX - r.pageX;
|
|
1717
|
-
let
|
|
1718
|
-
|
|
1717
|
+
let W = r.size - G;
|
|
1718
|
+
W < 0 ? W = 4 : W > r.size + r.w - l.midMinWidth && (W = r.size + r.w - l.midMinWidth), h.value = W;
|
|
1719
1719
|
break;
|
|
1720
1720
|
}
|
|
1721
1721
|
case "top": {
|
|
1722
1722
|
const G = R.pageY - r.pageY;
|
|
1723
|
-
let
|
|
1724
|
-
|
|
1723
|
+
let W = r.size + G;
|
|
1724
|
+
W < 0 ? W = 4 : W > r.size + r.h - l.midMinHeight && (W = r.size + r.h - l.midMinHeight), c.value = W;
|
|
1725
1725
|
break;
|
|
1726
1726
|
}
|
|
1727
1727
|
case "bottom": {
|
|
1728
1728
|
const G = R.pageY - r.pageY;
|
|
1729
|
-
let
|
|
1730
|
-
|
|
1729
|
+
let W = r.size - G;
|
|
1730
|
+
W < 0 ? W = 4 : W > r.size + r.h - l.midMinHeight && (W = r.size + r.h - l.midMinHeight), g.value = W;
|
|
1731
1731
|
break;
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
|
-
},
|
|
1734
|
+
}, T = () => {
|
|
1735
1735
|
r.isMove = !1, document.onmouseup = null, document.onmousemove = null;
|
|
1736
1736
|
}, de = () => {
|
|
1737
1737
|
if (!l.hideMidWhenNarrow || !t.value) {
|
|
@@ -1744,12 +1744,12 @@ const nl = /* @__PURE__ */ K({
|
|
|
1744
1744
|
const ie = p.value;
|
|
1745
1745
|
R = typeof ie == "string" && ie.includes("%") ? parseFloat(ie) / 100 * d.value : Number(ie);
|
|
1746
1746
|
}
|
|
1747
|
-
if (
|
|
1747
|
+
if (k.value) {
|
|
1748
1748
|
const ie = h.value;
|
|
1749
1749
|
G = typeof ie == "string" && ie.includes("%") ? parseFloat(ie) / 100 * d.value : Number(ie);
|
|
1750
1750
|
}
|
|
1751
|
-
const
|
|
1752
|
-
m.value =
|
|
1751
|
+
const W = d.value - R - G;
|
|
1752
|
+
m.value = W < l.midMinWidth;
|
|
1753
1753
|
};
|
|
1754
1754
|
let J = null;
|
|
1755
1755
|
return Xe(() => {
|
|
@@ -1769,12 +1769,12 @@ const nl = /* @__PURE__ */ K({
|
|
|
1769
1769
|
style: ue({ width: Z.value })
|
|
1770
1770
|
}, [
|
|
1771
1771
|
H("div", Bl, [
|
|
1772
|
-
|
|
1772
|
+
te(R.$slots, "left")
|
|
1773
1773
|
]),
|
|
1774
1774
|
e.leftMove ? (i(), V("div", {
|
|
1775
1775
|
key: 0,
|
|
1776
1776
|
class: "j-layout--move",
|
|
1777
|
-
onMousedown: G[0] || (G[0] = (
|
|
1777
|
+
onMousedown: G[0] || (G[0] = (W) => I("left", W))
|
|
1778
1778
|
}, null, 32)) : A("", !0)
|
|
1779
1779
|
], 4)) : A("", !0),
|
|
1780
1780
|
m.value ? A("", !0) : (i(), V("div", $l, [
|
|
@@ -1784,12 +1784,12 @@ const nl = /* @__PURE__ */ K({
|
|
|
1784
1784
|
style: ue({ height: f.value })
|
|
1785
1785
|
}, [
|
|
1786
1786
|
H("div", zl, [
|
|
1787
|
-
|
|
1787
|
+
te(R.$slots, "top")
|
|
1788
1788
|
]),
|
|
1789
1789
|
e.topMove ? (i(), V("div", {
|
|
1790
1790
|
key: 0,
|
|
1791
1791
|
class: "j-layout--move",
|
|
1792
|
-
onMousedown: G[1] || (G[1] = (
|
|
1792
|
+
onMousedown: G[1] || (G[1] = (W) => I("top", W))
|
|
1793
1793
|
}, null, 32)) : A("", !0)
|
|
1794
1794
|
], 4)) : A("", !0),
|
|
1795
1795
|
H("div", {
|
|
@@ -1798,7 +1798,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
1798
1798
|
class: "j-layout--wrapper",
|
|
1799
1799
|
style: ue(O.value)
|
|
1800
1800
|
}, [
|
|
1801
|
-
|
|
1801
|
+
te(R.$slots, "default")
|
|
1802
1802
|
], 4),
|
|
1803
1803
|
E.value ? (i(), V("div", {
|
|
1804
1804
|
key: 1,
|
|
@@ -1806,32 +1806,32 @@ const nl = /* @__PURE__ */ K({
|
|
|
1806
1806
|
style: ue({ height: B.value })
|
|
1807
1807
|
}, [
|
|
1808
1808
|
H("div", Vl, [
|
|
1809
|
-
|
|
1809
|
+
te(R.$slots, "bottom")
|
|
1810
1810
|
]),
|
|
1811
1811
|
e.bottomMove ? (i(), V("div", {
|
|
1812
1812
|
key: 0,
|
|
1813
1813
|
class: "j-layout--move",
|
|
1814
|
-
onMousedown: G[2] || (G[2] = (
|
|
1814
|
+
onMousedown: G[2] || (G[2] = (W) => I("bottom", W))
|
|
1815
1815
|
}, null, 32)) : A("", !0)
|
|
1816
1816
|
], 4)) : A("", !0)
|
|
1817
1817
|
])),
|
|
1818
|
-
|
|
1818
|
+
k.value ? (i(), V("div", {
|
|
1819
1819
|
key: 2,
|
|
1820
1820
|
class: "j-layout--right",
|
|
1821
1821
|
style: ue({ width: Y.value })
|
|
1822
1822
|
}, [
|
|
1823
1823
|
H("div", Tl, [
|
|
1824
|
-
|
|
1824
|
+
te(R.$slots, "right")
|
|
1825
1825
|
]),
|
|
1826
1826
|
e.rightMove ? (i(), V("div", {
|
|
1827
1827
|
key: 0,
|
|
1828
1828
|
class: "j-layout--move",
|
|
1829
|
-
onMousedown: G[3] || (G[3] = (
|
|
1829
|
+
onMousedown: G[3] || (G[3] = (W) => I("right", W))
|
|
1830
1830
|
}, null, 32)) : A("", !0)
|
|
1831
1831
|
], 4)) : A("", !0)
|
|
1832
1832
|
], 2));
|
|
1833
1833
|
}
|
|
1834
|
-
}),
|
|
1834
|
+
}), Fl = _(Ll), Il = { class: "j-block" }, Ol = /* @__PURE__ */ K({
|
|
1835
1835
|
name: "JTable",
|
|
1836
1836
|
__name: "table",
|
|
1837
1837
|
props: {
|
|
@@ -1938,7 +1938,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
1938
1938
|
setRecords: r,
|
|
1939
1939
|
setColumns: p,
|
|
1940
1940
|
refresh: h
|
|
1941
|
-
}), (c, g) => (i(), V("div",
|
|
1941
|
+
}), (c, g) => (i(), V("div", Il, [
|
|
1942
1942
|
H("div", {
|
|
1943
1943
|
ref_key: "tableContainer",
|
|
1944
1944
|
ref: a,
|
|
@@ -2132,12 +2132,12 @@ const nl = /* @__PURE__ */ K({
|
|
|
2132
2132
|
top: 0,
|
|
2133
2133
|
_left: 0,
|
|
2134
2134
|
_top: 0
|
|
2135
|
-
}), g = j(0), y = j(),
|
|
2135
|
+
}), g = j(0), y = j(), k = j(48), C = j(0), E = j(0);
|
|
2136
2136
|
ke(
|
|
2137
2137
|
() => t.visible,
|
|
2138
2138
|
(N) => {
|
|
2139
2139
|
g.value = 1, g.value = 0, s.value = N, N === !0 && t.zoomControls && xe(() => {
|
|
2140
|
-
y.value = document.querySelector(".j-dialog"), y.value.onmousemove =
|
|
2140
|
+
y.value = document.querySelector(".j-dialog"), y.value.onmousemove = Fe;
|
|
2141
2141
|
});
|
|
2142
2142
|
},
|
|
2143
2143
|
{ immediate: !0 }
|
|
@@ -2156,12 +2156,12 @@ const nl = /* @__PURE__ */ K({
|
|
|
2156
2156
|
return N = t.width, N > document.body.clientWidth && (N = document.body.clientWidth - 32), N;
|
|
2157
2157
|
}), O = (N) => {
|
|
2158
2158
|
v.value = N || "保存数据中...", u.value = !0;
|
|
2159
|
-
},
|
|
2159
|
+
}, I = () => {
|
|
2160
2160
|
u.value = !1;
|
|
2161
2161
|
}, X = () => {
|
|
2162
2162
|
t.beforeClose && t.beforeClose() === !1 || (s.value = !1, n("update:visible", !1), n("cancel"));
|
|
2163
|
-
},
|
|
2164
|
-
n("ok", O,
|
|
2163
|
+
}, T = () => {
|
|
2164
|
+
n("ok", O, I);
|
|
2165
2165
|
}, de = () => {
|
|
2166
2166
|
c.left = 0, c.top = 0, E.value = 0, C.value = 0, t.isStep && (J.value = 0, xe(() => {
|
|
2167
2167
|
ie();
|
|
@@ -2178,12 +2178,12 @@ const nl = /* @__PURE__ */ K({
|
|
|
2178
2178
|
ie();
|
|
2179
2179
|
});
|
|
2180
2180
|
}, G = async () => {
|
|
2181
|
-
await
|
|
2181
|
+
await W() && (J.value < t.steps.length - 1 && (J.value += 1), xe(() => {
|
|
2182
2182
|
ie();
|
|
2183
2183
|
}));
|
|
2184
|
-
},
|
|
2184
|
+
}, W = async () => {
|
|
2185
2185
|
if (d.value = !0, t.validateSteps) {
|
|
2186
|
-
const N = await t.validateSteps(t.stepActive, O,
|
|
2186
|
+
const N = await t.validateSteps(t.stepActive, O, I);
|
|
2187
2187
|
return d.value = !1, N;
|
|
2188
2188
|
}
|
|
2189
2189
|
return d.value = !1, !0;
|
|
@@ -2200,8 +2200,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
2200
2200
|
break;
|
|
2201
2201
|
}
|
|
2202
2202
|
}, oe = $(() => t.steps.map((N) => ({ title: N, disabled: !0 }))), Ve = function(N) {
|
|
2203
|
-
t.autoHeight || (c.pageX = N.pageX, c.pageY = N.pageY, c._left = c.left, c._top = c.top, c.isMove = !0, document.onmouseup =
|
|
2204
|
-
},
|
|
2203
|
+
t.autoHeight || (c.pageX = N.pageX, c.pageY = N.pageY, c._left = c.left, c._top = c.top, c.isMove = !0, document.onmouseup = ee, document.onmousemove = he);
|
|
2204
|
+
}, ee = () => {
|
|
2205
2205
|
c.isMove = !1, document.onmouseup = null, document.onmousemove = null;
|
|
2206
2206
|
}, he = (N) => {
|
|
2207
2207
|
if (c.isMove) {
|
|
@@ -2209,8 +2209,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
2209
2209
|
let re = c._left + be, ye = c._top + ge;
|
|
2210
2210
|
re + Y.value < 0 && (re = -Y.value), C.value ? re + C.value + Y.value > document.body.clientWidth && (re = document.body.clientWidth - C.value - Y.value) : re + B.value + Y.value > document.body.clientWidth && (re = document.body.clientWidth - B.value - Y.value), ye + f.value < 0 && (ye = -f.value), E.value ? ye + E.value + f.value + 40 > window.innerHeight && (ye = window.innerHeight - E.value - f.value - 40) : ye + Z.value + f.value + 40 > window.innerHeight && (ye = window.innerHeight - Z.value - f.value - 40), c.left = re, c.top = ye;
|
|
2211
2211
|
}
|
|
2212
|
-
},
|
|
2213
|
-
const be = y.value.offsetLeft, ge = y.value.offsetTop, re = y.value.clientWidth, ye = y.value.clientHeight, je = ye -
|
|
2212
|
+
}, Fe = (N) => {
|
|
2213
|
+
const be = y.value.offsetLeft, ge = y.value.offsetTop, re = y.value.clientWidth, ye = y.value.clientHeight, je = ye - k.value, S = y.value.scrollTop;
|
|
2214
2214
|
if (N.clientX > be + re - 10 && S + N.clientY > ge + ye - 10 || S + N.clientY < ge + 5 && be + 10 > N.clientX)
|
|
2215
2215
|
y.value.style.cursor = "se-resize";
|
|
2216
2216
|
else if (be + 10 > N.clientX && S + N.clientY > ge + ye - 10 || N.clientX > be + re - 10 && S + N.clientY < ge + 5)
|
|
@@ -2224,9 +2224,9 @@ const nl = /* @__PURE__ */ K({
|
|
|
2224
2224
|
return;
|
|
2225
2225
|
}
|
|
2226
2226
|
y.value.onmousedown = (U) => {
|
|
2227
|
-
const { clientX: ae } = U, { clientY: fe } = U, Te = c.left + Y.value,
|
|
2228
|
-
c._left = c.left, c._top = c.top, E.value || (E.value = je), C.value || (C.value = re), ae > Te + 10 && ae < Te + re - 10 && fe >
|
|
2229
|
-
me.preventDefault(), ae > Te && ae < Te + 10 && (ae > me.clientX && (C.value = re + (ae - me.clientX), c.left = c._left - (ae - me.clientX)), ae < me.clientX && C.value > t.minWidth && (C.value = re - (me.clientX - ae), c.left = c._left + me.clientX - ae)), ae > Te + re - 10 && ae < Te + re && (ae > me.clientX && C.value > t.minWidth && (C.value = re - (ae - me.clientX)), ae < me.clientX && Y.value + c.left + C.value < document.body.clientWidth && (C.value = re + (me.clientX - ae))), fe >
|
|
2227
|
+
const { clientX: ae } = U, { clientY: fe } = U, Te = c.left + Y.value, Ie = c.top + f.value;
|
|
2228
|
+
c._left = c.left, c._top = c.top, E.value || (E.value = je), C.value || (C.value = re), ae > Te + 10 && ae < Te + re - 10 && fe > Ie + 5 && fe < Ie + 47 || (document.onmousemove = function(me) {
|
|
2229
|
+
me.preventDefault(), ae > Te && ae < Te + 10 && (ae > me.clientX && (C.value = re + (ae - me.clientX), c.left = c._left - (ae - me.clientX)), ae < me.clientX && C.value > t.minWidth && (C.value = re - (me.clientX - ae), c.left = c._left + me.clientX - ae)), ae > Te + re - 10 && ae < Te + re && (ae > me.clientX && C.value > t.minWidth && (C.value = re - (ae - me.clientX)), ae < me.clientX && Y.value + c.left + C.value < document.body.clientWidth && (C.value = re + (me.clientX - ae))), fe > Ie && fe < Ie + 5 && (fe > me.clientY && (E.value = je + fe - me.clientY, c.top = c._top - (fe - me.clientY)), fe < me.clientY && E.value > t.minHeight && (E.value = je - (me.clientY - fe), c.top = c._top + me.clientY - fe)), S + fe > Ie + je + 38 && S + fe < Ie + je + 48 && (fe > me.clientY && E.value > t.minHeight && (E.value = je - (fe - me.clientY)), fe < me.clientY && f.value + c.top + E.value + 48 < window.innerHeight && (E.value = je + me.clientY - fe));
|
|
2230
2230
|
}, document.onmouseup = function() {
|
|
2231
2231
|
document.onmousemove = null, document.onmouseup = null;
|
|
2232
2232
|
});
|
|
@@ -2236,10 +2236,10 @@ const nl = /* @__PURE__ */ K({
|
|
|
2236
2236
|
};
|
|
2237
2237
|
return l({
|
|
2238
2238
|
showLoading: O,
|
|
2239
|
-
hideLoading:
|
|
2239
|
+
hideLoading: I
|
|
2240
2240
|
}), (N, be) => {
|
|
2241
|
-
const ge =
|
|
2242
|
-
return i(),
|
|
2241
|
+
const ge = F("j-button"), re = F("el-space"), ye = F("el-step"), je = F("el-steps"), S = F("el-dialog");
|
|
2242
|
+
return i(), w(S, {
|
|
2243
2243
|
modelValue: s.value,
|
|
2244
2244
|
"onUpdate:modelValue": be[0] || (be[0] = (U) => s.value = U),
|
|
2245
2245
|
class: "j-dialog",
|
|
@@ -2259,26 +2259,26 @@ const nl = /* @__PURE__ */ K({
|
|
|
2259
2259
|
}),
|
|
2260
2260
|
onClosed: de
|
|
2261
2261
|
}, {
|
|
2262
|
-
default:
|
|
2262
|
+
default: L(() => [
|
|
2263
2263
|
H("div", {
|
|
2264
2264
|
class: "j-dialog-header",
|
|
2265
2265
|
onMousedown: Ve
|
|
2266
2266
|
}, [
|
|
2267
2267
|
H("div", {
|
|
2268
2268
|
class: "j-dialog-header-left",
|
|
2269
|
-
title:
|
|
2269
|
+
title: P(a)(e.title || ""),
|
|
2270
2270
|
style: ue({ cursor: e.autoHeight ? "" : "move" })
|
|
2271
2271
|
}, [
|
|
2272
|
-
H("span", null, ne(
|
|
2272
|
+
H("span", null, ne(P(a)(e.title || "")), 1),
|
|
2273
2273
|
e.subtitle ? (i(), V("span", Al, [
|
|
2274
|
-
(i(),
|
|
2274
|
+
(i(), w(We(e.subtitle())))
|
|
2275
2275
|
])) : A("", !0)
|
|
2276
2276
|
], 12, Dl),
|
|
2277
|
-
e.showCloseBtn ? (i(),
|
|
2277
|
+
e.showCloseBtn ? (i(), w(re, {
|
|
2278
2278
|
key: 0,
|
|
2279
2279
|
size: 0
|
|
2280
2280
|
}, {
|
|
2281
|
-
default:
|
|
2281
|
+
default: L(() => [
|
|
2282
2282
|
Q(ge, {
|
|
2283
2283
|
type: "text",
|
|
2284
2284
|
icon: "material-symbols-light:close-rounded",
|
|
@@ -2308,42 +2308,42 @@ const nl = /* @__PURE__ */ K({
|
|
|
2308
2308
|
space: 160,
|
|
2309
2309
|
"finish-status": "success"
|
|
2310
2310
|
}, {
|
|
2311
|
-
default:
|
|
2312
|
-
(i(!0), V(se, null, ce(oe.value, (U, ae) => (i(),
|
|
2311
|
+
default: L(() => [
|
|
2312
|
+
(i(!0), V(se, null, ce(oe.value, (U, ae) => (i(), w(ye, {
|
|
2313
2313
|
key: ae,
|
|
2314
|
-
title:
|
|
2314
|
+
title: P(a)(U.title)
|
|
2315
2315
|
}, null, 8, ["title"]))), 128))
|
|
2316
2316
|
]),
|
|
2317
2317
|
_: 1
|
|
2318
2318
|
}, 8, ["active"])
|
|
2319
2319
|
], 4)
|
|
2320
2320
|
])) : A("", !0),
|
|
2321
|
-
|
|
2321
|
+
te(N.$slots, "default"),
|
|
2322
2322
|
e.hasBtns ? (i(), V("div", Rl, [
|
|
2323
2323
|
Q(re, { size: 8 }, {
|
|
2324
|
-
default:
|
|
2325
|
-
e.isStep ? (i(),
|
|
2324
|
+
default: L(() => [
|
|
2325
|
+
e.isStep ? (i(), w(ge, {
|
|
2326
2326
|
key: 0,
|
|
2327
2327
|
size: "mini",
|
|
2328
2328
|
disabled: m.value,
|
|
2329
|
-
label:
|
|
2329
|
+
label: P(a)("上一步"),
|
|
2330
2330
|
onClick: R
|
|
2331
2331
|
}, null, 8, ["disabled", "label"])) : A("", !0),
|
|
2332
|
-
e.isStep ? (i(),
|
|
2332
|
+
e.isStep ? (i(), w(ge, {
|
|
2333
2333
|
key: 1,
|
|
2334
2334
|
size: "mini",
|
|
2335
2335
|
disabled: r.value,
|
|
2336
2336
|
loading: d.value,
|
|
2337
|
-
label:
|
|
2337
|
+
label: P(a)("下一步"),
|
|
2338
2338
|
onClick: G
|
|
2339
2339
|
}, null, 8, ["disabled", "loading", "label"])) : A("", !0),
|
|
2340
|
-
!e.isStep && e.showCloseBtn ? (i(),
|
|
2340
|
+
!e.isStep && e.showCloseBtn ? (i(), w(ge, {
|
|
2341
2341
|
key: 2,
|
|
2342
2342
|
size: "mini",
|
|
2343
|
-
label:
|
|
2343
|
+
label: P(a)("取消"),
|
|
2344
2344
|
onClick: X
|
|
2345
2345
|
}, null, 8, ["label"])) : A("", !0),
|
|
2346
|
-
(i(!0), V(se, null, ce(e.buttons, (U) => (i(),
|
|
2346
|
+
(i(!0), V(se, null, ce(e.buttons, (U) => (i(), w(ge, {
|
|
2347
2347
|
key: U.prop,
|
|
2348
2348
|
label: U.label,
|
|
2349
2349
|
danger: U.danger,
|
|
@@ -2352,13 +2352,13 @@ const nl = /* @__PURE__ */ K({
|
|
|
2352
2352
|
icon: U.icon,
|
|
2353
2353
|
onClick: (ae) => Oe(U)
|
|
2354
2354
|
}, null, 8, ["label", "danger", "ghost", "type", "icon", "onClick"]))), 128)),
|
|
2355
|
-
e.hasSaveBtn ? (i(),
|
|
2355
|
+
e.hasSaveBtn ? (i(), w(ge, {
|
|
2356
2356
|
key: 3,
|
|
2357
2357
|
size: "mini",
|
|
2358
2358
|
type: "primary",
|
|
2359
2359
|
disabled: p.value && e.isStep,
|
|
2360
|
-
label:
|
|
2361
|
-
onClick:
|
|
2360
|
+
label: P(a)(e.btnText),
|
|
2361
|
+
onClick: T
|
|
2362
2362
|
}, null, 8, ["disabled", "label"])) : A("", !0)
|
|
2363
2363
|
]),
|
|
2364
2364
|
_: 1
|
|
@@ -2370,7 +2370,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
2370
2370
|
}, 8, ["modelValue", "destroy-on-close", "modal", "modal-penetrable", "width", "style"]);
|
|
2371
2371
|
};
|
|
2372
2372
|
}
|
|
2373
|
-
}), Jl = _(El), Ul = ["element-loading-text"],
|
|
2373
|
+
}), Jl = _(El), Ul = ["element-loading-text"], Wl = { class: "j-dialog-full-header" }, Pl = { class: "j-dialog-full-header-left" }, Hl = ["src"], Yl = { class: "j-dialog-full-title-text" }, Xl = { style: { height: "28px", "line-height": "32px", "margin-left": "8px" } }, ql = { class: "j-dialog-full-header-right" }, Gl = { class: "j-dialog-full-body" }, Kl = /* @__PURE__ */ K({
|
|
2374
2374
|
name: "JDialogFull",
|
|
2375
2375
|
__name: "index",
|
|
2376
2376
|
props: {
|
|
@@ -2484,12 +2484,12 @@ const nl = /* @__PURE__ */ K({
|
|
|
2484
2484
|
setup(e, { expose: l, emit: o }) {
|
|
2485
2485
|
const t = e, n = o, { logoImg: a, t: s } = $e("jcode_app_provide", {
|
|
2486
2486
|
logoImg: "",
|
|
2487
|
-
t: (
|
|
2487
|
+
t: (T) => T
|
|
2488
2488
|
}), u = j(!1), v = j(!1), d = j(""), m = j(!1), r = j(!0), p = j(!1), h = j(!0), c = j(-1);
|
|
2489
2489
|
ke(
|
|
2490
2490
|
() => t.visible,
|
|
2491
|
-
(
|
|
2492
|
-
u.value =
|
|
2491
|
+
(T) => {
|
|
2492
|
+
u.value = T;
|
|
2493
2493
|
},
|
|
2494
2494
|
{ immediate: !0 }
|
|
2495
2495
|
);
|
|
@@ -2497,19 +2497,19 @@ const nl = /* @__PURE__ */ K({
|
|
|
2497
2497
|
get() {
|
|
2498
2498
|
return c.value !== -1 ? c.value : t.stepActive;
|
|
2499
2499
|
},
|
|
2500
|
-
set(
|
|
2501
|
-
c.value =
|
|
2500
|
+
set(T) {
|
|
2501
|
+
c.value = T, n("update:stepActive", T);
|
|
2502
2502
|
}
|
|
2503
2503
|
}), y = () => {
|
|
2504
2504
|
t.beforeClose && t.beforeClose() === !1 || (u.value = !1, n("update:visible", !1), n("cancel"));
|
|
2505
|
-
},
|
|
2505
|
+
}, k = () => {
|
|
2506
2506
|
n("ok", E, Z);
|
|
2507
2507
|
}, C = () => {
|
|
2508
2508
|
t.isStep && (g.value = 0, xe(() => {
|
|
2509
2509
|
O();
|
|
2510
2510
|
})), n("closed");
|
|
2511
|
-
}, E = (
|
|
2512
|
-
d.value =
|
|
2511
|
+
}, E = (T) => {
|
|
2512
|
+
d.value = T || "保存数据中...", v.value = !0;
|
|
2513
2513
|
}, Z = () => {
|
|
2514
2514
|
v.value = !1;
|
|
2515
2515
|
}, Y = () => {
|
|
@@ -2522,8 +2522,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
2522
2522
|
}));
|
|
2523
2523
|
}, B = async () => {
|
|
2524
2524
|
if (m.value = !0, t.validateSteps) {
|
|
2525
|
-
const
|
|
2526
|
-
return m.value = !1,
|
|
2525
|
+
const T = await t.validateSteps(t.stepActive, E, Z);
|
|
2526
|
+
return m.value = !1, T;
|
|
2527
2527
|
}
|
|
2528
2528
|
return m.value = !1, !0;
|
|
2529
2529
|
}, O = () => {
|
|
@@ -2538,14 +2538,14 @@ const nl = /* @__PURE__ */ K({
|
|
|
2538
2538
|
r.value = !1, p.value = !1;
|
|
2539
2539
|
break;
|
|
2540
2540
|
}
|
|
2541
|
-
},
|
|
2542
|
-
|
|
2541
|
+
}, I = $(() => t.steps.map((T) => ({ title: T, disabled: !0 }))), X = async (T) => {
|
|
2542
|
+
T.click && await T.click();
|
|
2543
2543
|
};
|
|
2544
|
-
return l({ showLoading: E, hideLoading: Z }), (
|
|
2545
|
-
const J =
|
|
2546
|
-
return i(),
|
|
2544
|
+
return l({ showLoading: E, hideLoading: Z }), (T, de) => {
|
|
2545
|
+
const J = F("el-step"), R = F("el-steps"), G = F("j-button"), W = F("el-space"), ie = F("el-divider"), oe = F("el-dialog"), Ve = ut("loading");
|
|
2546
|
+
return i(), w(oe, {
|
|
2547
2547
|
modelValue: u.value,
|
|
2548
|
-
"onUpdate:modelValue": de[0] || (de[0] = (
|
|
2548
|
+
"onUpdate:modelValue": de[0] || (de[0] = (ee) => u.value = ee),
|
|
2549
2549
|
class: "j-dialog-full",
|
|
2550
2550
|
width: "100%",
|
|
2551
2551
|
"append-to-body": !0,
|
|
@@ -2555,94 +2555,94 @@ const nl = /* @__PURE__ */ K({
|
|
|
2555
2555
|
"destroy-on-close": e.destroyOnClose,
|
|
2556
2556
|
onClosed: C
|
|
2557
2557
|
}, {
|
|
2558
|
-
default:
|
|
2559
|
-
|
|
2558
|
+
default: L(() => [
|
|
2559
|
+
Ee((i(), V("div", {
|
|
2560
2560
|
class: "j-block j-dialog-full-window",
|
|
2561
|
-
"element-loading-text":
|
|
2561
|
+
"element-loading-text": P(s)(d.value)
|
|
2562
2562
|
}, [
|
|
2563
|
-
H("div",
|
|
2564
|
-
H("div",
|
|
2565
|
-
|
|
2563
|
+
H("div", Wl, [
|
|
2564
|
+
H("div", Pl, [
|
|
2565
|
+
P(a) ? (i(), V("img", {
|
|
2566
2566
|
key: 0,
|
|
2567
2567
|
class: "j-dialog-full-header-logo",
|
|
2568
|
-
src:
|
|
2568
|
+
src: P(a)
|
|
2569
2569
|
}, null, 8, Hl)) : A("", !0),
|
|
2570
|
-
H("span", Yl, ne(
|
|
2570
|
+
H("span", Yl, ne(P(s)(e.title)), 1),
|
|
2571
2571
|
H("span", Xl, [
|
|
2572
|
-
e.subtitle ? (i(),
|
|
2572
|
+
e.subtitle ? (i(), w(We(e.subtitle()), { key: 0 })) : A("", !0)
|
|
2573
2573
|
])
|
|
2574
2574
|
]),
|
|
2575
2575
|
H("div", {
|
|
2576
2576
|
class: "j-dialog-full-header-mid",
|
|
2577
|
-
style: ue({ maxWidth: `${200 *
|
|
2577
|
+
style: ue({ maxWidth: `${200 * I.value.length}px` })
|
|
2578
2578
|
}, [
|
|
2579
|
-
e.isStep ? (i(),
|
|
2579
|
+
e.isStep ? (i(), w(R, {
|
|
2580
2580
|
key: 0,
|
|
2581
2581
|
simple: "",
|
|
2582
2582
|
active: g.value,
|
|
2583
2583
|
space: 160,
|
|
2584
2584
|
"finish-status": "success"
|
|
2585
2585
|
}, {
|
|
2586
|
-
default:
|
|
2587
|
-
(i(!0), V(se, null, ce(
|
|
2586
|
+
default: L(() => [
|
|
2587
|
+
(i(!0), V(se, null, ce(I.value, (ee, he) => (i(), w(J, {
|
|
2588
2588
|
key: he,
|
|
2589
|
-
title:
|
|
2589
|
+
title: P(s)(ee.title)
|
|
2590
2590
|
}, null, 8, ["title"]))), 128))
|
|
2591
2591
|
]),
|
|
2592
2592
|
_: 1
|
|
2593
2593
|
}, 8, ["active"])) : A("", !0)
|
|
2594
2594
|
], 4),
|
|
2595
2595
|
H("div", ql, [
|
|
2596
|
-
Q(
|
|
2597
|
-
default:
|
|
2598
|
-
e.hasBtns ? (i(),
|
|
2599
|
-
default:
|
|
2600
|
-
e.isStep ? (i(),
|
|
2596
|
+
Q(W, { size: 0 }, {
|
|
2597
|
+
default: L(() => [
|
|
2598
|
+
e.hasBtns ? (i(), w(W, { key: 0 }, {
|
|
2599
|
+
default: L(() => [
|
|
2600
|
+
e.isStep ? (i(), w(G, {
|
|
2601
2601
|
key: 0,
|
|
2602
2602
|
size: "mini",
|
|
2603
2603
|
disabled: r.value,
|
|
2604
|
-
label:
|
|
2604
|
+
label: P(s)("上一步"),
|
|
2605
2605
|
onClick: Y
|
|
2606
2606
|
}, null, 8, ["disabled", "label"])) : A("", !0),
|
|
2607
|
-
e.isStep ? (i(),
|
|
2607
|
+
e.isStep ? (i(), w(G, {
|
|
2608
2608
|
key: 1,
|
|
2609
2609
|
size: "mini",
|
|
2610
2610
|
disabled: p.value,
|
|
2611
2611
|
loading: m.value,
|
|
2612
|
-
label:
|
|
2612
|
+
label: P(s)("下一步"),
|
|
2613
2613
|
onClick: f
|
|
2614
2614
|
}, null, 8, ["disabled", "loading", "label"])) : A("", !0),
|
|
2615
|
-
(i(!0), V(se, null, ce(e.buttons, (
|
|
2616
|
-
key:
|
|
2615
|
+
(i(!0), V(se, null, ce(e.buttons, (ee) => (i(), V(se, {
|
|
2616
|
+
key: ee.prop
|
|
2617
2617
|
}, [
|
|
2618
|
-
|
|
2618
|
+
ee.display !== !1 ? (i(), w(G, {
|
|
2619
2619
|
key: 0,
|
|
2620
|
-
label:
|
|
2621
|
-
danger:
|
|
2622
|
-
ghost:
|
|
2623
|
-
type:
|
|
2624
|
-
disabled:
|
|
2625
|
-
icon:
|
|
2626
|
-
onClick: (he) => X(
|
|
2620
|
+
label: ee.label,
|
|
2621
|
+
danger: ee.danger,
|
|
2622
|
+
ghost: ee.ghost,
|
|
2623
|
+
type: ee.type,
|
|
2624
|
+
disabled: ee.disabled,
|
|
2625
|
+
icon: ee.icon ? ee.icon : "",
|
|
2626
|
+
onClick: (he) => X(ee)
|
|
2627
2627
|
}, null, 8, ["label", "danger", "ghost", "type", "disabled", "icon", "onClick"])) : A("", !0)
|
|
2628
2628
|
], 64))), 128)),
|
|
2629
|
-
e.hasSaveBtn ? (i(),
|
|
2629
|
+
e.hasSaveBtn ? (i(), w(G, {
|
|
2630
2630
|
key: 2,
|
|
2631
2631
|
size: "mini",
|
|
2632
2632
|
type: "primary",
|
|
2633
2633
|
disabled: h.value && e.isStep,
|
|
2634
|
-
label:
|
|
2635
|
-
onClick:
|
|
2634
|
+
label: P(s)(e.btnText),
|
|
2635
|
+
onClick: k
|
|
2636
2636
|
}, null, 8, ["disabled", "label"])) : A("", !0)
|
|
2637
2637
|
]),
|
|
2638
2638
|
_: 1
|
|
2639
2639
|
})) : A("", !0),
|
|
2640
|
-
e.showCloseBtn && e.hasBtns ? (i(),
|
|
2640
|
+
e.showCloseBtn && e.hasBtns ? (i(), w(ie, {
|
|
2641
2641
|
key: 1,
|
|
2642
2642
|
type: "vertical",
|
|
2643
2643
|
style: { margin: "0 8px" }
|
|
2644
2644
|
})) : A("", !0),
|
|
2645
|
-
e.showCloseBtn ? (i(),
|
|
2645
|
+
e.showCloseBtn ? (i(), w(G, {
|
|
2646
2646
|
key: 2,
|
|
2647
2647
|
type: "text",
|
|
2648
2648
|
icon: "material-symbols-light:close-rounded",
|
|
@@ -2654,7 +2654,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
2654
2654
|
])
|
|
2655
2655
|
]),
|
|
2656
2656
|
H("div", Gl, [
|
|
2657
|
-
|
|
2657
|
+
te(T.$slots, "default")
|
|
2658
2658
|
])
|
|
2659
2659
|
], 8, Ul)), [
|
|
2660
2660
|
[Ve, v.value]
|
|
@@ -2822,67 +2822,67 @@ const nl = /* @__PURE__ */ K({
|
|
|
2822
2822
|
emits: ["update:visible", "update:stepActive", "closed", "ok", "cancel"],
|
|
2823
2823
|
setup(e, { expose: l, emit: o }) {
|
|
2824
2824
|
const t = e, { t: n } = $e("jcode_app_provide", {
|
|
2825
|
-
t: (
|
|
2825
|
+
t: (T) => T
|
|
2826
2826
|
}), a = o, s = j(!1), u = j(""), v = $(() => ["ltr", "rtl"].indexOf(t.direction) !== -1 ? `${t.width}px` : `${t.height}px`), d = $({
|
|
2827
2827
|
get() {
|
|
2828
2828
|
return t.visible;
|
|
2829
2829
|
},
|
|
2830
|
-
set(
|
|
2831
|
-
a("update:visible", !!
|
|
2830
|
+
set(T) {
|
|
2831
|
+
a("update:visible", !!T);
|
|
2832
2832
|
}
|
|
2833
|
-
}), m = (
|
|
2834
|
-
u.value =
|
|
2833
|
+
}), m = (T) => {
|
|
2834
|
+
u.value = T || "保存数据中...", s.value = !0;
|
|
2835
2835
|
}, r = () => {
|
|
2836
2836
|
s.value = !1;
|
|
2837
2837
|
}, p = () => {
|
|
2838
2838
|
t.isStep && (Y.value = 0, xe(() => {
|
|
2839
|
-
|
|
2839
|
+
I();
|
|
2840
2840
|
})), a("closed");
|
|
2841
2841
|
}, h = () => {
|
|
2842
2842
|
a("ok", m, r);
|
|
2843
2843
|
}, c = () => {
|
|
2844
2844
|
t.beforeClose && t.beforeClose() === !1 || (d.value = !1, a("update:visible", !1), a("cancel"));
|
|
2845
|
-
}, g = async (
|
|
2846
|
-
|
|
2847
|
-
}, y = j(!1),
|
|
2845
|
+
}, g = async (T) => {
|
|
2846
|
+
T.click && await T.click();
|
|
2847
|
+
}, y = j(!1), k = j(!0), C = j(!1), E = j(!0), Z = j(-1), Y = $({
|
|
2848
2848
|
get() {
|
|
2849
2849
|
return Z.value !== -1 ? Z.value : t.stepActive;
|
|
2850
2850
|
},
|
|
2851
|
-
set(
|
|
2852
|
-
Z.value =
|
|
2851
|
+
set(T) {
|
|
2852
|
+
Z.value = T, a("update:stepActive", T);
|
|
2853
2853
|
}
|
|
2854
2854
|
}), f = () => {
|
|
2855
2855
|
Y.value > 0 && Y.value--, xe(() => {
|
|
2856
|
-
|
|
2856
|
+
I();
|
|
2857
2857
|
});
|
|
2858
2858
|
}, B = async () => {
|
|
2859
2859
|
await O() && (Y.value < t.steps.length - 1 && (Y.value += 1), xe(() => {
|
|
2860
|
-
|
|
2860
|
+
I();
|
|
2861
2861
|
}));
|
|
2862
2862
|
}, O = async () => {
|
|
2863
2863
|
if (y.value = !0, t.validateSteps) {
|
|
2864
|
-
const
|
|
2865
|
-
return y.value = !1,
|
|
2864
|
+
const T = await t.validateSteps(t.stepActive, m, r);
|
|
2865
|
+
return y.value = !1, T;
|
|
2866
2866
|
}
|
|
2867
2867
|
return y.value = !1, !0;
|
|
2868
|
-
},
|
|
2869
|
-
switch (E.value = !0, C.value = !0,
|
|
2868
|
+
}, I = () => {
|
|
2869
|
+
switch (E.value = !0, C.value = !0, k.value = !0, Y.value) {
|
|
2870
2870
|
case 0:
|
|
2871
2871
|
C.value = !1;
|
|
2872
2872
|
break;
|
|
2873
2873
|
case t.steps.length - 1:
|
|
2874
|
-
|
|
2874
|
+
k.value = !1, E.value = !1;
|
|
2875
2875
|
break;
|
|
2876
2876
|
default:
|
|
2877
|
-
|
|
2877
|
+
k.value = !1, C.value = !1;
|
|
2878
2878
|
break;
|
|
2879
2879
|
}
|
|
2880
|
-
}, X = $(() => t.steps.map((
|
|
2881
|
-
return l({ showLoading: m, hideLoading: r }), (
|
|
2882
|
-
const J =
|
|
2883
|
-
return i(),
|
|
2880
|
+
}, X = $(() => t.steps.map((T) => ({ title: T, disabled: !0 })));
|
|
2881
|
+
return l({ showLoading: m, hideLoading: r }), (T, de) => {
|
|
2882
|
+
const J = F("el-input"), R = F("j-button"), G = F("el-space"), W = F("el-step"), ie = F("el-steps"), oe = F("el-drawer"), Ve = ut("loading");
|
|
2883
|
+
return i(), w(oe, {
|
|
2884
2884
|
modelValue: d.value,
|
|
2885
|
-
"onUpdate:modelValue": de[0] || (de[0] = (
|
|
2885
|
+
"onUpdate:modelValue": de[0] || (de[0] = (ee) => d.value = ee),
|
|
2886
2886
|
class: "j-drawer",
|
|
2887
2887
|
"append-to-body": !0,
|
|
2888
2888
|
direction: e.direction,
|
|
@@ -2895,8 +2895,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
2895
2895
|
"close-on-click-modal": !0,
|
|
2896
2896
|
onClosed: p
|
|
2897
2897
|
}, {
|
|
2898
|
-
default:
|
|
2899
|
-
|
|
2898
|
+
default: L(() => [
|
|
2899
|
+
Ee((i(), V("div", {
|
|
2900
2900
|
class: ze(["j-drawer--warpper", { "j-drawer--warpper-hasSteps": e.isStep }]),
|
|
2901
2901
|
"element-loading-text": u.value
|
|
2902
2902
|
}, [
|
|
@@ -2908,47 +2908,47 @@ const nl = /* @__PURE__ */ K({
|
|
|
2908
2908
|
}, [
|
|
2909
2909
|
Q(J, { style: { position: "absolute", top: "-200px" } }),
|
|
2910
2910
|
H("div", _l, [
|
|
2911
|
-
|
|
2911
|
+
te(T.$slots, "default")
|
|
2912
2912
|
]),
|
|
2913
2913
|
e.hasBtns ? (i(), V("div", eo, [
|
|
2914
2914
|
Q(G, { size: 8 }, {
|
|
2915
|
-
default:
|
|
2916
|
-
e.isStep ? (i(),
|
|
2915
|
+
default: L(() => [
|
|
2916
|
+
e.isStep ? (i(), w(R, {
|
|
2917
2917
|
key: 0,
|
|
2918
2918
|
size: "mini",
|
|
2919
|
-
disabled:
|
|
2920
|
-
label:
|
|
2919
|
+
disabled: k.value,
|
|
2920
|
+
label: P(n)("上一步"),
|
|
2921
2921
|
onClick: f
|
|
2922
2922
|
}, null, 8, ["disabled", "label"])) : A("", !0),
|
|
2923
|
-
e.isStep ? (i(),
|
|
2923
|
+
e.isStep ? (i(), w(R, {
|
|
2924
2924
|
key: 1,
|
|
2925
2925
|
size: "mini",
|
|
2926
2926
|
disabled: C.value,
|
|
2927
2927
|
loading: y.value,
|
|
2928
|
-
label:
|
|
2928
|
+
label: P(n)("下一步"),
|
|
2929
2929
|
onClick: B
|
|
2930
2930
|
}, null, 8, ["disabled", "loading", "label"])) : A("", !0),
|
|
2931
|
-
!e.isStep && e.showCloseBtn ? (i(),
|
|
2931
|
+
!e.isStep && e.showCloseBtn ? (i(), w(R, {
|
|
2932
2932
|
key: 2,
|
|
2933
2933
|
size: "mini",
|
|
2934
|
-
label:
|
|
2934
|
+
label: P(n)("取消"),
|
|
2935
2935
|
onClick: c
|
|
2936
2936
|
}, null, 8, ["label"])) : A("", !0),
|
|
2937
|
-
(i(!0), V(se, null, ce(e.buttons, (
|
|
2938
|
-
key:
|
|
2939
|
-
label:
|
|
2940
|
-
danger:
|
|
2941
|
-
ghost:
|
|
2942
|
-
type:
|
|
2943
|
-
icon:
|
|
2944
|
-
onClick: (he) => g(
|
|
2937
|
+
(i(!0), V(se, null, ce(e.buttons, (ee) => (i(), w(R, {
|
|
2938
|
+
key: ee.prop,
|
|
2939
|
+
label: ee.label,
|
|
2940
|
+
danger: ee.danger,
|
|
2941
|
+
ghost: ee.ghost,
|
|
2942
|
+
type: ee.type,
|
|
2943
|
+
icon: ee.icon,
|
|
2944
|
+
onClick: (he) => g(ee)
|
|
2945
2945
|
}, null, 8, ["label", "danger", "ghost", "type", "icon", "onClick"]))), 128)),
|
|
2946
|
-
e.hasSaveBtn ? (i(),
|
|
2946
|
+
e.hasSaveBtn ? (i(), w(R, {
|
|
2947
2947
|
key: 3,
|
|
2948
2948
|
size: "mini",
|
|
2949
2949
|
type: "primary",
|
|
2950
2950
|
disabled: E.value && e.isStep,
|
|
2951
|
-
label:
|
|
2951
|
+
label: P(n)(e.btnText),
|
|
2952
2952
|
onClick: h
|
|
2953
2953
|
}, null, 8, ["disabled", "label"])) : A("", !0)
|
|
2954
2954
|
]),
|
|
@@ -2958,9 +2958,9 @@ const nl = /* @__PURE__ */ K({
|
|
|
2958
2958
|
], 4),
|
|
2959
2959
|
H("div", to, [
|
|
2960
2960
|
H("div", lo, [
|
|
2961
|
-
H("span", null, ne(
|
|
2961
|
+
H("span", null, ne(P(n)(e.title)), 1),
|
|
2962
2962
|
H("span", oo, [
|
|
2963
|
-
e.subtitle ? (i(),
|
|
2963
|
+
e.subtitle ? (i(), w(We(e.subtitle()), { key: 0 })) : A("", !0)
|
|
2964
2964
|
])
|
|
2965
2965
|
]),
|
|
2966
2966
|
e.showCloseBtn ? (i(), V("div", ao, [
|
|
@@ -2981,10 +2981,10 @@ const nl = /* @__PURE__ */ K({
|
|
|
2981
2981
|
space: 160,
|
|
2982
2982
|
"finish-status": "success"
|
|
2983
2983
|
}, {
|
|
2984
|
-
default:
|
|
2985
|
-
(i(!0), V(se, null, ce(X.value, (
|
|
2984
|
+
default: L(() => [
|
|
2985
|
+
(i(!0), V(se, null, ce(X.value, (ee, he) => (i(), w(W, {
|
|
2986
2986
|
key: he,
|
|
2987
|
-
title:
|
|
2987
|
+
title: P(n)(ee.title)
|
|
2988
2988
|
}, null, 8, ["title"]))), 128))
|
|
2989
2989
|
]),
|
|
2990
2990
|
_: 1
|
|
@@ -3098,26 +3098,26 @@ const nl = /* @__PURE__ */ K({
|
|
|
3098
3098
|
},
|
|
3099
3099
|
emits: ["ok", "closed", "cancel"],
|
|
3100
3100
|
setup(e, { expose: l, emit: o }) {
|
|
3101
|
-
const t = o, n = j(!1), a = j(""), s = j(), u = j(0), v = j(""), d = j(), m = (
|
|
3102
|
-
a.value =
|
|
3101
|
+
const t = o, n = j(!1), a = j(""), s = j(), u = j(0), v = j(""), d = j(), m = (k, C, E) => {
|
|
3102
|
+
a.value = k, d.value = E, v.value = C || "modal", n.value = !0;
|
|
3103
3103
|
}, r = () => {
|
|
3104
3104
|
n.value = !1;
|
|
3105
|
-
}, p = (
|
|
3106
|
-
t("ok",
|
|
3105
|
+
}, p = (k, C) => {
|
|
3106
|
+
t("ok", k, C);
|
|
3107
3107
|
}, h = () => {
|
|
3108
3108
|
u.value = 0, t("closed");
|
|
3109
3109
|
}, c = () => {
|
|
3110
3110
|
t("cancel");
|
|
3111
|
-
}, g = (
|
|
3112
|
-
s.value && s.value.showLoading(
|
|
3111
|
+
}, g = (k) => {
|
|
3112
|
+
s.value && s.value.showLoading(k);
|
|
3113
3113
|
}, y = () => {
|
|
3114
3114
|
s.value && s.value.hideLoading();
|
|
3115
3115
|
};
|
|
3116
3116
|
return rt("jcode_layer_provide", {
|
|
3117
3117
|
stepActive: u
|
|
3118
|
-
}), l({ open: m, close: r, showLoading: g, hideLoading: y }), (
|
|
3119
|
-
const E =
|
|
3120
|
-
return v.value === "full" ? (i(),
|
|
3118
|
+
}), l({ open: m, close: r, showLoading: g, hideLoading: y }), (k, C) => {
|
|
3119
|
+
const E = F("j-dialog-full"), Z = F("j-drawer"), Y = F("j-dialog");
|
|
3120
|
+
return v.value === "full" ? (i(), w(E, {
|
|
3121
3121
|
key: 0,
|
|
3122
3122
|
ref_key: "modalRef",
|
|
3123
3123
|
ref: s,
|
|
@@ -3141,11 +3141,11 @@ const nl = /* @__PURE__ */ K({
|
|
|
3141
3141
|
onClosed: h,
|
|
3142
3142
|
onCancel: c
|
|
3143
3143
|
}, {
|
|
3144
|
-
default:
|
|
3145
|
-
|
|
3144
|
+
default: L(() => [
|
|
3145
|
+
te(k.$slots, "default")
|
|
3146
3146
|
]),
|
|
3147
3147
|
_: 3
|
|
3148
|
-
}, 8, ["visible", "step-active", "title", "before-close", "is-step", "steps", "validate-steps", "has-btns", "btn-text", "destroy-on-close", "buttons", "has-save-btn", "has-header", "subtitle"])) : v.value === "drawer" ? (i(),
|
|
3148
|
+
}, 8, ["visible", "step-active", "title", "before-close", "is-step", "steps", "validate-steps", "has-btns", "btn-text", "destroy-on-close", "buttons", "has-save-btn", "has-header", "subtitle"])) : v.value === "drawer" ? (i(), w(Z, {
|
|
3149
3149
|
key: 1,
|
|
3150
3150
|
ref_key: "modalRef",
|
|
3151
3151
|
ref: s,
|
|
@@ -3167,11 +3167,11 @@ const nl = /* @__PURE__ */ K({
|
|
|
3167
3167
|
onClosed: h,
|
|
3168
3168
|
onCancel: c
|
|
3169
3169
|
}, {
|
|
3170
|
-
default:
|
|
3171
|
-
|
|
3170
|
+
default: L(() => [
|
|
3171
|
+
te(k.$slots, "default")
|
|
3172
3172
|
]),
|
|
3173
3173
|
_: 3
|
|
3174
|
-
}, 8, ["visible", "step-active", "is-step", "steps", "validate-steps", "has-btns", "btn-text", "destroy-on-close", "buttons", "has-save-btn", "has-header", "subtitle"])) : (i(),
|
|
3174
|
+
}, 8, ["visible", "step-active", "is-step", "steps", "validate-steps", "has-btns", "btn-text", "destroy-on-close", "buttons", "has-save-btn", "has-header", "subtitle"])) : (i(), w(Y, {
|
|
3175
3175
|
key: 2,
|
|
3176
3176
|
ref_key: "modalRef",
|
|
3177
3177
|
ref: s,
|
|
@@ -3196,8 +3196,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
3196
3196
|
onClosed: h,
|
|
3197
3197
|
onCancel: c
|
|
3198
3198
|
}, {
|
|
3199
|
-
default:
|
|
3200
|
-
|
|
3199
|
+
default: L(() => [
|
|
3200
|
+
te(k.$slots, "default")
|
|
3201
3201
|
]),
|
|
3202
3202
|
_: 3
|
|
3203
3203
|
}, 8, ["visible", "step-active", "width", "height", "title", "before-close", "has-btns", "btn-text", "destroy-on-close", "buttons", "has-save-btn", "is-step", "steps", "validate-steps", "subtitle"]));
|
|
@@ -3212,11 +3212,11 @@ const nl = /* @__PURE__ */ K({
|
|
|
3212
3212
|
}), g = () => {
|
|
3213
3213
|
const J = c();
|
|
3214
3214
|
return J || (typeof p.value == "string" ? p.value : "");
|
|
3215
|
-
}, y = j(!1),
|
|
3215
|
+
}, y = j(!1), k = j([]), C = async (J) => {
|
|
3216
3216
|
if (r.value?.validateSteps) {
|
|
3217
|
-
|
|
3217
|
+
Pe(!0);
|
|
3218
3218
|
const R = r.value.validateSteps(J);
|
|
3219
|
-
return
|
|
3219
|
+
return Pe(!1), R;
|
|
3220
3220
|
}
|
|
3221
3221
|
return !0;
|
|
3222
3222
|
}, E = () => r.value?.beforeClose ? r.value.beforeClose() : !0;
|
|
@@ -3225,9 +3225,9 @@ const nl = /* @__PURE__ */ K({
|
|
|
3225
3225
|
if (r.value) {
|
|
3226
3226
|
if (B = 0, r.value.getConfig) {
|
|
3227
3227
|
const R = r.value.getConfig();
|
|
3228
|
-
d.value = R.buttons || [], y.value = R.isStep,
|
|
3228
|
+
d.value = R.buttons || [], y.value = R.isStep, k.value = R.steps || [];
|
|
3229
3229
|
} else
|
|
3230
|
-
d.value = [], y.value = !1,
|
|
3230
|
+
d.value = [], y.value = !1, k.value = [];
|
|
3231
3231
|
if (r.value.open)
|
|
3232
3232
|
try {
|
|
3233
3233
|
const { buttons: R } = await r.value.open(J, o.value, () => {
|
|
@@ -3250,26 +3250,26 @@ const nl = /* @__PURE__ */ K({
|
|
|
3250
3250
|
await O(J);
|
|
3251
3251
|
}, 100);
|
|
3252
3252
|
}
|
|
3253
|
-
},
|
|
3253
|
+
}, I = (J) => {
|
|
3254
3254
|
p.value = J?.name, t.value = J?.width || 600, n.value = J?.height || 400, a.value = J?.hasBtns !== !1, s.value = J?.hasSaveBtn !== !1, u.value = J?.hasHeader !== !1, J?.destroyOnClose !== !1 && (m.value = !0), h.value = J?.config || {}, v.value = J?.btnText || "保存", Z = J?.afterOk || null, Y = J?.afterClose || null, f = J?.afterCancel || null, o.value.open(J.title, J.type, J.subtitle), xe(async () => {
|
|
3255
3255
|
o.value.showLoading("加载中"), await O(J.param || {});
|
|
3256
3256
|
});
|
|
3257
3257
|
}, X = async () => {
|
|
3258
3258
|
if (r.value?.ok) {
|
|
3259
|
-
|
|
3259
|
+
Pe(!0);
|
|
3260
3260
|
const J = await r.value.ok();
|
|
3261
|
-
J && (o.value.close(), Z && await Z(J)),
|
|
3261
|
+
J && (o.value.close(), Z && await Z(J)), Pe(!1);
|
|
3262
3262
|
}
|
|
3263
|
-
},
|
|
3263
|
+
}, T = () => {
|
|
3264
3264
|
r.value?.closed && r.value.closed(), Y && Y();
|
|
3265
3265
|
}, de = () => {
|
|
3266
3266
|
f && f();
|
|
3267
3267
|
};
|
|
3268
3268
|
return rt("jcode_auth_page_provide", {
|
|
3269
3269
|
getPageName: g
|
|
3270
|
-
}), l({ open:
|
|
3271
|
-
const G =
|
|
3272
|
-
return i(),
|
|
3270
|
+
}), l({ open: I }), (J, R) => {
|
|
3271
|
+
const G = F("j-layer");
|
|
3272
|
+
return i(), w(G, {
|
|
3273
3273
|
ref_key: "layerRef",
|
|
3274
3274
|
ref: o,
|
|
3275
3275
|
width: t.value,
|
|
@@ -3277,7 +3277,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
3277
3277
|
"before-close": E,
|
|
3278
3278
|
"validate-steps": C,
|
|
3279
3279
|
"is-step": y.value,
|
|
3280
|
-
steps:
|
|
3280
|
+
steps: k.value,
|
|
3281
3281
|
"has-btns": a.value,
|
|
3282
3282
|
buttons: d.value,
|
|
3283
3283
|
"btn-text": v.value,
|
|
@@ -3285,11 +3285,11 @@ const nl = /* @__PURE__ */ K({
|
|
|
3285
3285
|
"has-save-btn": s.value,
|
|
3286
3286
|
"has-header": u.value,
|
|
3287
3287
|
onOk: X,
|
|
3288
|
-
onClosed:
|
|
3288
|
+
onClosed: T,
|
|
3289
3289
|
onCancel: de
|
|
3290
3290
|
}, {
|
|
3291
|
-
default:
|
|
3292
|
-
(i(),
|
|
3291
|
+
default: L(() => [
|
|
3292
|
+
(i(), w(We(p.value), we({
|
|
3293
3293
|
ref_key: "componentRef",
|
|
3294
3294
|
ref: r
|
|
3295
3295
|
}, h.value), null, 16))
|
|
@@ -3325,8 +3325,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
3325
3325
|
a.value.splice(m, 1), t("update:modelValue", a.value.join(",")), t("change", { value: a.value.join(",") });
|
|
3326
3326
|
};
|
|
3327
3327
|
return (m, r) => {
|
|
3328
|
-
const p =
|
|
3329
|
-
return i(),
|
|
3328
|
+
const p = F("el-tag"), h = F("el-space"), c = F("j-autocomplete");
|
|
3329
|
+
return i(), w(c, {
|
|
3330
3330
|
modelValue: n.value,
|
|
3331
3331
|
"onUpdate:modelValue": r[0] || (r[0] = (g) => n.value = g),
|
|
3332
3332
|
class: "j-input-tag",
|
|
@@ -3338,18 +3338,18 @@ const nl = /* @__PURE__ */ K({
|
|
|
3338
3338
|
onSelect: u,
|
|
3339
3339
|
onKeyup: $t(v, ["enter"])
|
|
3340
3340
|
}, {
|
|
3341
|
-
prefix:
|
|
3341
|
+
prefix: L(() => [
|
|
3342
3342
|
Q(h, null, {
|
|
3343
|
-
default:
|
|
3344
|
-
(i(!0), V(se, null, ce(a.value, (g, y) => (i(),
|
|
3343
|
+
default: L(() => [
|
|
3344
|
+
(i(!0), V(se, null, ce(a.value, (g, y) => (i(), w(p, {
|
|
3345
3345
|
key: y,
|
|
3346
3346
|
type: "info",
|
|
3347
3347
|
closable: !e.readonly,
|
|
3348
3348
|
style: ue(s.value[y] || {}),
|
|
3349
3349
|
size: e.size,
|
|
3350
|
-
onClose: Be((
|
|
3350
|
+
onClose: Be((k) => d(y), ["prevent"])
|
|
3351
3351
|
}, {
|
|
3352
|
-
default:
|
|
3352
|
+
default: L(() => [
|
|
3353
3353
|
Se(ne(g), 1)
|
|
3354
3354
|
]),
|
|
3355
3355
|
_: 2
|
|
@@ -3389,8 +3389,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
3389
3389
|
s.value = v;
|
|
3390
3390
|
};
|
|
3391
3391
|
return (v, d) => {
|
|
3392
|
-
const m =
|
|
3393
|
-
return i(),
|
|
3392
|
+
const m = F("el-rate");
|
|
3393
|
+
return i(), w(m, {
|
|
3394
3394
|
modelValue: n.value,
|
|
3395
3395
|
"onUpdate:modelValue": d[0] || (d[0] = (r) => n.value = r),
|
|
3396
3396
|
size: e.size,
|
|
@@ -3444,8 +3444,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
3444
3444
|
}
|
|
3445
3445
|
});
|
|
3446
3446
|
return (a, s) => {
|
|
3447
|
-
const u =
|
|
3448
|
-
return i(),
|
|
3447
|
+
const u = F("el-slider");
|
|
3448
|
+
return i(), w(u, {
|
|
3449
3449
|
modelValue: n.value,
|
|
3450
3450
|
"onUpdate:modelValue": s[0] || (s[0] = (v) => n.value = v),
|
|
3451
3451
|
min: e.min,
|
|
@@ -3527,7 +3527,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
3527
3527
|
t: (o) => o
|
|
3528
3528
|
});
|
|
3529
3529
|
return (o, t) => {
|
|
3530
|
-
const n =
|
|
3530
|
+
const n = F("j-icon"), a = F("el-text"), s = F("j-button"), u = F("el-progress"), v = F("el-link");
|
|
3531
3531
|
return i(), V("div", {
|
|
3532
3532
|
class: ze(["j-upload-list", { "j-upload-image-list": e.isUploadImg, "j-upload-drag-list": e.drag }])
|
|
3533
3533
|
}, [
|
|
@@ -3542,7 +3542,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
3542
3542
|
style: { width: "100%" },
|
|
3543
3543
|
alt: ""
|
|
3544
3544
|
}, null, 8, ko)
|
|
3545
|
-
])) : (i(),
|
|
3545
|
+
])) : (i(), w(n, {
|
|
3546
3546
|
key: 0,
|
|
3547
3547
|
icon: "file-text",
|
|
3548
3548
|
style: ue({ color: d.color ? `var(${d.color})` : void 0 }),
|
|
@@ -3550,32 +3550,32 @@ const nl = /* @__PURE__ */ K({
|
|
|
3550
3550
|
}, null, 8, ["style"])),
|
|
3551
3551
|
H("div", Co, [
|
|
3552
3552
|
Q(a, { ellipsis: "" }, {
|
|
3553
|
-
default:
|
|
3554
|
-
Se(ne(`${
|
|
3553
|
+
default: L(() => [
|
|
3554
|
+
Se(ne(`${P(l)(d.name)}${d.status === "unUpload" ? "(" + P(l)("未传") + ")" : ""}`), 1)
|
|
3555
3555
|
]),
|
|
3556
3556
|
_: 2
|
|
3557
3557
|
}, 1024),
|
|
3558
3558
|
H("div", null, [
|
|
3559
|
-
d.status === "uploading" ? (i(),
|
|
3560
|
-
default:
|
|
3561
|
-
Se(ne(
|
|
3559
|
+
d.status === "uploading" ? (i(), w(a, { key: 0 }, {
|
|
3560
|
+
default: L(() => [
|
|
3561
|
+
Se(ne(P(Ke)(d.uploadSize)) + "/", 1)
|
|
3562
3562
|
]),
|
|
3563
3563
|
_: 2
|
|
3564
3564
|
}, 1024)) : A("", !0),
|
|
3565
3565
|
Q(a, null, {
|
|
3566
|
-
default:
|
|
3567
|
-
Se(ne(
|
|
3566
|
+
default: L(() => [
|
|
3567
|
+
Se(ne(P(Ke)(d.size)), 1)
|
|
3568
3568
|
]),
|
|
3569
3569
|
_: 2
|
|
3570
3570
|
}, 1024)
|
|
3571
3571
|
])
|
|
3572
3572
|
]),
|
|
3573
|
-
|
|
3574
|
-
d.status === "done" || d.status === "unUpload" ? (i(),
|
|
3573
|
+
Ee(H("div", xo, [
|
|
3574
|
+
d.status === "done" || d.status === "unUpload" ? (i(), w(s, {
|
|
3575
3575
|
key: 0,
|
|
3576
3576
|
type: "link"
|
|
3577
3577
|
}, {
|
|
3578
|
-
icon:
|
|
3578
|
+
icon: L(() => [
|
|
3579
3579
|
Q(n, {
|
|
3580
3580
|
icon: "eye",
|
|
3581
3581
|
size: 24,
|
|
@@ -3584,7 +3584,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
3584
3584
|
]),
|
|
3585
3585
|
_: 2
|
|
3586
3586
|
}, 1024)) : A("", !0),
|
|
3587
|
-
!e.readonly && (d.status === "done" || d.status === "unUpload") ? (i(),
|
|
3587
|
+
!e.readonly && (d.status === "done" || d.status === "unUpload") ? (i(), w(s, {
|
|
3588
3588
|
key: 1,
|
|
3589
3589
|
icon: "delete",
|
|
3590
3590
|
type: "link",
|
|
@@ -3594,7 +3594,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
3594
3594
|
], 512), [
|
|
3595
3595
|
[ot, d.status === "error"]
|
|
3596
3596
|
]),
|
|
3597
|
-
d.status === "uploading" ? (i(),
|
|
3597
|
+
d.status === "uploading" ? (i(), w(u, {
|
|
3598
3598
|
key: 2,
|
|
3599
3599
|
"stroke-width": 4,
|
|
3600
3600
|
style: { position: "absolute", bottom: "-4px", left: "0", margin: "0 !important" },
|
|
@@ -3602,7 +3602,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
3602
3602
|
"show-text": !1
|
|
3603
3603
|
}, null, 8, ["percent"])) : A("", !0)
|
|
3604
3604
|
]))), 128)) : A("", !0),
|
|
3605
|
-
|
|
3605
|
+
te(o.$slots, "default")
|
|
3606
3606
|
], 64)) : e.isUploadImg ? (i(!0), V(se, { key: 1 }, ce(e.list, (d) => (i(), V("div", {
|
|
3607
3607
|
key: d.id,
|
|
3608
3608
|
class: "j-upload-imgItem"
|
|
@@ -3613,12 +3613,12 @@ const nl = /* @__PURE__ */ K({
|
|
|
3613
3613
|
style: { width: "100%" },
|
|
3614
3614
|
alt: ""
|
|
3615
3615
|
}, null, 8, jo)) : A("", !0),
|
|
3616
|
-
|
|
3617
|
-
d.status === "done" || d.status === "unUpload" ? (i(),
|
|
3616
|
+
Ee(H("div", So, [
|
|
3617
|
+
d.status === "done" || d.status === "unUpload" ? (i(), w(s, {
|
|
3618
3618
|
key: 0,
|
|
3619
3619
|
type: "link"
|
|
3620
3620
|
}, {
|
|
3621
|
-
icon:
|
|
3621
|
+
icon: L(() => [
|
|
3622
3622
|
Q(n, {
|
|
3623
3623
|
icon: "eye",
|
|
3624
3624
|
size: 24,
|
|
@@ -3627,12 +3627,12 @@ const nl = /* @__PURE__ */ K({
|
|
|
3627
3627
|
]),
|
|
3628
3628
|
_: 2
|
|
3629
3629
|
}, 1024)) : A("", !0),
|
|
3630
|
-
!e.readonly && (d.status === "done" || d.status === "unUpload") ? (i(),
|
|
3630
|
+
!e.readonly && (d.status === "done" || d.status === "unUpload") ? (i(), w(s, {
|
|
3631
3631
|
key: 1,
|
|
3632
3632
|
type: "link",
|
|
3633
3633
|
danger: ""
|
|
3634
3634
|
}, {
|
|
3635
|
-
icon:
|
|
3635
|
+
icon: L(() => [
|
|
3636
3636
|
Q(n, {
|
|
3637
3637
|
icon: "delete",
|
|
3638
3638
|
size: 24,
|
|
@@ -3644,7 +3644,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
3644
3644
|
], 512), [
|
|
3645
3645
|
[ot, d.status === "error"]
|
|
3646
3646
|
]),
|
|
3647
|
-
d.status === "uploading" ? (i(),
|
|
3647
|
+
d.status === "uploading" ? (i(), w(u, {
|
|
3648
3648
|
key: 1,
|
|
3649
3649
|
"stroke-width": 4,
|
|
3650
3650
|
percent: d.percent,
|
|
@@ -3665,31 +3665,31 @@ const nl = /* @__PURE__ */ K({
|
|
|
3665
3665
|
underline: "never",
|
|
3666
3666
|
onClick: Be((m) => e.previewFile(d), ["stop"])
|
|
3667
3667
|
}, {
|
|
3668
|
-
default:
|
|
3669
|
-
Se(ne(`${
|
|
3668
|
+
default: L(() => [
|
|
3669
|
+
Se(ne(`${P(l)(d.name)}${d.status === "unUpload" ? "(" + P(l)("未传") + ")" : ""}`), 1)
|
|
3670
3670
|
]),
|
|
3671
3671
|
_: 2
|
|
3672
3672
|
}, 1032, ["onClick"])
|
|
3673
3673
|
]),
|
|
3674
|
-
d.status === "uploading" ? (i(),
|
|
3675
|
-
default:
|
|
3676
|
-
Se(ne(
|
|
3674
|
+
d.status === "uploading" ? (i(), w(a, { key: 0 }, {
|
|
3675
|
+
default: L(() => [
|
|
3676
|
+
Se(ne(P(Ke)(d.uploadSize)) + "/", 1)
|
|
3677
3677
|
]),
|
|
3678
3678
|
_: 2
|
|
3679
3679
|
}, 1024)) : A("", !0),
|
|
3680
3680
|
Q(a, null, {
|
|
3681
|
-
default:
|
|
3682
|
-
Se(ne(
|
|
3681
|
+
default: L(() => [
|
|
3682
|
+
Se(ne(P(Ke)(d.size)), 1)
|
|
3683
3683
|
]),
|
|
3684
3684
|
_: 2
|
|
3685
3685
|
}, 1024),
|
|
3686
|
-
d.status === "done" && e.isShowSuccessIcon ? (i(),
|
|
3686
|
+
d.status === "done" && e.isShowSuccessIcon ? (i(), w(n, {
|
|
3687
3687
|
key: 1,
|
|
3688
3688
|
class: "j-upload-item-success",
|
|
3689
3689
|
icon: "check-circle",
|
|
3690
3690
|
size: 24
|
|
3691
3691
|
})) : A("", !0),
|
|
3692
|
-
e.readonly ? A("", !0) :
|
|
3692
|
+
e.readonly ? A("", !0) : Ee((i(), w(n, {
|
|
3693
3693
|
key: 2,
|
|
3694
3694
|
class: "j-upload-item-error",
|
|
3695
3695
|
icon: "delete",
|
|
@@ -3698,7 +3698,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
3698
3698
|
}, null, 8, ["onClick"])), [
|
|
3699
3699
|
[ot, d.status === "error"]
|
|
3700
3700
|
]),
|
|
3701
|
-
d.status === "uploading" ? (i(),
|
|
3701
|
+
d.status === "uploading" ? (i(), w(u, {
|
|
3702
3702
|
key: 3,
|
|
3703
3703
|
style: { position: "absolute", bottom: "-4px", left: "0", margin: "0 !important" },
|
|
3704
3704
|
"stroke-width": 4,
|
|
@@ -3716,7 +3716,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
3716
3716
|
key: 0,
|
|
3717
3717
|
class: "j-block",
|
|
3718
3718
|
style: { display: "flex", "align-items": "center", "justify-content": "center", overflow: "auto", "overflow-x": "hidden" }
|
|
3719
|
-
},
|
|
3719
|
+
}, Fo = ["src"], Io = {
|
|
3720
3720
|
key: 1,
|
|
3721
3721
|
class: "j-block"
|
|
3722
3722
|
}, Oo = ["src"], Mo = /* @__PURE__ */ K({
|
|
@@ -3901,7 +3901,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
3901
3901
|
}), { fileChunkedUpload: r, deleteFile: p } = m(), h = $(() => o.isUploadImg ? o.accept || "image/*" : o.accept), c = $(() => {
|
|
3902
3902
|
if (o.limit !== -1)
|
|
3903
3903
|
return o.limit;
|
|
3904
|
-
}), g = $(() => o.limit === -1 ? "" : `,${u("上传数量")}${o.limit}`), y = j(""),
|
|
3904
|
+
}), g = $(() => o.limit === -1 ? "" : `,${u("上传数量")}${o.limit}`), y = j(""), k = $(() => ({
|
|
3905
3905
|
folderId: o.modelValue || y.value,
|
|
3906
3906
|
maxSize: o.maxSize,
|
|
3907
3907
|
sizeType: o.sizeType
|
|
@@ -3949,12 +3949,12 @@ const nl = /* @__PURE__ */ K({
|
|
|
3949
3949
|
const ae = f(S);
|
|
3950
3950
|
return ["webp", "bmp", "jpg", "jpge", "png", "tif", "gif", "svg"].includes(ae) ? "file-image" : Y[ae] || "file-ufo";
|
|
3951
3951
|
}, O = (S) => {
|
|
3952
|
-
S.status = o.autoUpload ? "uploading" : "unUpload", S.uploadSize = 0, S.icon = B(S.name, S.type), r || (S.icon = "file-text"), S.id = S.uid, S.url = window.URL.createObjectURL(S), S.date = Ge(), S.param =
|
|
3953
|
-
},
|
|
3952
|
+
S.status = o.autoUpload ? "uploading" : "unUpload", S.uploadSize = 0, S.icon = B(S.name, S.type), r || (S.icon = "file-text"), S.id = S.uid, S.url = window.URL.createObjectURL(S), S.date = Ge(), S.param = k.value;
|
|
3953
|
+
}, I = (S) => {
|
|
3954
3954
|
t("start", { file: S, list: C.value });
|
|
3955
3955
|
}, X = (S, U, ae) => {
|
|
3956
3956
|
S.percent = ae, S.uploadSize = U, E();
|
|
3957
|
-
},
|
|
3957
|
+
}, T = (S) => {
|
|
3958
3958
|
S.status = "done", S.id += "1", S.uid += "1", E(), t("success", { file: S, list: C.value }), o.modelValue || (t("update:modelValue", y.value), t("change", { value: y.value }));
|
|
3959
3959
|
}, de = (S, U) => {
|
|
3960
3960
|
console.error(U, "简搭提醒您:文件上传错误!"), S.status = "error", E(), t("error", { file: S, list: C.value });
|
|
@@ -3964,18 +3964,18 @@ const nl = /* @__PURE__ */ K({
|
|
|
3964
3964
|
return;
|
|
3965
3965
|
}
|
|
3966
3966
|
!o.isNotApi && o.upload ? o.upload(S) : !o.isNotApi && r ? r(S, {
|
|
3967
|
-
onStart:
|
|
3967
|
+
onStart: I,
|
|
3968
3968
|
onProgress: X,
|
|
3969
|
-
onSuccess:
|
|
3969
|
+
onSuccess: T,
|
|
3970
3970
|
onError: de,
|
|
3971
3971
|
uploadCallback: o.uploadCallback
|
|
3972
|
-
}) :
|
|
3972
|
+
}) : T(S);
|
|
3973
3973
|
}, R = (S) => {
|
|
3974
3974
|
if (!Z(S.size))
|
|
3975
3975
|
return a && a("上传文件超出大小了"), !1;
|
|
3976
3976
|
}, G = (S) => {
|
|
3977
3977
|
O(S.file), J(S.file);
|
|
3978
|
-
},
|
|
3978
|
+
}, W = (S) => new Promise((U) => {
|
|
3979
3979
|
s ? s({
|
|
3980
3980
|
title: "提示",
|
|
3981
3981
|
iconType: "warning",
|
|
@@ -3994,8 +3994,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
3994
3994
|
}
|
|
3995
3995
|
C.value = C.value.filter((U) => U.id !== S.id), C.value.length === 0 && (t("update:modelValue", ""), t("change", { value: "" })), t("delete", { file: S, list: C.value });
|
|
3996
3996
|
}, oe = async (S) => {
|
|
3997
|
-
await
|
|
3998
|
-
}, Ve = j(!1),
|
|
3997
|
+
await W(S) && ie(S);
|
|
3998
|
+
}, Ve = j(!1), ee = j(""), he = j(""), Fe = j(!1), Oe = j(!1);
|
|
3999
3999
|
let N = null;
|
|
4000
4000
|
const be = j(Ge(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), ge = (S) => {
|
|
4001
4001
|
if (S.isPreview === !1 && !o.isUploadImg) {
|
|
@@ -4003,14 +4003,14 @@ const nl = /* @__PURE__ */ K({
|
|
|
4003
4003
|
return;
|
|
4004
4004
|
}
|
|
4005
4005
|
const U = S.name.split(".")[S.name.split(".").length - 1];
|
|
4006
|
-
switch (N = S, Ve.value = !1,
|
|
4006
|
+
switch (N = S, Ve.value = !1, ee.value = S.name, U.toLowerCase()) {
|
|
4007
4007
|
case "jpg":
|
|
4008
4008
|
case "gif":
|
|
4009
4009
|
case "png":
|
|
4010
4010
|
case "bmp":
|
|
4011
4011
|
case "jpeg":
|
|
4012
4012
|
case "svg":
|
|
4013
|
-
Ve.value = !0, he.value = S.url, Oe.value = !1,
|
|
4013
|
+
Ve.value = !0, he.value = S.url, Oe.value = !1, Fe.value = !0;
|
|
4014
4014
|
break;
|
|
4015
4015
|
default:
|
|
4016
4016
|
if (o.isNotApi) {
|
|
@@ -4025,7 +4025,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
4025
4025
|
n && n("当前文件不支持预览!");
|
|
4026
4026
|
return;
|
|
4027
4027
|
}
|
|
4028
|
-
Oe.value = !0,
|
|
4028
|
+
Oe.value = !0, Fe.value = !0;
|
|
4029
4029
|
break;
|
|
4030
4030
|
}
|
|
4031
4031
|
be.value = Ge(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss");
|
|
@@ -4044,9 +4044,9 @@ const nl = /* @__PURE__ */ K({
|
|
|
4044
4044
|
return n && n(`当前限制选择${o.limit}个文件`), !1;
|
|
4045
4045
|
};
|
|
4046
4046
|
return (S, U) => {
|
|
4047
|
-
const ae =
|
|
4047
|
+
const ae = F("j-icon"), fe = F("j-button"), Te = F("el-popover"), Ie = F("el-upload"), me = F("el-text"), tt = F("j-dialog-full"), b = ut("loading");
|
|
4048
4048
|
return i(), V("div", $o, [
|
|
4049
|
-
Q(
|
|
4049
|
+
Q(Ie, {
|
|
4050
4050
|
action: "",
|
|
4051
4051
|
drag: e.drag,
|
|
4052
4052
|
disabled: e.readonly,
|
|
@@ -4058,21 +4058,21 @@ const nl = /* @__PURE__ */ K({
|
|
|
4058
4058
|
"before-upload": R,
|
|
4059
4059
|
"http-request": G,
|
|
4060
4060
|
"file-list": C.value,
|
|
4061
|
-
"before-remove":
|
|
4061
|
+
"before-remove": W,
|
|
4062
4062
|
"on-remove": ie,
|
|
4063
4063
|
"on-preview": ge,
|
|
4064
4064
|
"on-exceed": je
|
|
4065
4065
|
}, {
|
|
4066
|
-
default:
|
|
4066
|
+
default: L(() => [
|
|
4067
4067
|
e.isUploadImg && !e.isLayer && !e.readonly ? (i(), V("div", zo, [
|
|
4068
4068
|
Q(ae, { icon: "material-symbols-light:add-2-rounded" }),
|
|
4069
|
-
H("div", Vo, ne(
|
|
4070
|
-
])) : e.isLayer && e.showFileList && C.value.length > 0 && !
|
|
4069
|
+
H("div", Vo, ne(P(u)(e.placeholder)), 1)
|
|
4070
|
+
])) : e.isLayer && e.showFileList && C.value.length > 0 && !Fe.value ? (i(), w(Te, {
|
|
4071
4071
|
key: 1,
|
|
4072
4072
|
placement: "bottom",
|
|
4073
|
-
title: e.isUploadImg ?
|
|
4073
|
+
title: e.isUploadImg ? P(u)("图片列表") : P(u)("文件列表")
|
|
4074
4074
|
}, {
|
|
4075
|
-
content:
|
|
4075
|
+
content: L(() => [
|
|
4076
4076
|
Q(wt, {
|
|
4077
4077
|
style: ue({ width: e.isUploadImg ? void 0 : "400px" }),
|
|
4078
4078
|
list: C.value,
|
|
@@ -4082,16 +4082,16 @@ const nl = /* @__PURE__ */ K({
|
|
|
4082
4082
|
readonly: e.readonly
|
|
4083
4083
|
}, null, 8, ["style", "list", "is-upload-img", "readonly"])
|
|
4084
4084
|
]),
|
|
4085
|
-
default:
|
|
4085
|
+
default: L(() => [
|
|
4086
4086
|
Q(fe, {
|
|
4087
4087
|
type: e.btnType,
|
|
4088
4088
|
size: e.btnSize,
|
|
4089
4089
|
icon: "material-symbols-light:upload-rounded",
|
|
4090
|
-
label: e.readonly ?
|
|
4090
|
+
label: e.readonly ? P(u)(e.btnText) : e.placeholder
|
|
4091
4091
|
}, null, 8, ["type", "size", "label"])
|
|
4092
4092
|
]),
|
|
4093
4093
|
_: 1
|
|
4094
|
-
}, 8, ["title"])) : e.readonly ? A("", !0) : (i(),
|
|
4094
|
+
}, 8, ["title"])) : e.readonly ? A("", !0) : (i(), w(fe, {
|
|
4095
4095
|
key: 2,
|
|
4096
4096
|
type: e.btnType,
|
|
4097
4097
|
size: e.btnSize,
|
|
@@ -4103,13 +4103,13 @@ const nl = /* @__PURE__ */ K({
|
|
|
4103
4103
|
}, 8, ["drag", "disabled", "show-file-list", "list-type", "accept", "limit", "multiple", "file-list"]),
|
|
4104
4104
|
e.isTip ? (i(), V("div", To, [
|
|
4105
4105
|
Q(me, null, {
|
|
4106
|
-
default:
|
|
4107
|
-
Se(ne(`${
|
|
4106
|
+
default: L(() => [
|
|
4107
|
+
Se(ne(`${P(u)("只能上传不超过{0}的{1}文件", `${e.maxSize}${e.sizeType}`, `${h.value || ""}`)},${g.value}`), 1)
|
|
4108
4108
|
]),
|
|
4109
4109
|
_: 1
|
|
4110
4110
|
})
|
|
4111
4111
|
])) : A("", !0),
|
|
4112
|
-
!e.isLayer && !e.isUploadImg && e.showFileList && C.value.length > 0 ? (i(),
|
|
4112
|
+
!e.isLayer && !e.isUploadImg && e.showFileList && C.value.length > 0 ? (i(), w(wt, {
|
|
4113
4113
|
key: 1,
|
|
4114
4114
|
style: { "margin-top": "4px" },
|
|
4115
4115
|
list: C.value,
|
|
@@ -4119,23 +4119,23 @@ const nl = /* @__PURE__ */ K({
|
|
|
4119
4119
|
"is-show-success-icon": e.isShowSuccessIcon
|
|
4120
4120
|
}, null, 8, ["list", "readonly", "is-show-success-icon"])) : A("", !0),
|
|
4121
4121
|
Q(tt, {
|
|
4122
|
-
visible:
|
|
4123
|
-
"onUpdate:visible": U[1] || (U[1] = (D) =>
|
|
4122
|
+
visible: Fe.value,
|
|
4123
|
+
"onUpdate:visible": U[1] || (U[1] = (D) => Fe.value = D),
|
|
4124
4124
|
"btn-text": "下载",
|
|
4125
|
-
title: `${
|
|
4125
|
+
title: `${P(u)("文件预览")}【${ee.value}】`,
|
|
4126
4126
|
"destroy-on-close": !0,
|
|
4127
|
-
"has-btns": !!
|
|
4127
|
+
"has-btns": !!P(v),
|
|
4128
4128
|
onOk: ye
|
|
4129
4129
|
}, {
|
|
4130
|
-
default:
|
|
4130
|
+
default: L(() => [
|
|
4131
4131
|
Ve.value && he.value ? (i(), V("div", Lo, [
|
|
4132
4132
|
H("img", {
|
|
4133
4133
|
width: "100%",
|
|
4134
4134
|
style: { "max-width": "1024px" },
|
|
4135
4135
|
src: he.value,
|
|
4136
4136
|
alt: ""
|
|
4137
|
-
}, null, 8,
|
|
4138
|
-
])) : he.value != "" ?
|
|
4137
|
+
}, null, 8, Fo)
|
|
4138
|
+
])) : he.value != "" ? Ee((i(), V("div", Io, [
|
|
4139
4139
|
H("iframe", {
|
|
4140
4140
|
ref: "iframe",
|
|
4141
4141
|
src: he.value,
|
|
@@ -4301,14 +4301,14 @@ const nl = /* @__PURE__ */ K({
|
|
|
4301
4301
|
{ immediate: !0 }
|
|
4302
4302
|
), ke(a, () => {
|
|
4303
4303
|
s();
|
|
4304
|
-
}), (u, v) => n.value || e.format != "qr" && !
|
|
4304
|
+
}), (u, v) => n.value || e.format != "qr" && !P(Le)(e.modelValue) ? (i(), V("img", {
|
|
4305
4305
|
key: t.value,
|
|
4306
4306
|
ref_key: "barcodeRef",
|
|
4307
4307
|
ref: o,
|
|
4308
4308
|
src: n.value
|
|
4309
4309
|
}, null, 8, Jo)) : A("", !0);
|
|
4310
4310
|
}
|
|
4311
|
-
}),
|
|
4311
|
+
}), Wo = _(Uo), Po = /* @__PURE__ */ K({
|
|
4312
4312
|
name: "JCount",
|
|
4313
4313
|
__name: "count",
|
|
4314
4314
|
props: {
|
|
@@ -4333,33 +4333,33 @@ const nl = /* @__PURE__ */ K({
|
|
|
4333
4333
|
let O = 0;
|
|
4334
4334
|
if (Array.isArray(f))
|
|
4335
4335
|
if (/[><=]/.test(B)) {
|
|
4336
|
-
const
|
|
4337
|
-
if (
|
|
4338
|
-
const X =
|
|
4336
|
+
const I = B.match(/^([><=]+)(.+)$/);
|
|
4337
|
+
if (I) {
|
|
4338
|
+
const X = I[1], T = Number(I[2]);
|
|
4339
4339
|
for (let de = 0; de < f.length; de++)
|
|
4340
4340
|
try {
|
|
4341
4341
|
const J = Number(f[de]);
|
|
4342
4342
|
let R = !1;
|
|
4343
4343
|
switch (X) {
|
|
4344
4344
|
case ">":
|
|
4345
|
-
R = J >
|
|
4345
|
+
R = J > T;
|
|
4346
4346
|
break;
|
|
4347
4347
|
case "<":
|
|
4348
|
-
R = J <
|
|
4348
|
+
R = J < T;
|
|
4349
4349
|
break;
|
|
4350
4350
|
case ">=":
|
|
4351
|
-
R = J >=
|
|
4351
|
+
R = J >= T;
|
|
4352
4352
|
break;
|
|
4353
4353
|
case "<=":
|
|
4354
|
-
R = J <=
|
|
4354
|
+
R = J <= T;
|
|
4355
4355
|
break;
|
|
4356
4356
|
case "==":
|
|
4357
4357
|
case "===":
|
|
4358
|
-
R = J ===
|
|
4358
|
+
R = J === T;
|
|
4359
4359
|
break;
|
|
4360
4360
|
case "!=":
|
|
4361
4361
|
case "!==":
|
|
4362
|
-
R = J !==
|
|
4362
|
+
R = J !== T;
|
|
4363
4363
|
break;
|
|
4364
4364
|
}
|
|
4365
4365
|
R && O++;
|
|
@@ -4369,15 +4369,15 @@ const nl = /* @__PURE__ */ K({
|
|
|
4369
4369
|
}
|
|
4370
4370
|
}
|
|
4371
4371
|
} else
|
|
4372
|
-
for (let
|
|
4373
|
-
f[
|
|
4372
|
+
for (let I = 0; I < f.length; I++)
|
|
4373
|
+
f[I] === B && O++;
|
|
4374
4374
|
return O;
|
|
4375
4375
|
}, u = (f, B) => f.toFixed(B), v = (f, B) => B < 0 ? -Math.floor(f / Math.abs(B)) * B || 0 : Math.floor(f / B) * B || 0, d = (f, B) => {
|
|
4376
4376
|
if (Array.isArray(f))
|
|
4377
|
-
return f.sort((O,
|
|
4377
|
+
return f.sort((O, I) => I - O), f[B - 1];
|
|
4378
4378
|
}, m = (f, B) => {
|
|
4379
4379
|
if (Array.isArray(f))
|
|
4380
|
-
return f.sort((O,
|
|
4380
|
+
return f.sort((O, I) => O - I), f[B - 1];
|
|
4381
4381
|
}, r = (f, B) => Math.log(f) / Math.log(B), p = (f, B) => f % B, h = (...f) => {
|
|
4382
4382
|
f = f.flat();
|
|
4383
4383
|
let B = 1;
|
|
@@ -4393,19 +4393,19 @@ const nl = /* @__PURE__ */ K({
|
|
|
4393
4393
|
for (let O = 0; O < f.length; O++)
|
|
4394
4394
|
B += Number(f[O]);
|
|
4395
4395
|
return B;
|
|
4396
|
-
}, y = (...f) => f[0].map((
|
|
4397
|
-
let
|
|
4396
|
+
}, y = (...f) => f[0].map((I, X) => {
|
|
4397
|
+
let T = I;
|
|
4398
4398
|
for (let de = 1; de < f.length; de++)
|
|
4399
|
-
|
|
4400
|
-
return
|
|
4401
|
-
}).reduce((
|
|
4399
|
+
T *= f[de][X] || 0;
|
|
4400
|
+
return T;
|
|
4401
|
+
}).reduce((I, X) => I + X, 0), k = l, { getValue: C } = $e("jd_form_provide", {}), E = (f) => {
|
|
4402
4402
|
const B = C(f);
|
|
4403
4403
|
if (nt(B)) {
|
|
4404
|
-
const
|
|
4404
|
+
const I = [];
|
|
4405
4405
|
return B.forEach((X) => {
|
|
4406
|
-
const
|
|
4407
|
-
Number.isNaN(
|
|
4408
|
-
}),
|
|
4406
|
+
const T = Number(X);
|
|
4407
|
+
Number.isNaN(T) ? I.push(0) : I.push(T);
|
|
4408
|
+
}), I;
|
|
4409
4409
|
}
|
|
4410
4410
|
const O = Number(B);
|
|
4411
4411
|
return Number.isNaN(O) ? 0 : O;
|
|
@@ -4415,12 +4415,12 @@ const nl = /* @__PURE__ */ K({
|
|
|
4415
4415
|
const f = JSON.parse(o.formatJson || "[]");
|
|
4416
4416
|
let B = "";
|
|
4417
4417
|
for (let X = 0; X < f.length; X++) {
|
|
4418
|
-
const
|
|
4419
|
-
if (
|
|
4420
|
-
if (["abs", "max", "min", "sqrt"].includes(
|
|
4421
|
-
B += `Math.${
|
|
4422
|
-
else if (["int", "power", "rand"].includes(
|
|
4423
|
-
switch (
|
|
4418
|
+
const T = f[X];
|
|
4419
|
+
if (T.type === "fun" && T.value !== "(" && T.value !== ")")
|
|
4420
|
+
if (["abs", "max", "min", "sqrt"].includes(T.value))
|
|
4421
|
+
B += `Math.${T.value}`;
|
|
4422
|
+
else if (["int", "power", "rand"].includes(T.value))
|
|
4423
|
+
switch (T.value) {
|
|
4424
4424
|
case "int":
|
|
4425
4425
|
B += "Math.floor";
|
|
4426
4426
|
break;
|
|
@@ -4432,8 +4432,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
4432
4432
|
break;
|
|
4433
4433
|
}
|
|
4434
4434
|
else
|
|
4435
|
-
B += `${
|
|
4436
|
-
else
|
|
4435
|
+
B += `${T.value}Fun`;
|
|
4436
|
+
else T.type === "comp" ? B += `getCompValue('${T.value}')` : T.value === "i" && o.tableIndex !== void 0 ? B += o.tableIndex : B += T.value;
|
|
4437
4437
|
}
|
|
4438
4438
|
if (!B)
|
|
4439
4439
|
return "";
|
|
@@ -4454,10 +4454,10 @@ const nl = /* @__PURE__ */ K({
|
|
|
4454
4454
|
sumproductFun,
|
|
4455
4455
|
getCompValue)=>{ return ${B} }`;
|
|
4456
4456
|
let O;
|
|
4457
|
-
const
|
|
4458
|
-
if (
|
|
4457
|
+
const I = jt(B);
|
|
4458
|
+
if (I.res)
|
|
4459
4459
|
try {
|
|
4460
|
-
O =
|
|
4460
|
+
O = I.fn(
|
|
4461
4461
|
t,
|
|
4462
4462
|
n,
|
|
4463
4463
|
a,
|
|
@@ -4478,25 +4478,25 @@ const nl = /* @__PURE__ */ K({
|
|
|
4478
4478
|
console.log(X, "计算组件公式运行错误");
|
|
4479
4479
|
}
|
|
4480
4480
|
else
|
|
4481
|
-
return console.log(
|
|
4481
|
+
return console.log(I.msg), "";
|
|
4482
4482
|
return Number.isNaN(O) ? "" : (o.decimal !== void 0 && (O = O.toFixed(o.decimal)), O);
|
|
4483
4483
|
}), Y = $(() => {
|
|
4484
4484
|
let f = Z.value;
|
|
4485
4485
|
return o.thousandSeparator && (f = Kt(f)), o.isChinese && (f = Gt(f)), f;
|
|
4486
4486
|
});
|
|
4487
4487
|
return ke(Z, (f) => {
|
|
4488
|
-
|
|
4488
|
+
k("update:modelValue", f), k("change", { value: f, data: Y.value });
|
|
4489
4489
|
}), (f, B) => {
|
|
4490
|
-
const O =
|
|
4491
|
-
return i(),
|
|
4490
|
+
const O = F("el-input");
|
|
4491
|
+
return i(), w(O, {
|
|
4492
4492
|
modelValue: Y.value,
|
|
4493
|
-
"onUpdate:modelValue": B[0] || (B[0] = (
|
|
4493
|
+
"onUpdate:modelValue": B[0] || (B[0] = (I) => Y.value = I),
|
|
4494
4494
|
readonly: "",
|
|
4495
4495
|
size: e.size
|
|
4496
4496
|
}, null, 8, ["modelValue", "size"]);
|
|
4497
4497
|
};
|
|
4498
4498
|
}
|
|
4499
|
-
}), Ho = _(
|
|
4499
|
+
}), Ho = _(Po), Yo = { key: 0 }, Xo = /* @__PURE__ */ K({
|
|
4500
4500
|
name: "JCountUp",
|
|
4501
4501
|
__name: "count-up",
|
|
4502
4502
|
props: {
|
|
@@ -4574,11 +4574,11 @@ const nl = /* @__PURE__ */ K({
|
|
|
4574
4574
|
e.title ? (i(), V("div", Ko, [
|
|
4575
4575
|
H("div", Qo, ne(e.title), 1),
|
|
4576
4576
|
H("div", Zo, [
|
|
4577
|
-
|
|
4577
|
+
te(l.$slots, "titleRight")
|
|
4578
4578
|
])
|
|
4579
4579
|
])) : A("", !0),
|
|
4580
4580
|
H("div", _o, [
|
|
4581
|
-
|
|
4581
|
+
te(l.$slots, "default")
|
|
4582
4582
|
])
|
|
4583
4583
|
]));
|
|
4584
4584
|
}
|
|
@@ -4623,11 +4623,11 @@ const nl = /* @__PURE__ */ K({
|
|
|
4623
4623
|
__name: "hpanel",
|
|
4624
4624
|
setup(e) {
|
|
4625
4625
|
return (l, o) => (i(), V("div", na, [
|
|
4626
|
-
|
|
4626
|
+
te(l.$slots, "left"),
|
|
4627
4627
|
H("div", sa, [
|
|
4628
|
-
|
|
4628
|
+
te(l.$slots, "default")
|
|
4629
4629
|
]),
|
|
4630
|
-
|
|
4630
|
+
te(l.$slots, "right")
|
|
4631
4631
|
]));
|
|
4632
4632
|
}
|
|
4633
4633
|
}), ua = _(ia), ra = /* @__PURE__ */ K({
|
|
@@ -4666,7 +4666,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
4666
4666
|
},
|
|
4667
4667
|
{ immediate: !0 }
|
|
4668
4668
|
), (m, r) => {
|
|
4669
|
-
const p =
|
|
4669
|
+
const p = F("j-button"), h = F("j-layer");
|
|
4670
4670
|
return i(), V(se, null, [
|
|
4671
4671
|
Q(p, we({ style: { width: "auto" } }, m.$attrs, {
|
|
4672
4672
|
type: e.type,
|
|
@@ -4685,8 +4685,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
4685
4685
|
onOk: s,
|
|
4686
4686
|
onClosed: v
|
|
4687
4687
|
}, {
|
|
4688
|
-
default:
|
|
4689
|
-
|
|
4688
|
+
default: L(() => [
|
|
4689
|
+
te(m.$slots, "default")
|
|
4690
4690
|
]),
|
|
4691
4691
|
_: 3
|
|
4692
4692
|
}, 8, ["height", "width", "destroy-on-close"])
|
|
@@ -4723,8 +4723,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
4723
4723
|
t("change", r);
|
|
4724
4724
|
}, m = $(() => o.modelValue && o.modelValue.trim() ? `${o.btnText}(已设置)` : o.btnText);
|
|
4725
4725
|
return (r, p) => {
|
|
4726
|
-
const h =
|
|
4727
|
-
return i(),
|
|
4726
|
+
const h = F("j-code-mirror"), c = F("j-layout"), g = F("j-input-button");
|
|
4727
|
+
return i(), w(g, {
|
|
4728
4728
|
modelValue: n.value,
|
|
4729
4729
|
"onUpdate:modelValue": p[1] || (p[1] = (y) => n.value = y),
|
|
4730
4730
|
type: e.type,
|
|
@@ -4738,12 +4738,12 @@ const nl = /* @__PURE__ */ K({
|
|
|
4738
4738
|
open: s,
|
|
4739
4739
|
onChange: d
|
|
4740
4740
|
}, {
|
|
4741
|
-
default:
|
|
4741
|
+
default: L(() => [
|
|
4742
4742
|
Q(c, {
|
|
4743
4743
|
"right-move": !1,
|
|
4744
4744
|
right: 560
|
|
4745
|
-
},
|
|
4746
|
-
default:
|
|
4745
|
+
}, Ue({
|
|
4746
|
+
default: L(() => [
|
|
4747
4747
|
Q(h, {
|
|
4748
4748
|
value: a.value,
|
|
4749
4749
|
"onUpdate:value": p[0] || (p[0] = (y) => a.value = y),
|
|
@@ -4756,7 +4756,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
4756
4756
|
}, [
|
|
4757
4757
|
e.example ? {
|
|
4758
4758
|
name: "right",
|
|
4759
|
-
fn:
|
|
4759
|
+
fn: L(() => [
|
|
4760
4760
|
Q(h, {
|
|
4761
4761
|
value: e.example,
|
|
4762
4762
|
mode: e.mode,
|
|
@@ -4811,11 +4811,11 @@ const nl = /* @__PURE__ */ K({
|
|
|
4811
4811
|
const t = e, n = o, a = j(), s = j(), u = j("");
|
|
4812
4812
|
let v;
|
|
4813
4813
|
const d = () => {
|
|
4814
|
-
const c = v.getCursor(), g = v.getTokenAt(c), { end: y, start:
|
|
4814
|
+
const c = v.getCursor(), g = v.getTokenAt(c), { end: y, start: k, string: C } = g;
|
|
4815
4815
|
let E = [];
|
|
4816
4816
|
return t.handleHint && (E = t.handleHint(C)), {
|
|
4817
4817
|
list: E,
|
|
4818
|
-
from: window.CodeMirror.Pos(c.line,
|
|
4818
|
+
from: window.CodeMirror.Pos(c.line, k),
|
|
4819
4819
|
to: window.CodeMirror.Pos(c.line, y)
|
|
4820
4820
|
};
|
|
4821
4821
|
}, m = () => {
|
|
@@ -4844,8 +4844,8 @@ const nl = /* @__PURE__ */ K({
|
|
|
4844
4844
|
completeSingle: !1
|
|
4845
4845
|
}), v = window.CodeMirror.fromTextArea(a.value, c), u.value = t.value, v.setValue(t.value), v.on(
|
|
4846
4846
|
"change",
|
|
4847
|
-
(y,
|
|
4848
|
-
t.isHint &&
|
|
4847
|
+
(y, k) => {
|
|
4848
|
+
t.isHint && k.origin !== "complete" && /^(?!_)(?!.*?_$)[a-zA-Z0-9_\u4e00-\u9fa5]+$/g.test(k.text[0]) && y.showHint();
|
|
4849
4849
|
const C = v.getValue();
|
|
4850
4850
|
u.value = C, n("update:value", C), n("change", { value: C });
|
|
4851
4851
|
}
|
|
@@ -4874,7 +4874,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
4874
4874
|
), Xe(() => {
|
|
4875
4875
|
let c = 0;
|
|
4876
4876
|
const g = 50, y = () => {
|
|
4877
|
-
const
|
|
4877
|
+
const k = window.CodeMirror, C = k && k.fromTextArea, E = !k?.fold || k.fold.combine && k.fold.indent && k.fold.comment;
|
|
4878
4878
|
C && E ? (m(), setTimeout(() => {
|
|
4879
4879
|
v?.refresh();
|
|
4880
4880
|
}, 300), h.observe(s.value)) : (c++, c < g ? setTimeout(y, 100) : console.error("CodeMirror failed to load after maximum retries"));
|
|
@@ -4908,7 +4908,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
4908
4908
|
toLeft: { type: Boolean }
|
|
4909
4909
|
},
|
|
4910
4910
|
setup(e, { expose: l }) {
|
|
4911
|
-
const o = e, t =
|
|
4911
|
+
const o = e, t = Me("actionRef"), n = j("0"), a = $(() => {
|
|
4912
4912
|
const { actionStyle: u, toLeft: v } = o;
|
|
4913
4913
|
return {
|
|
4914
4914
|
...u,
|
|
@@ -4925,7 +4925,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
4925
4925
|
n.value = u;
|
|
4926
4926
|
}
|
|
4927
4927
|
}), (u, v) => {
|
|
4928
|
-
const d =
|
|
4928
|
+
const d = F("j-icon");
|
|
4929
4929
|
return i(), V("div", {
|
|
4930
4930
|
ref_key: "actionRef",
|
|
4931
4931
|
ref: t,
|
|
@@ -4933,16 +4933,16 @@ const nl = /* @__PURE__ */ K({
|
|
|
4933
4933
|
class: "j-slider-captcha-action",
|
|
4934
4934
|
name: "captcha-action"
|
|
4935
4935
|
}, [
|
|
4936
|
-
e.isPassing ? (i(),
|
|
4936
|
+
e.isPassing ? (i(), w(d, {
|
|
4937
4937
|
key: 0,
|
|
4938
4938
|
color: "var(--j-color-text-2)",
|
|
4939
4939
|
class: "nav-checked",
|
|
4940
|
-
icon: "check-circle
|
|
4941
|
-
})) : (i(),
|
|
4940
|
+
icon: "mdi-light:check-circle"
|
|
4941
|
+
})) : (i(), w(d, {
|
|
4942
4942
|
key: 1,
|
|
4943
4943
|
color: "var(--j-color-text-2)",
|
|
4944
4944
|
class: "nav-checked",
|
|
4945
|
-
icon: "double-right
|
|
4945
|
+
icon: "mdi-light:chevron-double-right"
|
|
4946
4946
|
}))
|
|
4947
4947
|
], 4);
|
|
4948
4948
|
};
|
|
@@ -4954,7 +4954,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
4954
4954
|
toLeft: { type: Boolean }
|
|
4955
4955
|
},
|
|
4956
4956
|
setup(e, { expose: l }) {
|
|
4957
|
-
const o = e, t =
|
|
4957
|
+
const o = e, t = Me("barRef"), n = j("0"), a = $(() => {
|
|
4958
4958
|
const { barStyle: s, toLeft: u } = o;
|
|
4959
4959
|
return {
|
|
4960
4960
|
...s,
|
|
@@ -4999,7 +4999,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
4999
4999
|
}
|
|
5000
5000
|
},
|
|
5001
5001
|
setup(e, { expose: l }) {
|
|
5002
|
-
const o = e, t =
|
|
5002
|
+
const o = e, t = Me("contentRef"), n = $(() => {
|
|
5003
5003
|
const { contentStyle: s } = o;
|
|
5004
5004
|
return {
|
|
5005
5005
|
...s,
|
|
@@ -5036,7 +5036,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
5036
5036
|
successText: { default: "" },
|
|
5037
5037
|
text: { default: "" }
|
|
5038
5038
|
}, {
|
|
5039
|
-
modelValue: { type: Boolean, default:
|
|
5039
|
+
modelValue: { type: Boolean, default: void 0 },
|
|
5040
5040
|
modelModifiers: {}
|
|
5041
5041
|
}),
|
|
5042
5042
|
emits: /* @__PURE__ */ ft(["end", "move", "start", "success"], ["update:modelValue"]),
|
|
@@ -5048,49 +5048,49 @@ const nl = /* @__PURE__ */ K({
|
|
|
5048
5048
|
moveDistance: 0,
|
|
5049
5049
|
startTime: 0,
|
|
5050
5050
|
toLeft: !1
|
|
5051
|
-
}), s =
|
|
5051
|
+
}), s = Me("wrapperRef"), u = Me("barRef"), v = Me("contentRef"), d = Me("actionRef");
|
|
5052
5052
|
ke(
|
|
5053
5053
|
() => a.isPassing,
|
|
5054
|
-
(
|
|
5055
|
-
if (
|
|
5054
|
+
(k) => {
|
|
5055
|
+
if (k) {
|
|
5056
5056
|
const { endTime: C, startTime: E } = a, Z = (C - E) / 1e3;
|
|
5057
|
-
t("success", { isPassing:
|
|
5057
|
+
t("success", { isPassing: k, time: Z.toFixed(1) }), n.value = k;
|
|
5058
5058
|
}
|
|
5059
5059
|
}
|
|
5060
5060
|
), Vt(() => {
|
|
5061
5061
|
a.isPassing = !!n.value;
|
|
5062
5062
|
});
|
|
5063
|
-
function m(
|
|
5064
|
-
return "pageX" in
|
|
5063
|
+
function m(k) {
|
|
5064
|
+
return "pageX" in k ? k.pageX : "touches" in k && k.touches[0] ? k.touches[0].pageX : 0;
|
|
5065
5065
|
}
|
|
5066
|
-
function r(
|
|
5067
|
-
a.isPassing || d.value && (t("start",
|
|
5066
|
+
function r(k) {
|
|
5067
|
+
a.isPassing || d.value && (t("start", k), a.moveDistance = m(k) - Number.parseInt(d.value.getStyle().left.replace("px", "") || "0", 10), a.startTime = Date.now(), a.isMoving = !0);
|
|
5068
5068
|
}
|
|
5069
|
-
function p(
|
|
5070
|
-
const C = s.value?.offsetWidth ?? 220, E =
|
|
5069
|
+
function p(k) {
|
|
5070
|
+
const C = s.value?.offsetWidth ?? 220, E = k?.offsetWidth ?? 40, Z = C - E - 6;
|
|
5071
5071
|
return { actionWidth: E, offset: Z, wrapperWidth: C };
|
|
5072
5072
|
}
|
|
5073
|
-
function h(
|
|
5073
|
+
function h(k) {
|
|
5074
5074
|
const { isMoving: C, moveDistance: E } = a;
|
|
5075
5075
|
if (C) {
|
|
5076
|
-
const Z =
|
|
5076
|
+
const Z = P(d), Y = P(u);
|
|
5077
5077
|
if (!Z || !Y) return;
|
|
5078
|
-
const { actionWidth: f, offset: B, wrapperWidth: O } = p(Z.getEl()),
|
|
5078
|
+
const { actionWidth: f, offset: B, wrapperWidth: O } = p(Z.getEl()), I = m(k) - E;
|
|
5079
5079
|
t("move", {
|
|
5080
|
-
event:
|
|
5080
|
+
event: k,
|
|
5081
5081
|
moveDistance: E,
|
|
5082
|
-
moveX:
|
|
5083
|
-
}),
|
|
5082
|
+
moveX: I
|
|
5083
|
+
}), I > 0 && I <= B ? (Z.setLeft(`${I}px`), Y.setWidth(`${I + f / 2}px`)) : I > B && (Z.setLeft(`${O - f}px`), Y.setWidth(`${O - f / 2}px`), g());
|
|
5084
5084
|
}
|
|
5085
5085
|
}
|
|
5086
|
-
function c(
|
|
5086
|
+
function c(k) {
|
|
5087
5087
|
const { isMoving: C, isPassing: E, moveDistance: Z } = a;
|
|
5088
5088
|
if (C && !E) {
|
|
5089
|
-
t("end",
|
|
5090
|
-
const Y = d.value, f =
|
|
5089
|
+
t("end", k);
|
|
5090
|
+
const Y = d.value, f = P(u);
|
|
5091
5091
|
if (!Y || !f) return;
|
|
5092
|
-
const B = m(
|
|
5093
|
-
B <
|
|
5092
|
+
const B = m(k) - Z, { actionWidth: O, offset: I, wrapperWidth: X } = p(Y.getEl());
|
|
5093
|
+
B < I ? y() : (Y.setLeft(`${X - O}px`), f.setWidth(`${X - O / 2}px`), g()), a.isMoving = !1;
|
|
5094
5094
|
}
|
|
5095
5095
|
}
|
|
5096
5096
|
function g() {
|
|
@@ -5098,12 +5098,12 @@ const nl = /* @__PURE__ */ K({
|
|
|
5098
5098
|
}
|
|
5099
5099
|
function y() {
|
|
5100
5100
|
a.isMoving = !1, a.isPassing = !1, a.moveDistance = 0, a.toLeft = !1, a.startTime = 0, a.endTime = 0;
|
|
5101
|
-
const
|
|
5102
|
-
!
|
|
5103
|
-
a.toLeft = !1,
|
|
5101
|
+
const k = P(d), C = P(u), E = P(v);
|
|
5102
|
+
!k || !C || !E || (E.getEl().style.width = "100%", a.toLeft = !0, setTimeout(() => {
|
|
5103
|
+
a.toLeft = !1, k.setLeft("0"), C.setWidth("0");
|
|
5104
5104
|
}, 300));
|
|
5105
5105
|
}
|
|
5106
|
-
return (
|
|
5106
|
+
return (k, C) => (i(), V("div", {
|
|
5107
5107
|
ref_key: "wrapperRef",
|
|
5108
5108
|
ref: s,
|
|
5109
5109
|
class: ze(["j-slider-captcha slider-border", o.class]),
|
|
@@ -5125,17 +5125,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
5125
5125
|
ref: v,
|
|
5126
5126
|
"content-style": e.contentStyle,
|
|
5127
5127
|
"is-passing": a.isPassing
|
|
5128
|
-
},
|
|
5129
|
-
w.$slots.text ? {
|
|
5130
|
-
name: "text",
|
|
5131
|
-
fn: T(() => [
|
|
5132
|
-
ee(w.$slots, "text", {
|
|
5133
|
-
isPassing: a.isPassing
|
|
5134
|
-
})
|
|
5135
|
-
]),
|
|
5136
|
-
key: "0"
|
|
5137
|
-
} : void 0
|
|
5138
|
-
]), 1032, ["content-style", "is-passing"]),
|
|
5128
|
+
}, null, 8, ["content-style", "is-passing"]),
|
|
5139
5129
|
Q(ha, {
|
|
5140
5130
|
ref_key: "actionRef",
|
|
5141
5131
|
ref: d,
|
|
@@ -5144,17 +5134,7 @@ const nl = /* @__PURE__ */ K({
|
|
|
5144
5134
|
"to-left": a.toLeft,
|
|
5145
5135
|
onMousedown: r,
|
|
5146
5136
|
onTouchstart: r
|
|
5147
|
-
},
|
|
5148
|
-
w.$slots.actionIcon ? {
|
|
5149
|
-
name: "icon",
|
|
5150
|
-
fn: T(() => [
|
|
5151
|
-
ee(w.$slots, "actionIcon", {
|
|
5152
|
-
isPassing: a.isPassing
|
|
5153
|
-
})
|
|
5154
|
-
]),
|
|
5155
|
-
key: "0"
|
|
5156
|
-
} : void 0
|
|
5157
|
-
]), 1032, ["action-style", "is-passing", "to-left"])
|
|
5137
|
+
}, null, 8, ["action-style", "is-passing", "to-left"])
|
|
5158
5138
|
], 38));
|
|
5159
5139
|
}
|
|
5160
5140
|
}), ka = _(wa), Ca = /* @__PURE__ */ K({
|
|
@@ -5246,27 +5226,27 @@ const nl = /* @__PURE__ */ K({
|
|
|
5246
5226
|
o.config?.onChange && o.config?.onChange({ ...p, formData: n, row: o.row, id: o.id }), a && a({ ...p, formData: n, row: o.row, id: o.id }), t("change", p);
|
|
5247
5227
|
};
|
|
5248
5228
|
return (p, h) => {
|
|
5249
|
-
const c =
|
|
5250
|
-
return s.value ? (i(),
|
|
5229
|
+
const c = F("j-comp");
|
|
5230
|
+
return s.value ? (i(), w(We(d.value), we({ key: 0 }, v.value, {
|
|
5251
5231
|
modelValue: u.value,
|
|
5252
5232
|
"onUpdate:modelValue": h[0] || (h[0] = (g) => u.value = g),
|
|
5253
5233
|
onChange: r
|
|
5254
|
-
}),
|
|
5234
|
+
}), Ue({ _: 2 }, [
|
|
5255
5235
|
ce(m.value, (g, y) => ({
|
|
5256
5236
|
name: y,
|
|
5257
|
-
fn:
|
|
5258
|
-
(i(!0), V(se, null, ce(g, (
|
|
5259
|
-
key:
|
|
5260
|
-
}, { ref_for: !0 },
|
|
5237
|
+
fn: L(() => [
|
|
5238
|
+
(i(!0), V(se, null, ce(g, (k) => (i(), w(c, we({
|
|
5239
|
+
key: k.id
|
|
5240
|
+
}, { ref_for: !0 }, k), null, 16))), 128))
|
|
5261
5241
|
])
|
|
5262
5242
|
}))
|
|
5263
|
-
]), 1040, ["modelValue"])) : (i(),
|
|
5243
|
+
]), 1040, ["modelValue"])) : (i(), w(We(d.value), we({ key: 1 }, v.value, { onChange: r }), Ue({ _: 2 }, [
|
|
5264
5244
|
ce(m.value, (g, y) => ({
|
|
5265
5245
|
name: y,
|
|
5266
|
-
fn:
|
|
5267
|
-
(i(!0), V(se, null, ce(g, (
|
|
5268
|
-
key:
|
|
5269
|
-
}, { ref_for: !0 },
|
|
5246
|
+
fn: L(() => [
|
|
5247
|
+
(i(!0), V(se, null, ce(g, (k) => (i(), w(c, we({
|
|
5248
|
+
key: k.id
|
|
5249
|
+
}, { ref_for: !0 }, k), null, 16))), 128))
|
|
5270
5250
|
])
|
|
5271
5251
|
}))
|
|
5272
5252
|
]), 1040));
|
|
@@ -5322,7 +5302,7 @@ function $a(e, l) {
|
|
|
5322
5302
|
}, t = (a, s, u) => Ba(a, s, u);
|
|
5323
5303
|
return {
|
|
5324
5304
|
validateForm: async () => {
|
|
5325
|
-
const a =
|
|
5305
|
+
const a = P(e), s = [];
|
|
5326
5306
|
o(s, a, "");
|
|
5327
5307
|
const u = await Promise.all(s), v = {};
|
|
5328
5308
|
return u.forEach((d) => {
|
|
@@ -5374,13 +5354,13 @@ const za = /* @__PURE__ */ K({
|
|
|
5374
5354
|
a && (c = a());
|
|
5375
5355
|
const g = (b) => {
|
|
5376
5356
|
r && r(b);
|
|
5377
|
-
}, y = j(!1),
|
|
5357
|
+
}, y = j(!1), k = $(() => t.config?.gutter || 16), C = $(() => t.config?.span || 24), E = $(() => t.config?.labelWidth), Z = $(() => t.config?.labelPosition || "right"), Y = $(
|
|
5378
5358
|
() => O.length === 1 && (O[0].type === "j-tabs" || O[0].type === "j-layout" || O[0].config?.isAutoWindow)
|
|
5379
|
-
), f = Ye({}), B = j({}), O = [],
|
|
5380
|
-
let X = {},
|
|
5359
|
+
), f = Ye({}), B = j({}), O = [], I = {};
|
|
5360
|
+
let X = {}, T = {}, de = [], J = {};
|
|
5381
5361
|
const R = (b) => {
|
|
5382
5362
|
n("change", b);
|
|
5383
|
-
}, G = (b) => dt(
|
|
5363
|
+
}, G = (b) => dt(I[b]?.type) && !I[b]?.config?.notInput || I[b]?.config?.isInput, W = (b) => ["j-table", "j-input-rows", "j-input-cards"].includes(I[b]?.type || "");
|
|
5384
5364
|
let ie;
|
|
5385
5365
|
const oe = (b, D) => {
|
|
5386
5366
|
Object.keys(b).forEach((x) => {
|
|
@@ -5389,8 +5369,8 @@ const za = /* @__PURE__ */ K({
|
|
|
5389
5369
|
});
|
|
5390
5370
|
}, Ve = (b, D) => {
|
|
5391
5371
|
let x = b.id;
|
|
5392
|
-
return x || (b.config?.table && b.config?.field ? x = `${b.config.table}.${b.config.field}` : b.config?.table ? x = b.config?.table : b.config?.field && (x = b.config?.field), D &&
|
|
5393
|
-
},
|
|
5372
|
+
return x || (b.config?.table && b.config?.field ? x = `${b.config.table}.${b.config.field}` : b.config?.table ? x = b.config?.table : b.config?.field && (x = b.config?.field), D && W(D) && (x = `${D}.${x}`)), x || ct("j");
|
|
5373
|
+
}, ee = (b, D, x, z = "") => {
|
|
5394
5374
|
b.forEach((M) => {
|
|
5395
5375
|
M.id = Ve(M, z);
|
|
5396
5376
|
const q = {
|
|
@@ -5404,15 +5384,15 @@ const za = /* @__PURE__ */ K({
|
|
|
5404
5384
|
};
|
|
5405
5385
|
D.push(q);
|
|
5406
5386
|
const { children: le } = M;
|
|
5407
|
-
st(q, M, ["children", "config"]), st(q.config, M.config || {}, []),
|
|
5387
|
+
st(q, M, ["children", "config"]), st(q.config, M.config || {}, []), I[M.id] && console.warn("有重复的组件id:" + M.id), I[M.id] = q, t.readonly === !0 && (q.config.readonly = !0);
|
|
5408
5388
|
let pe = !1, Ce;
|
|
5409
|
-
z !== "" &&
|
|
5389
|
+
z !== "" && W(z) && (pe = !0, q.config = M.config || {}, q.config.parentTableId = z, Ce = I[z]?.config?.table);
|
|
5410
5390
|
const ve = q.config || {};
|
|
5411
5391
|
if (G(M.id))
|
|
5412
5392
|
!x && pe === !1 && (ve?.defaultValue === 0 ? f[M.id] = ve?.defaultValue : f[M.id] = ve?.defaultValue || void 0), ve.table && ve.field ? X[`${ve.table}_${ve.field}`.toLowerCase()] = M.id : ve.field && (pe ? X[`${Ce}_${ve.field}`.toLowerCase()] = M.id : X[`${ve.field}`.toLowerCase()] = M.id);
|
|
5413
5393
|
else if (pe && ve.field)
|
|
5414
5394
|
X[`${Ce}_${ve.field}`.toLowerCase()] = M.id;
|
|
5415
|
-
else if (
|
|
5395
|
+
else if (W(M.id))
|
|
5416
5396
|
!x && !ve.isSubTable && (f[M.id] = []), ve.table && (X[ve.table.toLowerCase() || ""] = M.id), ve.isSubTable || de.push(q);
|
|
5417
5397
|
else if (ve?.defaultValue)
|
|
5418
5398
|
f[M.id] = ve?.defaultValue;
|
|
@@ -5422,17 +5402,17 @@ const za = /* @__PURE__ */ K({
|
|
|
5422
5402
|
lt.push(St.i);
|
|
5423
5403
|
}), f[M.id] = lt;
|
|
5424
5404
|
}
|
|
5425
|
-
le && le.length > 0 &&
|
|
5405
|
+
le && le.length > 0 && ee(le, q.children, x, q.id);
|
|
5426
5406
|
});
|
|
5427
5407
|
}, he = async (b, D) => {
|
|
5428
5408
|
y.value = !1;
|
|
5429
5409
|
const x = !!D;
|
|
5430
|
-
O.splice(0, O.length), X = {},
|
|
5410
|
+
O.splice(0, O.length), X = {}, T = {}, de = [], ie = D, Ze(f), x && oe(D, ""), ee(b, O, x), J = _e(f), xe(() => {
|
|
5431
5411
|
y.value = !0, xe(() => {
|
|
5432
5412
|
tt(t.config?.codeInit, {});
|
|
5433
5413
|
});
|
|
5434
5414
|
});
|
|
5435
|
-
},
|
|
5415
|
+
}, Fe = (b, D, x) => {
|
|
5436
5416
|
const z = [];
|
|
5437
5417
|
return D.forEach((M) => {
|
|
5438
5418
|
const q = {};
|
|
@@ -5440,7 +5420,7 @@ const za = /* @__PURE__ */ K({
|
|
|
5440
5420
|
if (!x || x(le, M[le], b)) {
|
|
5441
5421
|
const pe = U(le);
|
|
5442
5422
|
if (pe?.type === "j-table")
|
|
5443
|
-
q[pe?.id || ""] =
|
|
5423
|
+
q[pe?.id || ""] = Fe(le, M[le], x);
|
|
5444
5424
|
else {
|
|
5445
5425
|
let Ce = X[`${b}_${le}`.toLowerCase()] || le;
|
|
5446
5426
|
Ce = Ce.indexOf(".") !== -1 ? Ce.split(".")[1] : Ce, q[Ce] = M[le];
|
|
@@ -5456,15 +5436,15 @@ const za = /* @__PURE__ */ K({
|
|
|
5456
5436
|
z && (nt(z) && (z = z[0] || {}), typeof z == "object" ? Object.keys(z).forEach((q) => {
|
|
5457
5437
|
if (!D || D(x, z[q], x)) {
|
|
5458
5438
|
let le = q;
|
|
5459
|
-
x !== "main" && (le = `${x}_${q}`),
|
|
5439
|
+
x !== "main" && (le = `${x}_${q}`), T[le] = x, f[X[le.toLowerCase()] || q] = z[q];
|
|
5460
5440
|
}
|
|
5461
5441
|
}) : f[x] = z);
|
|
5462
|
-
else if (
|
|
5442
|
+
else if (W(M.id || "")) {
|
|
5463
5443
|
if (!Array.isArray(z)) {
|
|
5464
5444
|
console.warn("表格数据不是数组:" + x);
|
|
5465
5445
|
return;
|
|
5466
5446
|
}
|
|
5467
|
-
z?.length > 0 ? f[X[x.toLowerCase()] || x] =
|
|
5447
|
+
z?.length > 0 ? f[X[x.toLowerCase()] || x] = Fe(x, z, D) : f[X[x.toLowerCase()] || x] = [];
|
|
5468
5448
|
} else
|
|
5469
5449
|
(!D || D(x, z, x)) && (f[X[x.toLowerCase()] || x] = z);
|
|
5470
5450
|
}), ie && Object.keys(f).forEach((x) => {
|
|
@@ -5475,29 +5455,29 @@ const za = /* @__PURE__ */ K({
|
|
|
5475
5455
|
const x = {};
|
|
5476
5456
|
return Object.keys(b).forEach((z) => {
|
|
5477
5457
|
if (z === "parentRow") return;
|
|
5478
|
-
const M =
|
|
5458
|
+
const M = I[z];
|
|
5479
5459
|
if (M) {
|
|
5480
5460
|
const q = M.config?.table, le = M.config?.field;
|
|
5481
5461
|
if (D)
|
|
5482
5462
|
le ? x[le] = b[z] : x[z] = b[z];
|
|
5483
|
-
else if (
|
|
5463
|
+
else if (W(z)) {
|
|
5484
5464
|
const pe = [];
|
|
5485
5465
|
b[z].forEach((Ce) => {
|
|
5486
5466
|
pe.push(N(Ce, !0));
|
|
5487
5467
|
}), x[q || z] = pe;
|
|
5488
5468
|
} else q && le ? (x[q] = x[q] || {}, x[q][le] = b[z]) : le && (x[le] = b[z]);
|
|
5489
|
-
} else D ? z !== "_X_ROW_KEY" && z !== "_isHover" && (x[z] = b[z]) :
|
|
5469
|
+
} else D ? z !== "_X_ROW_KEY" && z !== "_isHover" && (x[z] = b[z]) : T[z] ? (x[T[z]] = x[T[z]] || {}, x[T[z]][z.replace(`${T[z]}_`, "")] = b[z]) : x[z] = b[z];
|
|
5490
5470
|
}), x;
|
|
5491
5471
|
}, be = (b = !0) => b ? N(f) : f, ge = (b, D, x, z) => {
|
|
5492
|
-
let M =
|
|
5472
|
+
let M = I[b];
|
|
5493
5473
|
if (M == null) {
|
|
5494
5474
|
const le = b.split(".");
|
|
5495
|
-
M =
|
|
5475
|
+
M = I[le[le.length - 1]] || {};
|
|
5496
5476
|
}
|
|
5497
5477
|
if (!M)
|
|
5498
5478
|
return {};
|
|
5499
5479
|
const q = He({
|
|
5500
|
-
config:
|
|
5480
|
+
config: M.config,
|
|
5501
5481
|
getCompConfig: M.getCompConfig,
|
|
5502
5482
|
formData: f,
|
|
5503
5483
|
tableData: x,
|
|
@@ -5529,7 +5509,7 @@ const za = /* @__PURE__ */ K({
|
|
|
5529
5509
|
}
|
|
5530
5510
|
}), {
|
|
5531
5511
|
rules: q,
|
|
5532
|
-
myGridtableId:
|
|
5512
|
+
myGridtableId: W(M._componentId) ? M._componentId : ""
|
|
5533
5513
|
};
|
|
5534
5514
|
}
|
|
5535
5515
|
return { rules: [], myGridtableId: "" };
|
|
@@ -5537,15 +5517,15 @@ const za = /* @__PURE__ */ K({
|
|
|
5537
5517
|
B.value = {};
|
|
5538
5518
|
const b = await ye();
|
|
5539
5519
|
return Object.keys(b).length > 0 ? (B.value = b, g(
|
|
5540
|
-
`${h(
|
|
5520
|
+
`${h(I[Object.keys(b)[0]]?.config?.label)}:${h(b[Object.keys(b)[0]].msg)}`
|
|
5541
5521
|
), !1) : !0;
|
|
5542
5522
|
}, S = () => {
|
|
5543
5523
|
B.value = {}, Ze(f), Object.keys(J || {}).forEach((b) => {
|
|
5544
5524
|
f[b] = J[b];
|
|
5545
5525
|
});
|
|
5546
5526
|
}, U = (b) => {
|
|
5547
|
-
let D =
|
|
5548
|
-
return D === void 0 && X[b.toLowerCase()] && (D =
|
|
5527
|
+
let D = I[b];
|
|
5528
|
+
return D === void 0 && X[b.toLowerCase()] && (D = I[X[b.toLowerCase()]]), D;
|
|
5549
5529
|
}, ae = ({ id: b, i: D, value: x, type: z }) => {
|
|
5550
5530
|
if (z === "add")
|
|
5551
5531
|
f[b].push(x);
|
|
@@ -5567,7 +5547,7 @@ const za = /* @__PURE__ */ K({
|
|
|
5567
5547
|
q.push(le[M || ""]);
|
|
5568
5548
|
}), q;
|
|
5569
5549
|
}
|
|
5570
|
-
if (
|
|
5550
|
+
if (W(x.id || "")) {
|
|
5571
5551
|
const z = [];
|
|
5572
5552
|
return f[x.id || ""].forEach((M) => {
|
|
5573
5553
|
z.push(N(M, !0));
|
|
@@ -5610,12 +5590,12 @@ const za = /* @__PURE__ */ K({
|
|
|
5610
5590
|
});
|
|
5611
5591
|
}
|
|
5612
5592
|
return x;
|
|
5613
|
-
},
|
|
5593
|
+
}, Ie = async (b, D) => c?.loadViewDataList ? await c?.loadViewDataList(b, D, !1) : [], me = (b) => (b.set = ae, b.get = fe, b.setFormData = Oe, b.getFormData = be, b.getLabel = Te, b.getViewData = Ie, b.getDateNow = (D) => el(/* @__PURE__ */ new Date(), D || "YYYY-MM-DD HH:mm:ss"), b.httpGet = u || (() => {
|
|
5614
5594
|
console.log("当前状态不支持");
|
|
5615
5595
|
}), b.httpPost = v || (() => {
|
|
5616
5596
|
console.log("当前状态不支持");
|
|
5617
5597
|
}), b.loading = (D) => {
|
|
5618
|
-
|
|
5598
|
+
Pe(D);
|
|
5619
5599
|
}, b.showMsg = ({ text: D, type: x }) => {
|
|
5620
5600
|
switch (x) {
|
|
5621
5601
|
case "success":
|
|
@@ -5646,7 +5626,7 @@ const za = /* @__PURE__ */ K({
|
|
|
5646
5626
|
formData: f,
|
|
5647
5627
|
errorFields: B,
|
|
5648
5628
|
isAutoWindow: Y,
|
|
5649
|
-
gutter:
|
|
5629
|
+
gutter: k,
|
|
5650
5630
|
span: C,
|
|
5651
5631
|
labelWidth: E,
|
|
5652
5632
|
onChange: R
|
|
@@ -5660,8 +5640,8 @@ const za = /* @__PURE__ */ K({
|
|
|
5660
5640
|
setFormData: Oe,
|
|
5661
5641
|
getFormData: be
|
|
5662
5642
|
}), (b, D) => {
|
|
5663
|
-
const x =
|
|
5664
|
-
return y.value ? (i(),
|
|
5643
|
+
const x = F("j-form-item"), z = F("el-row"), M = F("el-form");
|
|
5644
|
+
return y.value ? (i(), w(M, {
|
|
5665
5645
|
key: 0,
|
|
5666
5646
|
class: ze([{ "j-block": e.isAutoSize }, "j-form"]),
|
|
5667
5647
|
"label-position": Z.value,
|
|
@@ -5670,12 +5650,12 @@ const za = /* @__PURE__ */ K({
|
|
|
5670
5650
|
onSubmit: D[0] || (D[0] = Be(() => {
|
|
5671
5651
|
}, ["prevent"]))
|
|
5672
5652
|
}, {
|
|
5673
|
-
default:
|
|
5674
|
-
Y.value ? (i(),
|
|
5653
|
+
default: L(() => [
|
|
5654
|
+
Y.value ? (i(), w(x, Tt(we({ key: 0 }, O[0])), null, 16)) : (i(), w(z, {
|
|
5675
5655
|
key: 1,
|
|
5676
|
-
gutter:
|
|
5656
|
+
gutter: k.value
|
|
5677
5657
|
}, {
|
|
5678
|
-
default:
|
|
5658
|
+
default: L(() => [
|
|
5679
5659
|
(i(), V(se, null, ce(O, (q) => Q(x, we({
|
|
5680
5660
|
key: q.id,
|
|
5681
5661
|
ref_for: !0
|
|
@@ -5751,25 +5731,25 @@ const za = /* @__PURE__ */ K({
|
|
|
5751
5731
|
return c ? c.msg : "";
|
|
5752
5732
|
});
|
|
5753
5733
|
return (c, g) => {
|
|
5754
|
-
const y =
|
|
5755
|
-
return v.value.display !== !1 && !
|
|
5734
|
+
const y = F("j-comp"), k = F("el-form-item"), C = F("el-col");
|
|
5735
|
+
return v.value.display !== !1 && !P(n) ? (i(), w(C, {
|
|
5756
5736
|
key: 0,
|
|
5757
|
-
span: v.value.span ||
|
|
5737
|
+
span: v.value.span || P(a),
|
|
5758
5738
|
style: ue({
|
|
5759
5739
|
...v.value.colStyle || {}
|
|
5760
5740
|
}),
|
|
5761
5741
|
class: ze(v.value.colClass || {})
|
|
5762
5742
|
}, {
|
|
5763
|
-
default:
|
|
5764
|
-
m.value ? (i(), k
|
|
5743
|
+
default: L(() => [
|
|
5744
|
+
m.value ? (i(), w(k, {
|
|
5765
5745
|
key: 0,
|
|
5766
|
-
label:
|
|
5746
|
+
label: P(u)(v.value.notShowLabel ? "" : v.value.label || ""),
|
|
5767
5747
|
"label-position": v.value.labelPosition,
|
|
5768
5748
|
"label-width": r.value,
|
|
5769
5749
|
required: p.value,
|
|
5770
|
-
error:
|
|
5750
|
+
error: P(u)(h.value)
|
|
5771
5751
|
}, {
|
|
5772
|
-
default:
|
|
5752
|
+
default: L(() => [
|
|
5773
5753
|
Q(y, {
|
|
5774
5754
|
id: e.id,
|
|
5775
5755
|
type: d.value,
|
|
@@ -5778,7 +5758,7 @@ const za = /* @__PURE__ */ K({
|
|
|
5778
5758
|
}, null, 8, ["id", "type", "config", "children"])
|
|
5779
5759
|
]),
|
|
5780
5760
|
_: 1
|
|
5781
|
-
}, 8, ["label", "label-position", "label-width", "required", "error"])) : (i(),
|
|
5761
|
+
}, 8, ["label", "label-position", "label-width", "required", "error"])) : (i(), w(y, {
|
|
5782
5762
|
key: 1,
|
|
5783
5763
|
id: e.id,
|
|
5784
5764
|
type: d.value,
|
|
@@ -5787,7 +5767,7 @@ const za = /* @__PURE__ */ K({
|
|
|
5787
5767
|
}, null, 8, ["id", "type", "config", "children"]))
|
|
5788
5768
|
]),
|
|
5789
5769
|
_: 1
|
|
5790
|
-
}, 8, ["span", "style", "class"])) : v.value.display !== !1 ? (i(),
|
|
5770
|
+
}, 8, ["span", "style", "class"])) : v.value.display !== !1 ? (i(), w(y, {
|
|
5791
5771
|
key: 1,
|
|
5792
5772
|
id: e.id,
|
|
5793
5773
|
type: d.value,
|
|
@@ -5796,7 +5776,7 @@ const za = /* @__PURE__ */ K({
|
|
|
5796
5776
|
}, null, 8, ["id", "type", "config", "children"])) : A("", !0);
|
|
5797
5777
|
};
|
|
5798
5778
|
}
|
|
5799
|
-
}), La = _(Ta),
|
|
5779
|
+
}), La = _(Ta), Fa = { class: "j-page" }, Ia = /* @__PURE__ */ K({
|
|
5800
5780
|
name: "JPage",
|
|
5801
5781
|
__name: "page",
|
|
5802
5782
|
props: {
|
|
@@ -5841,8 +5821,8 @@ const za = /* @__PURE__ */ K({
|
|
|
5841
5821
|
});
|
|
5842
5822
|
};
|
|
5843
5823
|
return l.schema && u(l.schema), (v, d) => {
|
|
5844
|
-
const m =
|
|
5845
|
-
return i(), V("div",
|
|
5824
|
+
const m = F("j-comp");
|
|
5825
|
+
return i(), V("div", Fa, [
|
|
5846
5826
|
(i(), V(se, null, ce(t, (r) => Q(m, {
|
|
5847
5827
|
key: r.id,
|
|
5848
5828
|
id: r.id,
|
|
@@ -5853,7 +5833,7 @@ const za = /* @__PURE__ */ K({
|
|
|
5853
5833
|
]);
|
|
5854
5834
|
};
|
|
5855
5835
|
}
|
|
5856
|
-
}), Oa = _(
|
|
5836
|
+
}), Oa = _(Ia), Ma = /* @__PURE__ */ K({
|
|
5857
5837
|
name: "JGuid",
|
|
5858
5838
|
__name: "guid",
|
|
5859
5839
|
props: {
|
|
@@ -5870,8 +5850,8 @@ const za = /* @__PURE__ */ K({
|
|
|
5870
5850
|
},
|
|
5871
5851
|
{ immediate: !0 }
|
|
5872
5852
|
), (a, s) => {
|
|
5873
|
-
const u =
|
|
5874
|
-
return i(),
|
|
5853
|
+
const u = F("el-input");
|
|
5854
|
+
return i(), w(u, {
|
|
5875
5855
|
modelValue: n.value,
|
|
5876
5856
|
"onUpdate:modelValue": s[0] || (s[0] = (v) => n.value = v),
|
|
5877
5857
|
readonly: "",
|
|
@@ -5890,7 +5870,7 @@ const za = /* @__PURE__ */ K({
|
|
|
5890
5870
|
kl,
|
|
5891
5871
|
xl,
|
|
5892
5872
|
Sl,
|
|
5893
|
-
|
|
5873
|
+
Fl,
|
|
5894
5874
|
Ml,
|
|
5895
5875
|
Jl,
|
|
5896
5876
|
Ql,
|
|
@@ -5902,7 +5882,7 @@ const za = /* @__PURE__ */ K({
|
|
|
5902
5882
|
yo,
|
|
5903
5883
|
Do,
|
|
5904
5884
|
Eo,
|
|
5905
|
-
|
|
5885
|
+
Wo,
|
|
5906
5886
|
ga,
|
|
5907
5887
|
Ho,
|
|
5908
5888
|
qo,
|
|
@@ -5929,7 +5909,7 @@ export {
|
|
|
5929
5909
|
ol as EncryptionFactory,
|
|
5930
5910
|
nn as HashingFactory,
|
|
5931
5911
|
Sl as JAutoComplete,
|
|
5932
|
-
|
|
5912
|
+
Wo as JBarcode,
|
|
5933
5913
|
Ht as JButton,
|
|
5934
5914
|
sl as JButtons,
|
|
5935
5915
|
bl as JCascaderSelect,
|
|
@@ -5955,7 +5935,7 @@ export {
|
|
|
5955
5935
|
fa as JInputCode,
|
|
5956
5936
|
po as JInputTag,
|
|
5957
5937
|
ro as JLayer,
|
|
5958
|
-
|
|
5938
|
+
Fl as JLayout,
|
|
5959
5939
|
xl as JNumber,
|
|
5960
5940
|
Oa as JPage,
|
|
5961
5941
|
fl as JRadio,
|
|
@@ -5974,7 +5954,7 @@ export {
|
|
|
5974
5954
|
un as default,
|
|
5975
5955
|
Ge as formatToDate,
|
|
5976
5956
|
el as formatToDateTime,
|
|
5977
|
-
|
|
5957
|
+
Pe as fullScreenLoading,
|
|
5978
5958
|
He as getCompConfig,
|
|
5979
5959
|
jt as getFunction,
|
|
5980
5960
|
dt as getIsInputComp,
|