@qynpm/ui 1.0.19 → 1.0.21
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/README.md +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +1 -1
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-date-picker/index.cjs +1 -1
- package/dist/qy-date-picker/index.mjs +1 -1
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +1 -1
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-preview/index.cjs +1 -1
- package/dist/qy-image-preview/index.mjs +1 -1
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- package/dist/qy-input/index.cjs +1 -1
- package/dist/qy-input/index.mjs +1 -1
- package/dist/qy-input-number/index.cjs +1 -1
- package/dist/qy-input-number/index.mjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/shared/index-COjhEDRy.cjs +1 -0
- package/dist/shared/{index-B0gL899c.mjs → index-D6KfrXN6.mjs} +211 -210
- package/package.json +1 -1
- package/dist/shared/index-6peZjVxN.cjs +0 -1
|
@@ -9,8 +9,8 @@ import { M as Pl } from "./index-B4JNbDHG.mjs";
|
|
|
9
9
|
import { T as Fl } from "./index-BWIOoRpy.mjs";
|
|
10
10
|
/*! js-cookie v3.0.5 | MIT */
|
|
11
11
|
function Ze(t) {
|
|
12
|
-
for (var
|
|
13
|
-
var b = arguments[
|
|
12
|
+
for (var g = 1; g < arguments.length; g++) {
|
|
13
|
+
var b = arguments[g];
|
|
14
14
|
for (var e in b)
|
|
15
15
|
t[e] = b[e];
|
|
16
16
|
}
|
|
@@ -27,10 +27,10 @@ var Ml = {
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
function et(t,
|
|
30
|
+
function et(t, g) {
|
|
31
31
|
function b(a, A, r) {
|
|
32
32
|
if (!(typeof document > "u")) {
|
|
33
|
-
r = Ze({},
|
|
33
|
+
r = Ze({}, g, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), a = encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
34
34
|
var d = "";
|
|
35
35
|
for (var f in r)
|
|
36
36
|
r[f] && (d += "; " + f, r[f] !== !0 && (d += "=" + r[f].split(";")[0]));
|
|
@@ -72,7 +72,7 @@ function et(t, v) {
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
attributes: { value: Object.freeze(
|
|
75
|
+
attributes: { value: Object.freeze(g) },
|
|
76
76
|
converter: { value: Object.freeze(t) }
|
|
77
77
|
}
|
|
78
78
|
);
|
|
@@ -150,7 +150,7 @@ const Ul = { class: "qy-upload__hint" }, Dl = ["placeholder", "disabled"], Kl =
|
|
|
150
150
|
"error",
|
|
151
151
|
"remove"
|
|
152
152
|
],
|
|
153
|
-
setup(t, { expose:
|
|
153
|
+
setup(t, { expose: g, emit: b }) {
|
|
154
154
|
const e = t, a = b, A = Q(null), r = Q([]), d = Q(null), f = Q(null), B = [];
|
|
155
155
|
let q = !1;
|
|
156
156
|
const D = Q(!1), I = Q([]), R = Q(0), y = Q(!1), H = Q(""), T = Q(""), N = /* @__PURE__ */ new Set(), L = Q(!1), c = Q(""), x = Q(!1);
|
|
@@ -165,13 +165,13 @@ const Ul = { class: "qy-upload__hint" }, Dl = ["placeholder", "disabled"], Kl =
|
|
|
165
165
|
), w = F(() => {
|
|
166
166
|
var n;
|
|
167
167
|
return (n = e.fileType) != null && n.length ? e.fileType.map((s) => s.toLowerCase()) : e.supportVideo ? ["mp4", "mov", "avi"] : ["jpg", "jpeg", "png", "gif", "webp"];
|
|
168
|
-
}),
|
|
168
|
+
}), v = F(() => {
|
|
169
169
|
const n = e.supportVideo ? 1 : e.limit;
|
|
170
170
|
return r.value.length >= n;
|
|
171
171
|
}), U = F(
|
|
172
172
|
() => w.value.map((n) => `.${n}`).join(",")
|
|
173
173
|
), l = F(() => ({
|
|
174
|
-
"qy-upload--reached-limit":
|
|
174
|
+
"qy-upload--reached-limit": v.value,
|
|
175
175
|
"qy-upload--disabled": e.disabled,
|
|
176
176
|
"qy-upload--video": e.supportVideo,
|
|
177
177
|
"qy-upload--without-text": !e.showText && !e.showPasteInput
|
|
@@ -443,9 +443,9 @@ const Ul = { class: "qy-upload__hint" }, Dl = ["placeholder", "disabled"], Kl =
|
|
|
443
443
|
function p() {
|
|
444
444
|
L.value = !1;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function h(n) {
|
|
447
447
|
var K;
|
|
448
|
-
if (L.value = !1, e.disabled || e.disableDrag ||
|
|
448
|
+
if (L.value = !1, e.disabled || e.disableDrag || v.value) return;
|
|
449
449
|
const s = Array.from(((K = n.dataTransfer) == null ? void 0 : K.files) || []).filter(
|
|
450
450
|
(E) => {
|
|
451
451
|
var ee;
|
|
@@ -461,11 +461,11 @@ const Ul = { class: "qy-upload__hint" }, Dl = ["placeholder", "disabled"], Kl =
|
|
|
461
461
|
}
|
|
462
462
|
return at(() => {
|
|
463
463
|
B.forEach((n) => n.abort()), B.length = 0, N.forEach((n) => URL.revokeObjectURL(n)), N.clear();
|
|
464
|
-
}),
|
|
464
|
+
}), g({
|
|
465
465
|
/** 主动打开文件选择框,供表单或快捷操作调用 */
|
|
466
466
|
openFileDialog: () => {
|
|
467
467
|
var n, s;
|
|
468
|
-
e.disabled ||
|
|
468
|
+
e.disabled || v.value || (s = (n = A.value) == null ? void 0 : n.$el.querySelector('input[type="file"]')) == null || s.click();
|
|
469
469
|
},
|
|
470
470
|
/** 获取已上传成功的文件 URL 列表 */
|
|
471
471
|
getPathList: () => r.value.filter((n) => n.status === "success").map((n) => n.url),
|
|
@@ -507,13 +507,13 @@ const Ul = { class: "qy-upload__hint" }, Dl = ["placeholder", "disabled"], Kl =
|
|
|
507
507
|
"on-remove": ye
|
|
508
508
|
}, {
|
|
509
509
|
default: k(() => [
|
|
510
|
-
|
|
510
|
+
v.value ? J("", !0) : (S(), W("div", {
|
|
511
511
|
key: 0,
|
|
512
512
|
class: Ve(["qy-upload__trigger", { "is-dragover": L.value }]),
|
|
513
513
|
onPaste: Fe,
|
|
514
514
|
onDragover: ce(Re, ["prevent"]),
|
|
515
515
|
onDragleave: ce(p, ["prevent"]),
|
|
516
|
-
onDrop: ce(
|
|
516
|
+
onDrop: ce(h, ["prevent"])
|
|
517
517
|
}, [
|
|
518
518
|
Y(K, { class: "qy-upload__icon" }, {
|
|
519
519
|
default: k(() => [
|
|
@@ -634,32 +634,33 @@ const Ul = { class: "qy-upload__hint" }, Dl = ["placeholder", "disabled"], Kl =
|
|
|
634
634
|
], 6);
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
}), zt = /* @__PURE__ */ Ae(Nl, [["__scopeId", "data-v-
|
|
637
|
+
}), zt = /* @__PURE__ */ Ae(Nl, [["__scopeId", "data-v-1e380be1"]]), Hl = {
|
|
638
638
|
w: 200,
|
|
639
639
|
h: 200,
|
|
640
640
|
q: 50
|
|
641
641
|
};
|
|
642
642
|
function Ue(t) {
|
|
643
|
-
|
|
643
|
+
const g = String(t || "").trim();
|
|
644
|
+
return g ? g.includes("ys.diansan.com") ? g.replace(/^http:\/\//, "https://").replace("ys.diansan.com", "admin.qiyinbz.com") : g : "";
|
|
644
645
|
}
|
|
645
|
-
function Wl(t,
|
|
646
|
+
function Wl(t, g = !0) {
|
|
646
647
|
const b = String(t || "").trim();
|
|
647
648
|
if (!b) return "";
|
|
648
649
|
const e = Ue(b);
|
|
649
|
-
if (!
|
|
650
|
-
const a = It(
|
|
650
|
+
if (!g) return e;
|
|
651
|
+
const a = It(g);
|
|
651
652
|
return b.includes("ys.diansan.com") ? `${e}?small=true&style=image/resize,h_${a.h},w_${a.w}` : `${e}?w=${a.w}`;
|
|
652
653
|
}
|
|
653
|
-
async function Zl(t,
|
|
654
|
+
async function Zl(t, g = {}) {
|
|
654
655
|
const b = Ue(t);
|
|
655
656
|
if (!b) throw new Error("图片地址不能为空");
|
|
656
|
-
const e =
|
|
657
|
+
const e = g.compressor ?? !0;
|
|
657
658
|
if (!e)
|
|
658
659
|
return {
|
|
659
660
|
src: b,
|
|
660
661
|
source: "original"
|
|
661
662
|
};
|
|
662
|
-
const a = Wl(t, e), A =
|
|
663
|
+
const a = Wl(t, e), A = g.loadBlob ?? Xl, r = g.compressBlob ?? Jl;
|
|
663
664
|
try {
|
|
664
665
|
return await A(a), {
|
|
665
666
|
src: a,
|
|
@@ -676,8 +677,8 @@ async function Zl(t, v = {}) {
|
|
|
676
677
|
function qt(t = {}) {
|
|
677
678
|
if (typeof document > "u") return { close() {
|
|
678
679
|
} };
|
|
679
|
-
const
|
|
680
|
-
if (!
|
|
680
|
+
const g = Gl(t.urlList, t.url);
|
|
681
|
+
if (!g.length) return { close() {
|
|
681
682
|
} };
|
|
682
683
|
const b = globalThis.__QY_IMAGE_PREVIEW_CREATE_APP__ ?? sl, e = document.createElement("div"), a = document.body.style.overflow;
|
|
683
684
|
let A = !1, r;
|
|
@@ -688,7 +689,7 @@ function qt(t = {}) {
|
|
|
688
689
|
return document.body.appendChild(e), document.body.style.overflow = "hidden", r = b({
|
|
689
690
|
setup() {
|
|
690
691
|
return () => Ye(xt, {
|
|
691
|
-
urlList:
|
|
692
|
+
urlList: g,
|
|
692
693
|
initialIndex: t.initialIndex ?? 0,
|
|
693
694
|
hideOnClickModal: t.hideOnClickModal ?? !0,
|
|
694
695
|
teleport: "body",
|
|
@@ -703,39 +704,39 @@ function It(t) {
|
|
|
703
704
|
...typeof t == "object" ? t : {}
|
|
704
705
|
};
|
|
705
706
|
}
|
|
706
|
-
function Gl(t,
|
|
707
|
-
return (Array.isArray(t) ? t : [
|
|
707
|
+
function Gl(t, g) {
|
|
708
|
+
return (Array.isArray(t) ? t : [g]).map((e) => Ue(e)).filter(Boolean);
|
|
708
709
|
}
|
|
709
710
|
async function Xl(t) {
|
|
710
|
-
const
|
|
711
|
-
if (!
|
|
712
|
-
return
|
|
711
|
+
const g = await fetch(t, { redirect: "follow" });
|
|
712
|
+
if (!g.ok) throw new Error(t);
|
|
713
|
+
return g.blob();
|
|
713
714
|
}
|
|
714
|
-
async function Jl(t,
|
|
715
|
+
async function Jl(t, g) {
|
|
715
716
|
if (typeof document > "u" || typeof Image > "u")
|
|
716
717
|
return ea(t);
|
|
717
718
|
const b = URL.createObjectURL(t);
|
|
718
719
|
try {
|
|
719
|
-
const e = await Yl(b), a = document.createElement("canvas"), A = _l(e,
|
|
720
|
-
return a.width = Math.max(1, Math.round(e.naturalWidth * A)), a.height = Math.max(1, Math.round(e.naturalHeight * A)), a.getContext("2d").drawImage(e, 0, 0, a.width, a.height), a.toDataURL(t.type || "image/jpeg",
|
|
720
|
+
const e = await Yl(b), a = document.createElement("canvas"), A = _l(e, g);
|
|
721
|
+
return a.width = Math.max(1, Math.round(e.naturalWidth * A)), a.height = Math.max(1, Math.round(e.naturalHeight * A)), a.getContext("2d").drawImage(e, 0, 0, a.width, a.height), a.toDataURL(t.type || "image/jpeg", g.q / 100);
|
|
721
722
|
} finally {
|
|
722
723
|
URL.revokeObjectURL(b);
|
|
723
724
|
}
|
|
724
725
|
}
|
|
725
726
|
function Yl(t) {
|
|
726
|
-
return new Promise((
|
|
727
|
+
return new Promise((g, b) => {
|
|
727
728
|
const e = new Image();
|
|
728
|
-
e.onload = () =>
|
|
729
|
+
e.onload = () => g(e), e.onerror = b, e.src = t;
|
|
729
730
|
});
|
|
730
731
|
}
|
|
731
|
-
function _l(t,
|
|
732
|
-
const b =
|
|
732
|
+
function _l(t, g) {
|
|
733
|
+
const b = g.w ? g.w / t.naturalWidth : 1, e = g.h ? g.h / t.naturalHeight : 1;
|
|
733
734
|
return Math.min(1, b, e);
|
|
734
735
|
}
|
|
735
736
|
function ea(t) {
|
|
736
|
-
return new Promise((
|
|
737
|
+
return new Promise((g, b) => {
|
|
737
738
|
const e = new FileReader();
|
|
738
|
-
e.onloadend = () =>
|
|
739
|
+
e.onloadend = () => g(e.result), e.onerror = b, e.readAsDataURL(t);
|
|
739
740
|
});
|
|
740
741
|
}
|
|
741
742
|
const ta = { class: "qy-image__state qy-image__state--error" }, la = { class: "qy-image__state qy-image__state--empty" }, aa = /* @__PURE__ */ me({
|
|
@@ -755,8 +756,8 @@ const ta = { class: "qy-image__state qy-image__state--error" }, la = { class: "q
|
|
|
755
756
|
initialIndex: { default: 0 }
|
|
756
757
|
},
|
|
757
758
|
emits: ["load", "error", "fallback", "preview"],
|
|
758
|
-
setup(t, { emit:
|
|
759
|
-
const b = t, e =
|
|
759
|
+
setup(t, { emit: g }) {
|
|
760
|
+
const b = t, e = g, a = Q(!1), A = Q("");
|
|
760
761
|
let r = 0;
|
|
761
762
|
const d = F(() => Ue(b.src)), f = F(() => ({
|
|
762
763
|
width: b.width ?? b.size,
|
|
@@ -858,8 +859,8 @@ const ta = { class: "qy-image__state qy-image__state--error" }, la = { class: "q
|
|
|
858
859
|
hideOnClickModal: { type: Boolean, default: !0 }
|
|
859
860
|
},
|
|
860
861
|
emits: ["update:open", "close"],
|
|
861
|
-
setup(t, { emit:
|
|
862
|
-
const b = t, e =
|
|
862
|
+
setup(t, { emit: g }) {
|
|
863
|
+
const b = t, e = g;
|
|
863
864
|
let a = "";
|
|
864
865
|
const A = F(
|
|
865
866
|
() => b.urlList.map((f) => Ue(f)).filter(Boolean)
|
|
@@ -944,7 +945,7 @@ const ta = { class: "qy-image__state qy-image__state--error" }, la = { class: "q
|
|
|
944
945
|
"remove",
|
|
945
946
|
"updateImg"
|
|
946
947
|
],
|
|
947
|
-
setup(t, { expose:
|
|
948
|
+
setup(t, { expose: g, emit: b }) {
|
|
948
949
|
const e = t, a = b, A = be(), r = Q(null), d = ["jpg", "jpeg", "png", "gif", "bmp", "webp"], f = F(
|
|
949
950
|
() => e.voucher || e.mode === "voucher"
|
|
950
951
|
), B = F(() => Array.isArray(e.modelValue) ? e.modelValue.filter(Boolean) : e.modelValue ? String(e.modelValue).split(",").filter(Boolean) : []), q = F(() => e.supportVideo ? 1 : f.value ? e.limit ?? 30 : e.limit ?? (e.multiple ? 9 : 1)), D = F(() => {
|
|
@@ -993,18 +994,18 @@ const ta = { class: "qy-image__state qy-image__state--error" }, la = { class: "q
|
|
|
993
994
|
return ((o = (l = r.value) == null ? void 0 : l.getPathList) == null ? void 0 : o.call(l)) || [];
|
|
994
995
|
}
|
|
995
996
|
const _ = F(() => Z()), w = F(() => Z());
|
|
996
|
-
function
|
|
997
|
+
function v() {
|
|
997
998
|
return Z();
|
|
998
999
|
}
|
|
999
1000
|
function U() {
|
|
1000
1001
|
const l = Z();
|
|
1001
1002
|
return e.multiple ? l : l[0] || "";
|
|
1002
1003
|
}
|
|
1003
|
-
return
|
|
1004
|
+
return g({
|
|
1004
1005
|
openFileDialog: x,
|
|
1005
1006
|
clearFiles: u,
|
|
1006
1007
|
getPathList: Z,
|
|
1007
|
-
getFullPathList:
|
|
1008
|
+
getFullPathList: v,
|
|
1008
1009
|
fullPathList: _,
|
|
1009
1010
|
pathList: w,
|
|
1010
1011
|
getValue: U
|
|
@@ -1066,7 +1067,7 @@ const ta = { class: "qy-image__state qy-image__state--error" }, la = { class: "q
|
|
|
1066
1067
|
modelModifiers: {}
|
|
1067
1068
|
}),
|
|
1068
1069
|
emits: /* @__PURE__ */ ft(["confirm", "cancel", "close", "opened", "ok"], ["update:modelValue"]),
|
|
1069
|
-
setup(t, { expose:
|
|
1070
|
+
setup(t, { expose: g, emit: b }) {
|
|
1070
1071
|
const e = t, a = nt(), A = Q(!0), r = Q(!1), d = Q(Je), f = Q(null), q = Rl({
|
|
1071
1072
|
mobile: 0,
|
|
1072
1073
|
tablet: 640,
|
|
@@ -1084,7 +1085,7 @@ const ta = { class: "qy-image__state qy-image__state--error" }, la = { class: "q
|
|
|
1084
1085
|
), T = b, N = dl(t, "modelValue");
|
|
1085
1086
|
cl(() => {
|
|
1086
1087
|
N.value && (y.value = !1);
|
|
1087
|
-
}),
|
|
1088
|
+
}), g({
|
|
1088
1089
|
handleMinimize: j
|
|
1089
1090
|
});
|
|
1090
1091
|
const L = be(), c = `qy-dialog-${Math.random().toString(36).slice(2, 11)}`, x = Q(!1), u = Q(null);
|
|
@@ -1112,13 +1113,13 @@ const ta = { class: "qy-image__state qy-image__state--error" }, la = { class: "q
|
|
|
1112
1113
|
transform: `translate(${Z.value}px, ${_.value}px)`,
|
|
1113
1114
|
willChange: "transform"
|
|
1114
1115
|
}));
|
|
1115
|
-
function
|
|
1116
|
+
function v(z) {
|
|
1116
1117
|
const X = z.target, { scrollTop: ie, scrollHeight: ye, clientHeight: we } = X;
|
|
1117
1118
|
A.value = ie <= gt, r.value = ye - (ie + we) <= gt;
|
|
1118
1119
|
}
|
|
1119
1120
|
function U() {
|
|
1120
1121
|
const z = document.querySelector(`.${c}.el-dialog`);
|
|
1121
|
-
z && (f.value = z, z.addEventListener("scroll",
|
|
1122
|
+
z && (f.value = z, z.addEventListener("scroll", v)), $(), T("opened");
|
|
1122
1123
|
}
|
|
1123
1124
|
function l() {
|
|
1124
1125
|
H.value = !H.value, $();
|
|
@@ -1175,7 +1176,7 @@ const ta = { class: "qy-image__state qy-image__state--error" }, la = { class: "q
|
|
|
1175
1176
|
}
|
|
1176
1177
|
kt(() => {
|
|
1177
1178
|
var z;
|
|
1178
|
-
(z = f.value) == null || z.removeEventListener("scroll",
|
|
1179
|
+
(z = f.value) == null || z.removeEventListener("scroll", v), x.value && window.minimizedCount--;
|
|
1179
1180
|
});
|
|
1180
1181
|
function j() {
|
|
1181
1182
|
var X;
|
|
@@ -1358,21 +1359,21 @@ const ta = { class: "qy-image__state qy-image__state--error" }, la = { class: "q
|
|
|
1358
1359
|
}
|
|
1359
1360
|
});
|
|
1360
1361
|
function ht(t) {
|
|
1361
|
-
const
|
|
1362
|
-
return
|
|
1363
|
-
imageUrl:
|
|
1364
|
-
text:
|
|
1362
|
+
const g = t == null ? void 0 : t.match(/(\[url\:(.*?)\])(.*)/);
|
|
1363
|
+
return g ? {
|
|
1364
|
+
imageUrl: g[2],
|
|
1365
|
+
text: g[3]
|
|
1365
1366
|
} : {
|
|
1366
1367
|
imageUrl: "",
|
|
1367
1368
|
text: t || ""
|
|
1368
1369
|
};
|
|
1369
1370
|
}
|
|
1370
1371
|
function va(t) {
|
|
1371
|
-
const
|
|
1372
|
-
return
|
|
1372
|
+
const g = String(t || "").match(/(\[url\:.*?\])([\s\S]*)/);
|
|
1373
|
+
return g ? g[2] : t;
|
|
1373
1374
|
}
|
|
1374
|
-
function vt(t,
|
|
1375
|
-
return
|
|
1375
|
+
function vt(t, g) {
|
|
1376
|
+
return g ? `[url:${g}]${t}` : t;
|
|
1376
1377
|
}
|
|
1377
1378
|
const ba = { class: "qy-remark-image__field" }, wa = {
|
|
1378
1379
|
key: 1,
|
|
@@ -1413,7 +1414,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1413
1414
|
uploadRequest: {}
|
|
1414
1415
|
},
|
|
1415
1416
|
emits: ["change", "update:selectValue", "select-change"],
|
|
1416
|
-
setup(t, { expose:
|
|
1417
|
+
setup(t, { expose: g, emit: b }) {
|
|
1417
1418
|
const e = t, a = b, A = be(), r = Q(null), d = Q(""), f = Q(""), B = Q(!1), q = F(
|
|
1418
1419
|
() => e.layout === "select-prefix"
|
|
1419
1420
|
), D = F(() => ({
|
|
@@ -1428,36 +1429,36 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1428
1429
|
});
|
|
1429
1430
|
de(
|
|
1430
1431
|
() => e.defaultValue,
|
|
1431
|
-
(
|
|
1432
|
-
const U = ht(
|
|
1432
|
+
(v) => {
|
|
1433
|
+
const U = ht(v || "");
|
|
1433
1434
|
d.value = U.text, f.value = U.imageUrl || e.defaultImage || "";
|
|
1434
1435
|
},
|
|
1435
1436
|
{ immediate: !0 }
|
|
1436
1437
|
), de(
|
|
1437
1438
|
() => e.defaultImage,
|
|
1438
|
-
(
|
|
1439
|
-
|
|
1439
|
+
(v) => {
|
|
1440
|
+
v !== void 0 && !ht(e.defaultValue || "").imageUrl && (f.value = v || "");
|
|
1440
1441
|
},
|
|
1441
1442
|
{ immediate: !0 }
|
|
1442
1443
|
), lt(() => {
|
|
1443
1444
|
Le(H);
|
|
1444
1445
|
}), kt(() => {
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1446
|
+
const v = y();
|
|
1447
|
+
v && v.removeEventListener("paste", x);
|
|
1447
1448
|
});
|
|
1448
1449
|
function y() {
|
|
1449
|
-
var
|
|
1450
|
-
return ((
|
|
1450
|
+
var v, U;
|
|
1451
|
+
return ((v = r.value) == null ? void 0 : v.textarea) || ((U = r.value) == null ? void 0 : U.input) || null;
|
|
1451
1452
|
}
|
|
1452
1453
|
function H() {
|
|
1453
|
-
const
|
|
1454
|
-
|
|
1454
|
+
const v = y();
|
|
1455
|
+
v && (v.removeEventListener("paste", x), v.addEventListener("paste", x));
|
|
1455
1456
|
}
|
|
1456
|
-
function T(
|
|
1457
|
-
d.value = va(
|
|
1457
|
+
function T(v) {
|
|
1458
|
+
d.value = va(v || "");
|
|
1458
1459
|
}
|
|
1459
|
-
function N(
|
|
1460
|
-
a("update:selectValue",
|
|
1460
|
+
function N(v) {
|
|
1461
|
+
a("update:selectValue", v), a("select-change", v);
|
|
1461
1462
|
}
|
|
1462
1463
|
function L() {
|
|
1463
1464
|
f.value = "", w();
|
|
@@ -1465,10 +1466,10 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1465
1466
|
function c() {
|
|
1466
1467
|
d.value = "", f.value = "", w();
|
|
1467
1468
|
}
|
|
1468
|
-
async function x(
|
|
1469
|
+
async function x(v) {
|
|
1469
1470
|
var o;
|
|
1470
|
-
const l = Array.from(((o =
|
|
1471
|
-
l && (
|
|
1471
|
+
const l = Array.from(((o = v.clipboardData) == null ? void 0 : o.files) || []).find((P) => P.type.startsWith("image/"));
|
|
1472
|
+
l && (v.preventDefault(), await u({
|
|
1472
1473
|
file: l,
|
|
1473
1474
|
onError: () => {
|
|
1474
1475
|
},
|
|
@@ -1478,27 +1479,27 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1478
1479
|
}
|
|
1479
1480
|
}));
|
|
1480
1481
|
}
|
|
1481
|
-
async function u(
|
|
1482
|
+
async function u(v) {
|
|
1482
1483
|
var U, l;
|
|
1483
|
-
if (
|
|
1484
|
+
if (v.file.size > 51200 * 1e3)
|
|
1484
1485
|
return xe.error("图片过大"), !1;
|
|
1485
1486
|
B.value = !0;
|
|
1486
1487
|
try {
|
|
1487
|
-
const o = await Z(
|
|
1488
|
-
return f.value = _(o), w(), xe.success("上传图片成功"), (U =
|
|
1488
|
+
const o = await Z(v);
|
|
1489
|
+
return f.value = _(o), w(), xe.success("上传图片成功"), (U = v.onSuccess) == null || U.call(v, o), !0;
|
|
1489
1490
|
} catch (o) {
|
|
1490
|
-
return (l =
|
|
1491
|
+
return (l = v.onError) == null || l.call(v, o), xe.error("上传失败"), !1;
|
|
1491
1492
|
} finally {
|
|
1492
1493
|
B.value = !1;
|
|
1493
1494
|
}
|
|
1494
1495
|
}
|
|
1495
|
-
async function Z(
|
|
1496
|
+
async function Z(v) {
|
|
1496
1497
|
const U = new FormData();
|
|
1497
|
-
if (U.append(e.uploadName,
|
|
1498
|
+
if (U.append(e.uploadName, v.file), e.uploadRequest)
|
|
1498
1499
|
return e.uploadRequest({
|
|
1499
|
-
file:
|
|
1500
|
+
file: v.file,
|
|
1500
1501
|
formData: U,
|
|
1501
|
-
options:
|
|
1502
|
+
options: v,
|
|
1502
1503
|
api: e.api,
|
|
1503
1504
|
tokenKey: e.tokenKey
|
|
1504
1505
|
});
|
|
@@ -1510,10 +1511,10 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1510
1511
|
headers: l ? { Authorization: `Bearer ${l}` } : void 0
|
|
1511
1512
|
})).json();
|
|
1512
1513
|
}
|
|
1513
|
-
function _(
|
|
1514
|
+
function _(v) {
|
|
1514
1515
|
var o, P;
|
|
1515
|
-
if (typeof
|
|
1516
|
-
const U =
|
|
1516
|
+
if (typeof v == "string") return v;
|
|
1517
|
+
const U = v, l = (U == null ? void 0 : U.urls) ?? ((o = U == null ? void 0 : U.data) == null ? void 0 : o.urls) ?? ((P = U == null ? void 0 : U.data) == null ? void 0 : P.url) ?? (U == null ? void 0 : U.url) ?? "";
|
|
1517
1518
|
return Array.isArray(l) ? l[0] || "" : l || "";
|
|
1518
1519
|
}
|
|
1519
1520
|
function w() {
|
|
@@ -1523,7 +1524,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1523
1524
|
f.value || ""
|
|
1524
1525
|
);
|
|
1525
1526
|
}
|
|
1526
|
-
return
|
|
1527
|
+
return g({
|
|
1527
1528
|
deleteImage: L,
|
|
1528
1529
|
// 兼容旧 remarkImage,在表单 reset/clearFrom 时清空文字和图片。
|
|
1529
1530
|
clearContent: c,
|
|
@@ -1533,7 +1534,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1533
1534
|
imageUrl: f.value || "",
|
|
1534
1535
|
value: vt(d.value || "", f.value || "")
|
|
1535
1536
|
})
|
|
1536
|
-
}), (
|
|
1537
|
+
}), (v, U) => (S(), W("div", {
|
|
1537
1538
|
class: Ve(["qy-remark-image", D.value]),
|
|
1538
1539
|
style: Me(R.value)
|
|
1539
1540
|
}, [
|
|
@@ -1630,7 +1631,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1630
1631
|
trimMode: { default: "none" }
|
|
1631
1632
|
},
|
|
1632
1633
|
emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "enter"],
|
|
1633
|
-
setup(t, { expose:
|
|
1634
|
+
setup(t, { expose: g, emit: b }) {
|
|
1634
1635
|
const e = t, a = b, A = be(), r = Q(null), d = Q(B(e.modelValue)), f = F(() => B(e.modelValue));
|
|
1635
1636
|
de(
|
|
1636
1637
|
() => e.modelValue,
|
|
@@ -1693,7 +1694,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1693
1694
|
var o, P;
|
|
1694
1695
|
(P = (o = r.value) == null ? void 0 : o.clear) == null || P.call(o);
|
|
1695
1696
|
}
|
|
1696
|
-
function
|
|
1697
|
+
function v() {
|
|
1697
1698
|
var o, P;
|
|
1698
1699
|
(P = (o = r.value) == null ? void 0 : o.resizeTextarea) == null || P.call(o);
|
|
1699
1700
|
}
|
|
@@ -1705,13 +1706,13 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1705
1706
|
var o;
|
|
1706
1707
|
return ((o = r.value) == null ? void 0 : o.textarea) || null;
|
|
1707
1708
|
}
|
|
1708
|
-
return
|
|
1709
|
+
return g({
|
|
1709
1710
|
// 暴露 Element Plus 常用输入框方法,方便业务弹窗做聚焦、选中和 textarea 重算高度。
|
|
1710
1711
|
focus: u,
|
|
1711
1712
|
blur: Z,
|
|
1712
1713
|
select: _,
|
|
1713
1714
|
clear: w,
|
|
1714
|
-
resizeTextarea:
|
|
1715
|
+
resizeTextarea: v,
|
|
1715
1716
|
getNativeInput: U,
|
|
1716
1717
|
getTextarea: l
|
|
1717
1718
|
}), (o, P) => (S(), le(C(Qe), fe({
|
|
@@ -1775,7 +1776,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1775
1776
|
size: { default: void 0 }
|
|
1776
1777
|
},
|
|
1777
1778
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
1778
|
-
setup(t, { expose:
|
|
1779
|
+
setup(t, { expose: g, emit: b }) {
|
|
1779
1780
|
const e = b, a = be(), A = Q(null);
|
|
1780
1781
|
function r(I) {
|
|
1781
1782
|
e("update:modelValue", I);
|
|
@@ -1797,7 +1798,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1797
1798
|
var I, R;
|
|
1798
1799
|
(R = (I = A.value) == null ? void 0 : I.blur) == null || R.call(I);
|
|
1799
1800
|
}
|
|
1800
|
-
return
|
|
1801
|
+
return g({
|
|
1801
1802
|
focus: q,
|
|
1802
1803
|
blur: D
|
|
1803
1804
|
}), (I, R) => (S(), le(C(Sl), fe({
|
|
@@ -1835,7 +1836,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1835
1836
|
emptyValue: { default: "" }
|
|
1836
1837
|
},
|
|
1837
1838
|
emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "enter"],
|
|
1838
|
-
setup(t, { expose:
|
|
1839
|
+
setup(t, { expose: g, emit: b }) {
|
|
1839
1840
|
const e = t, a = b, A = be(), r = Q(null), d = Q(B(e.modelValue)), f = F(() => B(e.modelValue));
|
|
1840
1841
|
de(
|
|
1841
1842
|
() => e.modelValue,
|
|
@@ -1928,7 +1929,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1928
1929
|
var l, o;
|
|
1929
1930
|
(o = (l = r.value) == null ? void 0 : l.select) == null || o.call(l);
|
|
1930
1931
|
}
|
|
1931
|
-
function
|
|
1932
|
+
function v() {
|
|
1932
1933
|
var l, o;
|
|
1933
1934
|
(o = (l = r.value) == null ? void 0 : l.clear) == null || o.call(l);
|
|
1934
1935
|
}
|
|
@@ -1936,11 +1937,11 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
1936
1937
|
var l;
|
|
1937
1938
|
return ((l = r.value) == null ? void 0 : l.input) || null;
|
|
1938
1939
|
}
|
|
1939
|
-
return
|
|
1940
|
+
return g({
|
|
1940
1941
|
focus: Z,
|
|
1941
1942
|
blur: _,
|
|
1942
1943
|
select: w,
|
|
1943
|
-
clear:
|
|
1944
|
+
clear: v,
|
|
1944
1945
|
getNativeInput: U
|
|
1945
1946
|
}), (l, o) => (S(), le(C(Qe), fe({
|
|
1946
1947
|
ref_key: "inputRef",
|
|
@@ -2011,7 +2012,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2011
2012
|
normalizeRangeEndTime: { type: Boolean, default: !1 }
|
|
2012
2013
|
},
|
|
2013
2014
|
emits: ["update:modelValue", "change", "clear", "calendar-change", "panel-change", "visible-change", "focus", "blur"],
|
|
2014
|
-
setup(t, { expose:
|
|
2015
|
+
setup(t, { expose: g, emit: b }) {
|
|
2015
2016
|
const e = t, a = b, A = be(), r = Q(null), d = F(
|
|
2016
2017
|
() => ["qy-date-picker__popper", e.popperClass].filter(Boolean).join(" ")
|
|
2017
2018
|
);
|
|
@@ -2019,8 +2020,8 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2019
2020
|
return Array.isArray(w);
|
|
2020
2021
|
}
|
|
2021
2022
|
function B(w) {
|
|
2022
|
-
const
|
|
2023
|
-
return
|
|
2023
|
+
const v = new Date(w);
|
|
2024
|
+
return v.getHours() === 0 && v.getMinutes() === 0 && v.getSeconds() === 0 && v.setHours(23, 59, 59, 0), v;
|
|
2024
2025
|
}
|
|
2025
2026
|
function q(w) {
|
|
2026
2027
|
return /\s00:00:00$/.test(w) ? w.replace(/\s00:00:00$/, " 23:59:59") : /T00:00:00(?:\.000)?(?:Z|[+-]\d{2}:?\d{2})?$/.test(w) ? w.replace(
|
|
@@ -2031,8 +2032,8 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2031
2032
|
function D(w) {
|
|
2032
2033
|
if (!e.normalizeRangeEndTime || !f(w) || w.length < 2)
|
|
2033
2034
|
return w;
|
|
2034
|
-
const
|
|
2035
|
-
return U instanceof Date ?
|
|
2035
|
+
const v = [...w], U = v[1];
|
|
2036
|
+
return U instanceof Date ? v[1] = B(U) : typeof U == "string" && (v[1] = q(U)), v;
|
|
2036
2037
|
}
|
|
2037
2038
|
function I(w) {
|
|
2038
2039
|
a("update:modelValue", D(w));
|
|
@@ -2046,8 +2047,8 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2046
2047
|
function H(w) {
|
|
2047
2048
|
a("calendar-change", w);
|
|
2048
2049
|
}
|
|
2049
|
-
function T(w,
|
|
2050
|
-
a("panel-change", w,
|
|
2050
|
+
function T(w, v, U) {
|
|
2051
|
+
a("panel-change", w, v, U);
|
|
2051
2052
|
}
|
|
2052
2053
|
function N(w) {
|
|
2053
2054
|
a("visible-change", w);
|
|
@@ -2059,27 +2060,27 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2059
2060
|
a("blur", w);
|
|
2060
2061
|
}
|
|
2061
2062
|
function x() {
|
|
2062
|
-
var w,
|
|
2063
|
-
(
|
|
2063
|
+
var w, v;
|
|
2064
|
+
(v = (w = r.value) == null ? void 0 : w.focus) == null || v.call(w);
|
|
2064
2065
|
}
|
|
2065
2066
|
function u() {
|
|
2066
|
-
var w,
|
|
2067
|
-
(
|
|
2067
|
+
var w, v;
|
|
2068
|
+
(v = (w = r.value) == null ? void 0 : w.blur) == null || v.call(w);
|
|
2068
2069
|
}
|
|
2069
2070
|
function Z() {
|
|
2070
|
-
var w,
|
|
2071
|
-
(
|
|
2071
|
+
var w, v;
|
|
2072
|
+
(v = (w = r.value) == null ? void 0 : w.handleOpen) == null || v.call(w);
|
|
2072
2073
|
}
|
|
2073
2074
|
function _() {
|
|
2074
|
-
var w,
|
|
2075
|
-
(
|
|
2075
|
+
var w, v;
|
|
2076
|
+
(v = (w = r.value) == null ? void 0 : w.handleClose) == null || v.call(w);
|
|
2076
2077
|
}
|
|
2077
|
-
return
|
|
2078
|
+
return g({
|
|
2078
2079
|
focus: x,
|
|
2079
2080
|
blur: u,
|
|
2080
2081
|
handleOpen: Z,
|
|
2081
2082
|
handleClose: _
|
|
2082
|
-
}), (w,
|
|
2083
|
+
}), (w, v) => (S(), le(C(xl), fe({
|
|
2083
2084
|
ref_key: "datePickerRef",
|
|
2084
2085
|
ref: r
|
|
2085
2086
|
}, C(A), {
|
|
@@ -2122,7 +2123,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2122
2123
|
falseValue: { type: [String, Number, Boolean], default: !1 }
|
|
2123
2124
|
},
|
|
2124
2125
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
2125
|
-
setup(t, { expose:
|
|
2126
|
+
setup(t, { expose: g, emit: b }) {
|
|
2126
2127
|
const e = t, a = b, A = be(), r = Q(null), d = F(() => typeof e.trueValue == "boolean" && typeof e.falseValue == "boolean" ? {} : {
|
|
2127
2128
|
trueValue: e.trueValue,
|
|
2128
2129
|
falseValue: e.falseValue
|
|
@@ -2145,7 +2146,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2145
2146
|
function R() {
|
|
2146
2147
|
return r.value;
|
|
2147
2148
|
}
|
|
2148
|
-
return
|
|
2149
|
+
return g({
|
|
2149
2150
|
getCheckboxInstance: R
|
|
2150
2151
|
}), (y, H) => (S(), le(C(Vl), fe({
|
|
2151
2152
|
ref_key: "checkboxRef",
|
|
@@ -2184,7 +2185,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2184
2185
|
filterMethod: { type: Function, default: void 0 }
|
|
2185
2186
|
},
|
|
2186
2187
|
emits: ["update:modelValue", "input", "change", "select", "focus", "blur", "clear"],
|
|
2187
|
-
setup(t, { expose:
|
|
2188
|
+
setup(t, { expose: g, emit: b }) {
|
|
2188
2189
|
const e = t, a = b, A = be(), r = Q(null), d = F(
|
|
2189
2190
|
() => ["qy-autocomplete__popper", e.popperClass].filter(Boolean).join(" ")
|
|
2190
2191
|
), f = F(() => {
|
|
@@ -2227,7 +2228,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2227
2228
|
var c, x;
|
|
2228
2229
|
(x = (c = r.value) == null ? void 0 : c.blur) == null || x.call(c);
|
|
2229
2230
|
}
|
|
2230
|
-
return
|
|
2231
|
+
return g({
|
|
2231
2232
|
querySearch: B,
|
|
2232
2233
|
focus: N,
|
|
2233
2234
|
blur: L
|
|
@@ -2270,7 +2271,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2270
2271
|
border: { type: Boolean, default: !1 }
|
|
2271
2272
|
},
|
|
2272
2273
|
emits: ["update:modelValue", "change"],
|
|
2273
|
-
setup(t, { expose:
|
|
2274
|
+
setup(t, { expose: g, emit: b }) {
|
|
2274
2275
|
const e = t, a = b, A = be(), r = Q(null), d = F(
|
|
2275
2276
|
() => e.type === "button" ? Cl : $l
|
|
2276
2277
|
), f = F(
|
|
@@ -2304,7 +2305,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2304
2305
|
function R() {
|
|
2305
2306
|
return r.value;
|
|
2306
2307
|
}
|
|
2307
|
-
return
|
|
2308
|
+
return g({
|
|
2308
2309
|
getRadioGroupInstance: R
|
|
2309
2310
|
}), (y, H) => (S(), le(C(Bl), fe({
|
|
2310
2311
|
ref_key: "radioGroupRef",
|
|
@@ -2362,7 +2363,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2362
2363
|
popperClass: { default: "" }
|
|
2363
2364
|
},
|
|
2364
2365
|
emits: ["update:modelValue", "change", "clear", "visible-change", "focus", "blur"],
|
|
2365
|
-
setup(t, { expose:
|
|
2366
|
+
setup(t, { expose: g, emit: b }) {
|
|
2366
2367
|
const e = t, a = b, A = be(), r = nt(), d = Q(null), f = F(
|
|
2367
2368
|
() => ["qy-select__popper", e.popperClass].filter(Boolean).join(" ")
|
|
2368
2369
|
), B = F(
|
|
@@ -2425,7 +2426,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2425
2426
|
var u, Z;
|
|
2426
2427
|
(Z = (u = d.value) == null ? void 0 : u.blur) == null || Z.call(u);
|
|
2427
2428
|
}
|
|
2428
|
-
return
|
|
2429
|
+
return g({
|
|
2429
2430
|
// 仅暴露业务常用焦点方法,复杂下拉行为仍交给 Element Plus 自身处理。
|
|
2430
2431
|
focus: c,
|
|
2431
2432
|
blur: x
|
|
@@ -2526,7 +2527,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2526
2527
|
commitOnBlur: { type: Boolean, default: !1 }
|
|
2527
2528
|
},
|
|
2528
2529
|
emits: ["update:modelValue", "change", "clear", "visible-change", "focus", "blur", "options-change", "loading-change", "error"],
|
|
2529
|
-
setup(t, { expose:
|
|
2530
|
+
setup(t, { expose: g, emit: b }) {
|
|
2530
2531
|
const e = t, a = b, A = be(), r = Q(null), d = Q([]), f = Q(/* @__PURE__ */ new Map()), B = Q(!1), q = Q(""), D = Q("");
|
|
2531
2532
|
let I = 0, R = null;
|
|
2532
2533
|
const y = F(() => e.loading || B.value), H = Q(!1), T = F(() => q.value !== ""), N = F(() => {
|
|
@@ -2587,7 +2588,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2587
2588
|
function w() {
|
|
2588
2589
|
H.value || (H.value = !0, _(""));
|
|
2589
2590
|
}
|
|
2590
|
-
function
|
|
2591
|
+
function v(V) {
|
|
2591
2592
|
const ae = X(V);
|
|
2592
2593
|
D.value = ae, I += 1, ie(ae), R && (clearTimeout(R), R = null), R = setTimeout(() => {
|
|
2593
2594
|
_(ae);
|
|
@@ -2641,7 +2642,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2641
2642
|
}
|
|
2642
2643
|
return at(() => {
|
|
2643
2644
|
R && clearTimeout(R);
|
|
2644
|
-
}),
|
|
2645
|
+
}), g({
|
|
2645
2646
|
// 暴露远程选择常用控制方法,供弹窗打开后聚焦或请求失败后重试。
|
|
2646
2647
|
focus: ye,
|
|
2647
2648
|
blur: we,
|
|
@@ -2672,7 +2673,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2672
2673
|
"popper-class": t.popperClass,
|
|
2673
2674
|
remote: "",
|
|
2674
2675
|
"remote-show-suffix": t.remoteShowSuffix,
|
|
2675
|
-
"remote-method":
|
|
2676
|
+
"remote-method": v,
|
|
2676
2677
|
loading: y.value,
|
|
2677
2678
|
"onUpdate:modelValue": o,
|
|
2678
2679
|
onChange: P,
|
|
@@ -2749,7 +2750,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2749
2750
|
fitInputWidth: { type: Boolean, default: !0 }
|
|
2750
2751
|
},
|
|
2751
2752
|
emits: ["update:modelValue", "search", "clear", "input", "change", "focus", "blur", "enter", "select", "visible-change", "suggestions-change", "error"],
|
|
2752
|
-
setup(t, { expose:
|
|
2753
|
+
setup(t, { expose: g, emit: b }) {
|
|
2753
2754
|
const e = t, a = b, A = be(), r = Q(null), d = Q(I(e.modelValue)), f = F(() => I(e.modelValue)), B = F(
|
|
2754
2755
|
() => ["qy-search-input__popper", e.popperClass].filter(Boolean).join(" ")
|
|
2755
2756
|
), q = F(() => I(e.modelValue)), D = Q("");
|
|
@@ -2833,7 +2834,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2833
2834
|
var i, O;
|
|
2834
2835
|
D.value && ((O = (i = r.value) == null ? void 0 : i.getData) == null || O.call(i, D.value));
|
|
2835
2836
|
}
|
|
2836
|
-
function
|
|
2837
|
+
function v(i) {
|
|
2837
2838
|
const O = H(i);
|
|
2838
2839
|
T(O);
|
|
2839
2840
|
}
|
|
@@ -2899,7 +2900,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2899
2900
|
var i, O;
|
|
2900
2901
|
(O = (i = r.value) == null ? void 0 : i.close) == null || O.call(i);
|
|
2901
2902
|
}
|
|
2902
|
-
return
|
|
2903
|
+
return g({
|
|
2903
2904
|
// 暴露搜索框常用控制方法,供弹窗打开后聚焦或失败后重试建议项。
|
|
2904
2905
|
focus: ye,
|
|
2905
2906
|
blur: we,
|
|
@@ -2926,7 +2927,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
2926
2927
|
"popper-class": B.value,
|
|
2927
2928
|
"append-to": t.appendTo,
|
|
2928
2929
|
"value-key": "value",
|
|
2929
|
-
"onUpdate:modelValue":
|
|
2930
|
+
"onUpdate:modelValue": v,
|
|
2930
2931
|
onInput: U,
|
|
2931
2932
|
onChange: l,
|
|
2932
2933
|
onFocus: o,
|
|
@@ -3028,7 +3029,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3028
3029
|
trimMode: { default: "blur" }
|
|
3029
3030
|
},
|
|
3030
3031
|
emits: ["update:modelValue", "search", "clear", "normalize", "enter", "select", "error", "success"],
|
|
3031
|
-
setup(t, { expose:
|
|
3032
|
+
setup(t, { expose: g, emit: b }) {
|
|
3032
3033
|
const e = t, a = b, A = be(), r = Q(null), d = Q(!1), f = F(() => e.statusText || ""), B = F(() => e.loading || d.value);
|
|
3033
3034
|
function q(l) {
|
|
3034
3035
|
return l == null ? "" : String(l);
|
|
@@ -3096,7 +3097,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3096
3097
|
var l, o;
|
|
3097
3098
|
(o = (l = r.value) == null ? void 0 : l.blur) == null || o.call(l);
|
|
3098
3099
|
}
|
|
3099
|
-
function
|
|
3100
|
+
function v() {
|
|
3100
3101
|
var l, o;
|
|
3101
3102
|
(o = (l = r.value) == null ? void 0 : l.select) == null || o.call(l);
|
|
3102
3103
|
}
|
|
@@ -3104,10 +3105,10 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3104
3105
|
var l, o;
|
|
3105
3106
|
(o = (l = r.value) == null ? void 0 : l.clear) == null || o.call(l);
|
|
3106
3107
|
}
|
|
3107
|
-
return
|
|
3108
|
+
return g({
|
|
3108
3109
|
focus: _,
|
|
3109
3110
|
blur: w,
|
|
3110
|
-
select:
|
|
3111
|
+
select: v,
|
|
3111
3112
|
clear: U,
|
|
3112
3113
|
extractQuoteOrderCode: R,
|
|
3113
3114
|
normalizeQuoteOrderCode: y
|
|
@@ -3219,7 +3220,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3219
3220
|
popperClass: { default: "" }
|
|
3220
3221
|
},
|
|
3221
3222
|
emits: ["update:modelValue", "change", "clear", "visible-change", "focus", "blur"],
|
|
3222
|
-
setup(t, { expose:
|
|
3223
|
+
setup(t, { expose: g, emit: b }) {
|
|
3223
3224
|
const e = t, a = b, A = be(), r = Q(null), d = F(
|
|
3224
3225
|
() => ["qy-tree-select__popper", e.popperClass].filter(Boolean).join(" ")
|
|
3225
3226
|
), f = F(() => ({
|
|
@@ -3272,7 +3273,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3272
3273
|
var c, x;
|
|
3273
3274
|
(x = (c = r.value) == null ? void 0 : c.blur) == null || x.call(c);
|
|
3274
3275
|
}
|
|
3275
|
-
return
|
|
3276
|
+
return g({
|
|
3276
3277
|
// 暴露最常用的焦点控制;复杂树选择能力仍通过 attrs 透传给 Element Plus。
|
|
3277
3278
|
focus: N,
|
|
3278
3279
|
blur: L
|
|
@@ -3389,7 +3390,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3389
3390
|
pageSizes: { default: () => [10, 20, 50, 100] }
|
|
3390
3391
|
},
|
|
3391
3392
|
emits: ["update:modelValue", "selection-change", "confirm", "submit", "cancel", "close", "append", "loaded"],
|
|
3392
|
-
setup(t, { expose:
|
|
3393
|
+
setup(t, { expose: g, emit: b }) {
|
|
3393
3394
|
const e = t, a = b, A = be(), r = nt(), d = yl(), f = Q(null), B = Q([]), q = Q([]), D = Q([]), I = Q(!1), R = Q(0), y = Q(!1), H = Q(""), T = _e({
|
|
3394
3395
|
category: [],
|
|
3395
3396
|
type: "",
|
|
@@ -3402,7 +3403,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3402
3403
|
...e.typeSelectProps
|
|
3403
3404
|
})), Z = F(() => e.tableProps || {}), _ = F(
|
|
3404
3405
|
() => e.showSearch || !!A["search-visible"]
|
|
3405
|
-
), w = F(() => e.showAppend || e.append),
|
|
3406
|
+
), w = F(() => e.showAppend || e.append), v = F(
|
|
3406
3407
|
() => w.value || !!r.toolbar || !!r.bar
|
|
3407
3408
|
), U = F(() => e.fetchMethod || e.query), l = F(() => o() ? e.modelValue : e.selected);
|
|
3408
3409
|
function o() {
|
|
@@ -3434,15 +3435,15 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3434
3435
|
async function oe() {
|
|
3435
3436
|
const p = e.categoryFetchMethod || (typeof e.category == "function" ? e.category : null);
|
|
3436
3437
|
if (!p) return;
|
|
3437
|
-
const
|
|
3438
|
-
D.value = ye(
|
|
3438
|
+
const h = await p();
|
|
3439
|
+
D.value = ye(h);
|
|
3439
3440
|
}
|
|
3440
3441
|
async function m() {
|
|
3441
3442
|
if (U.value) {
|
|
3442
3443
|
I.value = !0;
|
|
3443
3444
|
try {
|
|
3444
|
-
const p = await U.value($e()),
|
|
3445
|
-
return B.value = te, R.value = n, a("loaded", te), ne(),
|
|
3445
|
+
const p = await U.value($e()), h = e.responseFormatter ? await e.responseFormatter(p) : p, { rows: te, total: n } = ie(h);
|
|
3446
|
+
return B.value = te, R.value = n, a("loaded", te), ne(), h;
|
|
3446
3447
|
} finally {
|
|
3447
3448
|
I.value = !1;
|
|
3448
3449
|
}
|
|
@@ -3470,34 +3471,34 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3470
3471
|
function ie(p) {
|
|
3471
3472
|
if (Array.isArray(p))
|
|
3472
3473
|
return { rows: p, total: p.length };
|
|
3473
|
-
const
|
|
3474
|
-
if (Array.isArray(
|
|
3475
|
-
return { rows:
|
|
3476
|
-
const te = (p == null ? void 0 : p.records) || (p == null ? void 0 : p.rows) || (
|
|
3474
|
+
const h = p == null ? void 0 : p.data;
|
|
3475
|
+
if (Array.isArray(h))
|
|
3476
|
+
return { rows: h, total: (p == null ? void 0 : p.total) ?? h.length };
|
|
3477
|
+
const te = (p == null ? void 0 : p.records) || (p == null ? void 0 : p.rows) || (h == null ? void 0 : h.records) || [], n = (p == null ? void 0 : p.total) ?? (h == null ? void 0 : h.total) ?? te.length;
|
|
3477
3478
|
return { rows: te, total: n };
|
|
3478
3479
|
}
|
|
3479
3480
|
function ye(p) {
|
|
3480
|
-
const
|
|
3481
|
-
if (!Array.isArray(
|
|
3481
|
+
const h = (p == null ? void 0 : p.data) ?? p;
|
|
3482
|
+
if (!Array.isArray(h)) return [];
|
|
3482
3483
|
if (typeof e.categoryFormatter == "function")
|
|
3483
|
-
return e.categoryFormatter(
|
|
3484
|
+
return e.categoryFormatter(h);
|
|
3484
3485
|
if (Array.isArray(e.categoryFormatter)) {
|
|
3485
3486
|
const [te, n] = e.categoryFormatter;
|
|
3486
|
-
return
|
|
3487
|
+
return h.map((s) => ({
|
|
3487
3488
|
...s,
|
|
3488
3489
|
label: s[te],
|
|
3489
3490
|
value: s[n],
|
|
3490
3491
|
children: Array.isArray(s.children) ? we(s.children, te, n) : s.children
|
|
3491
3492
|
}));
|
|
3492
3493
|
}
|
|
3493
|
-
return
|
|
3494
|
+
return h;
|
|
3494
3495
|
}
|
|
3495
|
-
function we(p,
|
|
3496
|
+
function we(p, h, te) {
|
|
3496
3497
|
return p.map((n) => ({
|
|
3497
3498
|
...n,
|
|
3498
|
-
label: n[
|
|
3499
|
+
label: n[h],
|
|
3499
3500
|
value: n[te],
|
|
3500
|
-
children: Array.isArray(n.children) ? we(n.children,
|
|
3501
|
+
children: Array.isArray(n.children) ? we(n.children, h, te) : n.children
|
|
3501
3502
|
}));
|
|
3502
3503
|
}
|
|
3503
3504
|
function $e() {
|
|
@@ -3511,10 +3512,10 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3511
3512
|
return Array.isArray(p) ? p : p ? [p] : [];
|
|
3512
3513
|
}
|
|
3513
3514
|
function ae(p) {
|
|
3514
|
-
var
|
|
3515
|
+
var h, te;
|
|
3515
3516
|
if (N.value !== "none") {
|
|
3516
3517
|
if (N.value === "single") {
|
|
3517
|
-
q.value = [p], (
|
|
3518
|
+
q.value = [p], (h = f.value) == null || h.setCurrentRow(p), Oe();
|
|
3518
3519
|
return;
|
|
3519
3520
|
}
|
|
3520
3521
|
Ce(p) && ((te = f.value) == null || te.toggleRowSelection(p, !Be(p)));
|
|
@@ -3522,9 +3523,9 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3522
3523
|
}
|
|
3523
3524
|
function i(p) {
|
|
3524
3525
|
if (N.value !== "multiple") return;
|
|
3525
|
-
const
|
|
3526
|
+
const h = new Set(B.value.map(pe)), te = new Set(p.map(pe));
|
|
3526
3527
|
q.value = q.value.filter(
|
|
3527
|
-
(n) => !
|
|
3528
|
+
(n) => !h.has(pe(n)) || te.has(pe(n))
|
|
3528
3529
|
), p.forEach((n) => {
|
|
3529
3530
|
Be(n) || q.value.push(n);
|
|
3530
3531
|
}), Oe();
|
|
@@ -3534,34 +3535,34 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3534
3535
|
q.value = q.value.filter(
|
|
3535
3536
|
(s) => pe(s) !== pe(p)
|
|
3536
3537
|
);
|
|
3537
|
-
const
|
|
3538
|
-
|
|
3538
|
+
const h = B.value.find((s) => pe(s) === pe(p));
|
|
3539
|
+
h && (N.value === "multiple" ? (te = f.value) == null || te.toggleRowSelection(h, !1) : (n = f.value) == null || n.setCurrentRow()), Oe();
|
|
3539
3540
|
}
|
|
3540
3541
|
function ne() {
|
|
3541
3542
|
Le(() => {
|
|
3542
3543
|
var p;
|
|
3543
3544
|
if (f.value) {
|
|
3544
3545
|
if (N.value === "single") {
|
|
3545
|
-
const [
|
|
3546
|
-
(n) =>
|
|
3546
|
+
const [h] = q.value, te = B.value.find(
|
|
3547
|
+
(n) => h && pe(n) === pe(h)
|
|
3547
3548
|
);
|
|
3548
3549
|
(p = f.value) == null || p.setCurrentRow(te);
|
|
3549
3550
|
return;
|
|
3550
3551
|
}
|
|
3551
|
-
N.value === "multiple" && B.value.forEach((
|
|
3552
|
+
N.value === "multiple" && B.value.forEach((h) => {
|
|
3552
3553
|
var te;
|
|
3553
|
-
(te = f.value) == null || te.toggleRowSelection(
|
|
3554
|
+
(te = f.value) == null || te.toggleRowSelection(h, Be(h));
|
|
3554
3555
|
});
|
|
3555
3556
|
}
|
|
3556
3557
|
});
|
|
3557
3558
|
}
|
|
3558
3559
|
function Ce(p) {
|
|
3559
3560
|
var te;
|
|
3560
|
-
const
|
|
3561
|
-
return typeof
|
|
3561
|
+
const h = (te = Z.value) == null ? void 0 : te.selectable;
|
|
3562
|
+
return typeof h == "function" ? h(p) !== !1 : !0;
|
|
3562
3563
|
}
|
|
3563
3564
|
function Be(p) {
|
|
3564
|
-
return q.value.some((
|
|
3565
|
+
return q.value.some((h) => pe(h) === pe(p));
|
|
3565
3566
|
}
|
|
3566
3567
|
function pe(p) {
|
|
3567
3568
|
return He(p, L.value);
|
|
@@ -3569,9 +3570,9 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3569
3570
|
function De(p) {
|
|
3570
3571
|
return He(p, c.value) ?? pe(p);
|
|
3571
3572
|
}
|
|
3572
|
-
function He(p,
|
|
3573
|
-
if (!(!p || !
|
|
3574
|
-
return
|
|
3573
|
+
function He(p, h) {
|
|
3574
|
+
if (!(!p || !h))
|
|
3575
|
+
return h.split(".").reduce((te, n) => te == null ? void 0 : te[n], p);
|
|
3575
3576
|
}
|
|
3576
3577
|
function Oe() {
|
|
3577
3578
|
const p = Re(q.value);
|
|
@@ -3585,9 +3586,9 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3585
3586
|
q.value = Re(l.value), a("cancel"), a("close");
|
|
3586
3587
|
}
|
|
3587
3588
|
async function Xe() {
|
|
3588
|
-
var
|
|
3589
|
+
var h;
|
|
3589
3590
|
const p = JSON.stringify(q.value);
|
|
3590
|
-
await ((
|
|
3591
|
+
await ((h = navigator.clipboard) == null ? void 0 : h.writeText(p)), xe.success("复制成功");
|
|
3591
3592
|
}
|
|
3592
3593
|
function Fe() {
|
|
3593
3594
|
try {
|
|
@@ -3596,17 +3597,17 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3596
3597
|
xe.error("粘贴内容需要是数组");
|
|
3597
3598
|
return;
|
|
3598
3599
|
}
|
|
3599
|
-
p.forEach((
|
|
3600
|
-
Be(
|
|
3600
|
+
p.forEach((h) => {
|
|
3601
|
+
Be(h) || q.value.push(h);
|
|
3601
3602
|
}), y.value = !1, Oe(), ne();
|
|
3602
3603
|
} catch (p) {
|
|
3603
3604
|
xe.error(`粘贴错误: ${(p == null ? void 0 : p.message) || "内容格式错误"}`);
|
|
3604
3605
|
}
|
|
3605
3606
|
}
|
|
3606
3607
|
function Re(p = []) {
|
|
3607
|
-
return p.map((
|
|
3608
|
+
return p.map((h) => ({ ...h }));
|
|
3608
3609
|
}
|
|
3609
|
-
return
|
|
3610
|
+
return g({
|
|
3610
3611
|
search: $,
|
|
3611
3612
|
handleSearch: m,
|
|
3612
3613
|
handleQuerySearch: $,
|
|
@@ -3614,7 +3615,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3614
3615
|
getTableRef: () => f.value,
|
|
3615
3616
|
getTableData: () => B.value,
|
|
3616
3617
|
getSelection: () => Re(q.value)
|
|
3617
|
-
}), (p,
|
|
3618
|
+
}), (p, h) => {
|
|
3618
3619
|
const te = il;
|
|
3619
3620
|
return S(), le(tt, fe(C(A), {
|
|
3620
3621
|
"model-value": t.open,
|
|
@@ -3633,7 +3634,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3633
3634
|
M(p.$slots, "side", {}, void 0, !0),
|
|
3634
3635
|
G("div", Ga, [
|
|
3635
3636
|
t.showSelected ? (S(), W("div", Xa, [
|
|
3636
|
-
|
|
3637
|
+
h[12] || (h[12] = G("span", { class: "qy-selection-dialog__selected-label" }, "已选项", -1)),
|
|
3637
3638
|
G("div", Ja, [
|
|
3638
3639
|
(S(!0), W(Ie, null, je(q.value, (n) => (S(), le(C(yt), {
|
|
3639
3640
|
key: pe(n),
|
|
@@ -3650,7 +3651,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3650
3651
|
key: 0,
|
|
3651
3652
|
type: "info"
|
|
3652
3653
|
}, {
|
|
3653
|
-
default: k(() => [...
|
|
3654
|
+
default: k(() => [...h[9] || (h[9] = [
|
|
3654
3655
|
ve("无", -1)
|
|
3655
3656
|
])]),
|
|
3656
3657
|
_: 1
|
|
@@ -3661,16 +3662,16 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3661
3662
|
size: "small",
|
|
3662
3663
|
onClick: Xe
|
|
3663
3664
|
}, {
|
|
3664
|
-
default: k(() => [...
|
|
3665
|
+
default: k(() => [...h[10] || (h[10] = [
|
|
3665
3666
|
ve("复制", -1)
|
|
3666
3667
|
])]),
|
|
3667
3668
|
_: 1
|
|
3668
3669
|
}),
|
|
3669
3670
|
Y(C(qe), {
|
|
3670
3671
|
size: "small",
|
|
3671
|
-
onClick:
|
|
3672
|
+
onClick: h[0] || (h[0] = (n) => y.value = !0)
|
|
3672
3673
|
}, {
|
|
3673
|
-
default: k(() => [...
|
|
3674
|
+
default: k(() => [...h[11] || (h[11] = [
|
|
3674
3675
|
ve("粘贴", -1)
|
|
3675
3676
|
])]),
|
|
3676
3677
|
_: 1
|
|
@@ -3696,7 +3697,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3696
3697
|
default: k(() => [
|
|
3697
3698
|
Y(Rt, {
|
|
3698
3699
|
modelValue: T.category,
|
|
3699
|
-
"onUpdate:modelValue":
|
|
3700
|
+
"onUpdate:modelValue": h[1] || (h[1] = (n) => T.category = n),
|
|
3700
3701
|
class: "qy-selection-dialog__category",
|
|
3701
3702
|
options: D.value,
|
|
3702
3703
|
clearable: "",
|
|
@@ -3715,7 +3716,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3715
3716
|
default: k(() => [
|
|
3716
3717
|
Y(it, fe({
|
|
3717
3718
|
modelValue: T.type,
|
|
3718
|
-
"onUpdate:modelValue":
|
|
3719
|
+
"onUpdate:modelValue": h[2] || (h[2] = (n) => T.type = n),
|
|
3719
3720
|
class: "qy-selection-dialog__type",
|
|
3720
3721
|
options: x.value,
|
|
3721
3722
|
placeholder: "请选择类型",
|
|
@@ -3731,7 +3732,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3731
3732
|
default: k(() => [
|
|
3732
3733
|
Y(C(Qe), {
|
|
3733
3734
|
modelValue: T[t.searchKey],
|
|
3734
|
-
"onUpdate:modelValue":
|
|
3735
|
+
"onUpdate:modelValue": h[3] || (h[3] = (n) => T[t.searchKey] = n),
|
|
3735
3736
|
clearable: "",
|
|
3736
3737
|
placeholder: "请输入",
|
|
3737
3738
|
class: "qy-selection-dialog__search-input",
|
|
@@ -3746,13 +3747,13 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3746
3747
|
type: "primary",
|
|
3747
3748
|
onClick: $
|
|
3748
3749
|
}, {
|
|
3749
|
-
default: k(() => [...
|
|
3750
|
+
default: k(() => [...h[13] || (h[13] = [
|
|
3750
3751
|
ve("查询", -1)
|
|
3751
3752
|
])]),
|
|
3752
3753
|
_: 1
|
|
3753
3754
|
}),
|
|
3754
3755
|
Y(C(qe), { onClick: z }, {
|
|
3755
|
-
default: k(() => [...
|
|
3756
|
+
default: k(() => [...h[14] || (h[14] = [
|
|
3756
3757
|
ve("重置", -1)
|
|
3757
3758
|
])]),
|
|
3758
3759
|
_: 1
|
|
@@ -3764,13 +3765,13 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3764
3765
|
]),
|
|
3765
3766
|
_: 3
|
|
3766
3767
|
}, 8, ["model"]),
|
|
3767
|
-
|
|
3768
|
+
v.value ? (S(), W("div", en, [
|
|
3768
3769
|
w.value ? (S(), le(C(qe), {
|
|
3769
3770
|
key: 0,
|
|
3770
3771
|
type: "primary",
|
|
3771
3772
|
onClick: X
|
|
3772
3773
|
}, {
|
|
3773
|
-
default: k(() => [...
|
|
3774
|
+
default: k(() => [...h[15] || (h[15] = [
|
|
3774
3775
|
ve(" 新增 ", -1)
|
|
3775
3776
|
])]),
|
|
3776
3777
|
_: 1
|
|
@@ -3818,9 +3819,9 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3818
3819
|
t.showPagination && R.value > 0 ? (S(), W("div", tn, [
|
|
3819
3820
|
Y(C(Il), {
|
|
3820
3821
|
"current-page": T.page,
|
|
3821
|
-
"onUpdate:currentPage":
|
|
3822
|
+
"onUpdate:currentPage": h[4] || (h[4] = (n) => T.page = n),
|
|
3822
3823
|
"page-size": T.pageSize,
|
|
3823
|
-
"onUpdate:pageSize":
|
|
3824
|
+
"onUpdate:pageSize": h[5] || (h[5] = (n) => T.pageSize = n),
|
|
3824
3825
|
total: R.value,
|
|
3825
3826
|
"page-sizes": t.pageSizes,
|
|
3826
3827
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
@@ -3832,7 +3833,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3832
3833
|
]),
|
|
3833
3834
|
Y(tt, {
|
|
3834
3835
|
modelValue: y.value,
|
|
3835
|
-
"onUpdate:modelValue":
|
|
3836
|
+
"onUpdate:modelValue": h[8] || (h[8] = (n) => y.value = n),
|
|
3836
3837
|
title: "粘贴数据",
|
|
3837
3838
|
layout: !1,
|
|
3838
3839
|
width: "560px"
|
|
@@ -3840,15 +3841,15 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3840
3841
|
default: k(() => [
|
|
3841
3842
|
Y(C(Qe), {
|
|
3842
3843
|
modelValue: H.value,
|
|
3843
|
-
"onUpdate:modelValue":
|
|
3844
|
+
"onUpdate:modelValue": h[6] || (h[6] = (n) => H.value = n),
|
|
3844
3845
|
type: "textarea",
|
|
3845
3846
|
rows: 8
|
|
3846
3847
|
}, null, 8, ["modelValue"]),
|
|
3847
3848
|
G("div", ln, [
|
|
3848
3849
|
Y(C(qe), {
|
|
3849
|
-
onClick:
|
|
3850
|
+
onClick: h[7] || (h[7] = (n) => y.value = !1)
|
|
3850
3851
|
}, {
|
|
3851
|
-
default: k(() => [...
|
|
3852
|
+
default: k(() => [...h[16] || (h[16] = [
|
|
3852
3853
|
ve("取消", -1)
|
|
3853
3854
|
])]),
|
|
3854
3855
|
_: 1
|
|
@@ -3857,7 +3858,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3857
3858
|
type: "primary",
|
|
3858
3859
|
onClick: Fe
|
|
3859
3860
|
}, {
|
|
3860
|
-
default: k(() => [...
|
|
3861
|
+
default: k(() => [...h[17] || (h[17] = [
|
|
3861
3862
|
ve("确认", -1)
|
|
3862
3863
|
])]),
|
|
3863
3864
|
_: 1
|
|
@@ -3897,7 +3898,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3897
3898
|
select: { default: null }
|
|
3898
3899
|
},
|
|
3899
3900
|
emits: ["close", "submit", "openDialog", "changeIndexShow"],
|
|
3900
|
-
setup(t, { expose:
|
|
3901
|
+
setup(t, { expose: g, emit: b }) {
|
|
3901
3902
|
const e = t, a = b, A = be(), r = Q(null), d = _e({
|
|
3902
3903
|
category: [],
|
|
3903
3904
|
code: "",
|
|
@@ -3971,7 +3972,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
3971
3972
|
return;
|
|
3972
3973
|
}
|
|
3973
3974
|
const m = typeof e.category == "function" ? await e.category() : e.category;
|
|
3974
|
-
f.categories =
|
|
3975
|
+
f.categories = v(m);
|
|
3975
3976
|
}
|
|
3976
3977
|
async function R() {
|
|
3977
3978
|
var m;
|
|
@@ -4034,7 +4035,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
4034
4035
|
function w(m) {
|
|
4035
4036
|
return [m.value, ...(m.children || []).flatMap(w)];
|
|
4036
4037
|
}
|
|
4037
|
-
function
|
|
4038
|
+
function v(m) {
|
|
4038
4039
|
const $ = (m == null ? void 0 : m.data) ?? m;
|
|
4039
4040
|
if (!Array.isArray($)) return [];
|
|
4040
4041
|
if (typeof e.categoryFormatter == "function")
|
|
@@ -4078,7 +4079,7 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
4078
4079
|
function oe(m = []) {
|
|
4079
4080
|
return m.map(($) => ({ ...$ }));
|
|
4080
4081
|
}
|
|
4081
|
-
return
|
|
4082
|
+
return g({
|
|
4082
4083
|
search: R,
|
|
4083
4084
|
handleSearch: R,
|
|
4084
4085
|
handleConditionChange: R,
|
|
@@ -4246,8 +4247,8 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
4246
4247
|
headerClass: { default: "" }
|
|
4247
4248
|
},
|
|
4248
4249
|
emits: ["toggle"],
|
|
4249
|
-
setup(t, { emit:
|
|
4250
|
-
const b = t, e =
|
|
4250
|
+
setup(t, { emit: g }) {
|
|
4251
|
+
const b = t, e = g, a = Q(b.defaultExpanded);
|
|
4251
4252
|
de(
|
|
4252
4253
|
() => b.defaultExpanded,
|
|
4253
4254
|
(d) => {
|
|
@@ -4328,10 +4329,10 @@ const ba = { class: "qy-remark-image__field" }, wa = {
|
|
|
4328
4329
|
background: { default: "#fff" }
|
|
4329
4330
|
},
|
|
4330
4331
|
setup(t) {
|
|
4331
|
-
const
|
|
4332
|
+
const g = t, b = F(() => ({
|
|
4332
4333
|
// offsetBottom 只负责业务偏移,安全区补偿由 CSS padding 处理。
|
|
4333
|
-
bottom: `${
|
|
4334
|
-
background:
|
|
4334
|
+
bottom: `${g.offsetBottom}px`,
|
|
4335
|
+
background: g.background
|
|
4335
4336
|
}));
|
|
4336
4337
|
return (e, a) => (S(), W("div", {
|
|
4337
4338
|
class: Ve(["qy-action-bar", [
|