@a2simcode/ui 0.0.92 → 0.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/simcode-ui.es.js +65 -65
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as xe, computed as j, createBlock as H, createCommentVNode as U, createElementBlock as O, createElementVNode as V, createSlots as En, createTextVNode as qt, createVNode as X, defineComponent as le, getCurrentInstance as Ys, guardReactiveProps as _l, h as Qu, inject as ed, mergeModels as ho, mergeProps as $e, nextTick as kt, normalizeClass as ze, normalizeProps as mi, normalizeStyle as we, onBeforeUnmount as vo, onMounted as xt, onUnmounted as mo, openBlock as _, provide as td, reactive as Ma, ref as P, render as oi, renderList as je, renderSlot as Ue, resolveComponent as I, resolveDirective as yi, resolveDynamicComponent as Aa, shallowRef as bi, toDisplayString as me, unref as K, useModel as po, useSlots as nd, useTemplateRef as la, vShow as lo, watch as at, watchEffect as Ks, withCtx as N, withDirectives as Sn, withKeys as Zi, withModifiers as
|
|
1
|
+
import { Fragment as xe, computed as j, createBlock as H, createCommentVNode as U, createElementBlock as O, createElementVNode as V, createSlots as En, createTextVNode as qt, createVNode as X, defineComponent as le, getCurrentInstance as Ys, guardReactiveProps as _l, h as Qu, inject as ed, mergeModels as ho, mergeProps as $e, nextTick as kt, normalizeClass as ze, normalizeProps as mi, normalizeStyle as we, onBeforeUnmount as vo, onMounted as xt, onUnmounted as mo, openBlock as _, provide as td, reactive as Ma, ref as P, render as oi, renderList as je, renderSlot as Ue, resolveComponent as I, resolveDirective as yi, resolveDynamicComponent as Aa, shallowRef as bi, toDisplayString as me, unref as K, useModel as po, useSlots as nd, useTemplateRef as la, vShow as lo, watch as at, watchEffect as Ks, withCtx as N, withDirectives as Sn, withKeys as Zi, withModifiers as jt } from "vue";
|
|
2
2
|
import { Icon as gr, getIcon as ia } from "@iconify/vue";
|
|
3
3
|
import Gs from "dayjs";
|
|
4
4
|
import ad from "crypto-js/aes";
|
|
@@ -197,7 +197,7 @@ var pn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
197
197
|
"j-button-first-compact-item": e.firstCompactItem == !0
|
|
198
198
|
}]),
|
|
199
199
|
disabled: e.disabled,
|
|
200
|
-
onClick:
|
|
200
|
+
onClick: jt(i, ["stop"])
|
|
201
201
|
}, [
|
|
202
202
|
u.value ? (_(), H(ra, {
|
|
203
203
|
key: 0,
|
|
@@ -719,7 +719,7 @@ function kn(e, t) {
|
|
|
719
719
|
function Rn(e, t) {
|
|
720
720
|
td(e, t);
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function At() {
|
|
723
723
|
return kn(Bt.APP_PROVIDE, {
|
|
724
724
|
t: (e, ...t) => {
|
|
725
725
|
if (!e) return "";
|
|
@@ -902,18 +902,18 @@ var Df = /* @__PURE__ */ le({
|
|
|
902
902
|
]);
|
|
903
903
|
};
|
|
904
904
|
}
|
|
905
|
-
}), dc = Df, Ff = (e, t) => {
|
|
906
|
-
const
|
|
907
|
-
t && (
|
|
908
|
-
const
|
|
905
|
+
}), dc = Df, Ff = (e, t, n) => {
|
|
906
|
+
const a = document.createElement("div"), o = X(dc, {});
|
|
907
|
+
t && (o.appContext = t, n && (o.appContext.provides = n)), oi(o, a);
|
|
908
|
+
const i = e.afterClose;
|
|
909
909
|
e.afterClose = () => {
|
|
910
|
-
|
|
911
|
-
},
|
|
910
|
+
i && i(), oi(null, a);
|
|
911
|
+
}, o.component && o.component.exposed && o.component.exposed.open(e);
|
|
912
912
|
};
|
|
913
913
|
function xo() {
|
|
914
|
-
const e = Ys()?.appContext;
|
|
915
|
-
return { openLayer: (
|
|
916
|
-
Ff(
|
|
914
|
+
const e = Ys(), t = e?.appContext, n = e?.provides, { useData: a } = At();
|
|
915
|
+
return a(), { openLayer: (i) => {
|
|
916
|
+
Ff(i, t, n);
|
|
917
917
|
} };
|
|
918
918
|
}
|
|
919
919
|
var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
@@ -951,7 +951,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
951
951
|
type: "text",
|
|
952
952
|
label: p.label,
|
|
953
953
|
size: e.size,
|
|
954
|
-
onClick:
|
|
954
|
+
onClick: jt((g) => o(p), ["stop"])
|
|
955
955
|
}), null, 16, [
|
|
956
956
|
"label",
|
|
957
957
|
"size",
|
|
@@ -966,7 +966,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
966
966
|
compact: !0,
|
|
967
967
|
"last-compact-item": h === u.length - 1,
|
|
968
968
|
"first-compact-item": h === 0,
|
|
969
|
-
onClick:
|
|
969
|
+
onClick: jt((p) => o(f), ["stop"])
|
|
970
970
|
}), null, 16, [
|
|
971
971
|
"label",
|
|
972
972
|
"size",
|
|
@@ -986,7 +986,7 @@ var Vf = de(dc), Nf = /* @__PURE__ */ le({
|
|
|
986
986
|
compact: !0,
|
|
987
987
|
"last-compact-item": h === u.length - 1,
|
|
988
988
|
"first-compact-item": h === 0,
|
|
989
|
-
onClick:
|
|
989
|
+
onClick: jt((p) => o(f), ["stop"])
|
|
990
990
|
}), null, 16, [
|
|
991
991
|
"label",
|
|
992
992
|
"size",
|
|
@@ -4160,7 +4160,7 @@ var $h = class {
|
|
|
4160
4160
|
}
|
|
4161
4161
|
},
|
|
4162
4162
|
setup(e) {
|
|
4163
|
-
const t = e, { formData: n, compsConfig: a, errorFields: o, span: i, labelWidth: l, formChange: r } = ca(), { t: s } =
|
|
4163
|
+
const t = e, { formData: n, compsConfig: a, errorFields: o, span: i, labelWidth: l, formChange: r } = ca(), { t: s } = At(), c = j(() => {
|
|
4164
4164
|
const v = Ea({
|
|
4165
4165
|
config: {
|
|
4166
4166
|
...t.config || {},
|
|
@@ -4691,7 +4691,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4691
4691
|
"change"
|
|
4692
4692
|
],
|
|
4693
4693
|
setup(e, { expose: t, emit: n }) {
|
|
4694
|
-
const a = Ys(), o = e, i = n, { formData: l } = ca(), { useData: r } =
|
|
4694
|
+
const a = Ys(), o = e, i = n, { formData: l } = ca(), { useData: r } = At(), { getLabel: s, getObjectList: c } = r(), { openLayer: u } = xo(), d = j(() => o.heightMode === "auto" ? { height: "auto" } : {}), f = P(40), h = j(() => {
|
|
4695
4695
|
const B = {};
|
|
4696
4696
|
return o.heightMode === "auto" && (o.emptyTipText && f.value < 200 ? B.height = "200px" : B.height = f.value + "px", B.flex = "none", o.maxHeight && (B.maxHeight = typeof o.maxHeight == "number" ? `${o.maxHeight}px` : o.maxHeight)), B;
|
|
4697
4697
|
}), p = P(null);
|
|
@@ -4854,13 +4854,13 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4854
4854
|
}
|
|
4855
4855
|
return { elements: Te };
|
|
4856
4856
|
}, Xe = (B) => {
|
|
4857
|
-
const { dataValue: z, rect: G, table: J, col: Z, row: Q } = B, pe = J.getBodyField(Z, Q), Be = ht(J.options?.columns || [], pe)?._compConfig || {}, ye = Number(Be.min) || 0, Te = Number(Be.max) || 100, Le = Number(z) || 0, Ne = Te - ye, Ce = Ne === 0 ? 0 : Math.max(0, Math.min(100, (Le - ye) / Ne * 100)), ue = 4, We = 8, De = 8, Me = (G.height - ue) / 2, it = String(Le), Ae = an(it) || 0, Ze = We, mt = Me, ke = G.width - We * 2 - Ae - De, Tt = ke * Ce / 100, ut = [],
|
|
4857
|
+
const { dataValue: z, rect: G, table: J, col: Z, row: Q } = B, pe = J.getBodyField(Z, Q), Be = ht(J.options?.columns || [], pe)?._compConfig || {}, ye = Number(Be.min) || 0, Te = Number(Be.max) || 100, Le = Number(z) || 0, Ne = Te - ye, Ce = Ne === 0 ? 0 : Math.max(0, Math.min(100, (Le - ye) / Ne * 100)), ue = 4, We = 8, De = 8, Me = (G.height - ue) / 2, it = String(Le), Ae = an(it) || 0, Ze = We, mt = Me, ke = G.width - We * 2 - Ae - De, Tt = ke * Ce / 100, ut = [], Pt = (Ot, $t, ea) => {
|
|
4858
4858
|
const Pe = Math.min(ea, $t / 2, Ot / 2);
|
|
4859
4859
|
return `M ${Pe} 0 L ${Ot - Pe} 0 Q ${Ot} 0 ${Ot} ${Pe} L ${Ot} ${$t - Pe} Q ${Ot} ${$t} ${Ot - Pe} ${$t} L ${Pe} ${$t} Q 0 ${$t} 0 ${$t - Pe} L 0 ${Pe} Q 0 0 ${Pe} 0 Z`;
|
|
4860
4860
|
}, _n = (Ot, $t, ea) => {
|
|
4861
4861
|
const Pe = Math.min(ea, $t / 2, Ot / 2);
|
|
4862
|
-
return Ot <= Pe * 2 ?
|
|
4863
|
-
}, Qn =
|
|
4862
|
+
return Ot <= Pe * 2 ? Pt(Ot, $t, ea) : `M ${Pe} 0 L ${Ot} 0 L ${Ot} ${$t} L ${Pe} ${$t} Q 0 ${$t} 0 ${$t - Pe} L 0 ${Pe} Q 0 0 ${Pe} 0 Z`;
|
|
4863
|
+
}, Qn = Pt(ke, ue, ue / 2);
|
|
4864
4864
|
if (ut.push({
|
|
4865
4865
|
type: "icon",
|
|
4866
4866
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${ke}" height="${ue}" viewBox="0 0 ${ke} ${ue}"><path d="${Qn}" fill="#e5e6eb"/></svg>`,
|
|
@@ -4953,7 +4953,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4953
4953
|
width: xa,
|
|
4954
4954
|
height: ue
|
|
4955
4955
|
}), { tagWidth: xa };
|
|
4956
|
-
},
|
|
4956
|
+
}, Pt = [];
|
|
4957
4957
|
let _n = [], Qn = 0;
|
|
4958
4958
|
for (let Pe = 0; Pe < Ne.length; Pe++) {
|
|
4959
4959
|
const Mt = Ne[Pe], cn = Mt.label, Dt = Tt(cn), jn = {
|
|
@@ -4962,19 +4962,19 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4962
4962
|
text: Mt.textColor || ge(Mt.color || "#f2f3f5"),
|
|
4963
4963
|
width: Dt
|
|
4964
4964
|
};
|
|
4965
|
-
_n.length > 0 && Qn + Me + Dt > Ze ? (
|
|
4965
|
+
_n.length > 0 && Qn + Me + Dt > Ze ? (Pt.push({
|
|
4966
4966
|
items: _n,
|
|
4967
4967
|
lineWidth: Qn
|
|
4968
4968
|
}), _n = [jn], Qn = Dt) : (_n.push(jn), Qn += _n.length > 1 ? Me + Dt : Dt);
|
|
4969
4969
|
}
|
|
4970
|
-
_n.length > 0 &&
|
|
4970
|
+
_n.length > 0 && Pt.push({
|
|
4971
4971
|
items: _n,
|
|
4972
4972
|
lineWidth: Qn
|
|
4973
4973
|
});
|
|
4974
4974
|
const zi = G.height;
|
|
4975
4975
|
let Lo = Math.max(1, Math.floor((zi + it) / (ue + it))), Ot = !1;
|
|
4976
|
-
if (
|
|
4977
|
-
const Pe =
|
|
4976
|
+
if (Pt.length > Lo && (Ot = !0, Pt.length = Lo), Ot) {
|
|
4977
|
+
const Pe = Pt[Pt.length - 1], Mt = Tt("...");
|
|
4978
4978
|
let cn = Pe.lineWidth + (Pe.items.length > 0 ? Me : 0) + Mt;
|
|
4979
4979
|
for (; cn > Ze && Pe.items.length > 0; ) {
|
|
4980
4980
|
const Dt = Pe.items.pop();
|
|
@@ -4988,16 +4988,16 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
4988
4988
|
width: Mt
|
|
4989
4989
|
}), Pe.lineWidth += Pe.items.length > 1 ? Me + Mt : Mt;
|
|
4990
4990
|
}
|
|
4991
|
-
const $t =
|
|
4991
|
+
const $t = Pt.length * ue + (Pt.length > 1 ? (Pt.length - 1) * it : 0);
|
|
4992
4992
|
let ea = Math.max(0, (G.height - $t) / 2);
|
|
4993
|
-
for (let Pe = 0; Pe <
|
|
4994
|
-
const Mt =
|
|
4993
|
+
for (let Pe = 0; Pe < Pt.length; Pe++) {
|
|
4994
|
+
const Mt = Pt[Pe];
|
|
4995
4995
|
let cn = Le === "center" ? Ae + Math.max(0, (Ze - Mt.lineWidth) / 2) : Le === "right" ? Ae + Math.max(0, Ze - Mt.lineWidth) : Ae;
|
|
4996
4996
|
for (let Dt = 0; Dt < Mt.items.length; Dt++) {
|
|
4997
4997
|
const jn = Mt.items[Dt], { tagWidth: zo } = ut(cn, ea, jn.label, jn.bg, jn.text);
|
|
4998
4998
|
cn += zo + (Dt < Mt.items.length - 1 ? Me : 0);
|
|
4999
4999
|
}
|
|
5000
|
-
ea += ue + (Pe <
|
|
5000
|
+
ea += ue + (Pe < Pt.length - 1 ? it : 0);
|
|
5001
5001
|
}
|
|
5002
5002
|
return { elements: ke };
|
|
5003
5003
|
}, ge = (B) => {
|
|
@@ -5073,7 +5073,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
5073
5073
|
}, Ke = (B) => {
|
|
5074
5074
|
const { table: z, row: G, col: J, rect: Z } = B, { height: Q, width: pe } = Z ?? z.getCellRect(J, G), { Group: Be, CheckBox: ye } = Ie.CustomLayout, Te = z.getBodyField(J, G), Le = ht(z.options?.columns || [], Te), Ne = z.getCellOriginRecord(J, G) || {}, Ce = Le?.style?.textAlign === "right" ? "flex-end" : Le?.style?.textAlign === "center" ? "center" : "flex-start", ue = Le?.style?.textAlign === "right" ? "flex-end" : Le?.style?.textAlign === "center" ? "center" : "flex-start", We = (mt, ke) => {
|
|
5075
5075
|
const Tt = Ne?.[Te];
|
|
5076
|
-
Ne[Te] = (Array.isArray(Tt) ? Tt : []).map((ut,
|
|
5076
|
+
Ne[Te] = (Array.isArray(Tt) ? Tt : []).map((ut, Pt) => Pt !== mt ? ut : ut && typeof ut == "object" ? {
|
|
5077
5077
|
...ut,
|
|
5078
5078
|
...ke
|
|
5079
5079
|
} : { ...ke });
|
|
@@ -5123,8 +5123,8 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
5123
5123
|
]
|
|
5124
5124
|
});
|
|
5125
5125
|
ut.render?.(), Ze.add(ut), ut.addEventListener("checkbox_state_change", () => {
|
|
5126
|
-
const
|
|
5127
|
-
We(mt, { checked:
|
|
5126
|
+
const Pt = !!ut.attribute?.checked;
|
|
5127
|
+
We(mt, { checked: Pt }), De();
|
|
5128
5128
|
});
|
|
5129
5129
|
}
|
|
5130
5130
|
return {
|
|
@@ -5716,7 +5716,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
5716
5716
|
"closed"
|
|
5717
5717
|
],
|
|
5718
5718
|
setup(e, { expose: t, emit: n }) {
|
|
5719
|
-
const a = e, o = n, { t: i } =
|
|
5719
|
+
const a = e, o = n, { t: i } = At(), l = P(!1), r = P(!1), s = P(""), c = P(!1), u = P(!0), d = P(!1), f = P(!0), h = P(-1), p = Ma({
|
|
5720
5720
|
isMove: !1,
|
|
5721
5721
|
pageX: 0,
|
|
5722
5722
|
pageY: 0,
|
|
@@ -6012,7 +6012,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6012
6012
|
"closed"
|
|
6013
6013
|
],
|
|
6014
6014
|
setup(e, { expose: t, emit: n }) {
|
|
6015
|
-
const a = e, o = n, { logoImg: i, t: l } =
|
|
6015
|
+
const a = e, o = n, { logoImg: i, t: l } = At(), r = P(!1), s = P(!1), c = P(""), u = P(!1), d = P(!0), f = P(!1), h = P(!0), p = P(-1);
|
|
6016
6016
|
at(() => a.visible, (R) => {
|
|
6017
6017
|
r.value = R;
|
|
6018
6018
|
}, { immediate: !0 });
|
|
@@ -6271,7 +6271,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6271
6271
|
"cancel"
|
|
6272
6272
|
],
|
|
6273
6273
|
setup(e, { expose: t, emit: n }) {
|
|
6274
|
-
const a = e, { t: o } =
|
|
6274
|
+
const a = e, { t: o } = At(), i = n, l = P(!1), r = P(""), s = j(() => ["ltr", "rtl"].indexOf(a.direction) !== -1 ? `${a.width}px` : `${a.height}px`), c = j({
|
|
6275
6275
|
get() {
|
|
6276
6276
|
return a.visible;
|
|
6277
6277
|
},
|
|
@@ -6698,8 +6698,8 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6698
6698
|
placeholder: e.placeholder,
|
|
6699
6699
|
size: e.size,
|
|
6700
6700
|
onSelect: r,
|
|
6701
|
-
onKeyup: Zi(
|
|
6702
|
-
onKeydown: Zi(
|
|
6701
|
+
onKeyup: Zi(jt(c, ["stop"]), ["enter"]),
|
|
6702
|
+
onKeydown: Zi(jt(s, ["stop"]), ["enter"])
|
|
6703
6703
|
}, {
|
|
6704
6704
|
prefix: N(() => [X(p, null, {
|
|
6705
6705
|
default: N(() => [(_(!0), O(xe, null, je(i.value, (v, b) => (_(), H(h, {
|
|
@@ -6708,7 +6708,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6708
6708
|
closable: !e.readonly,
|
|
6709
6709
|
style: we(l.value[b] || {}),
|
|
6710
6710
|
size: e.size,
|
|
6711
|
-
onClose:
|
|
6711
|
+
onClose: jt((w) => u(b), ["prevent"])
|
|
6712
6712
|
}, {
|
|
6713
6713
|
default: N(() => [qt(me(v), 1)]),
|
|
6714
6714
|
_: 2
|
|
@@ -6969,7 +6969,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
6969
6969
|
}
|
|
6970
6970
|
},
|
|
6971
6971
|
setup(e) {
|
|
6972
|
-
const { t } =
|
|
6972
|
+
const { t } = At();
|
|
6973
6973
|
return (n, a) => {
|
|
6974
6974
|
const o = I("j-icon"), i = I("el-text"), l = I("j-button"), r = I("el-progress"), s = I("el-link");
|
|
6975
6975
|
return _(), O("div", { class: ze(["j-upload-list", {
|
|
@@ -7003,13 +7003,13 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
7003
7003
|
key: 0,
|
|
7004
7004
|
icon: "mdi:eye",
|
|
7005
7005
|
type: "link",
|
|
7006
|
-
onClick:
|
|
7006
|
+
onClick: jt((u) => e.previewFile(c), ["stop"])
|
|
7007
7007
|
}, null, 8, ["onClick"])) : U("", !0), !e.readonly && (c.status === "done" || c.status === "unUpload") ? (_(), H(l, {
|
|
7008
7008
|
key: 1,
|
|
7009
7009
|
icon: "mdi:delete",
|
|
7010
7010
|
type: "link",
|
|
7011
7011
|
danger: "",
|
|
7012
|
-
onClick:
|
|
7012
|
+
onClick: jt((u) => e.deleteFile(c), ["stop", "prevent"])
|
|
7013
7013
|
}, null, 8, ["onClick"])) : U("", !0)], 512), [[lo, c.status === "error"]]),
|
|
7014
7014
|
c.status === "uploading" ? (_(), H(r, {
|
|
7015
7015
|
key: 2,
|
|
@@ -7037,13 +7037,13 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
7037
7037
|
key: 0,
|
|
7038
7038
|
type: "link",
|
|
7039
7039
|
icon: "mdi:eye",
|
|
7040
|
-
onClick:
|
|
7040
|
+
onClick: jt((u) => e.previewFile(c), ["stop"])
|
|
7041
7041
|
}, null, 8, ["onClick"])) : U("", !0), !e.readonly && (c.status === "done" || c.status === "unUpload") ? (_(), H(l, {
|
|
7042
7042
|
key: 1,
|
|
7043
7043
|
type: "link",
|
|
7044
7044
|
danger: "",
|
|
7045
7045
|
icon: "mdi:delete",
|
|
7046
|
-
onClick:
|
|
7046
|
+
onClick: jt((u) => e.deleteFile(c), ["stop", "prevent"])
|
|
7047
7047
|
}, null, 8, ["onClick"])) : U("", !0)], 512), [[lo, c.status === "error"]]),
|
|
7048
7048
|
c.status === "uploading" ? (_(), H(r, {
|
|
7049
7049
|
key: 1,
|
|
@@ -7063,7 +7063,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
7063
7063
|
V("div", Kp, [X(s, {
|
|
7064
7064
|
type: "primary",
|
|
7065
7065
|
underline: "never",
|
|
7066
|
-
onClick:
|
|
7066
|
+
onClick: jt((u) => e.previewFile(c), ["stop"])
|
|
7067
7067
|
}, {
|
|
7068
7068
|
default: N(() => [qt(me(`${K(t)(c.name)}${c.status === "unUpload" ? "(" + K(t)("未传") + ")" : ""}`), 1)]),
|
|
7069
7069
|
_: 2
|
|
@@ -7087,7 +7087,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
7087
7087
|
class: "j-upload-item-error",
|
|
7088
7088
|
icon: "delete",
|
|
7089
7089
|
size: 24,
|
|
7090
|
-
onClick:
|
|
7090
|
+
onClick: jt((u) => e.deleteFile(c), ["stop", "prevent"])
|
|
7091
7091
|
}, null, 8, ["onClick"])), [[lo, c.status === "error"]]),
|
|
7092
7092
|
c.status === "uploading" ? (_(), H(r, {
|
|
7093
7093
|
key: 3,
|
|
@@ -7225,7 +7225,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
7225
7225
|
"notUploadChange"
|
|
7226
7226
|
],
|
|
7227
7227
|
setup(e, { emit: t }) {
|
|
7228
|
-
const n = e, a = t, { warning: o, error: i, createConfirm: l, t: r, apiUrl: s, token: c, useFile: u } =
|
|
7228
|
+
const n = e, a = t, { warning: o, error: i, createConfirm: l, t: r, apiUrl: s, token: c, useFile: u } = At(), { fileChunkedUpload: d, deleteFile: f } = u(), h = j(() => n.isUploadImg ? n.accept || "image/*" : n.accept), p = j(() => {
|
|
7229
7229
|
if (n.limit !== -1)
|
|
7230
7230
|
return n.limit;
|
|
7231
7231
|
}), g = j(() => n.limit === -1 ? "" : `,${r("上传数量")}${n.limit}`), v = P(""), b = j(() => ({
|
|
@@ -8991,7 +8991,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
8991
8991
|
},
|
|
8992
8992
|
emits: ["click"],
|
|
8993
8993
|
setup(e, { emit: t }) {
|
|
8994
|
-
const { t: n } =
|
|
8994
|
+
const { t: n } = At(), { activeMenuId: a } = wo(), o = t, i = (l) => {
|
|
8995
8995
|
o("click", l);
|
|
8996
8996
|
};
|
|
8997
8997
|
return (l, r) => {
|
|
@@ -9003,7 +9003,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
9003
9003
|
content: N(() => [V("span", null, me(K(n)(e.item.label)), 1)]),
|
|
9004
9004
|
default: N(() => [V("div", {
|
|
9005
9005
|
class: ze(["j-menu-item", { collapsed: e.collapsed }]),
|
|
9006
|
-
onClick: r[0] || (r[0] =
|
|
9006
|
+
onClick: r[0] || (r[0] = jt((d) => i(e.item), ["stop"]))
|
|
9007
9007
|
}, [V("div", {
|
|
9008
9008
|
class: ze(["j-menu-item-content", {
|
|
9009
9009
|
active: e.item.value === K(a),
|
|
@@ -9062,7 +9062,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
9062
9062
|
collapsed: e.collapsed,
|
|
9063
9063
|
sub: e.item.indent > 0
|
|
9064
9064
|
}]),
|
|
9065
|
-
onClick: r[1] || (r[1] =
|
|
9065
|
+
onClick: r[1] || (r[1] = jt((d) => i(e.item), ["stop"]))
|
|
9066
9066
|
}, [V("div", {
|
|
9067
9067
|
class: ze(["j-menu-item-content", {
|
|
9068
9068
|
active: e.item.value === K(a),
|
|
@@ -9349,7 +9349,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
9349
9349
|
}),
|
|
9350
9350
|
emits: ["update:checkAll", "update:checkFields"],
|
|
9351
9351
|
setup(e, { expose: t }) {
|
|
9352
|
-
const { t: n } =
|
|
9352
|
+
const { t: n } = At(), a = e, o = po(e, "checkAll"), i = po(e, "checkFields"), l = P(!1), r = P(""), s = j(() => a.columns.filter((f) => f.config?.filter?.isSearchKeyword ? r.value ? f.config?.label?.indexOf(r.value) != -1 : !0 : !1).map((f) => ({
|
|
9353
9353
|
label: f.config?.label,
|
|
9354
9354
|
value: f.id
|
|
9355
9355
|
}))), c = () => {
|
|
@@ -9420,7 +9420,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
9420
9420
|
}),
|
|
9421
9421
|
emits: /* @__PURE__ */ ho(["filter", "close"], ["update:relation", "update:isPin"]),
|
|
9422
9422
|
setup(e, { expose: t, emit: n }) {
|
|
9423
|
-
const { t: a } =
|
|
9423
|
+
const { t: a } = At(), o = e, i = po(e, "relation"), l = po(e, "isPin"), r = P([]), s = () => {
|
|
9424
9424
|
l.value = !l.value;
|
|
9425
9425
|
}, c = [
|
|
9426
9426
|
{
|
|
@@ -9795,7 +9795,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
9795
9795
|
} },
|
|
9796
9796
|
emits: ["save", "clear"],
|
|
9797
9797
|
setup(e, { expose: t, emit: n }) {
|
|
9798
|
-
const { t: a } =
|
|
9798
|
+
const { t: a } = At(), o = e, i = n, l = j(() => o.columns.filter((p) => !p.children?.length && p.config?.sorter?.isNot !== !0).map((p) => ({
|
|
9799
9799
|
label: p.config?.label,
|
|
9800
9800
|
value: p.id
|
|
9801
9801
|
}))), r = P([]), s = j(() => r.value.map((p) => p.value)), c = [{
|
|
@@ -9870,7 +9870,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
9870
9870
|
},
|
|
9871
9871
|
emits: ["save"],
|
|
9872
9872
|
setup(e, { expose: t, emit: n }) {
|
|
9873
|
-
const { t: a } =
|
|
9873
|
+
const { t: a } = At(), o = e, i = n, l = P(), r = P(""), s = {}, c = P([]), u = P([]), d = (m, E) => {
|
|
9874
9874
|
const S = [], T = /* @__PURE__ */ new Map();
|
|
9875
9875
|
m.forEach((R) => {
|
|
9876
9876
|
T.set(R.id || "", R), s[R.id || ""] = R;
|
|
@@ -10108,7 +10108,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10108
10108
|
},
|
|
10109
10109
|
emits: ["select", "ready"],
|
|
10110
10110
|
setup(e, { expose: t, emit: n }) {
|
|
10111
|
-
const { t: a } =
|
|
10111
|
+
const { t: a } = At(), { openLayer: o } = xo(), i = e, l = n;
|
|
10112
10112
|
i.isMultiple && !i.rowKey && console.warn("rowKey is required when isMultiple is true");
|
|
10113
10113
|
const r = P();
|
|
10114
10114
|
let s = [];
|
|
@@ -10585,7 +10585,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10585
10585
|
},
|
|
10586
10586
|
emits: ["update:modelValue", "change"],
|
|
10587
10587
|
setup(e, { emit: t }) {
|
|
10588
|
-
const n = e, a = t, { t: o } =
|
|
10588
|
+
const n = e, a = t, { t: o } = At(), i = P(""), l = j(() => i.value === "" ? n.options : n.options.filter((c) => (c.label || "").includes(i.value))), r = j(() => n.modelValue ? (n.modelValue + "").split(",").filter(Boolean) : []), s = (c) => {
|
|
10589
10589
|
if (c.disabled || r.value.includes(c.value)) return;
|
|
10590
10590
|
const u = [...r.value, c.value].join(",");
|
|
10591
10591
|
a("update:modelValue", u), a("change", {
|
|
@@ -10627,7 +10627,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10627
10627
|
}, 8, ["modelValue", "placeholder"])]), V("div", um, [(_(!0), O(xe, null, je(l.value, (g) => (_(), O("div", {
|
|
10628
10628
|
key: g.value,
|
|
10629
10629
|
class: ze(["option-item", { active: r.value.includes(g.value) || g.disabled }]),
|
|
10630
|
-
onClick:
|
|
10630
|
+
onClick: jt((v) => s(g), ["stop"])
|
|
10631
10631
|
}, [g.icon ? (_(), H(f, {
|
|
10632
10632
|
key: 0,
|
|
10633
10633
|
class: "j-button-select-icon",
|
|
@@ -10757,7 +10757,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10757
10757
|
},
|
|
10758
10758
|
emits: ["node-drop"],
|
|
10759
10759
|
setup(e, { expose: t, emit: n }) {
|
|
10760
|
-
const a = e, o = n, { useData: i, t: l } =
|
|
10760
|
+
const a = e, o = n, { useData: i, t: l } = At(), { getTreeData: r, loadData: s } = i(), c = P(), u = P(!1), d = P(""), f = P([]), h = {
|
|
10761
10761
|
children: "children",
|
|
10762
10762
|
label: "label",
|
|
10763
10763
|
disabled: "disabled"
|
|
@@ -10878,7 +10878,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10878
10878
|
key: qe,
|
|
10879
10879
|
disabled: Se.disabled,
|
|
10880
10880
|
divided: Se.divided,
|
|
10881
|
-
onClick:
|
|
10881
|
+
onClick: jt((ct) => A(Se, ae.data), ["stop"])
|
|
10882
10882
|
}, {
|
|
10883
10883
|
default: N(() => [V("div", {
|
|
10884
10884
|
class: "j-flex-item",
|
|
@@ -10962,7 +10962,7 @@ var Kh = { class: "j-table-footer" }, Gh = {
|
|
|
10962
10962
|
},
|
|
10963
10963
|
emits: ["update:modelValue", "change"],
|
|
10964
10964
|
setup(e, { emit: t }) {
|
|
10965
|
-
const n = e, { useData: a } =
|
|
10965
|
+
const n = e, { useData: a } = At(), { getTreeData: o } = a(), i = j(() => (console.log(a(), o), o ? o({
|
|
10966
10966
|
dataType: n.dataType,
|
|
10967
10967
|
dataCode: n.dataCode,
|
|
10968
10968
|
labelKey: n.labelKey,
|
|
@@ -11085,7 +11085,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
11085
11085
|
},
|
|
11086
11086
|
emits: ["change"],
|
|
11087
11087
|
setup(e, { expose: t, emit: n }) {
|
|
11088
|
-
const a = e, o = n, { useData: i, existField: l, httpGet: r, httpPost: s, success: c, warning: u, error: d, info: f, t: h } =
|
|
11088
|
+
const a = e, o = n, { useData: i, existField: l, httpGet: r, httpPost: s, success: c, warning: u, error: d, info: f, t: h } = At();
|
|
11089
11089
|
let p;
|
|
11090
11090
|
i && (p = i());
|
|
11091
11091
|
const g = (Y) => {
|
|
@@ -11389,7 +11389,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
11389
11389
|
"label-position": x.value,
|
|
11390
11390
|
"label-width": y.value,
|
|
11391
11391
|
size: e.config?.size,
|
|
11392
|
-
onSubmit: re[0] || (re[0] =
|
|
11392
|
+
onSubmit: re[0] || (re[0] = jt(() => {
|
|
11393
11393
|
}, ["prevent"]))
|
|
11394
11394
|
}, {
|
|
11395
11395
|
default: N(() => [k.value ? (_(), H(q, $e({ key: 0 }, S[0], { "is-not-col": "" }), null, 16)) : (_(), H(ee, {
|
|
@@ -11982,7 +11982,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
11982
11982
|
}
|
|
11983
11983
|
},
|
|
11984
11984
|
setup(e) {
|
|
11985
|
-
const t = e, n = ca(), { t: a } =
|
|
11985
|
+
const t = e, n = ca(), { t: a } = At(), o = j(() => t.formConfig?.gutter || 16), i = j(() => t.formConfig?.span || 24), l = j(() => t.formConfig?.labelWidth || n.labelWidth?.value), r = j(() => t.formConfig?.labelPosition || n.labelPosition?.value || "right"), s = j(() => t.schema?.length === 1 && (t.schema?.[0]?.type === "j-tabs" || t.schema?.[0]?.type === "j-layout" || t.schema?.[0]?.config?.isAutoWindow)), c = P(!1), u = () => {
|
|
11986
11986
|
c.value = !0;
|
|
11987
11987
|
};
|
|
11988
11988
|
return cc({
|
|
@@ -12015,7 +12015,7 @@ var Mm = /* @__PURE__ */ le({
|
|
|
12015
12015
|
"label-position": r.value,
|
|
12016
12016
|
"label-width": l.value,
|
|
12017
12017
|
size: e.formConfig?.size,
|
|
12018
|
-
onSubmit: f[0] || (f[0] =
|
|
12018
|
+
onSubmit: f[0] || (f[0] = jt(() => {
|
|
12019
12019
|
}, ["prevent"]))
|
|
12020
12020
|
}, {
|
|
12021
12021
|
default: N(() => [s.value ? (_(), H(p, mi($e({ key: 0 }, e.schema[0])), null, 16)) : (_(), H(g, {
|
|
@@ -20526,7 +20526,7 @@ var r_ = {
|
|
|
20526
20526
|
"rowChange"
|
|
20527
20527
|
],
|
|
20528
20528
|
setup(e, { expose: t, emit: n }) {
|
|
20529
|
-
const a = e, o = n, { t: i } =
|
|
20529
|
+
const a = e, o = n, { t: i } = At(), { formData: l } = ca(), r = j(() => a.editConfig.isAddBtn !== !1), s = j(() => a.editConfig.addBtnText || "添加"), c = j(() => a.editConfig.buttonsAlign || "left"), u = j(() => a.editConfig.isRemoveBtn !== !1), d = j(() => a.editConfig.readonly), f = j(() => a.editConfig.isNullValue !== !1), h = P([]), p = (m) => {
|
|
20530
20530
|
o("rowChange", m);
|
|
20531
20531
|
}, g = () => {
|
|
20532
20532
|
const m = { _i: Dn() };
|
|
@@ -20817,7 +20817,7 @@ export {
|
|
|
20817
20817
|
hf as toTree,
|
|
20818
20818
|
lC as uniqueArray,
|
|
20819
20819
|
df as upFirst,
|
|
20820
|
-
|
|
20820
|
+
At as useAppInject,
|
|
20821
20821
|
fC as useAppProvide,
|
|
20822
20822
|
Bf as useAuthPageInject,
|
|
20823
20823
|
If as useAuthPageProvide,
|