@yzsf2e/render-core 1.0.2-alpha.146 → 1.0.2-alpha.147
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/render-core.mjs +509 -501
- package/dist/render-core.umd.js +3 -3
- package/package.json +1 -1
package/dist/render-core.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { getCurrentInstance as Et, defineComponent as
|
|
2
|
-
import { DatePicker as $o, Modal as fr, Button as Sr, Space as Mn, message as
|
|
1
|
+
import { getCurrentInstance as Et, defineComponent as ve, ref as P, computed as W, createVNode as Y, mergeProps as Pe, openBlock as D, createBlock as q, resolveDynamicComponent as en, resolveComponent as B, normalizeStyle as Cn, withCtx as z, renderSlot as Rt, createCommentVNode as ge, effectScope as rl, unref as Ee, isRef as ct, toRefs as et, customRef as al, onMounted as Tt, nextTick as qe, getCurrentScope as il, onScopeDispose as ol, readonly as sl, watch as ae, shallowRef as vn, createElementBlock as Z, Fragment as me, createTextVNode as be, toDisplayString as re, createElementVNode as ze, reactive as Ze, onUnmounted as Ln, watchEffect as Lt, renderList as Ye, createApp as ll, toRaw as Le, inject as Se, h as je, withDirectives as cr, vShow as Eo, withModifiers as To, resolveDirective as _o, createSlots as Oo, normalizeProps as Yt, onRenderTriggered as ul, isVNode as cl, normalizeClass as Ao, guardReactiveProps as fl, provide as St } from "vue";
|
|
2
|
+
import { DatePicker as $o, Modal as fr, Button as Sr, Space as Mn, message as Ie, InputGroup as dl, InputNumber as Za, Input as pl, Select as nr, Cascader as hl, RangePicker as gl, Col as ml, Row as vl, Form as ya, Menu as yl, MenuItem as bl, Dropdown as wl, Pagination as Sl, DropdownButton as Cl, Alert as Ja, Spin as El, Table as Tl, Transfer as _l } from "ant-design-vue";
|
|
3
3
|
import * as Ol from "@ant-design/icons-vue";
|
|
4
4
|
import { CloseOutlined as Al, ShrinkOutlined as $l, ArrowsAltOutlined as Pl, HolderOutlined as Il, DownOutlined as Po, UpOutlined as Dl, SettingOutlined as Nl, CopyOutlined as Rl, LoadingOutlined as Io, FilterOutlined as kl } from "@ant-design/icons-vue";
|
|
5
5
|
import { useI18n as Do } from "vue-i18n";
|
|
6
6
|
import { useRouter as Ll } from "vue-router";
|
|
7
7
|
/*!
|
|
8
|
-
* @yzsf2e/render-core v1.0.2-alpha.
|
|
8
|
+
* @yzsf2e/render-core v1.0.2-alpha.147 Thu Apr 17 2025 09:35:11 GMT+0800 (中国标准时间)
|
|
9
9
|
* (c) 2023 @yzsf2e.
|
|
10
10
|
*/
|
|
11
|
-
const Ml = "@yzsf2e/render-core", zl = "1.0.2-alpha.
|
|
11
|
+
const Ml = "@yzsf2e/render-core", zl = "1.0.2-alpha.147", Fl = "dist/render-core", jl = "dist/render-core", xl = [
|
|
12
12
|
"dist"
|
|
13
13
|
], Bl = {
|
|
14
14
|
dev: "storybook dev -p 6006",
|
|
@@ -133,7 +133,7 @@ const Xl = /-(\w)/g, Ql = (e) => e.replace(Xl, (t, n) => n.toUpperCase()), pt =
|
|
|
133
133
|
disabledTime: Function,
|
|
134
134
|
format: String,
|
|
135
135
|
value: Object
|
|
136
|
-
}, tu = /* @__PURE__ */
|
|
136
|
+
}, tu = /* @__PURE__ */ ve({
|
|
137
137
|
name: Zl,
|
|
138
138
|
props: eu,
|
|
139
139
|
emits: ["change", "ok", "update:value", "openChange", "panelChange"],
|
|
@@ -167,11 +167,11 @@ const Xl = /-(\w)/g, Ql = (e) => e.replace(Xl, (t, n) => n.toUpperCase()), pt =
|
|
|
167
167
|
onOpenChange: s,
|
|
168
168
|
panelChange: u
|
|
169
169
|
};
|
|
170
|
-
return () => Y($o,
|
|
170
|
+
return () => Y($o, Pe({
|
|
171
171
|
ref: r
|
|
172
172
|
}, c), null);
|
|
173
173
|
}
|
|
174
|
-
}), nu = pt(tu), ru =
|
|
174
|
+
}), nu = pt(tu), ru = ve({
|
|
175
175
|
name: "AIcon",
|
|
176
176
|
components: Ol,
|
|
177
177
|
props: {
|
|
@@ -187,9 +187,9 @@ const Xl = /-(\w)/g, Ql = (e) => e.replace(Xl, (t, n) => n.toUpperCase()), pt =
|
|
|
187
187
|
return n;
|
|
188
188
|
};
|
|
189
189
|
function au(e, t, n, r, a, i) {
|
|
190
|
-
return
|
|
190
|
+
return D(), q(en(e.type));
|
|
191
191
|
}
|
|
192
|
-
const wa = /* @__PURE__ */ at(ru, [["render", au]]), [iu] = rt("debounce-button"), ou = { name: iu }, su = /* @__PURE__ */
|
|
192
|
+
const wa = /* @__PURE__ */ at(ru, [["render", au]]), [iu] = rt("debounce-button"), ou = { name: iu }, su = /* @__PURE__ */ ve({
|
|
193
193
|
...ou,
|
|
194
194
|
props: {
|
|
195
195
|
block: { type: Boolean },
|
|
@@ -219,7 +219,7 @@ const wa = /* @__PURE__ */ at(ru, [["render", au]]), [iu] = rt("debounce-button"
|
|
|
219
219
|
}
|
|
220
220
|
return (o, s) => {
|
|
221
221
|
const u = B("a-button");
|
|
222
|
-
return
|
|
222
|
+
return D(), q(u, {
|
|
223
223
|
block: o.block,
|
|
224
224
|
danger: o.danger,
|
|
225
225
|
disabled: o.disabled,
|
|
@@ -589,7 +589,7 @@ function Pu(e, t, n = {}) {
|
|
|
589
589
|
stop: f
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function on(e, t, n, r = {}) {
|
|
593
593
|
var a, i, o;
|
|
594
594
|
const {
|
|
595
595
|
clone: s = !1,
|
|
@@ -629,7 +629,7 @@ function an(e, t, n, r = {}) {
|
|
|
629
629
|
}
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
const [Iu] = rt("drag-drawer"), Du =
|
|
632
|
+
const [Iu] = rt("drag-drawer"), Du = ve({
|
|
633
633
|
name: Iu,
|
|
634
634
|
components: { CloseOutlined: Al, ShrinkOutlined: $l, ArrowsAltOutlined: Pl },
|
|
635
635
|
props: {
|
|
@@ -655,7 +655,7 @@ const [Iu] = rt("drag-drawer"), Du = me({
|
|
|
655
655
|
}
|
|
656
656
|
},
|
|
657
657
|
setup(e, { emit: t }) {
|
|
658
|
-
const n = P(null), r =
|
|
658
|
+
const n = P(null), r = on(e, "visible", t), a = P(e.width), i = P(!1), o = () => r.value = !1, s = () => e.getContainer(), u = s(), l = 500, f = () => {
|
|
659
659
|
a.value = i.value ? e.width : "100%", i.value = !i.value;
|
|
660
660
|
};
|
|
661
661
|
return ae(r, (p) => {
|
|
@@ -686,7 +686,7 @@ const Nu = {
|
|
|
686
686
|
};
|
|
687
687
|
function Ru(e, t, n, r, a, i) {
|
|
688
688
|
const o = B("ArrowsAltOutlined"), s = B("ShrinkOutlined"), u = B("CloseOutlined"), l = B("a-space"), f = B("a-button"), c = B("a-drawer");
|
|
689
|
-
return
|
|
689
|
+
return D(), q(c, {
|
|
690
690
|
ref: "dragDrawer",
|
|
691
691
|
class: "drag-drawer-warpper",
|
|
692
692
|
placement: "right",
|
|
@@ -700,18 +700,18 @@ function Ru(e, t, n, r, a, i) {
|
|
|
700
700
|
"onUpdate:visible": t[1] || (t[1] = (p) => e.show = p)
|
|
701
701
|
}, {
|
|
702
702
|
title: z(() => [
|
|
703
|
-
e.title ? (
|
|
703
|
+
e.title ? (D(), Z(me, { key: 0 }, [
|
|
704
704
|
be(re(e.title), 1)
|
|
705
705
|
], 64)) : Rt(e.$slots, "title", { key: 1 })
|
|
706
706
|
]),
|
|
707
707
|
extra: z(() => [
|
|
708
708
|
Y(l, { style: { transform: "translateY(2px)" } }, {
|
|
709
709
|
default: z(() => [
|
|
710
|
-
e.fullScreen ? (
|
|
710
|
+
e.fullScreen ? (D(), q(s, {
|
|
711
711
|
key: 1,
|
|
712
712
|
style: { color: "#fff", "font-size": "18px", cursor: "pointer", "margin-right": "10px" },
|
|
713
713
|
onClick: e.toggleFullScreen
|
|
714
|
-
}, null, 8, ["onClick"])) : (
|
|
714
|
+
}, null, 8, ["onClick"])) : (D(), q(o, {
|
|
715
715
|
key: 0,
|
|
716
716
|
style: { color: "#fff", "font-size": "18px", cursor: "pointer", "margin-right": "10px" },
|
|
717
717
|
onClick: e.toggleFullScreen
|
|
@@ -730,7 +730,7 @@ function Ru(e, t, n, r, a, i) {
|
|
|
730
730
|
class: "drag-trigger",
|
|
731
731
|
onMousedown: t[0] || (t[0] = (p) => e.handleMouseDown(p))
|
|
732
732
|
}, null, 32),
|
|
733
|
-
e.hideFooter ? ge("", !0) : (
|
|
733
|
+
e.hideFooter ? ge("", !0) : (D(), Z("div", Nu, [
|
|
734
734
|
Y(l, { style: { "padding-left": "20px" } }, {
|
|
735
735
|
default: z(() => [
|
|
736
736
|
Rt(e.$slots, "footBtn"),
|
|
@@ -755,7 +755,7 @@ const ku = /* @__PURE__ */ at(Du, [["render", Ru]]), Lu = pt(ku), _t = () => {
|
|
|
755
755
|
return { t: () => {
|
|
756
756
|
} };
|
|
757
757
|
}
|
|
758
|
-
}, [Mu] = rt("page-renderer-form-modal"), zu =
|
|
758
|
+
}, [Mu] = rt("page-renderer-form-modal"), zu = ve({
|
|
759
759
|
name: Mu,
|
|
760
760
|
components: { Modal: fr, Button: Sr, Space: Mn },
|
|
761
761
|
props: {
|
|
@@ -789,13 +789,13 @@ const ku = /* @__PURE__ */ at(Du, [["render", Ru]]), Lu = pt(ku), _t = () => {
|
|
|
789
789
|
needRefresh: y = !0,
|
|
790
790
|
successMsg: O = r("operationSuccessful") || "操作成功"
|
|
791
791
|
} = a.value;
|
|
792
|
-
o.value = !1, v && v.success && (g &&
|
|
792
|
+
o.value = !1, v && v.success && (g && Ie.success(O), c(), y && n("refresh"));
|
|
793
793
|
}).catch((v) => {
|
|
794
794
|
var y;
|
|
795
795
|
if (o.value = !1, console.log("[PageRendererFormModal handleOk Error]: ", v), typeof v == "string")
|
|
796
|
-
return
|
|
796
|
+
return Ie.warn(v);
|
|
797
797
|
const { errorFields: g } = v;
|
|
798
|
-
g && g.length &&
|
|
798
|
+
g && g.length && Ie.warn((y = g[0]) == null ? void 0 : y.errors.join("、"));
|
|
799
799
|
});
|
|
800
800
|
};
|
|
801
801
|
ae(i, (p) => {
|
|
@@ -832,7 +832,7 @@ const ku = /* @__PURE__ */ at(Du, [["render", Ru]]), Lu = pt(ku), _t = () => {
|
|
|
832
832
|
const Fu = { key: 1 };
|
|
833
833
|
function ju(e, t, n, r, a, i) {
|
|
834
834
|
const o = B("Button"), s = B("Space"), u = B("Modal");
|
|
835
|
-
return
|
|
835
|
+
return D(), q(u, Pe({
|
|
836
836
|
"wrap-class-name": "drag-modal-wrapper",
|
|
837
837
|
visible: e.visible,
|
|
838
838
|
"onUpdate:visible": t[1] || (t[1] = (l) => e.visible = l)
|
|
@@ -848,7 +848,7 @@ function ju(e, t, n, r, a, i) {
|
|
|
848
848
|
footer: z(() => {
|
|
849
849
|
var l;
|
|
850
850
|
return [
|
|
851
|
-
((l = e.form.modalProps) == null ? void 0 : l.hideFooter) !== !0 ? (
|
|
851
|
+
((l = e.form.modalProps) == null ? void 0 : l.hideFooter) !== !0 ? (D(), q(s, { key: 0 }, {
|
|
852
852
|
default: z(() => {
|
|
853
853
|
var f;
|
|
854
854
|
return [
|
|
@@ -861,7 +861,7 @@ function ju(e, t, n, r, a, i) {
|
|
|
861
861
|
}),
|
|
862
862
|
_: 1
|
|
863
863
|
}, 8, ["onClick"]),
|
|
864
|
-
((f = e.form.modalProps) == null ? void 0 : f.hideOkButton) !== !0 && e.modalConfig.showOk ? (
|
|
864
|
+
((f = e.form.modalProps) == null ? void 0 : f.hideOkButton) !== !0 && e.modalConfig.showOk ? (D(), q(o, {
|
|
865
865
|
key: 0,
|
|
866
866
|
type: "primary",
|
|
867
867
|
onClick: e.handleOk,
|
|
@@ -882,7 +882,7 @@ function ju(e, t, n, r, a, i) {
|
|
|
882
882
|
];
|
|
883
883
|
}),
|
|
884
884
|
default: z(() => [
|
|
885
|
-
e.form.component ? (
|
|
885
|
+
e.form.component ? (D(), q(en(e.form.component), Pe({
|
|
886
886
|
key: 0,
|
|
887
887
|
rows: e.rows,
|
|
888
888
|
"extra-data": e.extraData
|
|
@@ -890,7 +890,7 @@ function ju(e, t, n, r, a, i) {
|
|
|
890
890
|
modalConfig: e.modalConfig,
|
|
891
891
|
"onUpdate:modalConfig": t[0] || (t[0] = (l) => e.modalConfig = l),
|
|
892
892
|
ref: "currentForm"
|
|
893
|
-
}), null, 16, ["rows", "extra-data", "modalConfig"])) : (
|
|
893
|
+
}), null, 16, ["rows", "extra-data", "modalConfig"])) : (D(), Z("span", Fu, "form配置中没有为【" + re(e.form.title) + "】事件提供组件", 1))
|
|
894
894
|
]),
|
|
895
895
|
_: 1
|
|
896
896
|
}, 16, ["visible", "get-container", "mask-style", "onCancel"]);
|
|
@@ -911,7 +911,7 @@ const Mo = /* @__PURE__ */ at(zu, [["render", ju]]), xu = pt(Mo), Sa = zn(() =>
|
|
|
911
911
|
if (n.value[l])
|
|
912
912
|
return n.value[l];
|
|
913
913
|
const f = await r(o, s);
|
|
914
|
-
f.async && !location.href.includes("carrierglobe") && (
|
|
914
|
+
f.async && !location.href.includes("carrierglobe") && (Ie.warn(`当前词条 ${s} 是懒加载数据源,请使用 YzsEnumFuzzySelect 组件!`), console.error(`当前词条 ${s} 是懒加载数据源,请使用 YzsEnumFuzzySelect 组件!`));
|
|
915
915
|
let c = {};
|
|
916
916
|
try {
|
|
917
917
|
c = JSON.parse(f.apiParam);
|
|
@@ -933,7 +933,7 @@ const Mo = /* @__PURE__ */ at(zu, [["render", ju]]), xu = pt(Mo), Sa = zn(() =>
|
|
|
933
933
|
dataCodes: u
|
|
934
934
|
}
|
|
935
935
|
})).data };
|
|
936
|
-
}), [Bu] = rt("enum-select"), Ku = { name: Bu }, Uu = /* @__PURE__ */
|
|
936
|
+
}), [Bu] = rt("enum-select"), Ku = { name: Bu }, Uu = /* @__PURE__ */ ve({
|
|
937
937
|
...Ku,
|
|
938
938
|
props: {
|
|
939
939
|
value: {},
|
|
@@ -952,7 +952,7 @@ const Mo = /* @__PURE__ */ at(zu, [["render", ju]]), xu = pt(Mo), Sa = zn(() =>
|
|
|
952
952
|
},
|
|
953
953
|
emits: ["update:value", "pressEnter", "change"],
|
|
954
954
|
setup(e, { emit: t }) {
|
|
955
|
-
const n = e, { t: r } = _t(), a =
|
|
955
|
+
const n = e, { t: r } = _t(), a = on(n, "value", t), i = P([]), { getEnumData: o } = Sa(), s = W(() => ({
|
|
956
956
|
required: n.required,
|
|
957
957
|
...n.formItemProps
|
|
958
958
|
})), u = W(() => ({
|
|
@@ -979,13 +979,13 @@ const Mo = /* @__PURE__ */ at(zu, [["render", ju]]), xu = pt(Mo), Sa = zn(() =>
|
|
|
979
979
|
}
|
|
980
980
|
return (d, h) => {
|
|
981
981
|
const v = B("a-select"), g = B("a-form-item");
|
|
982
|
-
return d.showLabel !== !1 ? (
|
|
982
|
+
return d.showLabel !== !1 ? (D(), q(g, Pe({
|
|
983
983
|
key: 0,
|
|
984
984
|
name: d.name,
|
|
985
985
|
label: d.label || Ee(r)(d.code) || d.code
|
|
986
986
|
}, s.value), {
|
|
987
987
|
default: z(() => [
|
|
988
|
-
Y(v,
|
|
988
|
+
Y(v, Pe({
|
|
989
989
|
value: Ee(a),
|
|
990
990
|
"onUpdate:value": h[0] || (h[0] = (y) => ct(a) ? a.value = y : null),
|
|
991
991
|
options: i.value
|
|
@@ -996,7 +996,7 @@ const Mo = /* @__PURE__ */ at(zu, [["render", ju]]), xu = pt(Mo), Sa = zn(() =>
|
|
|
996
996
|
}), null, 16, ["value", "options", "class"])
|
|
997
997
|
]),
|
|
998
998
|
_: 1
|
|
999
|
-
}, 16, ["name", "label"])) : (
|
|
999
|
+
}, 16, ["name", "label"])) : (D(), q(v, Pe({
|
|
1000
1000
|
key: 1,
|
|
1001
1001
|
value: Ee(a),
|
|
1002
1002
|
"onUpdate:value": h[1] || (h[1] = (y) => ct(a) ? a.value = y : null),
|
|
@@ -1039,10 +1039,10 @@ function mt(e) {
|
|
|
1039
1039
|
return e != null && typeof e == "object";
|
|
1040
1040
|
}
|
|
1041
1041
|
var nc = "[object Symbol]";
|
|
1042
|
-
function
|
|
1042
|
+
function tn(e) {
|
|
1043
1043
|
return typeof e == "symbol" || mt(e) && Ft(e) == nc;
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function Gt(e, t) {
|
|
1046
1046
|
for (var n = -1, r = e == null ? 0 : e.length, a = Array(r); ++n < r; )
|
|
1047
1047
|
a[n] = t(e[n], n, e);
|
|
1048
1048
|
return a;
|
|
@@ -1054,8 +1054,8 @@ function xo(e) {
|
|
|
1054
1054
|
if (typeof e == "string")
|
|
1055
1055
|
return e;
|
|
1056
1056
|
if (Me(e))
|
|
1057
|
-
return
|
|
1058
|
-
if (
|
|
1057
|
+
return Gt(e, xo) + "";
|
|
1058
|
+
if (tn(e))
|
|
1059
1059
|
return ri ? ri.call(e) : "";
|
|
1060
1060
|
var t = e + "";
|
|
1061
1061
|
return t == "0" && 1 / e == -ac ? "-0" : t;
|
|
@@ -1078,7 +1078,7 @@ var ai = 0 / 0, uc = /^[-+]0x[0-9a-f]+$/i, cc = /^0b[01]+$/i, fc = /^0o[0-7]+$/i
|
|
|
1078
1078
|
function oa(e) {
|
|
1079
1079
|
if (typeof e == "number")
|
|
1080
1080
|
return e;
|
|
1081
|
-
if (
|
|
1081
|
+
if (tn(e))
|
|
1082
1082
|
return ai;
|
|
1083
1083
|
if (Je(e)) {
|
|
1084
1084
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -1246,14 +1246,14 @@ var Hc = 9007199254740991;
|
|
|
1246
1246
|
function Ta(e) {
|
|
1247
1247
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Hc;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function sn(e) {
|
|
1250
1250
|
return e != null && Ta(e.length) && !Ko(e);
|
|
1251
1251
|
}
|
|
1252
1252
|
function Gc(e, t, n) {
|
|
1253
1253
|
if (!Je(n))
|
|
1254
1254
|
return !1;
|
|
1255
1255
|
var r = typeof t;
|
|
1256
|
-
return (r == "number" ?
|
|
1256
|
+
return (r == "number" ? sn(n) && Er(t, n.length) : r == "string" && t in n) ? Tr(n[t], e) : !1;
|
|
1257
1257
|
}
|
|
1258
1258
|
var Xc = Object.prototype;
|
|
1259
1259
|
function _a(e) {
|
|
@@ -1298,8 +1298,8 @@ var Wo = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
1298
1298
|
} catch {
|
|
1299
1299
|
}
|
|
1300
1300
|
}();
|
|
1301
|
-
const
|
|
1302
|
-
var di =
|
|
1301
|
+
const nn = Rf;
|
|
1302
|
+
var di = nn && nn.isTypedArray, kf = di ? Or(di) : Df;
|
|
1303
1303
|
const Ho = kf;
|
|
1304
1304
|
var Lf = Object.prototype, Mf = Lf.hasOwnProperty;
|
|
1305
1305
|
function Go(e, t) {
|
|
@@ -1328,8 +1328,8 @@ function Bf(e) {
|
|
|
1328
1328
|
xf.call(e, n) && n != "constructor" && t.push(n);
|
|
1329
1329
|
return t;
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1332
|
-
return
|
|
1331
|
+
function ln(e) {
|
|
1332
|
+
return sn(e) ? Go(e) : Bf(e);
|
|
1333
1333
|
}
|
|
1334
1334
|
function Kf(e) {
|
|
1335
1335
|
var t = [];
|
|
@@ -1348,14 +1348,14 @@ function Vf(e) {
|
|
|
1348
1348
|
return n;
|
|
1349
1349
|
}
|
|
1350
1350
|
function Oa(e) {
|
|
1351
|
-
return
|
|
1351
|
+
return sn(e) ? Go(e, !0) : Vf(e);
|
|
1352
1352
|
}
|
|
1353
1353
|
var qf = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Wf = /^\w*$/;
|
|
1354
1354
|
function Aa(e, t) {
|
|
1355
1355
|
if (Me(e))
|
|
1356
1356
|
return !1;
|
|
1357
1357
|
var n = typeof e;
|
|
1358
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
1358
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || tn(e) ? !0 : Wf.test(e) || !qf.test(e) || t != null && e in Object(t);
|
|
1359
1359
|
}
|
|
1360
1360
|
var Hf = xt(Object, "create");
|
|
1361
1361
|
const Tn = Hf;
|
|
@@ -1516,7 +1516,7 @@ function Pr(e, t) {
|
|
|
1516
1516
|
}
|
|
1517
1517
|
var $d = 1 / 0;
|
|
1518
1518
|
function Fn(e) {
|
|
1519
|
-
if (typeof e == "string" ||
|
|
1519
|
+
if (typeof e == "string" || tn(e))
|
|
1520
1520
|
return e;
|
|
1521
1521
|
var t = e + "";
|
|
1522
1522
|
return t == "0" && 1 / e == -$d ? "-0" : t;
|
|
@@ -1572,7 +1572,7 @@ lt.prototype.get = Nd;
|
|
|
1572
1572
|
lt.prototype.has = Rd;
|
|
1573
1573
|
lt.prototype.set = Ld;
|
|
1574
1574
|
function Md(e, t) {
|
|
1575
|
-
return e && _r(t,
|
|
1575
|
+
return e && _r(t, ln(t), e);
|
|
1576
1576
|
}
|
|
1577
1577
|
function zd(e, t) {
|
|
1578
1578
|
return e && _r(t, Oa(t), e);
|
|
@@ -1617,7 +1617,7 @@ function rs(e, t, n) {
|
|
|
1617
1617
|
return Me(e) ? r : Qo(r, n(e));
|
|
1618
1618
|
}
|
|
1619
1619
|
function la(e) {
|
|
1620
|
-
return rs(e,
|
|
1620
|
+
return rs(e, ln, Pa);
|
|
1621
1621
|
}
|
|
1622
1622
|
function as(e) {
|
|
1623
1623
|
return rs(e, Oa, ns);
|
|
@@ -1627,9 +1627,9 @@ const ua = Wd;
|
|
|
1627
1627
|
var Hd = xt(it, "Promise");
|
|
1628
1628
|
const ca = Hd;
|
|
1629
1629
|
var Gd = xt(it, "Set");
|
|
1630
|
-
const
|
|
1631
|
-
var vi = "[object Map]", Xd = "[object Object]", yi = "[object Promise]", bi = "[object Set]", wi = "[object WeakMap]", Si = "[object DataView]", Qd = jt(ua), Zd = jt(_n), Jd = jt(ca), ep = jt(
|
|
1632
|
-
(ua && It(new ua(new ArrayBuffer(1))) != Si || _n && It(new _n()) != vi || ca && It(ca.resolve()) != yi ||
|
|
1630
|
+
const Xt = Gd;
|
|
1631
|
+
var vi = "[object Map]", Xd = "[object Object]", yi = "[object Promise]", bi = "[object Set]", wi = "[object WeakMap]", Si = "[object DataView]", Qd = jt(ua), Zd = jt(_n), Jd = jt(ca), ep = jt(Xt), tp = jt(sa), It = Ft;
|
|
1632
|
+
(ua && It(new ua(new ArrayBuffer(1))) != Si || _n && It(new _n()) != vi || ca && It(ca.resolve()) != yi || Xt && It(new Xt()) != bi || sa && It(new sa()) != wi) && (It = function(e) {
|
|
1633
1633
|
var t = Ft(e), n = t == Xd ? e.constructor : void 0, r = n ? jt(n) : "";
|
|
1634
1634
|
if (r)
|
|
1635
1635
|
switch (r) {
|
|
@@ -1716,13 +1716,13 @@ var Np = "[object Map]";
|
|
|
1716
1716
|
function Rp(e) {
|
|
1717
1717
|
return mt(e) && On(e) == Np;
|
|
1718
1718
|
}
|
|
1719
|
-
var Ti =
|
|
1719
|
+
var Ti = nn && nn.isMap, kp = Ti ? Or(Ti) : Rp;
|
|
1720
1720
|
const Lp = kp;
|
|
1721
1721
|
var Mp = "[object Set]";
|
|
1722
1722
|
function zp(e) {
|
|
1723
1723
|
return mt(e) && On(e) == Mp;
|
|
1724
1724
|
}
|
|
1725
|
-
var _i =
|
|
1725
|
+
var _i = nn && nn.isSet, Fp = _i ? Or(_i) : zp;
|
|
1726
1726
|
const jp = Fp;
|
|
1727
1727
|
var xp = 1, Bp = 2, Kp = 4, is = "[object Arguments]", Up = "[object Array]", Yp = "[object Boolean]", Vp = "[object Date]", qp = "[object Error]", os = "[object Function]", Wp = "[object GeneratorFunction]", Hp = "[object Map]", Gp = "[object Number]", ss = "[object Object]", Xp = "[object RegExp]", Qp = "[object Set]", Zp = "[object String]", Jp = "[object Symbol]", eh = "[object WeakMap]", th = "[object ArrayBuffer]", nh = "[object DataView]", rh = "[object Float32Array]", ah = "[object Float64Array]", ih = "[object Int8Array]", oh = "[object Int16Array]", sh = "[object Int32Array]", lh = "[object Uint8Array]", uh = "[object Uint8ClampedArray]", ch = "[object Uint16Array]", fh = "[object Uint32Array]", fe = {};
|
|
1728
1728
|
fe[is] = fe[Up] = fe[th] = fe[nh] = fe[Yp] = fe[Vp] = fe[rh] = fe[ah] = fe[ih] = fe[oh] = fe[sh] = fe[Hp] = fe[Gp] = fe[ss] = fe[Xp] = fe[Qp] = fe[Zp] = fe[Jp] = fe[lh] = fe[uh] = fe[ch] = fe[fh] = !0;
|
|
@@ -1759,7 +1759,7 @@ function rr(e, t, n, r, a, i) {
|
|
|
1759
1759
|
}) : Lp(e) && e.forEach(function(g, y) {
|
|
1760
1760
|
o.set(y, rr(g, t, n, y, e, i));
|
|
1761
1761
|
});
|
|
1762
|
-
var h = l ? u ? as : la : u ? Oa :
|
|
1762
|
+
var h = l ? u ? as : la : u ? Oa : ln, v = f ? void 0 : h(e);
|
|
1763
1763
|
return jc(v || e, function(g, y) {
|
|
1764
1764
|
v && (y = g, g = e[y]), Ea(o, y, rr(g, t, n, y, e, i));
|
|
1765
1765
|
}), o;
|
|
@@ -1959,7 +1959,7 @@ function cs(e) {
|
|
|
1959
1959
|
return e === e && !Je(e);
|
|
1960
1960
|
}
|
|
1961
1961
|
function Vh(e) {
|
|
1962
|
-
for (var t =
|
|
1962
|
+
for (var t = ln(e), n = t.length; n--; ) {
|
|
1963
1963
|
var r = t[n], a = e[r];
|
|
1964
1964
|
t[n] = [r, a, cs(a)];
|
|
1965
1965
|
}
|
|
@@ -2035,13 +2035,13 @@ function rg(e) {
|
|
|
2035
2035
|
var ag = rg();
|
|
2036
2036
|
const ig = ag;
|
|
2037
2037
|
function og(e, t) {
|
|
2038
|
-
return e && ig(e, t,
|
|
2038
|
+
return e && ig(e, t, ln);
|
|
2039
2039
|
}
|
|
2040
2040
|
function sg(e, t) {
|
|
2041
2041
|
return function(n, r) {
|
|
2042
2042
|
if (n == null)
|
|
2043
2043
|
return n;
|
|
2044
|
-
if (!
|
|
2044
|
+
if (!sn(n))
|
|
2045
2045
|
return e(n, r);
|
|
2046
2046
|
for (var a = n.length, i = t ? a : -1, o = Object(n); (t ? i-- : ++i < a) && r(o[i], i, o) !== !1; )
|
|
2047
2047
|
;
|
|
@@ -2146,7 +2146,7 @@ function ds(e, t) {
|
|
|
2146
2146
|
return n(e, xn(t));
|
|
2147
2147
|
}
|
|
2148
2148
|
function wg(e, t) {
|
|
2149
|
-
var n = -1, r =
|
|
2149
|
+
var n = -1, r = sn(e) ? Array(e.length) : [];
|
|
2150
2150
|
return Nr(e, function(a, i, o) {
|
|
2151
2151
|
r[++n] = t(a, i, o);
|
|
2152
2152
|
}), r;
|
|
@@ -2156,16 +2156,16 @@ function Cg(e) {
|
|
|
2156
2156
|
return typeof e == "string" || !Me(e) && mt(e) && Ft(e) == Sg;
|
|
2157
2157
|
}
|
|
2158
2158
|
function Eg(e, t) {
|
|
2159
|
-
return
|
|
2159
|
+
return Gt(t, function(n) {
|
|
2160
2160
|
return e[n];
|
|
2161
2161
|
});
|
|
2162
2162
|
}
|
|
2163
2163
|
function Tg(e) {
|
|
2164
|
-
return e == null ? [] : Eg(e,
|
|
2164
|
+
return e == null ? [] : Eg(e, ln(e));
|
|
2165
2165
|
}
|
|
2166
2166
|
var _g = Math.max;
|
|
2167
2167
|
function Ii(e, t, n, r) {
|
|
2168
|
-
e =
|
|
2168
|
+
e = sn(e) ? e : Tg(e), n = n && !r ? gc(n) : 0;
|
|
2169
2169
|
var a = e.length;
|
|
2170
2170
|
return n < 0 && (n = _g(a + n, 0)), Cg(e) ? n <= a && e.indexOf(t, n) > -1 : !!a && Uo(e, t, n) > -1;
|
|
2171
2171
|
}
|
|
@@ -2208,7 +2208,7 @@ function $g(e, t, n) {
|
|
|
2208
2208
|
function gn(e, t) {
|
|
2209
2209
|
if (e == null)
|
|
2210
2210
|
return {};
|
|
2211
|
-
var n =
|
|
2211
|
+
var n = Gt(as(e), function(r) {
|
|
2212
2212
|
return [r];
|
|
2213
2213
|
});
|
|
2214
2214
|
return t = xn(t), $g(e, n, function(r, a) {
|
|
@@ -2223,7 +2223,7 @@ function Pg(e, t) {
|
|
|
2223
2223
|
}
|
|
2224
2224
|
function Ig(e, t) {
|
|
2225
2225
|
if (e !== t) {
|
|
2226
|
-
var n = e !== void 0, r = e === null, a = e === e, i =
|
|
2226
|
+
var n = e !== void 0, r = e === null, a = e === e, i = tn(e), o = t !== void 0, s = t === null, u = t === t, l = tn(t);
|
|
2227
2227
|
if (!s && !l && !i && e > t || i && o && u && !s && !l || r && o && u || !n && u || !a)
|
|
2228
2228
|
return 1;
|
|
2229
2229
|
if (!r && !i && !l && e < t || l && n && a && !r && !i || s && n && a || !o && a || !u)
|
|
@@ -2244,15 +2244,15 @@ function Dg(e, t, n) {
|
|
|
2244
2244
|
return e.index - t.index;
|
|
2245
2245
|
}
|
|
2246
2246
|
function Ng(e, t, n) {
|
|
2247
|
-
t.length ? t =
|
|
2247
|
+
t.length ? t = Gt(t, function(i) {
|
|
2248
2248
|
return Me(i) ? function(o) {
|
|
2249
2249
|
return Ir(o, i.length === 1 ? i[0] : i);
|
|
2250
2250
|
} : i;
|
|
2251
2251
|
}) : t = [Bo];
|
|
2252
2252
|
var r = -1;
|
|
2253
|
-
t =
|
|
2253
|
+
t = Gt(t, Or(xn));
|
|
2254
2254
|
var a = wg(e, function(i, o, s) {
|
|
2255
|
-
var u =
|
|
2255
|
+
var u = Gt(t, function(l) {
|
|
2256
2256
|
return l(i);
|
|
2257
2257
|
});
|
|
2258
2258
|
return { criteria: u, index: ++r, value: i };
|
|
@@ -2267,8 +2267,8 @@ function Rg(e, t, n, r) {
|
|
|
2267
2267
|
function In(e, t, n) {
|
|
2268
2268
|
return e == null ? e : ps(e, t, n);
|
|
2269
2269
|
}
|
|
2270
|
-
var kg = 1 / 0, Lg =
|
|
2271
|
-
return new
|
|
2270
|
+
var kg = 1 / 0, Lg = Xt && 1 / Da(new Xt([, -0]))[1] == kg ? function(e) {
|
|
2271
|
+
return new Xt(e);
|
|
2272
2272
|
} : Mc;
|
|
2273
2273
|
const Mg = Lg;
|
|
2274
2274
|
var zg = 200;
|
|
@@ -2299,7 +2299,7 @@ function Fg(e, t, n) {
|
|
|
2299
2299
|
function jg(e) {
|
|
2300
2300
|
return e && e.length ? Fg(e) : [];
|
|
2301
2301
|
}
|
|
2302
|
-
const [xg] = rt("fuzzy-select"), Bg = { name: xg }, Kg = /* @__PURE__ */
|
|
2302
|
+
const [xg] = rt("fuzzy-select"), Bg = { name: xg }, Kg = /* @__PURE__ */ ve({
|
|
2303
2303
|
...Bg,
|
|
2304
2304
|
props: {
|
|
2305
2305
|
value: {},
|
|
@@ -2322,7 +2322,7 @@ const [xg] = rt("fuzzy-select"), Bg = { name: xg }, Kg = /* @__PURE__ */ me({
|
|
|
2322
2322
|
},
|
|
2323
2323
|
emits: ["update:value", "pressEnter", "change"],
|
|
2324
2324
|
setup(e, { emit: t }) {
|
|
2325
|
-
const n = e, r = Cr(), a =
|
|
2325
|
+
const n = e, r = Cr(), a = on(n, "value", t), i = W(() => ({
|
|
2326
2326
|
required: n.required,
|
|
2327
2327
|
...n.formItemProps
|
|
2328
2328
|
})), o = W(() => ({
|
|
@@ -2364,13 +2364,13 @@ const [xg] = rt("fuzzy-select"), Bg = { name: xg }, Kg = /* @__PURE__ */ me({
|
|
|
2364
2364
|
}
|
|
2365
2365
|
return (d, h) => {
|
|
2366
2366
|
const v = B("a-select"), g = B("a-form-item");
|
|
2367
|
-
return d.showLabel ? (
|
|
2367
|
+
return d.showLabel ? (D(), q(g, Pe({
|
|
2368
2368
|
key: 0,
|
|
2369
2369
|
name: d.name,
|
|
2370
2370
|
label: d.label || d.$t(d.code) || d.code
|
|
2371
2371
|
}, i.value), {
|
|
2372
2372
|
default: z(() => [
|
|
2373
|
-
Y(v,
|
|
2373
|
+
Y(v, Pe({
|
|
2374
2374
|
value: Ee(a),
|
|
2375
2375
|
"onUpdate:value": h[0] || (h[0] = (y) => ct(a) ? a.value = y : null),
|
|
2376
2376
|
"filter-option": !1,
|
|
@@ -2383,7 +2383,7 @@ const [xg] = rt("fuzzy-select"), Bg = { name: xg }, Kg = /* @__PURE__ */ me({
|
|
|
2383
2383
|
}), null, 16, ["value", "options", "onSearch", "class"])
|
|
2384
2384
|
]),
|
|
2385
2385
|
_: 1
|
|
2386
|
-
}, 16, ["name", "label"])) : (
|
|
2386
|
+
}, 16, ["name", "label"])) : (D(), q(v, Pe({
|
|
2387
2387
|
key: 1,
|
|
2388
2388
|
value: Ee(a),
|
|
2389
2389
|
"onUpdate:value": h[1] || (h[1] = (y) => ct(a) ? a.value = y : null),
|
|
@@ -2398,7 +2398,7 @@ const [xg] = rt("fuzzy-select"), Bg = { name: xg }, Kg = /* @__PURE__ */ me({
|
|
|
2398
2398
|
};
|
|
2399
2399
|
}
|
|
2400
2400
|
});
|
|
2401
|
-
const Ug = pt(Kg), [Yg] = rt("enum-fuzzy-select"), Vg = { name: Yg }, qg = /* @__PURE__ */
|
|
2401
|
+
const Ug = pt(Kg), [Yg] = rt("enum-fuzzy-select"), Vg = { name: Yg }, qg = /* @__PURE__ */ ve({
|
|
2402
2402
|
...Vg,
|
|
2403
2403
|
props: {
|
|
2404
2404
|
value: {},
|
|
@@ -2419,7 +2419,7 @@ const Ug = pt(Kg), [Yg] = rt("enum-fuzzy-select"), Vg = { name: Yg }, qg = /* @_
|
|
|
2419
2419
|
},
|
|
2420
2420
|
emits: ["update:value", "pressEnter", "change"],
|
|
2421
2421
|
setup(e, { emit: t }) {
|
|
2422
|
-
const n = e, { t: r } = _t(), a =
|
|
2422
|
+
const n = e, { t: r } = _t(), a = on(n, "value", t), { getApiDataSource: i } = Sa(), o = P(""), s = P(), u = P({ ...n.params }), l = P(!1), f = W(() => n.placeholder ? n.placeholder : r("pleaseSelect") ? `${r("pleaseSelect")}${n.label || r(n.code)}` : "");
|
|
2423
2423
|
async function c() {
|
|
2424
2424
|
l.value = !0;
|
|
2425
2425
|
const h = await i(n.codeType, n.code);
|
|
@@ -2431,14 +2431,14 @@ const Ug = pt(Kg), [Yg] = rt("enum-fuzzy-select"), Vg = { name: Yg }, qg = /* @_
|
|
|
2431
2431
|
} catch {
|
|
2432
2432
|
v = {};
|
|
2433
2433
|
}
|
|
2434
|
-
u.value = { ...v, ...u.value }, !h.async && !location.href.includes("carrierglobe") && (
|
|
2434
|
+
u.value = { ...v, ...u.value }, !h.async && !location.href.includes("carrierglobe") && (Ie.warn(`当前词条 ${n.code} 不是懒加载数据源,不可使用 YzsEnumFuzzySelect 组件!`), console.error(`当前词条 ${n.code} 不是懒加载数据源,不可使用 YzsEnumFuzzySelect 组件!`)), l.value = !1;
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
2437
|
c();
|
|
2438
2438
|
const p = () => t("pressEnter"), d = (h) => t("change", h);
|
|
2439
2439
|
return (h, v) => {
|
|
2440
2440
|
const g = B("YzsFuzzySelect");
|
|
2441
|
-
return l.value ? ge("", !0) : (
|
|
2441
|
+
return l.value ? ge("", !0) : (D(), q(g, {
|
|
2442
2442
|
key: 0,
|
|
2443
2443
|
value: Ee(a),
|
|
2444
2444
|
"onUpdate:value": v[0] || (v[0] = (y) => ct(a) ? a.value = y : null),
|
|
@@ -2462,7 +2462,7 @@ const Ug = pt(Kg), [Yg] = rt("enum-fuzzy-select"), Vg = { name: Yg }, qg = /* @_
|
|
|
2462
2462
|
}, null, 8, ["value", "url", "code", "name", "label", "method", "params", "required", "disabled", "show-label", "placeholder", "select-props", "condition-key", "condition-value", "form-item-props", "transform"]));
|
|
2463
2463
|
};
|
|
2464
2464
|
}
|
|
2465
|
-
}), hs = pt(qg), [Wg] = rt("region-fuzzy-auto-complete"), Hg = { name: Wg }, Gg = /* @__PURE__ */
|
|
2465
|
+
}), hs = pt(qg), [Wg] = rt("region-fuzzy-auto-complete"), Hg = { name: Wg }, Gg = /* @__PURE__ */ ve({
|
|
2466
2466
|
...Hg,
|
|
2467
2467
|
props: {
|
|
2468
2468
|
value: {},
|
|
@@ -2486,7 +2486,7 @@ const Ug = pt(Kg), [Yg] = rt("enum-fuzzy-select"), Vg = { name: Yg }, qg = /* @_
|
|
|
2486
2486
|
},
|
|
2487
2487
|
emits: ["update:value", "pressEnter", "change", "changeItem"],
|
|
2488
2488
|
setup(e, { emit: t }) {
|
|
2489
|
-
const n = e, r = Cr(), { t: a } = _t(), i =
|
|
2489
|
+
const n = e, r = Cr(), { t: a } = _t(), i = on(n, "value", t), o = P([]), s = {}, u = W(() => ({
|
|
2490
2490
|
required: n.required,
|
|
2491
2491
|
...n.formItemProps
|
|
2492
2492
|
})), l = W(() => ({
|
|
@@ -2581,13 +2581,13 @@ const Ug = pt(Kg), [Yg] = rt("enum-fuzzy-select"), Vg = { name: Yg }, qg = /* @_
|
|
|
2581
2581
|
}
|
|
2582
2582
|
return (C, A) => {
|
|
2583
2583
|
const T = B("a-auto-complete"), m = B("a-form-item");
|
|
2584
|
-
return C.showLabel !== !1 ? (
|
|
2584
|
+
return C.showLabel !== !1 ? (D(), q(m, Pe({
|
|
2585
2585
|
key: 0,
|
|
2586
2586
|
name: C.name,
|
|
2587
2587
|
label: C.label
|
|
2588
2588
|
}, u.value), {
|
|
2589
2589
|
default: z(() => [
|
|
2590
|
-
Y(T,
|
|
2590
|
+
Y(T, Pe({
|
|
2591
2591
|
value: Ee(i),
|
|
2592
2592
|
"onUpdate:value": A[0] || (A[0] = ($) => ct(i) ? i.value = $ : null),
|
|
2593
2593
|
options: o.value
|
|
@@ -2599,7 +2599,7 @@ const Ug = pt(Kg), [Yg] = rt("enum-fuzzy-select"), Vg = { name: Yg }, qg = /* @_
|
|
|
2599
2599
|
}), null, 16, ["value", "options", "class", "onSearch"])
|
|
2600
2600
|
]),
|
|
2601
2601
|
_: 1
|
|
2602
|
-
}, 16, ["name", "label"])) : (
|
|
2602
|
+
}, 16, ["name", "label"])) : (D(), q(T, Pe({
|
|
2603
2603
|
key: 1,
|
|
2604
2604
|
"field-names": { value: "label" },
|
|
2605
2605
|
value: Ee(i),
|
|
@@ -2897,7 +2897,7 @@ var ki = {
|
|
|
2897
2897
|
zoomed: null,
|
|
2898
2898
|
play: null,
|
|
2899
2899
|
stop: null
|
|
2900
|
-
}, tm = '<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>', Rr = typeof window < "u" && typeof window.document < "u", vt = Rr ? window : {},
|
|
2900
|
+
}, tm = '<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>', Rr = typeof window < "u" && typeof window.document < "u", vt = Rr ? window : {}, Qt = Rr && vt.document.documentElement ? "ontouchstart" in vt.document.documentElement : !1, Ra = Rr ? "PointerEvent" in vt : !1, J = "viewer", ar = "move", ms = "switch", mn = "zoom", Xn = "".concat(J, "-active"), nm = "".concat(J, "-close"), ir = "".concat(J, "-fade"), pa = "".concat(J, "-fixed"), rm = "".concat(J, "-fullscreen"), Li = "".concat(J, "-fullscreen-exit"), Dt = "".concat(J, "-hide"), am = "".concat(J, "-hide-md-down"), im = "".concat(J, "-hide-sm-down"), om = "".concat(J, "-hide-xs-down"), Xe = "".concat(J, "-in"), wn = "".concat(J, "-invisible"), Zt = "".concat(J, "-loading"), sm = "".concat(J, "-move"), Mi = "".concat(J, "-open"), Ut = "".concat(J, "-show"), Ce = "".concat(J, "-transition"), rn = "click", ha = "dblclick", zi = "dragstart", Fi = "focusin", ji = "keydown", Qe = "load", kt = "error", lm = Qt ? "touchend touchcancel" : "mouseup", um = Qt ? "touchmove" : "mousemove", cm = Qt ? "touchstart" : "mousedown", xi = Ra ? "pointerdown" : cm, Bi = Ra ? "pointermove" : um, Ki = Ra ? "pointerup pointercancel" : lm, Ui = "resize", tt = "transitionend", Yi = "wheel", Vi = "ready", qi = "show", Wi = "shown", Hi = "hide", Gi = "hidden", Xi = "view", Dn = "viewed", Qi = "move", Zi = "moved", Ji = "rotate", eo = "rotated", to = "scale", no = "scaled", ro = "zoom", ao = "zoomed", io = "play", oo = "stop", gr = "".concat(J, "Action"), ka = /\s\s*/, Qn = ["zoom-in", "zoom-out", "one-to-one", "reset", "prev", "play", "next", "rotate-left", "rotate-right", "flip-horizontal", "flip-vertical"];
|
|
2901
2901
|
function Nn(e) {
|
|
2902
2902
|
return typeof e == "string";
|
|
2903
2903
|
}
|
|
@@ -2905,15 +2905,15 @@ var fm = Number.isNaN || vt.isNaN;
|
|
|
2905
2905
|
function we(e) {
|
|
2906
2906
|
return typeof e == "number" && !fm(e);
|
|
2907
2907
|
}
|
|
2908
|
-
function
|
|
2908
|
+
function qt(e) {
|
|
2909
2909
|
return typeof e > "u";
|
|
2910
2910
|
}
|
|
2911
|
-
function
|
|
2911
|
+
function an(e) {
|
|
2912
2912
|
return da(e) === "object" && e !== null;
|
|
2913
2913
|
}
|
|
2914
2914
|
var dm = Object.prototype.hasOwnProperty;
|
|
2915
|
-
function
|
|
2916
|
-
if (!
|
|
2915
|
+
function Wt(e) {
|
|
2916
|
+
if (!an(e))
|
|
2917
2917
|
return !1;
|
|
2918
2918
|
try {
|
|
2919
2919
|
var t = e.constructor, n = t.prototype;
|
|
@@ -2932,7 +2932,7 @@ function de(e, t) {
|
|
|
2932
2932
|
for (r = 0; r < n && t.call(e, e[r], r, e) !== !1; r += 1)
|
|
2933
2933
|
;
|
|
2934
2934
|
} else
|
|
2935
|
-
|
|
2935
|
+
an(e) && Object.keys(e).forEach(function(a) {
|
|
2936
2936
|
t.call(e, e[a], a, e);
|
|
2937
2937
|
});
|
|
2938
2938
|
return e;
|
|
@@ -2940,8 +2940,8 @@ function de(e, t) {
|
|
|
2940
2940
|
var Ve = Object.assign || function(t) {
|
|
2941
2941
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
|
|
2942
2942
|
r[a - 1] = arguments[a];
|
|
2943
|
-
return
|
|
2944
|
-
|
|
2943
|
+
return an(t) && r.length > 0 && r.forEach(function(i) {
|
|
2944
|
+
an(i) && Object.keys(i).forEach(function(o) {
|
|
2945
2945
|
t[o] = i[o];
|
|
2946
2946
|
});
|
|
2947
2947
|
}), t;
|
|
@@ -2955,7 +2955,7 @@ function nt(e, t) {
|
|
|
2955
2955
|
function hm(e) {
|
|
2956
2956
|
return Nn(e) ? e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">") : e;
|
|
2957
2957
|
}
|
|
2958
|
-
function
|
|
2958
|
+
function Vt(e, t) {
|
|
2959
2959
|
return !e || !t ? !1 : e.classList ? e.classList.contains(t) : e.className.indexOf(t) > -1;
|
|
2960
2960
|
}
|
|
2961
2961
|
function X(e, t) {
|
|
@@ -3004,11 +3004,11 @@ var gm = /([a-z\d])([A-Z])/g;
|
|
|
3004
3004
|
function La(e) {
|
|
3005
3005
|
return e.replace(gm, "$1-$2").toLowerCase();
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3008
|
-
return
|
|
3007
|
+
function Ht(e, t) {
|
|
3008
|
+
return an(e[t]) ? e[t] : e.dataset ? e.dataset[t] : e.getAttribute("data-".concat(La(t)));
|
|
3009
3009
|
}
|
|
3010
3010
|
function ga(e, t, n) {
|
|
3011
|
-
|
|
3011
|
+
an(n) ? e[t] = n : e.dataset ? e.dataset[t] = n : e.setAttribute("data-".concat(La(t)), n);
|
|
3012
3012
|
}
|
|
3013
3013
|
var vs = function() {
|
|
3014
3014
|
var e = !1;
|
|
@@ -3178,12 +3178,12 @@ var wm = {
|
|
|
3178
3178
|
}
|
|
3179
3179
|
}), this.items = i, de(i, function(o) {
|
|
3180
3180
|
var s = o.firstElementChild, u, l;
|
|
3181
|
-
ga(s, "filled", !0), r.loading && X(o,
|
|
3182
|
-
ce(s, kt, l), r.loading && oe(o,
|
|
3181
|
+
ga(s, "filled", !0), r.loading && X(o, Zt), Q(s, Qe, u = function(c) {
|
|
3182
|
+
ce(s, kt, l), r.loading && oe(o, Zt), t.loadImage(c);
|
|
3183
3183
|
}, {
|
|
3184
3184
|
once: !0
|
|
3185
3185
|
}), Q(s, kt, l = function() {
|
|
3186
|
-
ce(s, Qe, u), r.loading && oe(o,
|
|
3186
|
+
ce(s, Qe, u), r.loading && oe(o, Zt);
|
|
3187
3187
|
}, {
|
|
3188
3188
|
once: !0
|
|
3189
3189
|
});
|
|
@@ -3244,7 +3244,7 @@ var wm = {
|
|
|
3244
3244
|
marginLeft: a.x,
|
|
3245
3245
|
marginTop: a.y
|
|
3246
3246
|
}, or(a))), t)
|
|
3247
|
-
if ((this.viewing || this.moving || this.rotating || this.scaling || this.zooming) && this.options.transition &&
|
|
3247
|
+
if ((this.viewing || this.moving || this.rotating || this.scaling || this.zooming) && this.options.transition && Vt(r, Ce)) {
|
|
3248
3248
|
var i = function() {
|
|
3249
3249
|
n.imageRendering = !1, t();
|
|
3250
3250
|
};
|
|
@@ -3265,22 +3265,22 @@ var wm = {
|
|
|
3265
3265
|
}, Sm = {
|
|
3266
3266
|
bind: function() {
|
|
3267
3267
|
var t = this.options, n = this.viewer, r = this.canvas, a = this.element.ownerDocument;
|
|
3268
|
-
Q(n,
|
|
3268
|
+
Q(n, rn, this.onClick = this.click.bind(this)), Q(n, zi, this.onDragStart = this.dragstart.bind(this)), Q(r, xi, this.onPointerDown = this.pointerdown.bind(this)), Q(a, Bi, this.onPointerMove = this.pointermove.bind(this)), Q(a, Ki, this.onPointerUp = this.pointerup.bind(this)), Q(a, ji, this.onKeyDown = this.keydown.bind(this)), Q(window, Ui, this.onResize = this.resize.bind(this)), t.zoomable && t.zoomOnWheel && Q(n, Yi, this.onWheel = this.wheel.bind(this), {
|
|
3269
3269
|
passive: !1,
|
|
3270
3270
|
capture: !0
|
|
3271
3271
|
}), t.toggleOnDblclick && Q(r, ha, this.onDblclick = this.dblclick.bind(this));
|
|
3272
3272
|
},
|
|
3273
3273
|
unbind: function() {
|
|
3274
3274
|
var t = this.options, n = this.viewer, r = this.canvas, a = this.element.ownerDocument;
|
|
3275
|
-
ce(n,
|
|
3275
|
+
ce(n, rn, this.onClick), ce(n, zi, this.onDragStart), ce(r, xi, this.onPointerDown), ce(a, Bi, this.onPointerMove), ce(a, Ki, this.onPointerUp), ce(a, ji, this.onKeyDown), ce(window, Ui, this.onResize), t.zoomable && t.zoomOnWheel && ce(n, Yi, this.onWheel, {
|
|
3276
3276
|
passive: !1,
|
|
3277
3277
|
capture: !0
|
|
3278
3278
|
}), t.toggleOnDblclick && ce(r, ha, this.onDblclick);
|
|
3279
3279
|
}
|
|
3280
3280
|
}, Cm = {
|
|
3281
3281
|
click: function(t) {
|
|
3282
|
-
var n = this.options, r = this.imageData, a = t.target, i =
|
|
3283
|
-
switch (!i && a.localName === "img" && a.parentElement.localName === "li" && (a = a.parentElement, i =
|
|
3282
|
+
var n = this.options, r = this.imageData, a = t.target, i = Ht(a, gr);
|
|
3283
|
+
switch (!i && a.localName === "img" && a.parentElement.localName === "li" && (a = a.parentElement, i = Ht(a, gr)), Qt && t.isTrusted && a === this.canvas && clearTimeout(this.clickCanvasTimeout), i) {
|
|
3284
3284
|
case "mix":
|
|
3285
3285
|
this.played ? this.stop() : n.inline ? this.fulled ? this.exit() : this.full() : this.hide();
|
|
3286
3286
|
break;
|
|
@@ -3288,7 +3288,7 @@ var wm = {
|
|
|
3288
3288
|
this.pointerMoved || this.hide();
|
|
3289
3289
|
break;
|
|
3290
3290
|
case "view":
|
|
3291
|
-
this.view(
|
|
3291
|
+
this.view(Ht(a, "index"));
|
|
3292
3292
|
break;
|
|
3293
3293
|
case "zoom-in":
|
|
3294
3294
|
this.zoom(0.1, !0);
|
|
@@ -3328,13 +3328,13 @@ var wm = {
|
|
|
3328
3328
|
}
|
|
3329
3329
|
},
|
|
3330
3330
|
dblclick: function(t) {
|
|
3331
|
-
t.preventDefault(), this.viewed && t.target === this.image && (
|
|
3331
|
+
t.preventDefault(), this.viewed && t.target === this.image && (Qt && t.isTrusted && clearTimeout(this.doubleClickImageTimeout), this.toggle(t.isTrusted ? t : t.detail && t.detail.originalEvent));
|
|
3332
3332
|
},
|
|
3333
3333
|
load: function() {
|
|
3334
3334
|
var t = this;
|
|
3335
3335
|
this.timeout && (clearTimeout(this.timeout), this.timeout = !1);
|
|
3336
3336
|
var n = this.element, r = this.options, a = this.image, i = this.index, o = this.viewerData;
|
|
3337
|
-
oe(a, wn), r.loading && oe(this.canvas,
|
|
3337
|
+
oe(a, wn), r.loading && oe(this.canvas, Zt), a.style.cssText = "height:0;" + "margin-left:".concat(o.width / 2, "px;") + "margin-top:".concat(o.height / 2, "px;") + "max-width:none!important;position:relative;width:0;", this.initImage(function() {
|
|
3338
3338
|
Rn(a, sm, r.movable), Rn(a, Ce, r.transition), t.renderImage(function() {
|
|
3339
3339
|
t.viewed = !0, t.viewing = !1, ue(r.viewed) && Q(n, Dn, r.viewed, {
|
|
3340
3340
|
once: !0
|
|
@@ -3349,7 +3349,7 @@ var wm = {
|
|
|
3349
3349
|
});
|
|
3350
3350
|
},
|
|
3351
3351
|
loadImage: function(t) {
|
|
3352
|
-
var n = t.target, r = n.parentNode, a = r.offsetWidth || 30, i = r.offsetHeight || 50, o = !!
|
|
3352
|
+
var n = t.target, r = n.parentNode, a = r.offsetWidth || 30, i = r.offsetHeight || 50, o = !!Ht(n, "filled");
|
|
3353
3353
|
ys(n, this.options, function(s, u) {
|
|
3354
3354
|
var l = s / u, f = a, c = i;
|
|
3355
3355
|
i * l > a ? o ? f = i * l : c = a / l : o ? c = a / l : f = i * l, nt(n, Ve({
|
|
@@ -3421,14 +3421,14 @@ var wm = {
|
|
|
3421
3421
|
var n = this, r = this.options, a = this.action, i = this.pointers, o;
|
|
3422
3422
|
t.changedTouches ? de(t.changedTouches, function(s) {
|
|
3423
3423
|
o = i[s.identifier], delete i[s.identifier];
|
|
3424
|
-
}) : (o = i[t.pointerId || 0], delete i[t.pointerId || 0]), a && (t.preventDefault(), r.transition && (a === ar || a === mn) && X(this.image, Ce), this.action = !1,
|
|
3424
|
+
}) : (o = i[t.pointerId || 0], delete i[t.pointerId || 0]), a && (t.preventDefault(), r.transition && (a === ar || a === mn) && X(this.image, Ce), this.action = !1, Qt && a !== mn && o && Date.now() - o.timeStamp < 500 && (clearTimeout(this.clickCanvasTimeout), clearTimeout(this.doubleClickImageTimeout), r.toggleOnDblclick && this.viewed && t.target === this.image ? this.imageClicked ? (this.imageClicked = !1, this.doubleClickImageTimeout = setTimeout(function() {
|
|
3425
3425
|
Oe(n.image, ha, {
|
|
3426
3426
|
originalEvent: t
|
|
3427
3427
|
});
|
|
3428
3428
|
}, 50)) : (this.imageClicked = !0, this.doubleClickImageTimeout = setTimeout(function() {
|
|
3429
3429
|
n.imageClicked = !1;
|
|
3430
3430
|
}, 500)) : (this.imageClicked = !1, r.backdrop && r.backdrop !== "static" && t.target === this.canvas && (this.clickCanvasTimeout = setTimeout(function() {
|
|
3431
|
-
Oe(n.canvas,
|
|
3431
|
+
Oe(n.canvas, rn, {
|
|
3432
3432
|
originalEvent: t
|
|
3433
3433
|
});
|
|
3434
3434
|
}, 50)))));
|
|
@@ -3510,13 +3510,13 @@ var wm = {
|
|
|
3510
3510
|
var u = function f(c) {
|
|
3511
3511
|
c && c.target === i && (ce(i, tt, f), t.hidden());
|
|
3512
3512
|
}, l = function() {
|
|
3513
|
-
|
|
3513
|
+
Vt(i, Ce) ? (Q(i, tt, u), oe(i, Xe)) : s();
|
|
3514
3514
|
};
|
|
3515
3515
|
this.transitioning = {
|
|
3516
3516
|
abort: function() {
|
|
3517
|
-
t.viewed &&
|
|
3517
|
+
t.viewed && Vt(o, Ce) ? ce(o, tt, l) : Vt(i, Ce) && ce(i, tt, u);
|
|
3518
3518
|
}
|
|
3519
|
-
}, this.viewed &&
|
|
3519
|
+
}, this.viewed && Vt(o, Ce) ? (Q(o, tt, l, {
|
|
3520
3520
|
once: !0
|
|
3521
3521
|
}), this.zoomTo(0, !1, null, null, !0)) : l();
|
|
3522
3522
|
} else
|
|
@@ -3535,7 +3535,7 @@ var wm = {
|
|
|
3535
3535
|
if (!this.isShown)
|
|
3536
3536
|
return this.index = n, this.show();
|
|
3537
3537
|
this.viewing && this.viewing.abort();
|
|
3538
|
-
var r = this.element, a = this.options, i = this.title, o = this.canvas, s = this.items[n], u = s.querySelector("img"), l =
|
|
3538
|
+
var r = this.element, a = this.options, i = this.title, o = this.canvas, s = this.items[n], u = s.querySelector("img"), l = Ht(u, "originalUrl"), f = u.getAttribute("alt"), c = document.createElement("img");
|
|
3539
3539
|
if (de(a.inheritedAttributes, function(g) {
|
|
3540
3540
|
var y = u.getAttribute(g);
|
|
3541
3541
|
y !== null && c.setAttribute(g, y);
|
|
@@ -3548,7 +3548,7 @@ var wm = {
|
|
|
3548
3548
|
}) === !1 || !this.isShown || this.hiding || this.played)
|
|
3549
3549
|
return this;
|
|
3550
3550
|
var p = this.items[this.index];
|
|
3551
|
-
p && (oe(p, Xn), p.removeAttribute("aria-selected")), X(s, Xn), s.setAttribute("aria-selected", !0), a.focus && s.focus(), this.image = c, this.viewed = !1, this.index = n, this.imageData = {}, X(c, wn), a.loading && X(o,
|
|
3551
|
+
p && (oe(p, Xn), p.removeAttribute("aria-selected")), X(s, Xn), s.setAttribute("aria-selected", !0), a.focus && s.focus(), this.image = c, this.viewed = !1, this.index = n, this.imageData = {}, X(c, wn), a.loading && X(o, Zt), o.innerHTML = "", o.appendChild(c), this.renderList(), i.innerHTML = "";
|
|
3552
3552
|
var d = function() {
|
|
3553
3553
|
var y = t.imageData, O = Array.isArray(a.title) ? a.title[1] : a.title;
|
|
3554
3554
|
i.innerHTML = hm(ue(O) ? O.call(t, c, y) : "".concat(f, " (").concat(y.naturalWidth, " × ").concat(y.naturalHeight, ")"));
|
|
@@ -3564,7 +3564,7 @@ var wm = {
|
|
|
3564
3564
|
}, {
|
|
3565
3565
|
once: !0
|
|
3566
3566
|
}), Q(c, kt, v = function() {
|
|
3567
|
-
ce(c, Qe, h), t.timeout && (clearTimeout(t.timeout), t.timeout = !1), oe(c, wn), a.loading && oe(t.canvas,
|
|
3567
|
+
ce(c, Qe, h), t.timeout && (clearTimeout(t.timeout), t.timeout = !1), oe(c, wn), a.loading && oe(t.canvas, Zt);
|
|
3568
3568
|
}, {
|
|
3569
3569
|
once: !0
|
|
3570
3570
|
}), this.timeout && clearTimeout(this.timeout), this.timeout = setTimeout(function() {
|
|
@@ -3599,7 +3599,7 @@ var wm = {
|
|
|
3599
3599
|
*/
|
|
3600
3600
|
move: function(t) {
|
|
3601
3601
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t, r = this.imageData;
|
|
3602
|
-
return this.moveTo(
|
|
3602
|
+
return this.moveTo(qt(t) ? t : r.x + Number(t), qt(n) ? n : r.y + Number(n)), this;
|
|
3603
3603
|
},
|
|
3604
3604
|
/**
|
|
3605
3605
|
* Move the image to an absolute point.
|
|
@@ -3784,7 +3784,7 @@ var wm = {
|
|
|
3784
3784
|
};
|
|
3785
3785
|
f.x -= A * ((E.pageX - $.left - c) / d), f.y -= T * ((E.pageY - $.top - p) / h);
|
|
3786
3786
|
} else
|
|
3787
|
-
|
|
3787
|
+
Wt(a) && we(a.x) && we(a.y) ? (f.x -= A * ((a.x - c) / d), f.y -= T * ((a.y - p) / h)) : (f.x -= A / 2, f.y -= T / 2);
|
|
3788
3788
|
f.left = f.x, f.top = f.y, f.width = S, f.height = C, f.oldRatio = m, f.ratio = t, this.renderImage(function() {
|
|
3789
3789
|
n.zooming = !1, ue(u.zoomed) && Q(s, ao, u.zoomed, {
|
|
3790
3790
|
once: !0
|
|
@@ -3816,7 +3816,7 @@ var wm = {
|
|
|
3816
3816
|
var i = this.player, o = this.loadImage.bind(this), s = [], u = 0, l = 0;
|
|
3817
3817
|
if (this.played = !0, this.onLoadWhenPlay = o, n && this.requestFullscreen(n), X(i, Ut), de(this.items, function(p, d) {
|
|
3818
3818
|
var h = p.querySelector("img"), v = document.createElement("img");
|
|
3819
|
-
v.src =
|
|
3819
|
+
v.src = Ht(h, "originalUrl"), v.alt = h.getAttribute("alt"), v.referrerPolicy = h.referrerPolicy, u += 1, X(v, ir), Rn(v, Ce, a.transition), Vt(p, Xn) && (X(v, Xe), l = d), s.push(v), Q(v, Qe, o, {
|
|
3820
3820
|
once: !0
|
|
3821
3821
|
}), i.appendChild(v);
|
|
3822
3822
|
}), we(a.interval) && a.interval > 0) {
|
|
@@ -3935,7 +3935,7 @@ var wm = {
|
|
|
3935
3935
|
// Destroy the viewer
|
|
3936
3936
|
destroy: function() {
|
|
3937
3937
|
var t = this.element, n = this.options;
|
|
3938
|
-
return t[J] ? (this.destroyed = !0, this.ready ? (this.played && this.stop(), n.inline ? (this.fulled && this.exit(), this.unbind()) : this.isShown ? (this.viewing && (this.imageRendering ? this.imageRendering.abort() : this.imageInitializing && this.imageInitializing.abort()), this.hiding && this.transitioning.abort(), this.hidden()) : this.showing && (this.transitioning.abort(), this.hidden()), this.ready = !1, this.viewer.parentNode.removeChild(this.viewer)) : n.inline && (this.delaying ? this.delaying.abort() : this.initializing && this.initializing.abort()), n.inline || ce(t,
|
|
3938
|
+
return t[J] ? (this.destroyed = !0, this.ready ? (this.played && this.stop(), n.inline ? (this.fulled && this.exit(), this.unbind()) : this.isShown ? (this.viewing && (this.imageRendering ? this.imageRendering.abort() : this.imageInitializing && this.imageInitializing.abort()), this.hiding && this.transitioning.abort(), this.hidden()) : this.showing && (this.transitioning.abort(), this.hidden()), this.ready = !1, this.viewer.parentNode.removeChild(this.viewer)) : n.inline && (this.delaying ? this.delaying.abort() : this.initializing && this.initializing.abort()), n.inline || ce(t, rn, this.onStart), t[J] = void 0, this) : this;
|
|
3939
3939
|
}
|
|
3940
3940
|
}, Tm = {
|
|
3941
3941
|
getImageURL: function(t) {
|
|
@@ -3985,7 +3985,7 @@ var wm = {
|
|
|
3985
3985
|
var n = this.element.ownerDocument;
|
|
3986
3986
|
if (this.fulled && !(n.fullscreenElement || n.webkitFullscreenElement || n.mozFullScreenElement || n.msFullscreenElement)) {
|
|
3987
3987
|
var r = n.documentElement;
|
|
3988
|
-
r.requestFullscreen ?
|
|
3988
|
+
r.requestFullscreen ? Wt(t) ? r.requestFullscreen(t) : r.requestFullscreen() : r.webkitRequestFullscreen ? r.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT) : r.mozRequestFullScreen ? r.mozRequestFullScreen() : r.msRequestFullscreen && r.msRequestFullscreen();
|
|
3989
3989
|
}
|
|
3990
3990
|
},
|
|
3991
3991
|
exitFullscreen: function() {
|
|
@@ -4028,7 +4028,7 @@ var wm = {
|
|
|
4028
4028
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4029
4029
|
if (Qg(this, e), !t || t.nodeType !== 1)
|
|
4030
4030
|
throw new Error("The first argument is required and must be an element.");
|
|
4031
|
-
this.element = t, this.options = Ve({}, ki,
|
|
4031
|
+
this.element = t, this.options = Ve({}, ki, Wt(n) && n), this.action = !1, this.fading = !1, this.fulled = !1, this.hiding = !1, this.imageClicked = !1, this.imageData = {}, this.index = this.options.initialViewIndex, this.isImg = !1, this.isShown = !1, this.length = 0, this.moving = !1, this.played = !1, this.playing = !1, this.pointers = {}, this.ready = !1, this.rotating = !1, this.scaling = !1, this.showing = !1, this.timeout = !1, this.tooltipping = !1, this.viewed = !1, this.viewing = !1, this.wheeling = !1, this.zooming = !1, this.pointerMoved = !1, this.id = Om(), this.init();
|
|
4032
4032
|
}
|
|
4033
4033
|
return Zg(e, [{
|
|
4034
4034
|
key: "init",
|
|
@@ -4039,7 +4039,7 @@ var wm = {
|
|
|
4039
4039
|
var i = r.localName === "img", o = [];
|
|
4040
4040
|
if (de(i ? [r] : r.querySelectorAll("img"), function(l) {
|
|
4041
4041
|
ue(a.filter) ? a.filter.call(n, l) && o.push(l) : n.getImageURL(l) && o.push(l);
|
|
4042
|
-
}), this.isImg = i, this.length = o.length, this.images = o, this.initBody(),
|
|
4042
|
+
}), this.isImg = i, this.length = o.length, this.images = o, this.initBody(), qt(document.createElement(J).style.transition) && (a.transition = !1), a.inline) {
|
|
4043
4043
|
var s = 0, u = function() {
|
|
4044
4044
|
if (s += 1, s === n.length) {
|
|
4045
4045
|
var f;
|
|
@@ -4075,7 +4075,7 @@ var wm = {
|
|
|
4075
4075
|
}
|
|
4076
4076
|
});
|
|
4077
4077
|
} else
|
|
4078
|
-
Q(r,
|
|
4078
|
+
Q(r, rn, this.onStart = function(l) {
|
|
4079
4079
|
var f = l.target;
|
|
4080
4080
|
f.localName === "img" && (!ue(a.filter) || a.filter.call(n, f)) && n.view(n.images.indexOf(f));
|
|
4081
4081
|
});
|
|
@@ -4091,12 +4091,12 @@ var wm = {
|
|
|
4091
4091
|
if (this.parent = a, this.viewer = o, this.title = s, this.toolbar = u, this.navbar = l, this.button = f, this.canvas = c, this.footer = o.querySelector(".".concat(J, "-footer")), this.tooltipBox = o.querySelector(".".concat(J, "-tooltip")), this.player = o.querySelector(".".concat(J, "-player")), this.list = o.querySelector(".".concat(J, "-list")), o.id = "".concat(J).concat(this.id), s.id = "".concat(J, "Title").concat(this.id), X(s, r.title ? Zn(Array.isArray(r.title) ? r.title[0] : r.title) : Dt), X(l, r.navbar ? Zn(r.navbar) : Dt), Rn(f, Dt, !r.button), r.keyboard && f.setAttribute("tabindex", 0), r.backdrop && (X(o, "".concat(J, "-backdrop")), !r.inline && r.backdrop !== "static" && ga(c, gr, "hide")), Nn(r.className) && r.className && r.className.split(ka).forEach(function(S) {
|
|
4092
4092
|
X(o, S);
|
|
4093
4093
|
}), r.toolbar) {
|
|
4094
|
-
var p = document.createElement("ul"), d =
|
|
4094
|
+
var p = document.createElement("ul"), d = Wt(r.toolbar), h = Qn.slice(0, 3), v = Qn.slice(7, 9), g = Qn.slice(9);
|
|
4095
4095
|
d || X(u, Zn(r.toolbar)), de(d ? r.toolbar : Qn, function(S, C) {
|
|
4096
|
-
var A = d &&
|
|
4096
|
+
var A = d && Wt(S), T = d ? La(C) : S, m = A && !qt(S.show) ? S.show : S;
|
|
4097
4097
|
if (!(!m || !r.zoomable && h.indexOf(T) !== -1 || !r.rotatable && v.indexOf(T) !== -1 || !r.scalable && g.indexOf(T) !== -1)) {
|
|
4098
|
-
var $ = A && !
|
|
4099
|
-
r.keyboard && b.setAttribute("tabindex", 0), b.setAttribute("role", "button"), X(b, "".concat(J, "-").concat(T)), ue(E) || ga(b, gr, T), we(m) && X(b, Zn(m)), ["small", "large"].indexOf($) !== -1 ? X(b, "".concat(J, "-").concat($)) : T === "play" && X(b, "".concat(J, "-large")), ue(E) && Q(b,
|
|
4098
|
+
var $ = A && !qt(S.size) ? S.size : S, E = A && !qt(S.click) ? S.click : S, b = document.createElement("li");
|
|
4099
|
+
r.keyboard && b.setAttribute("tabindex", 0), b.setAttribute("role", "button"), X(b, "".concat(J, "-").concat(T)), ue(E) || ga(b, gr, T), we(m) && X(b, Zn(m)), ["small", "large"].indexOf($) !== -1 ? X(b, "".concat(J, "-").concat($)) : T === "play" && X(b, "".concat(J, "-large")), ue(E) && Q(b, rn, E), p.appendChild(b);
|
|
4100
4100
|
}
|
|
4101
4101
|
}), u.appendChild(p);
|
|
4102
4102
|
} else
|
|
@@ -4145,7 +4145,7 @@ var wm = {
|
|
|
4145
4145
|
}, {
|
|
4146
4146
|
key: "setDefaults",
|
|
4147
4147
|
value: function(n) {
|
|
4148
|
-
Ve(ki,
|
|
4148
|
+
Ve(ki, Wt(n) && n);
|
|
4149
4149
|
}
|
|
4150
4150
|
}]), e;
|
|
4151
4151
|
}();
|
|
@@ -4461,7 +4461,7 @@ As(function(e, t) {
|
|
|
4461
4461
|
}
|
|
4462
4462
|
return e;
|
|
4463
4463
|
});
|
|
4464
|
-
const Iy =
|
|
4464
|
+
const Iy = ve({
|
|
4465
4465
|
name: "Viewer",
|
|
4466
4466
|
props: {
|
|
4467
4467
|
images: {
|
|
@@ -4528,7 +4528,7 @@ const Iy = me({
|
|
|
4528
4528
|
return n;
|
|
4529
4529
|
}, Ny = { ref: "root" };
|
|
4530
4530
|
function Ry(e, t, n, r, a, i) {
|
|
4531
|
-
return
|
|
4531
|
+
return D(), Z("div", Ny, [
|
|
4532
4532
|
Rt(e.$slots, "default", {
|
|
4533
4533
|
images: e.images,
|
|
4534
4534
|
options: e.options
|
|
@@ -4537,7 +4537,7 @@ function Ry(e, t, n, r, a, i) {
|
|
|
4537
4537
|
}
|
|
4538
4538
|
const ky = /* @__PURE__ */ Dy(Iy, [["render", Ry]]), Ly = { style: { height: "800px", overflow: "hidden" } }, My = ["src"], [zy] = rt("preview-media-modal"), Fy = {
|
|
4539
4539
|
name: zy
|
|
4540
|
-
}, Ba = /* @__PURE__ */
|
|
4540
|
+
}, Ba = /* @__PURE__ */ ve({
|
|
4541
4541
|
...Fy,
|
|
4542
4542
|
props: {
|
|
4543
4543
|
show: { type: Boolean },
|
|
@@ -4583,16 +4583,16 @@ const ky = /* @__PURE__ */ Dy(Iy, [["render", Ry]]), Ly = { style: { height: "80
|
|
|
4583
4583
|
});
|
|
4584
4584
|
const $ = W(() => ({
|
|
4585
4585
|
transform: `translate(${S.value}px, ${C.value}px)`
|
|
4586
|
-
})), E = (_, M = 0,
|
|
4587
|
-
|
|
4586
|
+
})), E = (_, M = 0, N) => {
|
|
4587
|
+
N && (i.value = N), l.value = [..._], f.value = M, u.value = !0;
|
|
4588
4588
|
}, b = () => {
|
|
4589
4589
|
u.value = !1;
|
|
4590
4590
|
}, w = () => {
|
|
4591
4591
|
a(!1);
|
|
4592
4592
|
};
|
|
4593
|
-
return t({ open: E, close: b }), (_, M) => (
|
|
4593
|
+
return t({ open: E, close: b }), (_, M) => (D(), q(Ee(fr), {
|
|
4594
4594
|
visible: u.value,
|
|
4595
|
-
"onUpdate:visible": M[0] || (M[0] = (
|
|
4595
|
+
"onUpdate:visible": M[0] || (M[0] = (N) => u.value = N),
|
|
4596
4596
|
"destroy-on-close": "",
|
|
4597
4597
|
centered: "",
|
|
4598
4598
|
width: 800,
|
|
@@ -4614,11 +4614,11 @@ const ky = /* @__PURE__ */ Dy(Iy, [["render", Ry]]), Ly = { style: { height: "80
|
|
|
4614
4614
|
be("预览 ")
|
|
4615
4615
|
], 512)
|
|
4616
4616
|
]),
|
|
4617
|
-
modalRender: z(({ originVNode:
|
|
4617
|
+
modalRender: z(({ originVNode: N }) => [
|
|
4618
4618
|
ze("div", {
|
|
4619
4619
|
style: Cn($.value)
|
|
4620
4620
|
}, [
|
|
4621
|
-
(
|
|
4621
|
+
(D(), q(en(N)))
|
|
4622
4622
|
], 4)
|
|
4623
4623
|
]),
|
|
4624
4624
|
default: z(() => [
|
|
@@ -4627,12 +4627,12 @@ const ky = /* @__PURE__ */ Dy(Iy, [["render", Ry]]), Ly = { style: { height: "80
|
|
|
4627
4627
|
images: l.value,
|
|
4628
4628
|
onInited: c
|
|
4629
4629
|
}, {
|
|
4630
|
-
default: z((
|
|
4630
|
+
default: z((N) => [
|
|
4631
4631
|
ze("div", Ly, [
|
|
4632
|
-
(
|
|
4632
|
+
(D(!0), Z(me, null, Ye(N.images, (k) => (D(), Z("img", {
|
|
4633
4633
|
style: { opacity: "0" },
|
|
4634
|
-
src:
|
|
4635
|
-
key:
|
|
4634
|
+
src: k,
|
|
4635
|
+
key: k
|
|
4636
4636
|
}, null, 8, My))), 128))
|
|
4637
4637
|
])
|
|
4638
4638
|
]),
|
|
@@ -4684,7 +4684,7 @@ function Uy() {
|
|
|
4684
4684
|
state: e,
|
|
4685
4685
|
toggle: t
|
|
4686
4686
|
} = By();
|
|
4687
|
-
return () => Y(Ba,
|
|
4687
|
+
return () => Y(Ba, Pe(e, {
|
|
4688
4688
|
"onUpdate:show": t
|
|
4689
4689
|
}), null);
|
|
4690
4690
|
}
|
|
@@ -4707,60 +4707,60 @@ var Ls = { exports: {} };
|
|
|
4707
4707
|
(function(n, r) {
|
|
4708
4708
|
e.exports = r();
|
|
4709
4709
|
})(Vy, function() {
|
|
4710
|
-
var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", o = "second", s = "minute", u = "hour", l = "day", f = "week", c = "month", p = "quarter", d = "year", h = "date", v = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, O = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(
|
|
4711
|
-
var
|
|
4712
|
-
return "[" +
|
|
4713
|
-
} }, S = function(
|
|
4714
|
-
var j = String(
|
|
4715
|
-
return !j || j.length >=
|
|
4716
|
-
}, C = { s: S, z: function(
|
|
4717
|
-
var
|
|
4718
|
-
return (
|
|
4719
|
-
}, m: function
|
|
4720
|
-
if (
|
|
4721
|
-
return -
|
|
4722
|
-
var j = 12 * (
|
|
4723
|
-
return +(-(j + (
|
|
4724
|
-
}, a: function(
|
|
4725
|
-
return
|
|
4726
|
-
}, p: function(
|
|
4727
|
-
return { M: c, y: d, w: f, d: l, D: h, h: u, m: s, s: o, ms: i, Q: p }[
|
|
4728
|
-
}, u: function(
|
|
4729
|
-
return
|
|
4710
|
+
var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", o = "second", s = "minute", u = "hour", l = "day", f = "week", c = "month", p = "quarter", d = "year", h = "date", v = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, O = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
|
|
4711
|
+
var k = ["th", "st", "nd", "rd"], R = N % 100;
|
|
4712
|
+
return "[" + N + (k[(R - 20) % 10] || k[R] || k[0]) + "]";
|
|
4713
|
+
} }, S = function(N, k, R) {
|
|
4714
|
+
var j = String(N);
|
|
4715
|
+
return !j || j.length >= k ? N : "" + Array(k + 1 - j.length).join(R) + N;
|
|
4716
|
+
}, C = { s: S, z: function(N) {
|
|
4717
|
+
var k = -N.utcOffset(), R = Math.abs(k), j = Math.floor(R / 60), L = R % 60;
|
|
4718
|
+
return (k <= 0 ? "+" : "-") + S(j, 2, "0") + ":" + S(L, 2, "0");
|
|
4719
|
+
}, m: function N(k, R) {
|
|
4720
|
+
if (k.date() < R.date())
|
|
4721
|
+
return -N(R, k);
|
|
4722
|
+
var j = 12 * (R.year() - k.year()) + (R.month() - k.month()), L = k.clone().add(j, c), F = R - L < 0, V = k.clone().add(j + (F ? -1 : 1), c);
|
|
4723
|
+
return +(-(j + (R - L) / (F ? L - V : V - L)) || 0);
|
|
4724
|
+
}, a: function(N) {
|
|
4725
|
+
return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
|
|
4726
|
+
}, p: function(N) {
|
|
4727
|
+
return { M: c, y: d, w: f, d: l, D: h, h: u, m: s, s: o, ms: i, Q: p }[N] || String(N || "").toLowerCase().replace(/s$/, "");
|
|
4728
|
+
}, u: function(N) {
|
|
4729
|
+
return N === void 0;
|
|
4730
4730
|
} }, A = "en", T = {};
|
|
4731
4731
|
T[A] = O;
|
|
4732
|
-
var m = "$isDayjsObject", $ = function(
|
|
4733
|
-
return
|
|
4734
|
-
}, E = function
|
|
4732
|
+
var m = "$isDayjsObject", $ = function(N) {
|
|
4733
|
+
return N instanceof _ || !(!N || !N[m]);
|
|
4734
|
+
}, E = function N(k, R, j) {
|
|
4735
4735
|
var L;
|
|
4736
|
-
if (!
|
|
4736
|
+
if (!k)
|
|
4737
4737
|
return A;
|
|
4738
|
-
if (typeof
|
|
4739
|
-
var F =
|
|
4740
|
-
T[F] && (L = F),
|
|
4741
|
-
var V =
|
|
4738
|
+
if (typeof k == "string") {
|
|
4739
|
+
var F = k.toLowerCase();
|
|
4740
|
+
T[F] && (L = F), R && (T[F] = R, L = F);
|
|
4741
|
+
var V = k.split("-");
|
|
4742
4742
|
if (!L && V.length > 1)
|
|
4743
|
-
return
|
|
4743
|
+
return N(V[0]);
|
|
4744
4744
|
} else {
|
|
4745
|
-
var ee =
|
|
4746
|
-
T[ee] =
|
|
4745
|
+
var ee = k.name;
|
|
4746
|
+
T[ee] = k, L = ee;
|
|
4747
4747
|
}
|
|
4748
4748
|
return !j && L && (A = L), L || !j && A;
|
|
4749
|
-
}, b = function(
|
|
4750
|
-
if ($(
|
|
4751
|
-
return
|
|
4752
|
-
var
|
|
4753
|
-
return
|
|
4749
|
+
}, b = function(N, k) {
|
|
4750
|
+
if ($(N))
|
|
4751
|
+
return N.clone();
|
|
4752
|
+
var R = typeof k == "object" ? k : {};
|
|
4753
|
+
return R.date = N, R.args = arguments, new _(R);
|
|
4754
4754
|
}, w = C;
|
|
4755
|
-
w.l = E, w.i = $, w.w = function(
|
|
4756
|
-
return b(
|
|
4755
|
+
w.l = E, w.i = $, w.w = function(N, k) {
|
|
4756
|
+
return b(N, { locale: k.$L, utc: k.$u, x: k.$x, $offset: k.$offset });
|
|
4757
4757
|
};
|
|
4758
4758
|
var _ = function() {
|
|
4759
|
-
function
|
|
4760
|
-
this.$L = E(
|
|
4759
|
+
function N(R) {
|
|
4760
|
+
this.$L = E(R.locale, null, !0), this.parse(R), this.$x = this.$x || R.x || {}, this[m] = !0;
|
|
4761
4761
|
}
|
|
4762
|
-
var
|
|
4763
|
-
return
|
|
4762
|
+
var k = N.prototype;
|
|
4763
|
+
return k.parse = function(R) {
|
|
4764
4764
|
this.$d = function(j) {
|
|
4765
4765
|
var L = j.date, F = j.utc;
|
|
4766
4766
|
if (L === null)
|
|
@@ -4777,42 +4777,42 @@ var Ls = { exports: {} };
|
|
|
4777
4777
|
}
|
|
4778
4778
|
}
|
|
4779
4779
|
return new Date(L);
|
|
4780
|
-
}(
|
|
4781
|
-
},
|
|
4782
|
-
var
|
|
4783
|
-
this.$y =
|
|
4784
|
-
},
|
|
4780
|
+
}(R), this.init();
|
|
4781
|
+
}, k.init = function() {
|
|
4782
|
+
var R = this.$d;
|
|
4783
|
+
this.$y = R.getFullYear(), this.$M = R.getMonth(), this.$D = R.getDate(), this.$W = R.getDay(), this.$H = R.getHours(), this.$m = R.getMinutes(), this.$s = R.getSeconds(), this.$ms = R.getMilliseconds();
|
|
4784
|
+
}, k.$utils = function() {
|
|
4785
4785
|
return w;
|
|
4786
|
-
},
|
|
4786
|
+
}, k.isValid = function() {
|
|
4787
4787
|
return this.$d.toString() !== v;
|
|
4788
|
-
},
|
|
4789
|
-
var L = b(
|
|
4788
|
+
}, k.isSame = function(R, j) {
|
|
4789
|
+
var L = b(R);
|
|
4790
4790
|
return this.startOf(j) <= L && L <= this.endOf(j);
|
|
4791
|
-
},
|
|
4792
|
-
return b(
|
|
4793
|
-
},
|
|
4794
|
-
return this.endOf(j) < b(
|
|
4795
|
-
},
|
|
4796
|
-
return w.u(
|
|
4797
|
-
},
|
|
4791
|
+
}, k.isAfter = function(R, j) {
|
|
4792
|
+
return b(R) < this.startOf(j);
|
|
4793
|
+
}, k.isBefore = function(R, j) {
|
|
4794
|
+
return this.endOf(j) < b(R);
|
|
4795
|
+
}, k.$g = function(R, j, L) {
|
|
4796
|
+
return w.u(R) ? this[j] : this.set(L, R);
|
|
4797
|
+
}, k.unix = function() {
|
|
4798
4798
|
return Math.floor(this.valueOf() / 1e3);
|
|
4799
|
-
},
|
|
4799
|
+
}, k.valueOf = function() {
|
|
4800
4800
|
return this.$d.getTime();
|
|
4801
|
-
},
|
|
4802
|
-
var L = this, F = !!w.u(j) || j, V = w.p(
|
|
4801
|
+
}, k.startOf = function(R, j) {
|
|
4802
|
+
var L = this, F = !!w.u(j) || j, V = w.p(R), ee = function(Ke, Te) {
|
|
4803
4803
|
var _e = w.w(L.$u ? Date.UTC(L.$y, Te, Ke) : new Date(L.$y, Te, Ke), L);
|
|
4804
4804
|
return F ? _e : _e.endOf(l);
|
|
4805
4805
|
}, ne = function(Ke, Te) {
|
|
4806
4806
|
return w.w(L.toDate()[Ke].apply(L.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Te)), L);
|
|
4807
|
-
}, ie = this.$W,
|
|
4807
|
+
}, ie = this.$W, ye = this.$M, De = this.$D, xe = "set" + (this.$u ? "UTC" : "");
|
|
4808
4808
|
switch (V) {
|
|
4809
4809
|
case d:
|
|
4810
4810
|
return F ? ee(1, 0) : ee(31, 11);
|
|
4811
4811
|
case c:
|
|
4812
|
-
return F ? ee(1,
|
|
4812
|
+
return F ? ee(1, ye) : ee(0, ye + 1);
|
|
4813
4813
|
case f:
|
|
4814
4814
|
var Be = this.$locale().weekStart || 0, ot = (ie < Be ? ie + 7 : ie) - Be;
|
|
4815
|
-
return ee(F ?
|
|
4815
|
+
return ee(F ? De - ot : De + (6 - ot), ye);
|
|
4816
4816
|
case l:
|
|
4817
4817
|
case h:
|
|
4818
4818
|
return ne(xe + "Hours", 0);
|
|
@@ -4825,44 +4825,44 @@ var Ls = { exports: {} };
|
|
|
4825
4825
|
default:
|
|
4826
4826
|
return this.clone();
|
|
4827
4827
|
}
|
|
4828
|
-
},
|
|
4829
|
-
return this.startOf(
|
|
4830
|
-
},
|
|
4831
|
-
var L, F = w.p(
|
|
4828
|
+
}, k.endOf = function(R) {
|
|
4829
|
+
return this.startOf(R, !1);
|
|
4830
|
+
}, k.$set = function(R, j) {
|
|
4831
|
+
var L, F = w.p(R), V = "set" + (this.$u ? "UTC" : ""), ee = (L = {}, L[l] = V + "Date", L[h] = V + "Date", L[c] = V + "Month", L[d] = V + "FullYear", L[u] = V + "Hours", L[s] = V + "Minutes", L[o] = V + "Seconds", L[i] = V + "Milliseconds", L)[F], ne = F === l ? this.$D + (j - this.$W) : j;
|
|
4832
4832
|
if (F === c || F === d) {
|
|
4833
4833
|
var ie = this.clone().set(h, 1);
|
|
4834
4834
|
ie.$d[ee](ne), ie.init(), this.$d = ie.set(h, Math.min(this.$D, ie.daysInMonth())).$d;
|
|
4835
4835
|
} else
|
|
4836
4836
|
ee && this.$d[ee](ne);
|
|
4837
4837
|
return this.init(), this;
|
|
4838
|
-
},
|
|
4839
|
-
return this.clone().$set(
|
|
4840
|
-
},
|
|
4841
|
-
return this[w.p(
|
|
4842
|
-
},
|
|
4838
|
+
}, k.set = function(R, j) {
|
|
4839
|
+
return this.clone().$set(R, j);
|
|
4840
|
+
}, k.get = function(R) {
|
|
4841
|
+
return this[w.p(R)]();
|
|
4842
|
+
}, k.add = function(R, j) {
|
|
4843
4843
|
var L, F = this;
|
|
4844
|
-
|
|
4845
|
-
var V = w.p(j), ee = function(
|
|
4846
|
-
var
|
|
4847
|
-
return w.w(
|
|
4844
|
+
R = Number(R);
|
|
4845
|
+
var V = w.p(j), ee = function(ye) {
|
|
4846
|
+
var De = b(F);
|
|
4847
|
+
return w.w(De.date(De.date() + Math.round(ye * R)), F);
|
|
4848
4848
|
};
|
|
4849
4849
|
if (V === c)
|
|
4850
|
-
return this.set(c, this.$M +
|
|
4850
|
+
return this.set(c, this.$M + R);
|
|
4851
4851
|
if (V === d)
|
|
4852
|
-
return this.set(d, this.$y +
|
|
4852
|
+
return this.set(d, this.$y + R);
|
|
4853
4853
|
if (V === l)
|
|
4854
4854
|
return ee(1);
|
|
4855
4855
|
if (V === f)
|
|
4856
4856
|
return ee(7);
|
|
4857
|
-
var ne = (L = {}, L[s] = r, L[u] = a, L[o] = n, L)[V] || 1, ie = this.$d.getTime() +
|
|
4857
|
+
var ne = (L = {}, L[s] = r, L[u] = a, L[o] = n, L)[V] || 1, ie = this.$d.getTime() + R * ne;
|
|
4858
4858
|
return w.w(ie, this);
|
|
4859
|
-
},
|
|
4860
|
-
return this.add(-1 *
|
|
4861
|
-
},
|
|
4859
|
+
}, k.subtract = function(R, j) {
|
|
4860
|
+
return this.add(-1 * R, j);
|
|
4861
|
+
}, k.format = function(R) {
|
|
4862
4862
|
var j = this, L = this.$locale();
|
|
4863
4863
|
if (!this.isValid())
|
|
4864
4864
|
return L.invalidDate || v;
|
|
4865
|
-
var F =
|
|
4865
|
+
var F = R || "YYYY-MM-DDTHH:mm:ssZ", V = w.z(this), ee = this.$H, ne = this.$m, ie = this.$M, ye = L.weekdays, De = L.months, xe = L.meridiem, Be = function(Te, _e, We, He) {
|
|
4866
4866
|
return Te && (Te[_e] || Te(j, F)) || We[_e].slice(0, He);
|
|
4867
4867
|
}, ot = function(Te) {
|
|
4868
4868
|
return w.s(ee % 12 || 12, Te, "0");
|
|
@@ -4882,9 +4882,9 @@ var Ls = { exports: {} };
|
|
|
4882
4882
|
case "MM":
|
|
4883
4883
|
return w.s(ie + 1, 2, "0");
|
|
4884
4884
|
case "MMM":
|
|
4885
|
-
return Be(L.monthsShort, ie,
|
|
4885
|
+
return Be(L.monthsShort, ie, De, 3);
|
|
4886
4886
|
case "MMMM":
|
|
4887
|
-
return Be(
|
|
4887
|
+
return Be(De, ie);
|
|
4888
4888
|
case "D":
|
|
4889
4889
|
return j.$D;
|
|
4890
4890
|
case "DD":
|
|
@@ -4892,11 +4892,11 @@ var Ls = { exports: {} };
|
|
|
4892
4892
|
case "d":
|
|
4893
4893
|
return String(j.$W);
|
|
4894
4894
|
case "dd":
|
|
4895
|
-
return Be(L.weekdaysMin, j.$W,
|
|
4895
|
+
return Be(L.weekdaysMin, j.$W, ye, 2);
|
|
4896
4896
|
case "ddd":
|
|
4897
|
-
return Be(L.weekdaysShort, j.$W,
|
|
4897
|
+
return Be(L.weekdaysShort, j.$W, ye, 3);
|
|
4898
4898
|
case "dddd":
|
|
4899
|
-
return
|
|
4899
|
+
return ye[j.$W];
|
|
4900
4900
|
case "H":
|
|
4901
4901
|
return String(ee);
|
|
4902
4902
|
case "HH":
|
|
@@ -4925,70 +4925,70 @@ var Ls = { exports: {} };
|
|
|
4925
4925
|
return null;
|
|
4926
4926
|
}(Te) || V.replace(":", "");
|
|
4927
4927
|
});
|
|
4928
|
-
},
|
|
4928
|
+
}, k.utcOffset = function() {
|
|
4929
4929
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4930
|
-
},
|
|
4931
|
-
var F, V = this, ee = w.p(j), ne = b(
|
|
4930
|
+
}, k.diff = function(R, j, L) {
|
|
4931
|
+
var F, V = this, ee = w.p(j), ne = b(R), ie = (ne.utcOffset() - this.utcOffset()) * r, ye = this - ne, De = function() {
|
|
4932
4932
|
return w.m(V, ne);
|
|
4933
4933
|
};
|
|
4934
4934
|
switch (ee) {
|
|
4935
4935
|
case d:
|
|
4936
|
-
F =
|
|
4936
|
+
F = De() / 12;
|
|
4937
4937
|
break;
|
|
4938
4938
|
case c:
|
|
4939
|
-
F =
|
|
4939
|
+
F = De();
|
|
4940
4940
|
break;
|
|
4941
4941
|
case p:
|
|
4942
|
-
F =
|
|
4942
|
+
F = De() / 3;
|
|
4943
4943
|
break;
|
|
4944
4944
|
case f:
|
|
4945
|
-
F = (
|
|
4945
|
+
F = (ye - ie) / 6048e5;
|
|
4946
4946
|
break;
|
|
4947
4947
|
case l:
|
|
4948
|
-
F = (
|
|
4948
|
+
F = (ye - ie) / 864e5;
|
|
4949
4949
|
break;
|
|
4950
4950
|
case u:
|
|
4951
|
-
F =
|
|
4951
|
+
F = ye / a;
|
|
4952
4952
|
break;
|
|
4953
4953
|
case s:
|
|
4954
|
-
F =
|
|
4954
|
+
F = ye / r;
|
|
4955
4955
|
break;
|
|
4956
4956
|
case o:
|
|
4957
|
-
F =
|
|
4957
|
+
F = ye / n;
|
|
4958
4958
|
break;
|
|
4959
4959
|
default:
|
|
4960
|
-
F =
|
|
4960
|
+
F = ye;
|
|
4961
4961
|
}
|
|
4962
4962
|
return L ? F : w.a(F);
|
|
4963
|
-
},
|
|
4963
|
+
}, k.daysInMonth = function() {
|
|
4964
4964
|
return this.endOf(c).$D;
|
|
4965
|
-
},
|
|
4965
|
+
}, k.$locale = function() {
|
|
4966
4966
|
return T[this.$L];
|
|
4967
|
-
},
|
|
4968
|
-
if (!
|
|
4967
|
+
}, k.locale = function(R, j) {
|
|
4968
|
+
if (!R)
|
|
4969
4969
|
return this.$L;
|
|
4970
|
-
var L = this.clone(), F = E(
|
|
4970
|
+
var L = this.clone(), F = E(R, j, !0);
|
|
4971
4971
|
return F && (L.$L = F), L;
|
|
4972
|
-
},
|
|
4972
|
+
}, k.clone = function() {
|
|
4973
4973
|
return w.w(this.$d, this);
|
|
4974
|
-
},
|
|
4974
|
+
}, k.toDate = function() {
|
|
4975
4975
|
return new Date(this.valueOf());
|
|
4976
|
-
},
|
|
4976
|
+
}, k.toJSON = function() {
|
|
4977
4977
|
return this.isValid() ? this.toISOString() : null;
|
|
4978
|
-
},
|
|
4978
|
+
}, k.toISOString = function() {
|
|
4979
4979
|
return this.$d.toISOString();
|
|
4980
|
-
},
|
|
4980
|
+
}, k.toString = function() {
|
|
4981
4981
|
return this.$d.toUTCString();
|
|
4982
|
-
},
|
|
4982
|
+
}, N;
|
|
4983
4983
|
}(), M = _.prototype;
|
|
4984
|
-
return b.prototype = M, [["$ms", i], ["$s", o], ["$m", s], ["$H", u], ["$W", l], ["$M", c], ["$y", d], ["$D", h]].forEach(function(
|
|
4985
|
-
M[
|
|
4986
|
-
return this.$g(
|
|
4984
|
+
return b.prototype = M, [["$ms", i], ["$s", o], ["$m", s], ["$H", u], ["$W", l], ["$M", c], ["$y", d], ["$D", h]].forEach(function(N) {
|
|
4985
|
+
M[N[1]] = function(k) {
|
|
4986
|
+
return this.$g(k, N[0], N[1]);
|
|
4987
4987
|
};
|
|
4988
|
-
}), b.extend = function(
|
|
4989
|
-
return
|
|
4990
|
-
}, b.locale = E, b.isDayjs = $, b.unix = function(
|
|
4991
|
-
return b(1e3 *
|
|
4988
|
+
}), b.extend = function(N, k) {
|
|
4989
|
+
return N.$i || (N(k, _, b), N.$i = !0), b;
|
|
4990
|
+
}, b.locale = E, b.isDayjs = $, b.unix = function(N) {
|
|
4991
|
+
return b(1e3 * N);
|
|
4992
4992
|
}, b.en = T[A], b.Ls = T, b.p = {}, b;
|
|
4993
4993
|
});
|
|
4994
4994
|
})(Ls);
|
|
@@ -5094,7 +5094,7 @@ const [Qy] = rt("input-range"), Zy = {
|
|
|
5094
5094
|
min: Gl(0),
|
|
5095
5095
|
max: Number,
|
|
5096
5096
|
placeholder: qr()
|
|
5097
|
-
}, Jy = /* @__PURE__ */
|
|
5097
|
+
}, Jy = /* @__PURE__ */ ve({
|
|
5098
5098
|
name: Qy,
|
|
5099
5099
|
props: Zy,
|
|
5100
5100
|
emits: ["update:value"],
|
|
@@ -5161,7 +5161,7 @@ const [Qy] = rt("input-range"), Zy = {
|
|
|
5161
5161
|
}, Ya = {
|
|
5162
5162
|
YzsEnumSelect: zo,
|
|
5163
5163
|
YzsEnumFuzzySelect: hs
|
|
5164
|
-
}, tb = "Enter", nb = 13, ea = "FuzzySelect", er = "QuerySelect", rb = "InputRange", Fs = /* @__PURE__ */
|
|
5164
|
+
}, tb = "Enter", nb = 13, ea = "FuzzySelect", er = "QuerySelect", rb = "InputRange", Fs = /* @__PURE__ */ ve({
|
|
5165
5165
|
name: "ConditionBuilder",
|
|
5166
5166
|
props: {
|
|
5167
5167
|
materials: {
|
|
@@ -5300,7 +5300,7 @@ const [Qy] = rt("input-range"), Zy = {
|
|
|
5300
5300
|
return { formState: e, dispatchFormState: t, initFormState: (r = [], a = /* @__PURE__ */ Object.create(null), i) => (e[i] || (e[i] = /* @__PURE__ */ Object.create(null)), r.forEach((o) => {
|
|
5301
5301
|
e[i][o.fieldName] = void 0;
|
|
5302
5302
|
}), t(a, i), e[i]) };
|
|
5303
|
-
}), js = /* @__PURE__ */
|
|
5303
|
+
}), js = /* @__PURE__ */ ve({
|
|
5304
5304
|
name: "CustomConditionBuilder",
|
|
5305
5305
|
props: {
|
|
5306
5306
|
materials: {
|
|
@@ -5333,7 +5333,7 @@ const [Qy] = rt("input-range"), Zy = {
|
|
|
5333
5333
|
}) : je("span", "Invalid Type");
|
|
5334
5334
|
};
|
|
5335
5335
|
}
|
|
5336
|
-
}), { Item: ab, useForm: ib } = ya, ob =
|
|
5336
|
+
}), { Item: ab, useForm: ib } = ya, ob = ve({
|
|
5337
5337
|
name: "PageRendererConditions",
|
|
5338
5338
|
components: {
|
|
5339
5339
|
DownOutlined: Po,
|
|
@@ -5411,7 +5411,7 @@ const [Qy] = rt("input-range"), Zy = {
|
|
|
5411
5411
|
});
|
|
5412
5412
|
function sb(e, t, n, r, a, i) {
|
|
5413
5413
|
const o = B("CustomConditionBuilder"), s = B("ConditionBuilder"), u = B("Item"), l = B("Col"), f = B("Button"), c = B("UpOutlined"), p = B("DownOutlined"), d = B("Space"), h = B("Row"), v = B("Form");
|
|
5414
|
-
return
|
|
5414
|
+
return D(), q(v, {
|
|
5415
5415
|
class: "page-renderer-conditions",
|
|
5416
5416
|
"label-col": { span: 8 },
|
|
5417
5417
|
"wrapper-col": { span: 16 }
|
|
@@ -5419,9 +5419,9 @@ function sb(e, t, n, r, a, i) {
|
|
|
5419
5419
|
default: z(() => [
|
|
5420
5420
|
Y(h, { gutter: 24 }, {
|
|
5421
5421
|
default: z(() => [
|
|
5422
|
-
(
|
|
5422
|
+
(D(!0), Z(me, null, Ye(e.config, (g, y) => {
|
|
5423
5423
|
var O;
|
|
5424
|
-
return cr((
|
|
5424
|
+
return cr((D(), q(l, {
|
|
5425
5425
|
key: g.fieldName,
|
|
5426
5426
|
span: ((O = g.otherProps) == null ? void 0 : O.span) || 4,
|
|
5427
5427
|
class: "conditions-item-col"
|
|
@@ -5429,7 +5429,7 @@ function sb(e, t, n, r, a, i) {
|
|
|
5429
5429
|
default: z(() => {
|
|
5430
5430
|
var S, C;
|
|
5431
5431
|
return [
|
|
5432
|
-
Y(u,
|
|
5432
|
+
Y(u, Pe(e.validateInfos[g.fieldName], {
|
|
5433
5433
|
colon: !1,
|
|
5434
5434
|
"label-col": (S = g.otherProps) == null ? void 0 : S.labelCol,
|
|
5435
5435
|
"wrapper-col": (C = g.otherProps) == null ? void 0 : C.wrapperCol,
|
|
@@ -5441,13 +5441,13 @@ function sb(e, t, n, r, a, i) {
|
|
|
5441
5441
|
}
|
|
5442
5442
|
}), {
|
|
5443
5443
|
default: z(() => [
|
|
5444
|
-
e.customMaterialsMap[g.type] ? (
|
|
5444
|
+
e.customMaterialsMap[g.type] ? (D(), q(o, {
|
|
5445
5445
|
key: 0,
|
|
5446
5446
|
value: e.formState[e.pageName][g.fieldName],
|
|
5447
5447
|
"onUpdate:value": (A) => e.formState[e.pageName][g.fieldName] = A,
|
|
5448
5448
|
materials: g,
|
|
5449
5449
|
onPressEnter: e.onSubmit
|
|
5450
|
-
}, null, 8, ["value", "onUpdate:value", "materials", "onPressEnter"])) : (
|
|
5450
|
+
}, null, 8, ["value", "onUpdate:value", "materials", "onPressEnter"])) : (D(), q(s, {
|
|
5451
5451
|
key: 1,
|
|
5452
5452
|
value: e.formState[e.pageName][g.fieldName],
|
|
5453
5453
|
"onUpdate:value": (A) => e.formState[e.pageName][g.fieldName] = A,
|
|
@@ -5488,15 +5488,15 @@ function sb(e, t, n, r, a, i) {
|
|
|
5488
5488
|
]),
|
|
5489
5489
|
_: 1
|
|
5490
5490
|
}),
|
|
5491
|
-
e.showAvailiableTrigger ? (
|
|
5491
|
+
e.showAvailiableTrigger ? (D(), Z("a", {
|
|
5492
5492
|
key: 0,
|
|
5493
5493
|
style: { "font-size": "12px" },
|
|
5494
5494
|
onClick: t[1] || (t[1] = (g) => e.expand = !e.expand)
|
|
5495
5495
|
}, [
|
|
5496
|
-
e.expand ? (
|
|
5496
|
+
e.expand ? (D(), Z(me, { key: 0 }, [
|
|
5497
5497
|
Y(c),
|
|
5498
5498
|
be(re(e.$t("collapse") || "收起"), 1)
|
|
5499
|
-
], 64)) : (
|
|
5499
|
+
], 64)) : (D(), Z(me, { key: 1 }, [
|
|
5500
5500
|
Y(p),
|
|
5501
5501
|
be(re(e.$t("expand") || "展开"), 1)
|
|
5502
5502
|
], 64))
|
|
@@ -5526,7 +5526,7 @@ const lb = /* @__PURE__ */ at(ob, [["render", sb]]), Kn = zn(() => {
|
|
|
5526
5526
|
},
|
|
5527
5527
|
{ deep: !0 }
|
|
5528
5528
|
), { selectedRows: e, selectedRowKeys: t, selectedErrorRowKeys: n };
|
|
5529
|
-
}), tr = "__$$loading",
|
|
5529
|
+
}), tr = "__$$loading", Jt = "__$$map", ub = "__$$rowClassName", xs = [
|
|
5530
5530
|
{ value: 100, label: 100 },
|
|
5531
5531
|
{ value: 200, label: 200 },
|
|
5532
5532
|
{ value: 500, label: 500 }
|
|
@@ -5543,7 +5543,7 @@ const lb = /* @__PURE__ */ at(ob, [["render", sb]]), Kn = zn(() => {
|
|
|
5543
5543
|
COLUMN_SETTING: "列表设置",
|
|
5544
5544
|
FILTER_SETTING: "筛选设置",
|
|
5545
5545
|
SORT_SETTING: "排序设置"
|
|
5546
|
-
}, pb =
|
|
5546
|
+
}, pb = ve({
|
|
5547
5547
|
name: "PageRendererButtons",
|
|
5548
5548
|
components: {
|
|
5549
5549
|
aicon: wa,
|
|
@@ -5602,11 +5602,11 @@ const lb = /* @__PURE__ */ at(ob, [["render", sb]]), Kn = zn(() => {
|
|
|
5602
5602
|
}, { current: a, pageSize: i, exportConfig: o, importConfig: s, pageSizeOptions: u } = et(e), l = P(!1), f = P(!1), c = Se("pageName", ""), { selectedRows: p } = Kn(), d = W(() => u.value || xs), h = (_, M) => {
|
|
5603
5603
|
if (_.needSelectRows) {
|
|
5604
5604
|
if (!p[c].length) {
|
|
5605
|
-
|
|
5605
|
+
Ie.warn(n("pleaseSelectData") || "请选择数据");
|
|
5606
5606
|
return;
|
|
5607
5607
|
}
|
|
5608
5608
|
if (_.mode === "single" && p[c].length > 1) {
|
|
5609
|
-
|
|
5609
|
+
Ie.warn(n("onlyOneDataCanBeSelected") || "只能选择一条数据");
|
|
5610
5610
|
return;
|
|
5611
5611
|
}
|
|
5612
5612
|
}
|
|
@@ -5626,7 +5626,7 @@ const lb = /* @__PURE__ */ at(ob, [["render", sb]]), Kn = zn(() => {
|
|
|
5626
5626
|
}) : null, S = (w = (b = s.value) == null ? void 0 : b.children) != null && w.length ? s.value.children.map((_) => gt(_.url, "post", {
|
|
5627
5627
|
..._.requestOptions
|
|
5628
5628
|
})) : [], C = async () => {
|
|
5629
|
-
var
|
|
5629
|
+
var N;
|
|
5630
5630
|
const { formState: _ } = Bn(), M = o.value ? Ka({
|
|
5631
5631
|
conditions: Le(_[c]),
|
|
5632
5632
|
apiConfig: o.value
|
|
@@ -5634,19 +5634,19 @@ const lb = /* @__PURE__ */ at(ob, [["render", sb]]), Kn = zn(() => {
|
|
|
5634
5634
|
y(M, c);
|
|
5635
5635
|
try {
|
|
5636
5636
|
l.value = !0;
|
|
5637
|
-
const
|
|
5638
|
-
if (!
|
|
5637
|
+
const k = await O(M);
|
|
5638
|
+
if (!k)
|
|
5639
5639
|
return;
|
|
5640
|
-
const
|
|
5641
|
-
let j = ((
|
|
5642
|
-
for (; (L =
|
|
5640
|
+
const R = /\{\{(.+?)\}\}/g;
|
|
5641
|
+
let j = ((N = o.value) == null ? void 0 : N.fileName) || "", L = null;
|
|
5642
|
+
for (; (L = R.exec(j)) !== null; )
|
|
5643
5643
|
L[1] === "Date" && (j = j.replace(L[0], Ms().format("YYYY-MM-DD")));
|
|
5644
|
-
const F = document.createElement("a"), V = window.URL.createObjectURL(new Blob([
|
|
5644
|
+
const F = document.createElement("a"), V = window.URL.createObjectURL(new Blob([k]));
|
|
5645
5645
|
if (F.href = V, F.download = j, document.body.appendChild(F), F.click(), document.body.removeChild(F), window.URL.revokeObjectURL(V), o.value.needFeedback === !1)
|
|
5646
5646
|
return;
|
|
5647
|
-
|
|
5648
|
-
} catch (
|
|
5649
|
-
console.warn("export error: ",
|
|
5647
|
+
Ie.success(n("exportSuccess") || "导出成功");
|
|
5648
|
+
} catch (k) {
|
|
5649
|
+
console.warn("export error: ", k);
|
|
5650
5650
|
} finally {
|
|
5651
5651
|
l.value = !1;
|
|
5652
5652
|
}
|
|
@@ -5660,24 +5660,24 @@ const lb = /* @__PURE__ */ at(ob, [["render", sb]]), Kn = zn(() => {
|
|
|
5660
5660
|
accept: _
|
|
5661
5661
|
/** feedback = true, needRefresh = true */
|
|
5662
5662
|
}, M) => {
|
|
5663
|
-
const
|
|
5663
|
+
const N = /^\.[a-zA-Z]+$/, k = _ == null ? void 0 : _.reduce(
|
|
5664
5664
|
(L, F) => {
|
|
5665
|
-
if (!
|
|
5665
|
+
if (!N.test(F))
|
|
5666
5666
|
throw `请提供正确的文件后缀名,是否是 【.${F}】 ?`;
|
|
5667
5667
|
return L[fb[F]] = [F], L;
|
|
5668
5668
|
},
|
|
5669
5669
|
{}
|
|
5670
|
-
), [
|
|
5670
|
+
), [R] = await window.showOpenFilePicker({
|
|
5671
5671
|
types: [
|
|
5672
5672
|
{
|
|
5673
|
-
accept:
|
|
5673
|
+
accept: k
|
|
5674
5674
|
}
|
|
5675
5675
|
]
|
|
5676
5676
|
/** 文件选择器带有一个允许用户选择所有类型文件的过滤选项,默认为false */
|
|
5677
5677
|
// excludeAcceptAllOption: false,
|
|
5678
5678
|
/** 是否允许多选,默认为false */
|
|
5679
5679
|
// multiple: false,
|
|
5680
|
-
}), j = await
|
|
5680
|
+
}), j = await R.getFile();
|
|
5681
5681
|
if (j) {
|
|
5682
5682
|
const L = S[M], F = new FormData();
|
|
5683
5683
|
F.append("file", j), f.value = !0, L(F).finally(() => {
|
|
@@ -5695,16 +5695,16 @@ const lb = /* @__PURE__ */ at(ob, [["render", sb]]), Kn = zn(() => {
|
|
|
5695
5695
|
paginationSizeOptions: d,
|
|
5696
5696
|
OPERATIONS_EXPORT_MAP: db,
|
|
5697
5697
|
handleImport: (_, M) => {
|
|
5698
|
-
const { type:
|
|
5699
|
-
if (["TEMPLATE_LOCAL"].includes(
|
|
5698
|
+
const { type: N } = _;
|
|
5699
|
+
if (["TEMPLATE_LOCAL"].includes(N)) {
|
|
5700
5700
|
A(_);
|
|
5701
5701
|
return;
|
|
5702
5702
|
}
|
|
5703
|
-
if (["IMPORT"].includes(
|
|
5703
|
+
if (["IMPORT"].includes(N)) {
|
|
5704
5704
|
T(_, M);
|
|
5705
5705
|
return;
|
|
5706
5706
|
}
|
|
5707
|
-
|
|
5707
|
+
Ie.warn(`请确认ImportConfigItem.type是否正确: ${N}`);
|
|
5708
5708
|
},
|
|
5709
5709
|
handleApiConfigExport: C,
|
|
5710
5710
|
handleButtonClick: h
|
|
@@ -5713,19 +5713,19 @@ const lb = /* @__PURE__ */ at(ob, [["render", sb]]), Kn = zn(() => {
|
|
|
5713
5713
|
});
|
|
5714
5714
|
const hb = { class: "page-renderer-buttons" }, gb = { class: "page-renderer-buttons-left" }, mb = { class: "page-renderer-buttons-right" }, vb = { key: 2 }, yb = { class: "page-renderer-setting-trigger" }, bb = { href: "javascript:;" };
|
|
5715
5715
|
function wb(e, t, n, r, a, i) {
|
|
5716
|
-
const o = B("aicon"), s = B("
|
|
5717
|
-
return
|
|
5716
|
+
const o = B("aicon"), s = B("DownOutlined"), u = B("Button"), l = B("MenuItem"), f = B("Menu"), c = B("Space"), p = B("Dropdown"), d = B("Pagination"), h = B("Select"), v = B("SettingOutlined"), g = _o("permission");
|
|
5717
|
+
return D(), Z("div", hb, [
|
|
5718
5718
|
ze("div", gb, [
|
|
5719
|
-
Y(
|
|
5719
|
+
Y(c, { wrap: "" }, {
|
|
5720
5720
|
default: z(() => [
|
|
5721
|
-
(
|
|
5721
|
+
(D(!0), Z(me, null, Ye(e.config, (y, O) => cr((D(), q(en(y.type), Pe(y.otherProps, {
|
|
5722
5722
|
key: `${y.type}${O}`,
|
|
5723
5723
|
onClick: (S) => e.handleButtonClick(y, S)
|
|
5724
5724
|
}), Oo({
|
|
5725
5725
|
overlay: z(() => [
|
|
5726
|
-
Y(
|
|
5726
|
+
Y(f, null, {
|
|
5727
5727
|
default: z(() => [
|
|
5728
|
-
(
|
|
5728
|
+
(D(!0), Z(me, null, Ye(y.sublist, (S) => (D(), q(l, {
|
|
5729
5729
|
key: S.action,
|
|
5730
5730
|
onClick: (C) => e.handleButtonClick(S, C)
|
|
5731
5731
|
}, {
|
|
@@ -5739,11 +5739,19 @@ function wb(e, t, n, r, a, i) {
|
|
|
5739
5739
|
}, 1024)
|
|
5740
5740
|
]),
|
|
5741
5741
|
default: z(() => [
|
|
5742
|
-
|
|
5742
|
+
y.sublist && y.sublist.length > 0 && y.type === "Dropdown" ? (D(), q(u, Yt(Pe({ key: 0 }, y.otherProps)), {
|
|
5743
|
+
default: z(() => [
|
|
5744
|
+
be(re(y.children) + " ", 1),
|
|
5745
|
+
Y(s)
|
|
5746
|
+
]),
|
|
5747
|
+
_: 2
|
|
5748
|
+
}, 1040)) : (D(), Z(me, { key: 1 }, [
|
|
5749
|
+
be(re(y.children), 1)
|
|
5750
|
+
], 64))
|
|
5743
5751
|
]),
|
|
5744
5752
|
_: 2
|
|
5745
5753
|
}, [
|
|
5746
|
-
y.iconType ? {
|
|
5754
|
+
y.iconType && y.sublist && y.sublist.length > 0 ? {
|
|
5747
5755
|
name: "icon",
|
|
5748
5756
|
fn: z(() => [
|
|
5749
5757
|
Y(o, {
|
|
@@ -5760,20 +5768,20 @@ function wb(e, t, n, r, a, i) {
|
|
|
5760
5768
|
})
|
|
5761
5769
|
]),
|
|
5762
5770
|
ze("div", mb, [
|
|
5763
|
-
Y(
|
|
5771
|
+
Y(c, null, {
|
|
5764
5772
|
default: z(() => {
|
|
5765
5773
|
var y, O;
|
|
5766
5774
|
return [
|
|
5767
|
-
e.hasApiConfig ? (
|
|
5768
|
-
(y = e.importConfig) != null && y.children ? (
|
|
5775
|
+
e.hasApiConfig ? (D(), Z(me, { key: 0 }, [
|
|
5776
|
+
(y = e.importConfig) != null && y.children ? (D(), q(p, {
|
|
5769
5777
|
key: 0,
|
|
5770
5778
|
trigger: ["click"],
|
|
5771
5779
|
disabled: e.importLoading
|
|
5772
5780
|
}, {
|
|
5773
5781
|
overlay: z(() => [
|
|
5774
|
-
Y(
|
|
5782
|
+
Y(f, null, {
|
|
5775
5783
|
default: z(() => [
|
|
5776
|
-
(
|
|
5784
|
+
(D(!0), Z(me, null, Ye(e.importConfig.children, (S, C) => (D(), q(l, {
|
|
5777
5785
|
key: C,
|
|
5778
5786
|
onClick: () => e.handleImport(S, C)
|
|
5779
5787
|
}, {
|
|
@@ -5787,7 +5795,7 @@ function wb(e, t, n, r, a, i) {
|
|
|
5787
5795
|
})
|
|
5788
5796
|
]),
|
|
5789
5797
|
default: z(() => [
|
|
5790
|
-
Y(
|
|
5798
|
+
Y(u, {
|
|
5791
5799
|
loading: e.importLoading,
|
|
5792
5800
|
size: "small",
|
|
5793
5801
|
type: "primary"
|
|
@@ -5800,7 +5808,7 @@ function wb(e, t, n, r, a, i) {
|
|
|
5800
5808
|
]),
|
|
5801
5809
|
_: 1
|
|
5802
5810
|
}, 8, ["disabled"])) : ge("", !0),
|
|
5803
|
-
e.exportConfig ? (
|
|
5811
|
+
e.exportConfig ? (D(), q(u, {
|
|
5804
5812
|
key: 1,
|
|
5805
5813
|
size: "small",
|
|
5806
5814
|
type: "primary",
|
|
@@ -5812,16 +5820,16 @@ function wb(e, t, n, r, a, i) {
|
|
|
5812
5820
|
]),
|
|
5813
5821
|
_: 1
|
|
5814
5822
|
}, 8, ["loading"])) : ge("", !0)
|
|
5815
|
-
], 64)) : (
|
|
5816
|
-
(O = e.importConfig) != null && O.sublist ? (
|
|
5823
|
+
], 64)) : (D(), Z(me, { key: 1 }, [
|
|
5824
|
+
(O = e.importConfig) != null && O.sublist ? (D(), q(p, {
|
|
5817
5825
|
key: 0,
|
|
5818
5826
|
trigger: ["click"],
|
|
5819
5827
|
disabled: e.importLoading
|
|
5820
5828
|
}, {
|
|
5821
5829
|
overlay: z(() => [
|
|
5822
|
-
Y(
|
|
5830
|
+
Y(f, null, {
|
|
5823
5831
|
default: z(() => [
|
|
5824
|
-
(
|
|
5832
|
+
(D(!0), Z(me, null, Ye(e.importConfig.sublist, (S, C) => (D(), q(l, {
|
|
5825
5833
|
key: C,
|
|
5826
5834
|
onClick: () => e.handleImport(S, C)
|
|
5827
5835
|
}, {
|
|
@@ -5835,7 +5843,7 @@ function wb(e, t, n, r, a, i) {
|
|
|
5835
5843
|
})
|
|
5836
5844
|
]),
|
|
5837
5845
|
default: z(() => [
|
|
5838
|
-
Y(
|
|
5846
|
+
Y(u, {
|
|
5839
5847
|
loading: e.importLoading,
|
|
5840
5848
|
size: "small",
|
|
5841
5849
|
type: "primary"
|
|
@@ -5848,13 +5856,13 @@ function wb(e, t, n, r, a, i) {
|
|
|
5848
5856
|
]),
|
|
5849
5857
|
_: 1
|
|
5850
5858
|
}, 8, ["disabled"])) : ge("", !0),
|
|
5851
|
-
e.exportConfig ? (
|
|
5859
|
+
e.exportConfig ? (D(), q(p, { key: 1 }, {
|
|
5852
5860
|
overlay: z(() => [
|
|
5853
|
-
Y(
|
|
5861
|
+
Y(f, {
|
|
5854
5862
|
onClick: t[1] || (t[1] = (S) => e.handleExport(S.key))
|
|
5855
5863
|
}, {
|
|
5856
5864
|
default: z(() => [
|
|
5857
|
-
(
|
|
5865
|
+
(D(!0), Z(me, null, Ye(e.OPERATIONS_EXPORT_MAP, (S, C) => (D(), q(l, { key: C }, {
|
|
5858
5866
|
default: z(() => [
|
|
5859
5867
|
be(re(S), 1)
|
|
5860
5868
|
]),
|
|
@@ -5865,14 +5873,14 @@ function wb(e, t, n, r, a, i) {
|
|
|
5865
5873
|
})
|
|
5866
5874
|
]),
|
|
5867
5875
|
default: z(() => [
|
|
5868
|
-
Y(
|
|
5876
|
+
Y(u, {
|
|
5869
5877
|
size: "small",
|
|
5870
5878
|
type: "primary",
|
|
5871
5879
|
loading: e.exportLoading
|
|
5872
5880
|
}, {
|
|
5873
5881
|
default: z(() => [
|
|
5874
5882
|
be(" 导出 "),
|
|
5875
|
-
Y(
|
|
5883
|
+
Y(s)
|
|
5876
5884
|
]),
|
|
5877
5885
|
_: 1
|
|
5878
5886
|
}, 8, ["loading"])
|
|
@@ -5880,7 +5888,7 @@ function wb(e, t, n, r, a, i) {
|
|
|
5880
5888
|
_: 1
|
|
5881
5889
|
})) : ge("", !0)
|
|
5882
5890
|
], 64)),
|
|
5883
|
-
e.hasApiConfig ? (
|
|
5891
|
+
e.hasApiConfig ? (D(), Z("div", vb, re(e.$t("total") || "共") + " " + re(e.total) + " " + re(e.$t("items") || "条"), 1)) : ge("", !0),
|
|
5884
5892
|
Y(d, {
|
|
5885
5893
|
class: "operations-pagination-simple",
|
|
5886
5894
|
current: e.computed_current,
|
|
@@ -5897,16 +5905,16 @@ function wb(e, t, n, r, a, i) {
|
|
|
5897
5905
|
size: "small",
|
|
5898
5906
|
options: e.paginationSizeOptions
|
|
5899
5907
|
}, null, 8, ["value", "options"]),
|
|
5900
|
-
Y(
|
|
5908
|
+
Y(p, {
|
|
5901
5909
|
placement: "bottomRight",
|
|
5902
5910
|
trigger: ["click"]
|
|
5903
5911
|
}, {
|
|
5904
5912
|
overlay: z(() => [
|
|
5905
|
-
Y(
|
|
5913
|
+
Y(f, {
|
|
5906
5914
|
onClick: t[5] || (t[5] = (S) => e.$emit("customizeSetting", S.key))
|
|
5907
5915
|
}, {
|
|
5908
5916
|
default: z(() => [
|
|
5909
|
-
(
|
|
5917
|
+
(D(!0), Z(me, null, Ye(e.hasApiConfig ? e.API_CONFIG_SETTINGS_MAP : e.SETTINGS_MAP, (S, C) => (D(), q(l, { key: C }, {
|
|
5910
5918
|
default: z(() => [
|
|
5911
5919
|
Y(v, { style: { "margin-right": "4px" } }),
|
|
5912
5920
|
ze("a", bb, re(S), 1)
|
|
@@ -5931,7 +5939,7 @@ function wb(e, t, n, r, a, i) {
|
|
|
5931
5939
|
])
|
|
5932
5940
|
]);
|
|
5933
5941
|
}
|
|
5934
|
-
const Sb = /* @__PURE__ */ at(pb, [["render", wb]]), Cb = /* @__PURE__ */
|
|
5942
|
+
const Sb = /* @__PURE__ */ at(pb, [["render", wb]]), Cb = /* @__PURE__ */ ve({
|
|
5935
5943
|
name: "PageRendererSummaryBar",
|
|
5936
5944
|
components: {
|
|
5937
5945
|
Alert: Ja
|
|
@@ -6047,7 +6055,7 @@ const Eb = zn(() => {
|
|
|
6047
6055
|
u.length === 0 || l.length === 0 || (r(u), a(l), await o(), n.value.forEach((f) => {
|
|
6048
6056
|
l.forEach((c) => {
|
|
6049
6057
|
f.columnKeys.forEach((p) => {
|
|
6050
|
-
c[p] && (Array.isArray(Le(c[p])) ? c[
|
|
6058
|
+
c[p] && (Array.isArray(Le(c[p])) ? c[Jt][p] = Le(c[p]).map((d) => f.response[d]) : c[Jt][p] = f.response[c[p]]);
|
|
6051
6059
|
});
|
|
6052
6060
|
});
|
|
6053
6061
|
}));
|
|
@@ -6056,14 +6064,14 @@ const Eb = zn(() => {
|
|
|
6056
6064
|
const t = document.createElement("textarea");
|
|
6057
6065
|
t.value = e, document.body.appendChild(t), t.select(), t.setSelectionRange(0, 99999);
|
|
6058
6066
|
try {
|
|
6059
|
-
document.execCommand("copy"),
|
|
6067
|
+
document.execCommand("copy"), Ie.success("复制成功");
|
|
6060
6068
|
} catch (n) {
|
|
6061
|
-
|
|
6069
|
+
Ie.error("复制失败"), console.error("【@yzsf2e/render-core】execCommand 复制失败: ", n);
|
|
6062
6070
|
}
|
|
6063
6071
|
document.body.removeChild(t);
|
|
6064
6072
|
}, _b = (e) => {
|
|
6065
6073
|
navigator.clipboard.writeText(e).then(() => {
|
|
6066
|
-
|
|
6074
|
+
Ie.success("复制成功");
|
|
6067
6075
|
}).catch((t) => {
|
|
6068
6076
|
console.error("【@yzsf2e/render-core】复制失败: ", t), Tb(e);
|
|
6069
6077
|
});
|
|
@@ -6078,7 +6086,7 @@ const Eb = zn(() => {
|
|
|
6078
6086
|
t.stopPropagation();
|
|
6079
6087
|
}
|
|
6080
6088
|
})
|
|
6081
|
-
]), Ob =
|
|
6089
|
+
]), Ob = ve({
|
|
6082
6090
|
name: "PageRendererTableCell",
|
|
6083
6091
|
props: {
|
|
6084
6092
|
column: {
|
|
@@ -6119,7 +6127,7 @@ const Eb = zn(() => {
|
|
|
6119
6127
|
setup(e) {
|
|
6120
6128
|
const { copyable: t, column: n, row: r, linkCellKeys: a, keywords: i, localeKeywords: o } = et(e), s = W(() => {
|
|
6121
6129
|
let u = r.value[n.value.dataIndex];
|
|
6122
|
-
return (i.value.includes(n.value.dataIndex) || o.value.includes(n.value.dataIndex)) && (u = r.value[
|
|
6130
|
+
return (i.value.includes(n.value.dataIndex) || o.value.includes(n.value.dataIndex)) && (u = r.value[Jt][n.value.dataIndex]), Array.isArray(u) ? u.join(", ") : u;
|
|
6123
6131
|
});
|
|
6124
6132
|
return () => a.value.includes(n.value.dataIndex) ? e.loading ? je(Io, { style: { color: "#1890ff" } }) : je(
|
|
6125
6133
|
"a",
|
|
@@ -6131,7 +6139,7 @@ const Eb = zn(() => {
|
|
|
6131
6139
|
t.value ? yr(s.value) : s.value
|
|
6132
6140
|
) : t.value ? yr(s.value) : je("span", { innerHTML: s.value, title: s.value });
|
|
6133
6141
|
}
|
|
6134
|
-
}), Ab =
|
|
6142
|
+
}), Ab = ve({
|
|
6135
6143
|
name: "TableCopyCell",
|
|
6136
6144
|
props: {
|
|
6137
6145
|
text: {
|
|
@@ -6142,7 +6150,7 @@ const Eb = zn(() => {
|
|
|
6142
6150
|
setup(e) {
|
|
6143
6151
|
return () => yr(e.text);
|
|
6144
6152
|
}
|
|
6145
|
-
}), $b =
|
|
6153
|
+
}), $b = ve({
|
|
6146
6154
|
name: "TableImageCell",
|
|
6147
6155
|
props: {
|
|
6148
6156
|
image: {
|
|
@@ -6163,10 +6171,10 @@ const Eb = zn(() => {
|
|
|
6163
6171
|
}), Pb = ["src", "onClick"];
|
|
6164
6172
|
function Ib(e, t, n, r, a, i) {
|
|
6165
6173
|
const o = B("a-space");
|
|
6166
|
-
return
|
|
6174
|
+
return D(), Z("div", null, [
|
|
6167
6175
|
Y(o, null, {
|
|
6168
6176
|
default: z(() => [
|
|
6169
|
-
(
|
|
6177
|
+
(D(!0), Z(me, null, Ye(e.imageList, (s, u) => (D(), Z("img", {
|
|
6170
6178
|
src: s,
|
|
6171
6179
|
key: u,
|
|
6172
6180
|
onClick: () => e.preview(u),
|
|
@@ -6233,7 +6241,7 @@ function Kt(e, t, n, r) {
|
|
|
6233
6241
|
}
|
|
6234
6242
|
return e;
|
|
6235
6243
|
}
|
|
6236
|
-
function
|
|
6244
|
+
function un(e, t, n) {
|
|
6237
6245
|
var r = e.e, a = e.c.join(""), i = a.length;
|
|
6238
6246
|
if (t)
|
|
6239
6247
|
a = a.charAt(0) + (i > 1 ? "." + a.slice(1) : "") + (r < 0 ? "e" : "e+") + r;
|
|
@@ -6439,7 +6447,7 @@ se.toExponential = function(e, t) {
|
|
|
6439
6447
|
for (n = Kt(new n.constructor(n), ++e, t); n.c.length < e; )
|
|
6440
6448
|
n.c.push(0);
|
|
6441
6449
|
}
|
|
6442
|
-
return
|
|
6450
|
+
return un(n, !0, !!r);
|
|
6443
6451
|
};
|
|
6444
6452
|
se.toFixed = function(e, t) {
|
|
6445
6453
|
var n = this, r = n.c[0];
|
|
@@ -6449,14 +6457,14 @@ se.toFixed = function(e, t) {
|
|
|
6449
6457
|
for (n = Kt(new n.constructor(n), e + n.e + 1, t), e = e + n.e + 1; n.c.length < e; )
|
|
6450
6458
|
n.c.push(0);
|
|
6451
6459
|
}
|
|
6452
|
-
return
|
|
6460
|
+
return un(n, !1, !!r);
|
|
6453
6461
|
};
|
|
6454
6462
|
se[Symbol.for("nodejs.util.inspect.custom")] = se.toJSON = se.toString = function() {
|
|
6455
6463
|
var e = this, t = e.constructor;
|
|
6456
|
-
return
|
|
6464
|
+
return un(e, e.e <= t.NE || e.e >= t.PE, !!e.c[0]);
|
|
6457
6465
|
};
|
|
6458
6466
|
se.toNumber = function() {
|
|
6459
|
-
var e = Number(
|
|
6467
|
+
var e = Number(un(this, !0, !0));
|
|
6460
6468
|
if (this.constructor.strict === !0 && !this.eq(e.toString()))
|
|
6461
6469
|
throw Error(Un + "Imprecise conversion");
|
|
6462
6470
|
return e;
|
|
@@ -6469,13 +6477,13 @@ se.toPrecision = function(e, t) {
|
|
|
6469
6477
|
for (n = Kt(new r(n), e, t); n.c.length < e; )
|
|
6470
6478
|
n.c.push(0);
|
|
6471
6479
|
}
|
|
6472
|
-
return
|
|
6480
|
+
return un(n, e <= n.e || n.e <= r.NE || n.e >= r.PE, !!a);
|
|
6473
6481
|
};
|
|
6474
6482
|
se.valueOf = function() {
|
|
6475
6483
|
var e = this, t = e.constructor;
|
|
6476
6484
|
if (t.strict === !0)
|
|
6477
6485
|
throw Error(Un + "valueOf disallowed");
|
|
6478
|
-
return
|
|
6486
|
+
return un(e, e.e <= t.NE || e.e >= t.PE, !0);
|
|
6479
6487
|
};
|
|
6480
6488
|
var xb = Us();
|
|
6481
6489
|
const Bb = {
|
|
@@ -6489,7 +6497,7 @@ const Bb = {
|
|
|
6489
6497
|
}, Yb = {
|
|
6490
6498
|
ASC: "ascend",
|
|
6491
6499
|
DESC: "descend"
|
|
6492
|
-
}, { useForm: Vb } = ya, qb =
|
|
6500
|
+
}, { useForm: Vb } = ya, qb = ve({
|
|
6493
6501
|
name: "PageRendererTableView",
|
|
6494
6502
|
components: {
|
|
6495
6503
|
aicon: wa,
|
|
@@ -6598,9 +6606,9 @@ const Bb = {
|
|
|
6598
6606
|
}
|
|
6599
6607
|
}
|
|
6600
6608
|
});
|
|
6601
|
-
const $ = P([]), E = P([]), b = P([]), w = P([]), _ = P({}), M = P([]), { selectedRows:
|
|
6602
|
-
|
|
6603
|
-
const j = W(() =>
|
|
6609
|
+
const $ = P([]), E = P([]), b = P([]), w = P([]), _ = P({}), M = P([]), { selectedRows: N, selectedRowKeys: k, selectedErrorRowKeys: R } = Kn();
|
|
6610
|
+
R[y] || (R[y] = []);
|
|
6611
|
+
const j = W(() => k[y].length > 0), L = W(() => {
|
|
6604
6612
|
if (p.value)
|
|
6605
6613
|
return Di(c.value, "fieldName");
|
|
6606
6614
|
{
|
|
@@ -6619,14 +6627,14 @@ const Bb = {
|
|
|
6619
6627
|
}
|
|
6620
6628
|
}), F = P(!p.value), V = Se("tableCellSlots", {}), ee = Se("rowSelection", {}), ne = () => {
|
|
6621
6629
|
F.value = !F.value;
|
|
6622
|
-
}, ie = (I) => I && I.dataIndex === l,
|
|
6630
|
+
}, ie = (I) => I && I.dataIndex === l, ye = (I) => I.dataIndex === "action" || I.cellValueType === "slot", De = (I, U) => hr(I[U.dataIndex]) || I[U.dataIndex] === "", xe = ({
|
|
6623
6631
|
text: I,
|
|
6624
6632
|
column: U,
|
|
6625
6633
|
record: x,
|
|
6626
6634
|
index: H
|
|
6627
|
-
}) => ie(U) ? H + 1 : cl(I) || !U ||
|
|
6635
|
+
}) => ie(U) ? H + 1 : cl(I) || !U || ye(U) ? I : De(x, U) ? " " : I, Be = (I, U) => {
|
|
6628
6636
|
var x, H;
|
|
6629
|
-
|
|
6637
|
+
k[y] = I, N[y] = U, (H = (x = ee[y]) == null ? void 0 : x.onChange) == null || H.call(x, k[y], N[y]);
|
|
6630
6638
|
}, ot = () => {
|
|
6631
6639
|
Be([], []);
|
|
6632
6640
|
}, Ke = P(
|
|
@@ -6647,8 +6655,8 @@ const Bb = {
|
|
|
6647
6655
|
const U = window.getSelection();
|
|
6648
6656
|
if (U && (U == null ? void 0 : U.toString().length) > 0)
|
|
6649
6657
|
return;
|
|
6650
|
-
const x = [...
|
|
6651
|
-
x.indexOf(I[H]) >= 0 ? x.splice(x.indexOf(I[H]), 1) : x.push(I[H]),
|
|
6658
|
+
const x = [...k[y]], H = d.value;
|
|
6659
|
+
x.indexOf(I[H]) >= 0 ? x.splice(x.indexOf(I[H]), 1) : x.push(I[H]), k[y] = x, N[y] = Ne.value.filter((Fe) => x.includes(Fe[H])), ($e = (G = ee[y]) == null ? void 0 : G.onChange) == null || $e.call(G, k[y], N[y]);
|
|
6652
6660
|
}, _e = /* @__PURE__ */ new WeakMap();
|
|
6653
6661
|
let We = {}, He = {};
|
|
6654
6662
|
const jr = (I, U) => ({
|
|
@@ -6670,7 +6678,7 @@ const Bb = {
|
|
|
6670
6678
|
onDragenter: (x) => {
|
|
6671
6679
|
(x || window.event).preventDefault();
|
|
6672
6680
|
const G = document.querySelectorAll(".table-view-wrapper .ant-table-row");
|
|
6673
|
-
if (
|
|
6681
|
+
if (Re.value[U].disabled)
|
|
6674
6682
|
return;
|
|
6675
6683
|
const $e = document.querySelectorAll(".ant-table-row.target");
|
|
6676
6684
|
$e.length && $e[0].classList.remove("target"), G[U].classList.add("target"), He = I;
|
|
@@ -6681,14 +6689,14 @@ const Bb = {
|
|
|
6681
6689
|
const G = document.querySelectorAll(".ant-table-row.target");
|
|
6682
6690
|
if (G.length && G[0].classList.remove("target"), He[e.rowKey] === We[e.rowKey])
|
|
6683
6691
|
return;
|
|
6684
|
-
const $e =
|
|
6692
|
+
const $e = Re.value.slice(), Fe = $e.findIndex(
|
|
6685
6693
|
(Ge) => Ge[e.rowKey] === We[e.rowKey]
|
|
6686
6694
|
), At = $e[Fe];
|
|
6687
6695
|
$e.splice(Fe, 1);
|
|
6688
6696
|
const $t = $e.findIndex(
|
|
6689
6697
|
(Ge) => Ge[e.rowKey] === He[e.rowKey]
|
|
6690
6698
|
);
|
|
6691
|
-
$e.splice($t, 0, At),
|
|
6699
|
+
$e.splice($t, 0, At), Re.value = $e, O({ pageName: y, fromRecord: We, toRecord: He });
|
|
6692
6700
|
}
|
|
6693
6701
|
} : {},
|
|
6694
6702
|
onclick: () => {
|
|
@@ -6742,7 +6750,7 @@ const Bb = {
|
|
|
6742
6750
|
refEnum: $t,
|
|
6743
6751
|
action: Ge,
|
|
6744
6752
|
children: st,
|
|
6745
|
-
summary:
|
|
6753
|
+
summary: dn,
|
|
6746
6754
|
fixed: Ha,
|
|
6747
6755
|
filterable: tl,
|
|
6748
6756
|
sortable: Ga
|
|
@@ -6773,7 +6781,7 @@ const Bb = {
|
|
|
6773
6781
|
fixed: G === "action" ? !0 : Ha,
|
|
6774
6782
|
key: u + G,
|
|
6775
6783
|
resizable: !0,
|
|
6776
|
-
summary:
|
|
6784
|
+
summary: dn,
|
|
6777
6785
|
title: "",
|
|
6778
6786
|
width: H
|
|
6779
6787
|
}
|
|
@@ -6790,7 +6798,7 @@ const Bb = {
|
|
|
6790
6798
|
fixed: G === "action" ? !0 : Ha,
|
|
6791
6799
|
key: G,
|
|
6792
6800
|
resizable: !0,
|
|
6793
|
-
summary:
|
|
6801
|
+
summary: dn,
|
|
6794
6802
|
sortable: Ga,
|
|
6795
6803
|
// 表头分组时,暂不支持排序
|
|
6796
6804
|
sorter: Xa ? !1 : Ga || ((Pt, Qa) => typeof Pt[G] == "string" ? Pt[G].localeCompare(Qa[G]) : Pt[G] - Qa[G]),
|
|
@@ -6802,17 +6810,17 @@ const Bb = {
|
|
|
6802
6810
|
})
|
|
6803
6811
|
];
|
|
6804
6812
|
});
|
|
6805
|
-
function
|
|
6813
|
+
function cn(I) {
|
|
6806
6814
|
let U = [];
|
|
6807
6815
|
return I.forEach((x) => {
|
|
6808
|
-
x.children && x.children.length > 0 ? U = U.concat(
|
|
6816
|
+
x.children && x.children.length > 0 ? U = U.concat(cn(x.children)) : U.push(x.dataIndex);
|
|
6809
6817
|
}), U;
|
|
6810
6818
|
}
|
|
6811
6819
|
const Br = W(
|
|
6812
|
-
() =>
|
|
6820
|
+
() => cn(M.value).map(
|
|
6813
6821
|
(I) => I === l ? v.value.count : v.value[I]
|
|
6814
6822
|
)
|
|
6815
|
-
), { formState:
|
|
6823
|
+
), { formState: fn } = Bn(), { validate: Kr } = Vb(fn[y]), Vn = () => {
|
|
6816
6824
|
Kr().then(() => e.current === 1 ? n("search") : n("update:current", 1)).catch((I) => {
|
|
6817
6825
|
console.warn(I);
|
|
6818
6826
|
});
|
|
@@ -6822,8 +6830,8 @@ const Bb = {
|
|
|
6822
6830
|
Array.isArray(x) || (x.columnKey && x.order ? C.value = { [x.columnKey]: Ub[x.order] } : C.value = {});
|
|
6823
6831
|
}, K = () => {
|
|
6824
6832
|
C.value = e.defaultSort;
|
|
6825
|
-
}, te = W(() => f.value.filter((I) => I.locale)), Ae = W(() => Object.keys(_.value)), le = W(() => te.value.map((I) => I.columnKey)),
|
|
6826
|
-
|
|
6833
|
+
}, te = W(() => f.value.filter((I) => I.locale)), Ae = W(() => Object.keys(_.value)), le = W(() => te.value.map((I) => I.columnKey)), Ne = P([]), Re = P([]), ke = () => {
|
|
6834
|
+
Re.value = ds(Ne.value, (I) => yg(fn[y], (U, x) => {
|
|
6827
6835
|
var H, G;
|
|
6828
6836
|
return ["", void 0, null].includes(U) || Array.isArray(U) ? !0 : Object.hasOwn(I, x) ? Ii(
|
|
6829
6837
|
(H = I[x]) == null ? void 0 : H.toString().toLocaleLowerCase(),
|
|
@@ -6833,7 +6841,7 @@ const Bb = {
|
|
|
6833
6841
|
U.toString().toLocaleLowerCase()
|
|
6834
6842
|
) : !0;
|
|
6835
6843
|
}));
|
|
6836
|
-
}, Ot = Pn(
|
|
6844
|
+
}, Ot = Pn(ke, 300), ht = M.value.filter((I) => I.action !== void 0 || I.key === "action").reduce((I, U) => {
|
|
6837
6845
|
var x;
|
|
6838
6846
|
return U.key === "action" ? (x = U.child) == null || x.forEach((H) => {
|
|
6839
6847
|
I[`${H.action}Loading`] = !1;
|
|
@@ -6848,13 +6856,13 @@ const Bb = {
|
|
|
6848
6856
|
if (_.value[H].refEnumLabel) {
|
|
6849
6857
|
const $t = ($e = (G = i[_.value[H].refEnum]) == null ? void 0 : G.find(
|
|
6850
6858
|
(Ge) => {
|
|
6851
|
-
var st,
|
|
6852
|
-
return ((st = Ge.id) == null ? void 0 : st.toString()) === ((
|
|
6859
|
+
var st, dn;
|
|
6860
|
+
return ((st = Ge.id) == null ? void 0 : st.toString()) === ((dn = U[_.value[H].refEnum]) == null ? void 0 : dn.toString());
|
|
6853
6861
|
}
|
|
6854
6862
|
)) == null ? void 0 : $e[_.value[H].refEnumLabel];
|
|
6855
|
-
x[
|
|
6863
|
+
x[Jt][H] = $t;
|
|
6856
6864
|
} else
|
|
6857
|
-
x[
|
|
6865
|
+
x[Jt][H] = (At = (Fe = i[_.value[H].refEnum]) == null ? void 0 : Fe.find(
|
|
6858
6866
|
($t) => {
|
|
6859
6867
|
var Ge, st;
|
|
6860
6868
|
return ((Ge = $t.value) == null ? void 0 : Ge.toString()) === ((st = U[H]) == null ? void 0 : st.toString());
|
|
@@ -6862,11 +6870,11 @@ const Bb = {
|
|
|
6862
6870
|
)) == null ? void 0 : At.label;
|
|
6863
6871
|
return x;
|
|
6864
6872
|
},
|
|
6865
|
-
{ [
|
|
6873
|
+
{ [Jt]: Ze({}) }
|
|
6866
6874
|
),
|
|
6867
6875
|
[tr]: Ze(An(ht))
|
|
6868
6876
|
})) : [];
|
|
6869
|
-
await o(te.value, I),
|
|
6877
|
+
await o(te.value, I), Ne.value = I, Ke.value = [], ke();
|
|
6870
6878
|
});
|
|
6871
6879
|
const qn = (I, U) => {
|
|
6872
6880
|
U.width = I, U.children && U.children.length > 0 && (U.children[U.children.length - 1].width = I);
|
|
@@ -6903,8 +6911,8 @@ const Bb = {
|
|
|
6903
6911
|
keywords: Ae,
|
|
6904
6912
|
localeKeywords: le,
|
|
6905
6913
|
computedY: xr,
|
|
6906
|
-
dataSource:
|
|
6907
|
-
filteredDataSource:
|
|
6914
|
+
dataSource: Ne,
|
|
6915
|
+
filteredDataSource: Re,
|
|
6908
6916
|
LOADING_SIGN: tr,
|
|
6909
6917
|
tableWrapper: g,
|
|
6910
6918
|
linkCellKeys: $,
|
|
@@ -6912,14 +6920,14 @@ const Bb = {
|
|
|
6912
6920
|
slotCellKeys: b,
|
|
6913
6921
|
imgCellKeys: w,
|
|
6914
6922
|
tableCellSlots: V,
|
|
6915
|
-
selectedRows:
|
|
6916
|
-
selectedRowKeys:
|
|
6917
|
-
selectedErrorRowKeys:
|
|
6923
|
+
selectedRows: N,
|
|
6924
|
+
selectedRowKeys: k,
|
|
6925
|
+
selectedErrorRowKeys: R,
|
|
6918
6926
|
showSelectionSummaryRow: j,
|
|
6919
6927
|
DATA_SOURCE_FILTER_PREFIX: u,
|
|
6920
6928
|
DATA_SOURCE_INDEX_KEY: l,
|
|
6921
6929
|
customMaterialsMap: Ya,
|
|
6922
|
-
formState:
|
|
6930
|
+
formState: fn,
|
|
6923
6931
|
fieldNameConditionsByKey: L,
|
|
6924
6932
|
isHeaderFilterable: F,
|
|
6925
6933
|
FilterOutlined: kl,
|
|
@@ -6957,7 +6965,7 @@ const Wb = {
|
|
|
6957
6965
|
function aw(e, t, n, r, a, i) {
|
|
6958
6966
|
var T;
|
|
6959
6967
|
const o = B("a-button"), s = B("a-tooltip"), u = B("CustomConditionBuilder"), l = B("ConditionBuilder"), f = B("a-input"), c = B("aicon"), p = B("LoadingOutlined"), d = B("Space"), h = B("TableImageCell"), v = B("TableCell"), g = B("TableCopyCell"), y = B("a-table-summary-cell"), O = B("a-table-summary-row"), S = B("a-table-summary"), C = B("Table"), A = _o("permission");
|
|
6960
|
-
return
|
|
6968
|
+
return D(), Z("div", Wb, [
|
|
6961
6969
|
Y(C, {
|
|
6962
6970
|
bordered: "",
|
|
6963
6971
|
size: "small",
|
|
@@ -6985,7 +6993,7 @@ function aw(e, t, n, r, a, i) {
|
|
|
6985
6993
|
headerCell: z(({ column: m }) => {
|
|
6986
6994
|
var $;
|
|
6987
6995
|
return [
|
|
6988
|
-
m.key === e.DATA_SOURCE_INDEX_KEY ? (
|
|
6996
|
+
m.key === e.DATA_SOURCE_INDEX_KEY ? (D(), Z("div", {
|
|
6989
6997
|
key: 0,
|
|
6990
6998
|
onClick: t[0] || (t[0] = (...E) => e.headerFilterSwitch && e.headerFilterSwitch(...E))
|
|
6991
6999
|
}, [
|
|
@@ -7000,8 +7008,8 @@ function aw(e, t, n, r, a, i) {
|
|
|
7000
7008
|
]),
|
|
7001
7009
|
_: 1
|
|
7002
7010
|
}, 8, ["title"])
|
|
7003
|
-
])) : (
|
|
7004
|
-
m.sortable === !1 ? (
|
|
7011
|
+
])) : (D(), Z("div", Hb, [
|
|
7012
|
+
m.sortable === !1 ? (D(), q(s, { key: 0 }, {
|
|
7005
7013
|
title: z(() => [
|
|
7006
7014
|
be("仅支持当前页的筛选排序,不支持跨页筛选排序。如需统计全部数据,请点[导出全部],在 excel 统计。")
|
|
7007
7015
|
]),
|
|
@@ -7009,20 +7017,20 @@ function aw(e, t, n, r, a, i) {
|
|
|
7009
7017
|
ze("span", Gb, re(m.title), 1)
|
|
7010
7018
|
]),
|
|
7011
7019
|
_: 2
|
|
7012
|
-
}, 1024)) : (
|
|
7020
|
+
}, 1024)) : (D(), Z("div", {
|
|
7013
7021
|
key: 1,
|
|
7014
7022
|
style: Cn(m.align !== "left" ? "margin-left: 15px;" : "")
|
|
7015
7023
|
}, re(m.title), 5)),
|
|
7016
|
-
($ = m.key) != null && $.startsWith(e.DATA_SOURCE_FILTER_PREFIX) ? (
|
|
7017
|
-
e.fieldNameConditionsByKey[m.dataIndex] ? (
|
|
7018
|
-
e.customMaterialsMap[e.fieldNameConditionsByKey[m.dataIndex].type] ? (
|
|
7024
|
+
($ = m.key) != null && $.startsWith(e.DATA_SOURCE_FILTER_PREFIX) ? (D(), Z("div", Xb, [
|
|
7025
|
+
e.fieldNameConditionsByKey[m.dataIndex] ? (D(), Z(me, { key: 0 }, [
|
|
7026
|
+
e.customMaterialsMap[e.fieldNameConditionsByKey[m.dataIndex].type] ? (D(), q(u, {
|
|
7019
7027
|
key: 0,
|
|
7020
7028
|
value: e.formState[e.pageName][m.dataIndex],
|
|
7021
7029
|
"onUpdate:value": (E) => e.formState[e.pageName][m.dataIndex] = E,
|
|
7022
7030
|
materials: e.fieldNameConditionsByKey[m.dataIndex],
|
|
7023
7031
|
onChange: () => e.onConditionChange(m.dataIndex),
|
|
7024
7032
|
onPressEnter: e.onSubmit
|
|
7025
|
-
}, null, 8, ["value", "onUpdate:value", "materials", "onChange", "onPressEnter"])) : (
|
|
7033
|
+
}, null, 8, ["value", "onUpdate:value", "materials", "onChange", "onPressEnter"])) : (D(), q(l, {
|
|
7026
7034
|
key: 1,
|
|
7027
7035
|
value: e.formState[e.pageName][m.dataIndex],
|
|
7028
7036
|
"onUpdate:value": (E) => e.formState[e.pageName][m.dataIndex] = E,
|
|
@@ -7031,7 +7039,7 @@ function aw(e, t, n, r, a, i) {
|
|
|
7031
7039
|
onPressEnter: e.onSubmit,
|
|
7032
7040
|
style: { width: "100%" }
|
|
7033
7041
|
}, null, 8, ["value", "onUpdate:value", "materials", "onChange", "onPressEnter"]))
|
|
7034
|
-
], 64)) : (
|
|
7042
|
+
], 64)) : (D(), q(f, {
|
|
7035
7043
|
key: 1,
|
|
7036
7044
|
size: "small",
|
|
7037
7045
|
value: e.formState[e.pageName][m.dataIndex],
|
|
@@ -7044,16 +7052,16 @@ function aw(e, t, n, r, a, i) {
|
|
|
7044
7052
|
];
|
|
7045
7053
|
}),
|
|
7046
7054
|
bodyCell: z(({ text: m, record: $, index: E, column: b }) => [
|
|
7047
|
-
b.dataIndex === "action" ? (
|
|
7055
|
+
b.dataIndex === "action" ? (D(), q(d, { key: 0 }, {
|
|
7048
7056
|
default: z(() => [
|
|
7049
|
-
(
|
|
7057
|
+
(D(!0), Z(me, null, Ye(b.childActions, (w) => (D(), Z(me, {
|
|
7050
7058
|
key: w.action
|
|
7051
7059
|
}, [
|
|
7052
|
-
w.show === void 0 || e.actionVisible(w.show, $) ? cr((
|
|
7053
|
-
$[e.LOADING_SIGN][`${w.action}Loading`] ? (
|
|
7060
|
+
w.show === void 0 || e.actionVisible(w.show, $) ? cr((D(), Z("div", Qb, [
|
|
7061
|
+
$[e.LOADING_SIGN][`${w.action}Loading`] ? (D(), q(p, {
|
|
7054
7062
|
key: 1,
|
|
7055
7063
|
style: { color: "#1890ff" }
|
|
7056
|
-
})) : (
|
|
7064
|
+
})) : (D(), Z("a", {
|
|
7057
7065
|
key: 0,
|
|
7058
7066
|
onClick: To(
|
|
7059
7067
|
(_) => {
|
|
@@ -7066,7 +7074,7 @@ function aw(e, t, n, r, a, i) {
|
|
|
7066
7074
|
}),
|
|
7067
7075
|
style: Cn({ color: w.color })
|
|
7068
7076
|
}, [
|
|
7069
|
-
w.icon ? (
|
|
7077
|
+
w.icon ? (D(), q(c, {
|
|
7070
7078
|
key: 0,
|
|
7071
7079
|
type: w.icon
|
|
7072
7080
|
}, null, 8, ["type"])) : ge("", !0),
|
|
@@ -7079,19 +7087,19 @@ function aw(e, t, n, r, a, i) {
|
|
|
7079
7087
|
]),
|
|
7080
7088
|
_: 2
|
|
7081
7089
|
}, 1024)) : ge("", !0),
|
|
7082
|
-
e.slotCellKeys.includes(b.dataIndex) ? (
|
|
7083
|
-
e.tableCellSlots[b.dataIndex].component ? (
|
|
7090
|
+
e.slotCellKeys.includes(b.dataIndex) ? (D(), Z(me, { key: 1 }, [
|
|
7091
|
+
e.tableCellSlots[b.dataIndex].component ? (D(), q(en(e.tableCellSlots[b.dataIndex].component), Yt(Pe({ key: 0 }, {
|
|
7084
7092
|
text: m,
|
|
7085
7093
|
row: $,
|
|
7086
7094
|
index: E,
|
|
7087
7095
|
column: b,
|
|
7088
7096
|
...e.tableCellSlots[b.dataIndex].props
|
|
7089
7097
|
})), null, 16)) : ge("", !0)
|
|
7090
|
-
], 64)) : e.imgCellKeys.includes(b.dataIndex) ? (
|
|
7091
|
-
m ? (
|
|
7098
|
+
], 64)) : e.imgCellKeys.includes(b.dataIndex) ? (D(), Z(me, { key: 2 }, [
|
|
7099
|
+
m ? (D(), q(h, Yt(Pe({ key: 0 }, { image: m })), null, 16)) : ge("", !0)
|
|
7092
7100
|
], 64)) : [...e.linkCellKeys, ...e.keywords, ...e.htmlCellKeys, ...e.localeKeywords].includes(
|
|
7093
7101
|
b.dataIndex
|
|
7094
|
-
) ? (
|
|
7102
|
+
) ? (D(), q(v, Yt(Pe({ key: 3 }, {
|
|
7095
7103
|
row: $,
|
|
7096
7104
|
copyable: b.copyable,
|
|
7097
7105
|
column: b,
|
|
@@ -7100,8 +7108,8 @@ function aw(e, t, n, r, a, i) {
|
|
|
7100
7108
|
localeKeywords: e.localeKeywords,
|
|
7101
7109
|
linkCellKeys: e.linkCellKeys,
|
|
7102
7110
|
handleLinkClick: e.handleLinkClick
|
|
7103
|
-
})), null, 16)) : b.copyable ? (
|
|
7104
|
-
m ? (
|
|
7111
|
+
})), null, 16)) : b.copyable ? (D(), Z(me, { key: 4 }, [
|
|
7112
|
+
m ? (D(), q(g, Yt(Pe({ key: 0 }, { text: m })), null, 16)) : ge("", !0)
|
|
7105
7113
|
], 64)) : ge("", !0)
|
|
7106
7114
|
]),
|
|
7107
7115
|
summary: z(() => [
|
|
@@ -7115,13 +7123,13 @@ function aw(e, t, n, r, a, i) {
|
|
|
7115
7123
|
]),
|
|
7116
7124
|
_: 1
|
|
7117
7125
|
}),
|
|
7118
|
-
(
|
|
7126
|
+
(D(!0), Z(me, null, Ye(e.columns, (m, $) => (D(), q(y, {
|
|
7119
7127
|
key: m.key,
|
|
7120
7128
|
index: $ + 1,
|
|
7121
7129
|
style: { "text-align": "center" }
|
|
7122
7130
|
}, {
|
|
7123
7131
|
default: z(() => [
|
|
7124
|
-
$ === 0 ? (
|
|
7132
|
+
$ === 0 ? (D(), Z("span", ew, re(e.selectedRowKeys[e.pageName].length), 1)) : (D(), Z("span", tw, re(m.summary ? e.transformSummary(m.summary, m) : null), 1))
|
|
7125
7133
|
]),
|
|
7126
7134
|
_: 2
|
|
7127
7135
|
}, 1032, ["index"]))), 128))
|
|
@@ -7130,7 +7138,7 @@ function aw(e, t, n, r, a, i) {
|
|
|
7130
7138
|
}, 512), [
|
|
7131
7139
|
[Eo, e.showSelectionSummaryRow]
|
|
7132
7140
|
]),
|
|
7133
|
-
e.hasApiConfig ? ge("", !0) : (
|
|
7141
|
+
e.hasApiConfig ? ge("", !0) : (D(), q(O, { key: 0 }, {
|
|
7134
7142
|
default: z(() => [
|
|
7135
7143
|
Y(y, { index: 0 }, {
|
|
7136
7144
|
default: z(() => [
|
|
@@ -7138,7 +7146,7 @@ function aw(e, t, n, r, a, i) {
|
|
|
7138
7146
|
]),
|
|
7139
7147
|
_: 1
|
|
7140
7148
|
}),
|
|
7141
|
-
(
|
|
7149
|
+
(D(!0), Z(me, null, Ye(e.totalList, (m, $) => (D(), q(y, {
|
|
7142
7150
|
key: $,
|
|
7143
7151
|
index: $ + 1,
|
|
7144
7152
|
style: { "text-align": "center" }
|
|
@@ -7160,7 +7168,7 @@ function aw(e, t, n, r, a, i) {
|
|
|
7160
7168
|
(T = e.tableProps) != null && T.expandedRowRender ? {
|
|
7161
7169
|
name: "expandedRowRender",
|
|
7162
7170
|
fn: z(({ record: m, index: $, indent: E, expanded: b }) => [
|
|
7163
|
-
(
|
|
7171
|
+
(D(), q(en(e.tableProps.expandedRowRender.component), Yt(fl({
|
|
7164
7172
|
row: m,
|
|
7165
7173
|
index: $,
|
|
7166
7174
|
indent: E,
|
|
@@ -7185,7 +7193,7 @@ const sw = {
|
|
|
7185
7193
|
COLUMN_SETTING: "fieldShowConfigList",
|
|
7186
7194
|
FILTER_SETTING: "fieldFilterConfigList",
|
|
7187
7195
|
SORT_SETTING: "fieldSortConfigList"
|
|
7188
|
-
}, lw =
|
|
7196
|
+
}, lw = ve({
|
|
7189
7197
|
name: "PageRendererColumnSettingModal",
|
|
7190
7198
|
components: { Modal: fr, Space: Mn, Button: Sr, Transfer: _l },
|
|
7191
7199
|
props: {
|
|
@@ -7213,7 +7221,7 @@ const sw = {
|
|
|
7213
7221
|
},
|
|
7214
7222
|
emits: ["change", "update:visible"],
|
|
7215
7223
|
setup(e, { emit: t }) {
|
|
7216
|
-
const { t: n } = _t(), r = Mr(), a = Ua(), i =
|
|
7224
|
+
const { t: n } = _t(), r = Mr(), a = Ua(), i = on(e, "visible", t), o = Se("pageName", ""), s = Lo(Bs, {}), u = P(!1), l = P([]), f = Ze({ dataSource: [] });
|
|
7217
7225
|
ae(i, (T) => {
|
|
7218
7226
|
if (!T)
|
|
7219
7227
|
l.value = [], f.dataSource = [];
|
|
@@ -7224,7 +7232,7 @@ const sw = {
|
|
|
7224
7232
|
const E = An(Le(e.columns));
|
|
7225
7233
|
m = [...$.filter((w) => E.find((_) => _.columnKey === w.columnKey)).map((w) => {
|
|
7226
7234
|
const _ = E.findIndex(
|
|
7227
|
-
(
|
|
7235
|
+
(N) => N.columnKey === w.columnKey
|
|
7228
7236
|
);
|
|
7229
7237
|
return {
|
|
7230
7238
|
...E.splice(_, 1)[0],
|
|
@@ -7257,7 +7265,7 @@ const sw = {
|
|
|
7257
7265
|
const T = Le(l.value), { dataSource: m } = f;
|
|
7258
7266
|
if (e.hasApiConfig && e.type === "COLUMN_SETTING") {
|
|
7259
7267
|
if (T.length < 5) {
|
|
7260
|
-
|
|
7268
|
+
Ie.warn(n("columnSettingModalHandlePrompt") || "显示列不能小于 5 项!");
|
|
7261
7269
|
return;
|
|
7262
7270
|
}
|
|
7263
7271
|
const w = m.map((_) => ({
|
|
@@ -7268,10 +7276,10 @@ const sw = {
|
|
|
7268
7276
|
return;
|
|
7269
7277
|
}
|
|
7270
7278
|
const { category: $, tab: E } = r.meta, b = T.map((w) => {
|
|
7271
|
-
const _ = {}, M = m.find((
|
|
7279
|
+
const _ = {}, M = m.find((N) => N.columnKey === w);
|
|
7272
7280
|
if (_.entityId = M.entityId, _.columnKey = M.columnKey, e.type === "SORT_SETTING") {
|
|
7273
|
-
const [
|
|
7274
|
-
_.columnKey =
|
|
7281
|
+
const [N, k] = M.columnKey.split("@");
|
|
7282
|
+
_.columnKey = N, _.sort = k;
|
|
7275
7283
|
}
|
|
7276
7284
|
return _;
|
|
7277
7285
|
});
|
|
@@ -7340,10 +7348,10 @@ const sw = {
|
|
|
7340
7348
|
const M = document.querySelectorAll(".ant-table-row.source");
|
|
7341
7349
|
if (M.length && M[0].classList.remove("source"), y === g)
|
|
7342
7350
|
return;
|
|
7343
|
-
const
|
|
7344
|
-
|
|
7345
|
-
const j =
|
|
7346
|
-
|
|
7351
|
+
const N = f.dataSource.slice(), k = N.findIndex((F) => F.key === g), R = N[k];
|
|
7352
|
+
N.splice(k, 1);
|
|
7353
|
+
const j = N.findIndex((F) => F.key === y);
|
|
7354
|
+
N.splice(j, 0, R), Object.assign(f, { dataSource: N });
|
|
7347
7355
|
const L = [];
|
|
7348
7356
|
f.dataSource.map((F) => {
|
|
7349
7357
|
l.value.includes(F.key) && L.push(F.key);
|
|
@@ -7380,12 +7388,12 @@ const sw = {
|
|
|
7380
7388
|
const b = E.currentStyle || window.getComputedStyle(E, null);
|
|
7381
7389
|
$.onmousedown = (w) => {
|
|
7382
7390
|
const _ = w.clientX - $.offsetLeft, M = w.clientY - $.offsetTop;
|
|
7383
|
-
let
|
|
7384
|
-
b.left.includes("%") ? (
|
|
7385
|
-
(+b.left.replace(/\%/g, "") / 100),
|
|
7386
|
-
(+b.top.replace(/\%/g, "") / 100)) : (
|
|
7387
|
-
const j =
|
|
7388
|
-
E.style.left = `${j +
|
|
7391
|
+
let N, k;
|
|
7392
|
+
b.left.includes("%") ? (N = +document.body.clientWidth * // eslint-disable-next-line
|
|
7393
|
+
(+b.left.replace(/\%/g, "") / 100), k = +document.body.clientHeight * // eslint-disable-next-line
|
|
7394
|
+
(+b.top.replace(/\%/g, "") / 100)) : (N = +b.left.replace(/\px/g, ""), k = +b.top.replace(/\px/g, "")), document.onmousemove = function(R) {
|
|
7395
|
+
const j = R.clientX - _, L = R.clientY - M;
|
|
7396
|
+
E.style.left = `${j + N}px`, E.style.top = `${L + k}px`;
|
|
7389
7397
|
}, document.onmouseup = function() {
|
|
7390
7398
|
document.onmousemove = null, document.onmouseup = null;
|
|
7391
7399
|
};
|
|
@@ -7400,7 +7408,7 @@ const sw = {
|
|
|
7400
7408
|
handleChange: (T, m, $) => {
|
|
7401
7409
|
const E = T.map((b) => b.split("@")[0]);
|
|
7402
7410
|
if (E.length !== jg(E).length) {
|
|
7403
|
-
l.value = T.filter((b) => !$.includes(b)),
|
|
7411
|
+
l.value = T.filter((b) => !$.includes(b)), Ie.warn("同一字段不能同时设置升序和降序!");
|
|
7404
7412
|
return;
|
|
7405
7413
|
}
|
|
7406
7414
|
},
|
|
@@ -7417,7 +7425,7 @@ const sw = {
|
|
|
7417
7425
|
const uw = { style: { "text-align": "center", padding: "5px 0" } };
|
|
7418
7426
|
function cw(e, t, n, r, a, i) {
|
|
7419
7427
|
const o = B("a-table"), s = B("Transfer"), u = B("Button"), l = B("Space"), f = B("Modal");
|
|
7420
|
-
return
|
|
7428
|
+
return D(), q(f, {
|
|
7421
7429
|
"wrap-class-name": "drag-modal-wrapper",
|
|
7422
7430
|
visible: e.show,
|
|
7423
7431
|
"onUpdate:visible": t[1] || (t[1] = (c) => e.show = c),
|
|
@@ -7432,7 +7440,7 @@ function cw(e, t, n, r, a, i) {
|
|
|
7432
7440
|
footer: z(() => [
|
|
7433
7441
|
Y(l, null, {
|
|
7434
7442
|
default: z(() => [
|
|
7435
|
-
e.hasApiConfig && e.type === "COLUMN_SETTING" ? (
|
|
7443
|
+
e.hasApiConfig && e.type === "COLUMN_SETTING" ? (D(), q(u, {
|
|
7436
7444
|
key: 0,
|
|
7437
7445
|
onClick: e.handleReset
|
|
7438
7446
|
}, {
|
|
@@ -7580,8 +7588,8 @@ function Ws(e, t, n) {
|
|
|
7580
7588
|
}
|
|
7581
7589
|
function E() {
|
|
7582
7590
|
const b = Date.now(), w = S(b);
|
|
7583
|
-
for (var _ = arguments.length, M = new Array(_),
|
|
7584
|
-
M[
|
|
7591
|
+
for (var _ = arguments.length, M = new Array(_), N = 0; N < _; N++)
|
|
7592
|
+
M[N] = arguments[N];
|
|
7585
7593
|
if (r = M, a = this, u = b, w) {
|
|
7586
7594
|
if (s === void 0)
|
|
7587
7595
|
return y(u);
|
|
@@ -8189,7 +8197,7 @@ function wo(e) {
|
|
|
8189
8197
|
const So = {
|
|
8190
8198
|
ASC: "升序",
|
|
8191
8199
|
DESC: "降序"
|
|
8192
|
-
}, Bw =
|
|
8200
|
+
}, Bw = ve({
|
|
8193
8201
|
name: "PageRendererTablePage",
|
|
8194
8202
|
components: {
|
|
8195
8203
|
Conditions: lb,
|
|
@@ -8223,7 +8231,7 @@ const So = {
|
|
|
8223
8231
|
// eslint-disable-next-line
|
|
8224
8232
|
(K, te) => K
|
|
8225
8233
|
), $ = Se("reloadPage", () => {
|
|
8226
|
-
}), { patchEnumerations: E, patchStaticEnumerations: b } = zr(), w = P(null), _ = P(null), M = P(null),
|
|
8234
|
+
}), { patchEnumerations: E, patchStaticEnumerations: b } = zr(), w = P(null), _ = P(null), M = P(null), N = Lo(Bs, {}), k = P(r.value.columns), R = Ze({
|
|
8227
8235
|
type: "COLUMN_SETTING",
|
|
8228
8236
|
title: "",
|
|
8229
8237
|
columns: [],
|
|
@@ -8232,7 +8240,7 @@ const So = {
|
|
|
8232
8240
|
if (a)
|
|
8233
8241
|
return r.value.rowKey || console.warn("【TablePage】rowKey 列表唯一键没有定义"), r.value.rowKey;
|
|
8234
8242
|
{
|
|
8235
|
-
const K = ds(
|
|
8243
|
+
const K = ds(k.value, { isUniqueKey: !0 });
|
|
8236
8244
|
return K.length === 0 ? console.warn("【TablePage】isUniqueKey 请设置唯一键") : K.length > 1 && console.warn("【TablePage】isUniqueKey 唯一键应该只有一个"), K[0].columnKey;
|
|
8237
8245
|
}
|
|
8238
8246
|
});
|
|
@@ -8288,10 +8296,10 @@ const So = {
|
|
|
8288
8296
|
r.value.name
|
|
8289
8297
|
), ie = P(
|
|
8290
8298
|
s ? s[0].value : xs[0].value
|
|
8291
|
-
),
|
|
8292
|
-
|
|
8299
|
+
), ye = P(1), { selectedRows: De, selectedRowKeys: xe } = Kn();
|
|
8300
|
+
De[e.page.name] && console.warn(`【@yzsf2e/render-core】请检查页面名 ${e.page.name} 是否重复!`);
|
|
8293
8301
|
const Be = () => {
|
|
8294
|
-
|
|
8302
|
+
De[e.page.name] = [], xe[e.page.name] = [];
|
|
8295
8303
|
};
|
|
8296
8304
|
c.value && Be();
|
|
8297
8305
|
const ot = Se("paramsGuard", (K) => K), Ke = [
|
|
@@ -8301,7 +8309,7 @@ const So = {
|
|
|
8301
8309
|
if (a) {
|
|
8302
8310
|
const K = Gy({
|
|
8303
8311
|
conditions: gn({ ...Le(ne) }, Te),
|
|
8304
|
-
pager: { pageNo:
|
|
8312
|
+
pager: { pageNo: ye.value, pageSize: ie.value },
|
|
8305
8313
|
sort: p.value,
|
|
8306
8314
|
listApiConfig: a.list
|
|
8307
8315
|
});
|
|
@@ -8311,24 +8319,24 @@ const So = {
|
|
|
8311
8319
|
T.value.run({
|
|
8312
8320
|
category: K,
|
|
8313
8321
|
tab: te,
|
|
8314
|
-
pageNumber:
|
|
8322
|
+
pageNumber: ye.value,
|
|
8315
8323
|
pageSize: ie.value,
|
|
8316
8324
|
fetchMode: "BODY",
|
|
8317
8325
|
sorts: {},
|
|
8318
8326
|
filters: gn({ ...Le(ne) }, Te)
|
|
8319
8327
|
});
|
|
8320
8328
|
}
|
|
8321
|
-
Be(),
|
|
8329
|
+
Be(), cn();
|
|
8322
8330
|
}, We = async (K) => {
|
|
8323
8331
|
let te;
|
|
8324
8332
|
if (K === "SELECTED") {
|
|
8325
8333
|
if (xe[e.page.name] && xe[e.page.name].length === 0) {
|
|
8326
|
-
|
|
8334
|
+
Ie.warn("至少选中一条数据!");
|
|
8327
8335
|
return;
|
|
8328
8336
|
}
|
|
8329
8337
|
te = xe[e.page.name];
|
|
8330
8338
|
}
|
|
8331
|
-
const { category: Ae, tab: le } = n.meta,
|
|
8339
|
+
const { category: Ae, tab: le } = n.meta, Ne = await S.value({
|
|
8332
8340
|
category: Ae,
|
|
8333
8341
|
tab: le,
|
|
8334
8342
|
fetchMode: "BODY",
|
|
@@ -8336,14 +8344,14 @@ const So = {
|
|
|
8336
8344
|
filters: gn({ ...Le(ne) }, Te),
|
|
8337
8345
|
ids: te
|
|
8338
8346
|
});
|
|
8339
|
-
if (!
|
|
8347
|
+
if (!Ne)
|
|
8340
8348
|
return;
|
|
8341
|
-
const
|
|
8342
|
-
let
|
|
8343
|
-
for (; (Ot =
|
|
8344
|
-
Ot[1] === "Date" && (
|
|
8345
|
-
const ht = document.createElement("a"), qn = window.URL.createObjectURL(new Blob([
|
|
8346
|
-
ht.href = qn, ht.download =
|
|
8349
|
+
const Re = /\{\{(.+?)\}\}/g;
|
|
8350
|
+
let ke = `${e.page.name}-{{Date}}.xlsx`, Ot = null;
|
|
8351
|
+
for (; (Ot = Re.exec(ke)) !== null; )
|
|
8352
|
+
Ot[1] === "Date" && (ke = ke.replace(Ot[0], Ms().format("YYYY-MM-DD")));
|
|
8353
|
+
const ht = document.createElement("a"), qn = window.URL.createObjectURL(new Blob([Ne]));
|
|
8354
|
+
ht.href = qn, ht.download = ke, document.body.appendChild(ht), ht.click(), document.body.removeChild(ht), window.URL.revokeObjectURL(qn);
|
|
8347
8355
|
}, He = () => {
|
|
8348
8356
|
var K, te;
|
|
8349
8357
|
(K = M.value) == null || K.resetFields(), (te = w.value) == null || te.clearSort();
|
|
@@ -8353,27 +8361,27 @@ const So = {
|
|
|
8353
8361
|
}, xr = () => {
|
|
8354
8362
|
var K;
|
|
8355
8363
|
return (K = w.value) == null ? void 0 : K.toggleTableHeight();
|
|
8356
|
-
},
|
|
8364
|
+
}, cn = () => {
|
|
8357
8365
|
var K;
|
|
8358
8366
|
return (K = _.value) == null ? void 0 : K.fetchSummary();
|
|
8359
8367
|
}, Br = Se("emitHandler", () => {
|
|
8360
8368
|
});
|
|
8361
8369
|
St("pageName", e.page.name);
|
|
8362
|
-
const
|
|
8363
|
-
const
|
|
8364
|
-
Br(K,
|
|
8370
|
+
const fn = (K, te, Ae, le) => {
|
|
8371
|
+
const Ne = Ae || (De[e.page.name] ? Le(De[e.page.name]) : []);
|
|
8372
|
+
Br(K, Ne, le);
|
|
8365
8373
|
}, Kr = async () => {
|
|
8366
|
-
|
|
8374
|
+
R.visible = !1, window.__POWERED_BY_WUJIE__ && setTimeout(() => {
|
|
8367
8375
|
$();
|
|
8368
8376
|
}, 500);
|
|
8369
|
-
}, Vn = W(() =>
|
|
8377
|
+
}, Vn = W(() => k.value.map((K) => ({
|
|
8370
8378
|
...K,
|
|
8371
8379
|
show: a ? !0 : j.value.includes(K.columnKey)
|
|
8372
8380
|
})));
|
|
8373
8381
|
Lt(() => {
|
|
8374
|
-
const K = Vn.value.sort((le,
|
|
8375
|
-
const
|
|
8376
|
-
return
|
|
8382
|
+
const K = Vn.value.sort((le, Ne) => {
|
|
8383
|
+
const Re = j.value.indexOf(le.columnKey), ke = j.value.indexOf(Ne.columnKey);
|
|
8384
|
+
return Re - ke;
|
|
8377
8385
|
});
|
|
8378
8386
|
g.value.length > 0 && K.unshift({
|
|
8379
8387
|
title: "操作",
|
|
@@ -8383,19 +8391,19 @@ const So = {
|
|
|
8383
8391
|
text: le.children,
|
|
8384
8392
|
action: le.action
|
|
8385
8393
|
})),
|
|
8386
|
-
width: g.value.reduce((le,
|
|
8394
|
+
width: g.value.reduce((le, Ne) => le + Number(Ne.columnActionWidth || 50), 0)
|
|
8387
8395
|
});
|
|
8388
8396
|
let te = K;
|
|
8389
|
-
const Ae =
|
|
8397
|
+
const Ae = N.value[e.page.name];
|
|
8390
8398
|
if (Ae) {
|
|
8391
8399
|
const le = An(Le(K));
|
|
8392
|
-
te = [...Ae.filter((
|
|
8393
|
-
const
|
|
8394
|
-
(ht) => ht.columnKey ===
|
|
8400
|
+
te = [...Ae.filter((Re) => le.find((ke) => ke.columnKey === Re.columnKey)).map((Re) => {
|
|
8401
|
+
const ke = le.findIndex(
|
|
8402
|
+
(ht) => ht.columnKey === Re.columnKey
|
|
8395
8403
|
);
|
|
8396
8404
|
return {
|
|
8397
|
-
...le.splice(
|
|
8398
|
-
show:
|
|
8405
|
+
...le.splice(ke, 1)[0],
|
|
8406
|
+
show: Re.show
|
|
8399
8407
|
};
|
|
8400
8408
|
}), ...le];
|
|
8401
8409
|
}
|
|
@@ -8404,15 +8412,15 @@ const So = {
|
|
|
8404
8412
|
const { getEnumData: Ur } = Sa();
|
|
8405
8413
|
Tt(async () => {
|
|
8406
8414
|
b(e.page.enumerations), await E(e.page.enumapi, Ur), h.value = !0, qe().then(() => {
|
|
8407
|
-
|
|
8415
|
+
cn();
|
|
8408
8416
|
});
|
|
8409
|
-
}), a ? ae([
|
|
8417
|
+
}), a ? ae([ye, ie], () => {
|
|
8410
8418
|
_e();
|
|
8411
|
-
}) : ae([
|
|
8412
|
-
const { category: le, tab:
|
|
8419
|
+
}) : ae([ye, ie, p], ([K, te, Ae]) => {
|
|
8420
|
+
const { category: le, tab: Ne } = n.meta;
|
|
8413
8421
|
T.value.run({
|
|
8414
8422
|
category: le,
|
|
8415
|
-
tab:
|
|
8423
|
+
tab: Ne,
|
|
8416
8424
|
pageNumber: K,
|
|
8417
8425
|
pageSize: te,
|
|
8418
8426
|
fetchMode: "BODY",
|
|
@@ -8422,39 +8430,39 @@ const So = {
|
|
|
8422
8430
|
});
|
|
8423
8431
|
const Yr = (K) => {
|
|
8424
8432
|
if (a) {
|
|
8425
|
-
|
|
8433
|
+
R.columns = [...r.value.columns], R.type = K, R.title = va[K], R.visible = !0;
|
|
8426
8434
|
return;
|
|
8427
8435
|
}
|
|
8428
8436
|
const te = r.value.fieldList.reduce((Ae, le) => {
|
|
8429
|
-
const
|
|
8437
|
+
const Ne = {
|
|
8430
8438
|
COLUMN_SETTING: !1,
|
|
8431
8439
|
SORT_SETTING: !le.sortable,
|
|
8432
8440
|
FILTER_SETTING: !le.filterable
|
|
8433
8441
|
};
|
|
8434
8442
|
if (K === "SORT_SETTING") {
|
|
8435
|
-
const
|
|
8436
|
-
(
|
|
8443
|
+
const Re = A.value[K].find(
|
|
8444
|
+
(ke) => ke.columnKey === le.columnKey
|
|
8437
8445
|
);
|
|
8438
|
-
Object.keys(So).forEach((
|
|
8446
|
+
Object.keys(So).forEach((ke) => {
|
|
8439
8447
|
Ae.push({
|
|
8440
8448
|
...le,
|
|
8441
|
-
title: `${le.title}_${So[
|
|
8442
|
-
columnKey: `${le.columnKey}@${
|
|
8443
|
-
show:
|
|
8444
|
-
disabled:
|
|
8449
|
+
title: `${le.title}_${So[ke]}`,
|
|
8450
|
+
columnKey: `${le.columnKey}@${ke}`,
|
|
8451
|
+
show: Re ? Re.sort === ke : !1,
|
|
8452
|
+
disabled: Ne[K]
|
|
8445
8453
|
});
|
|
8446
8454
|
});
|
|
8447
8455
|
} else
|
|
8448
8456
|
Ae.push({
|
|
8449
8457
|
...le,
|
|
8450
8458
|
show: !!A.value[K].find(
|
|
8451
|
-
(
|
|
8459
|
+
(Re) => Re.columnKey === le.columnKey
|
|
8452
8460
|
),
|
|
8453
|
-
disabled:
|
|
8461
|
+
disabled: Ne[K]
|
|
8454
8462
|
});
|
|
8455
8463
|
return Ae;
|
|
8456
8464
|
}, []);
|
|
8457
|
-
|
|
8465
|
+
R.columns = Rg(te, ["disabled"], ["asc"]), R.type = K, R.title = va[K], R.visible = !0;
|
|
8458
8466
|
};
|
|
8459
8467
|
return t({ run: _e, resetSearch: He, clearSelect: jr }), {
|
|
8460
8468
|
apiConfig: a,
|
|
@@ -8466,7 +8474,7 @@ const So = {
|
|
|
8466
8474
|
exportConfig: y,
|
|
8467
8475
|
importConfig: O,
|
|
8468
8476
|
summary: f,
|
|
8469
|
-
current:
|
|
8477
|
+
current: ye,
|
|
8470
8478
|
pageSize: ie,
|
|
8471
8479
|
pageTotal: l,
|
|
8472
8480
|
sort: p,
|
|
@@ -8474,12 +8482,12 @@ const So = {
|
|
|
8474
8482
|
conditions: M,
|
|
8475
8483
|
summaryBar: _,
|
|
8476
8484
|
sortedColumns: L,
|
|
8477
|
-
columnSettingState:
|
|
8485
|
+
columnSettingState: R,
|
|
8478
8486
|
columnSettingVisible: d,
|
|
8479
8487
|
handleSearch: _e,
|
|
8480
8488
|
handleExport: We,
|
|
8481
8489
|
resetSearch: He,
|
|
8482
|
-
handleEmitAction:
|
|
8490
|
+
handleEmitAction: fn,
|
|
8483
8491
|
columnSettingChange: Kr,
|
|
8484
8492
|
resizeTableHeight: xr,
|
|
8485
8493
|
handleCustomizeSetting: Yr
|
|
@@ -8489,7 +8497,7 @@ const So = {
|
|
|
8489
8497
|
function Kw(e, t, n, r, a, i) {
|
|
8490
8498
|
var c, p, d;
|
|
8491
8499
|
const o = B("Conditions"), s = B("Operations"), u = B("SummaryBar"), l = B("TableView"), f = B("ColumnSettingModal");
|
|
8492
|
-
return e.loaded ? (
|
|
8500
|
+
return e.loaded ? (D(), Z(me, { key: 0 }, [
|
|
8493
8501
|
Y(o, {
|
|
8494
8502
|
ref: "conditions",
|
|
8495
8503
|
config: e.page.conditions,
|
|
@@ -8518,7 +8526,7 @@ function Kw(e, t, n, r, a, i) {
|
|
|
8518
8526
|
onButtonClick: e.handleEmitAction,
|
|
8519
8527
|
onCustomizeSetting: e.handleCustomizeSetting
|
|
8520
8528
|
}, null, 8, ["total", "config", "has-api-config", "export-config", "import-config", "page-size-options", "handle-export", "pageSize", "current", "onRefresh", "onButtonClick", "onCustomizeSetting"]),
|
|
8521
|
-
e.summary ? (
|
|
8529
|
+
e.summary ? (D(), q(u, {
|
|
8522
8530
|
key: 0,
|
|
8523
8531
|
ref: "summaryBar",
|
|
8524
8532
|
config: e.summary
|
|
@@ -8554,7 +8562,7 @@ function Kw(e, t, n, r, a, i) {
|
|
|
8554
8562
|
}, null, 8, ["visible", "has-api-config", "type", "title", "columns", "onChange"])
|
|
8555
8563
|
], 64)) : ge("", !0);
|
|
8556
8564
|
}
|
|
8557
|
-
const Zs = /* @__PURE__ */ at(Bw, [["render", Kw]]), Uw =
|
|
8565
|
+
const Zs = /* @__PURE__ */ at(Bw, [["render", Kw]]), Uw = ve({
|
|
8558
8566
|
name: "PageRendererTabsPage",
|
|
8559
8567
|
components: { TablePage: Zs },
|
|
8560
8568
|
props: {
|
|
@@ -8594,7 +8602,7 @@ const Zs = /* @__PURE__ */ at(Bw, [["render", Kw]]), Uw = me({
|
|
|
8594
8602
|
return v({ name: d, index: h });
|
|
8595
8603
|
if (a)
|
|
8596
8604
|
return a(e.tabClickAction, { name: d, index: h });
|
|
8597
|
-
e.tabClickAction &&
|
|
8605
|
+
e.tabClickAction && Ie.warn("没有监听 tab 切换的事件处理函数");
|
|
8598
8606
|
};
|
|
8599
8607
|
return t({ run: (d) => {
|
|
8600
8608
|
s.value[d] && o[d]();
|
|
@@ -8607,7 +8615,7 @@ const Zs = /* @__PURE__ */ at(Bw, [["render", Kw]]), Uw = me({
|
|
|
8607
8615
|
});
|
|
8608
8616
|
function Yw(e, t, n, r, a, i) {
|
|
8609
8617
|
const o = B("TablePage"), s = B("a-tab-pane"), u = B("a-tabs");
|
|
8610
|
-
return
|
|
8618
|
+
return D(), q(u, {
|
|
8611
8619
|
type: "card",
|
|
8612
8620
|
size: "small",
|
|
8613
8621
|
class: "tabs-page-renderer",
|
|
@@ -8616,7 +8624,7 @@ function Yw(e, t, n, r, a, i) {
|
|
|
8616
8624
|
onChange: e.activeChange
|
|
8617
8625
|
}, {
|
|
8618
8626
|
default: z(() => [
|
|
8619
|
-
(
|
|
8627
|
+
(D(!0), Z(me, null, Ye(e.pages, (l) => (D(), q(s, {
|
|
8620
8628
|
key: l.name,
|
|
8621
8629
|
tab: l.title
|
|
8622
8630
|
}, {
|
|
@@ -8670,7 +8678,7 @@ const Vw = /* @__PURE__ */ at(Uw, [["render", Yw]]), qw = (e) => ({
|
|
|
8670
8678
|
return e;
|
|
8671
8679
|
}
|
|
8672
8680
|
return e;
|
|
8673
|
-
}, [Gw] = rt("page-renderer"), Xw =
|
|
8681
|
+
}, [Gw] = rt("page-renderer"), Xw = ve({
|
|
8674
8682
|
name: Gw,
|
|
8675
8683
|
components: { TablePage: Zs, TabsPage: Vw, FormModal: Mo, PreviewMediaModal: Ba },
|
|
8676
8684
|
props: {
|
|
@@ -8755,7 +8763,7 @@ const Vw = /* @__PURE__ */ at(Uw, [["render", Yw]]), qw = (e) => ({
|
|
|
8755
8763
|
});
|
|
8756
8764
|
v.value = M.data;
|
|
8757
8765
|
} catch {
|
|
8758
|
-
|
|
8766
|
+
Ie.error("页面配置请求失败!");
|
|
8759
8767
|
} finally {
|
|
8760
8768
|
g.value = !1;
|
|
8761
8769
|
}
|
|
@@ -8767,14 +8775,14 @@ const Vw = /* @__PURE__ */ at(Uw, [["render", Yw]]), qw = (e) => ({
|
|
|
8767
8775
|
St("tableDropChange", (w) => t("table-drop-change", w)), St("materials", (b = e.config) == null ? void 0 : b.materials), St("previewMediaModalOpen", T), St("tableCellSlots", e.tableCellSlots || {}), St("rowSelection", e.rowSelection || {}), St("reloadPage", C), St(
|
|
8768
8776
|
"emitHandler",
|
|
8769
8777
|
(w, _, M) => {
|
|
8770
|
-
var
|
|
8771
|
-
const
|
|
8778
|
+
var k, R, j;
|
|
8779
|
+
const N = An(_);
|
|
8772
8780
|
if (e.form === void 0 || !e.form[w]) {
|
|
8773
|
-
const L = (
|
|
8781
|
+
const L = (k = e.customEvent) == null ? void 0 : k[w];
|
|
8774
8782
|
if (!L)
|
|
8775
|
-
return y ? y(w,
|
|
8783
|
+
return y ? y(w, N) : Ie.warn("没有找到自定义事件处理函数"), M == null ? void 0 : M();
|
|
8776
8784
|
try {
|
|
8777
|
-
L(
|
|
8785
|
+
L(N, (F) => {
|
|
8778
8786
|
var ee;
|
|
8779
8787
|
const V = (ee = v.value.page) == null ? void 0 : ee.rowKey;
|
|
8780
8788
|
V && F.forEach((ne) => {
|
|
@@ -8787,10 +8795,10 @@ const Vw = /* @__PURE__ */ at(Uw, [["render", Yw]]), qw = (e) => ({
|
|
|
8787
8795
|
}, 100);
|
|
8788
8796
|
});
|
|
8789
8797
|
} catch (F) {
|
|
8790
|
-
((
|
|
8798
|
+
((R = F.message) == null ? void 0 : R.indexOf("finally")) > -1 ? Ie.warn("自定义事件处理函数必须返回一个Promise") : Ie.warn(F.message);
|
|
8791
8799
|
}
|
|
8792
8800
|
} else
|
|
8793
|
-
(((j = e.customEvent) == null ? void 0 : j[w]) || (() => Promise.resolve()))(
|
|
8801
|
+
(((j = e.customEvent) == null ? void 0 : j[w]) || (() => Promise.resolve()))(N, (F) => {
|
|
8794
8802
|
var ee;
|
|
8795
8803
|
const V = (ee = v.value.page) == null ? void 0 : ee.rowKey;
|
|
8796
8804
|
V && F.forEach((ne) => {
|
|
@@ -8799,7 +8807,7 @@ const Vw = /* @__PURE__ */ at(Uw, [["render", Yw]]), qw = (e) => ({
|
|
|
8799
8807
|
});
|
|
8800
8808
|
}).then((F) => {
|
|
8801
8809
|
var V;
|
|
8802
|
-
f.value = F, d.value = e.form[w], l.value = d.value.needSelectRows === !1 ? [] :
|
|
8810
|
+
f.value = F, d.value = e.form[w], l.value = d.value.needSelectRows === !1 ? [] : N, (V = s.value) == null || V.openModal();
|
|
8803
8811
|
}).finally(() => {
|
|
8804
8812
|
setTimeout(() => {
|
|
8805
8813
|
M == null || M();
|
|
@@ -8846,8 +8854,8 @@ const Vw = /* @__PURE__ */ at(Uw, [["render", Yw]]), qw = (e) => ({
|
|
|
8846
8854
|
};
|
|
8847
8855
|
function Zw(e, t, n, r, a, i) {
|
|
8848
8856
|
const o = B("TablePage"), s = B("TabsPage"), u = B("FormModal"), l = B("PreviewMediaModal");
|
|
8849
|
-
return e.loaded ? (
|
|
8850
|
-
e.rendererOptions.type === "basic" ? (
|
|
8857
|
+
return e.loaded ? (D(), Z("div", Qw, [
|
|
8858
|
+
e.rendererOptions.type === "basic" ? (D(), q(o, {
|
|
8851
8859
|
key: 0,
|
|
8852
8860
|
page: e.rendererOptions.page,
|
|
8853
8861
|
config: e.config,
|
|
@@ -8858,7 +8866,7 @@ function Zw(e, t, n, r, a, i) {
|
|
|
8858
8866
|
]),
|
|
8859
8867
|
_: 3
|
|
8860
8868
|
}, 8, ["page", "config"])) : ge("", !0),
|
|
8861
|
-
e.rendererOptions.type === "tabs" ? (
|
|
8869
|
+
e.rendererOptions.type === "tabs" ? (D(), q(s, {
|
|
8862
8870
|
key: 1,
|
|
8863
8871
|
"tab-click-action": e.rendererOptions.tabClickAction,
|
|
8864
8872
|
pages: e.rendererOptions.pages,
|
|
@@ -8919,7 +8927,7 @@ export {
|
|
|
8919
8927
|
zo as EnumSelect,
|
|
8920
8928
|
Ug as FuzzySelect,
|
|
8921
8929
|
tr as LOADING_SIGN,
|
|
8922
|
-
|
|
8930
|
+
Jt as MAP_SIGN,
|
|
8923
8931
|
e0 as PageRenderer,
|
|
8924
8932
|
Yy as PreviewMediaModal,
|
|
8925
8933
|
Xg as RegionFuzzyAutoComplete,
|