vue-2024-ui 0.2.44 → 0.2.45
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/index.es.js +80 -76
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import rl, { ElForm as wt, ElButtonGroup as Et, ElButton as Ye, ElPopover as St, ElMessage as at, ElMessageBox as Yt, ElDialog as nl, ElDrawer as ol } from "element-plus";
|
|
2
|
-
import { h as we, mergeModels as rt, ref as ne, useModel as nt, nextTick as
|
|
2
|
+
import { h as we, mergeModels as rt, ref as ne, useModel as nt, nextTick as ct, onMounted as mt, computed as it, resolveComponent as z, openBlock as m, createElementBlock as U, Fragment as le, createElementVNode as Q, createBlock as O, createCommentVNode as be, unref as P, mergeProps as B, withCtx as E, renderSlot as k, renderList as X, createTextVNode as Ie, toDisplayString as Ce, createSlots as ge, createVNode as te, normalizeStyle as Ue, normalizeProps as Mt, useSlots as Lt, inject as Ot, useAttrs as Bt, onUnmounted as ul, withModifiers as kt, resolveDynamicComponent as lt, guardReactiveProps as sl, Transition as il, withDirectives as dl, vShow as fl, onBeforeUnmount as cl, normalizeClass as Ht, watchEffect as vl, onBeforeMount as pl, watch as ml, createApp as hl } from "vue";
|
|
3
3
|
import { CircleCheck as zt, CircleCheckFilled as yl, Refresh as Pt, Plus as gl, ZoomIn as bl, Delete as Nt, More as $l, Search as wl, InfoFilled as jt, Download as Wt, DocumentCopy as El, View as _l, Edit as kl, CirclePlus as Cl, Setting as Dl, FullScreen as Sl, CopyDocument as xl } from "@element-plus/icons-vue";
|
|
4
4
|
import Gt from "sortablejs";
|
|
5
5
|
import { Dexie as Ml } from "dexie";
|
|
@@ -208,8 +208,8 @@ var Qt = { exports: {} };
|
|
|
208
208
|
return { M: u, y: b, w: v, d: c, D: ae, h: D, m: f, s: h, ms: e, Q: d }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
209
209
|
}, u: function(w) {
|
|
210
210
|
return w === void 0;
|
|
211
|
-
} }, ie = "en",
|
|
212
|
-
|
|
211
|
+
} }, ie = "en", ce = {};
|
|
212
|
+
ce[ie] = K;
|
|
213
213
|
var $e = "$isDayjsObject", Fe = function(w) {
|
|
214
214
|
return w instanceof Me || !(!w || !w[$e]);
|
|
215
215
|
}, Se = function w(g, s, F) {
|
|
@@ -217,12 +217,12 @@ var Qt = { exports: {} };
|
|
|
217
217
|
if (!g) return ie;
|
|
218
218
|
if (typeof g == "string") {
|
|
219
219
|
var q = g.toLowerCase();
|
|
220
|
-
|
|
220
|
+
ce[q] && (_ = q), s && (ce[q] = s, _ = q);
|
|
221
221
|
var T = g.split("-");
|
|
222
222
|
if (!_ && T.length > 1) return w(T[0]);
|
|
223
223
|
} else {
|
|
224
224
|
var Z = g.name;
|
|
225
|
-
|
|
225
|
+
ce[Z] = g, _ = Z;
|
|
226
226
|
}
|
|
227
227
|
return !F && _ && (ie = _), _ || !F && ie;
|
|
228
228
|
}, ee = function(w, g) {
|
|
@@ -432,7 +432,7 @@ var Qt = { exports: {} };
|
|
|
432
432
|
}, g.daysInMonth = function() {
|
|
433
433
|
return this.endOf(u).$D;
|
|
434
434
|
}, g.$locale = function() {
|
|
435
|
-
return
|
|
435
|
+
return ce[this.$L];
|
|
436
436
|
}, g.locale = function(s, F) {
|
|
437
437
|
if (!s) return this.$L;
|
|
438
438
|
var _ = this.clone(), q = Se(s, F, !0);
|
|
@@ -457,7 +457,7 @@ var Qt = { exports: {} };
|
|
|
457
457
|
return w.$i || (w(g, Me, ee), w.$i = !0), ee;
|
|
458
458
|
}, ee.locale = Se, ee.isDayjs = Fe, ee.unix = function(w) {
|
|
459
459
|
return ee(1e3 * w);
|
|
460
|
-
}, ee.en =
|
|
460
|
+
}, ee.en = ce[ie], ee.Ls = ce, ee.p = {}, ee;
|
|
461
461
|
});
|
|
462
462
|
})(Qt);
|
|
463
463
|
var Vl = Qt.exports;
|
|
@@ -576,9 +576,9 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
576
576
|
filterable: !0,
|
|
577
577
|
remote: !!(t.value && t.value["remote-method"]),
|
|
578
578
|
...t.value
|
|
579
|
-
}),
|
|
579
|
+
}), ce = ne((A) => {
|
|
580
580
|
t.value["remote-method"](A, (C) => {
|
|
581
|
-
|
|
581
|
+
ct(() => {
|
|
582
582
|
D.value = C;
|
|
583
583
|
});
|
|
584
584
|
});
|
|
@@ -646,7 +646,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
646
646
|
};
|
|
647
647
|
mt(async () => {
|
|
648
648
|
var N, xe, qe, Ae, Je;
|
|
649
|
-
t.value && t.value["remote-method"] && (ie.value["remote-method"] =
|
|
649
|
+
t.value && t.value["remote-method"] && (ie.value["remote-method"] = ce), (xe = (N = h.value[n.value]) == null ? void 0 : N.options) != null && xe.length && (D.value = h.value[n.value].options);
|
|
650
650
|
const A = (Le, Ne = "options", je = h.value[n.value]) => {
|
|
651
651
|
typeof t.value.getDicts == "function" && $e(Ne).catch((We) => {
|
|
652
652
|
console.error(`Failed to load ${Ne} for ${Le}:`, We);
|
|
@@ -802,15 +802,15 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
802
802
|
(m(!0), U(le, null, X(D.value, (y) => (m(), U(le, {
|
|
803
803
|
key: y.value
|
|
804
804
|
}, [
|
|
805
|
-
te(We, B({ ref_for: !0 }, P(Ge)(y, (
|
|
806
|
-
onClick: (
|
|
805
|
+
te(We, B({ ref_for: !0 }, P(Ge)(y, (fe) => fe != "children"), {
|
|
806
|
+
onClick: (fe) => {
|
|
807
807
|
ie.value.change && ie.value.change(y), Fe();
|
|
808
808
|
}
|
|
809
809
|
}), {
|
|
810
810
|
default: E(() => {
|
|
811
|
-
var
|
|
811
|
+
var fe;
|
|
812
812
|
return [
|
|
813
|
-
(
|
|
813
|
+
(fe = t.value) != null && fe.columns ? k(A.$slots, `${i.t}-${n.value}-options`, {
|
|
814
814
|
key: 0,
|
|
815
815
|
option: y
|
|
816
816
|
}, () => {
|
|
@@ -821,7 +821,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
821
821
|
data: y,
|
|
822
822
|
t: i.t
|
|
823
823
|
}, ge({ _: 2 }, [
|
|
824
|
-
X(A.$slots, (
|
|
824
|
+
X(A.$slots, (ft, pt) => ({
|
|
825
825
|
name: pt,
|
|
826
826
|
fn: E(($t) => [
|
|
827
827
|
k(A.$slots, pt, {
|
|
@@ -838,13 +838,13 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
838
838
|
}),
|
|
839
839
|
_: 2
|
|
840
840
|
}, 1040, ["onClick"]),
|
|
841
|
-
y.children && y.children.length ? (m(!0), U(le, { key: 0 }, X(y.children, (
|
|
841
|
+
y.children && y.children.length ? (m(!0), U(le, { key: 0 }, X(y.children, (fe) => (m(), O(We, B({
|
|
842
842
|
style: { "margin-left": "20px" },
|
|
843
|
-
key:
|
|
843
|
+
key: fe.value,
|
|
844
844
|
ref_for: !0
|
|
845
|
-
}, P(Ge)(
|
|
845
|
+
}, P(Ge)(fe, (ye) => ye != "children"), {
|
|
846
846
|
onClick: (ye) => {
|
|
847
|
-
ie.value.change && ie.value.change(
|
|
847
|
+
ie.value.change && ie.value.change(fe), Fe();
|
|
848
848
|
}
|
|
849
849
|
}), {
|
|
850
850
|
default: E(() => {
|
|
@@ -852,20 +852,20 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
852
852
|
return [
|
|
853
853
|
(ye = t.value) != null && ye.columns ? k(A.$slots, `${i.t}-${n.value}-options`, {
|
|
854
854
|
key: 0,
|
|
855
|
-
option:
|
|
855
|
+
option: fe
|
|
856
856
|
}, () => {
|
|
857
|
-
var
|
|
857
|
+
var ft;
|
|
858
858
|
return [
|
|
859
859
|
te(je, {
|
|
860
|
-
columns: (
|
|
861
|
-
data:
|
|
860
|
+
columns: (ft = t.value) == null ? void 0 : ft.columns,
|
|
861
|
+
data: fe,
|
|
862
862
|
t: i.t
|
|
863
863
|
}, ge({ _: 2 }, [
|
|
864
864
|
X(A.$slots, (pt, $t) => ({
|
|
865
865
|
name: $t,
|
|
866
866
|
fn: E((al) => [
|
|
867
867
|
k(A.$slots, $t, {
|
|
868
|
-
option:
|
|
868
|
+
option: fe,
|
|
869
869
|
data: al,
|
|
870
870
|
form: o.formInfo
|
|
871
871
|
}, void 0, !0)
|
|
@@ -893,10 +893,10 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
893
893
|
title: !0,
|
|
894
894
|
t: i.t
|
|
895
895
|
}, ge({ _: 2 }, [
|
|
896
|
-
X(A.$slots, (
|
|
896
|
+
X(A.$slots, (fe, ye) => ({
|
|
897
897
|
name: ye,
|
|
898
|
-
fn: E((
|
|
899
|
-
k(A.$slots, ye, { data:
|
|
898
|
+
fn: E((ft) => [
|
|
899
|
+
k(A.$slots, ye, { data: ft }, void 0, !0)
|
|
900
900
|
])
|
|
901
901
|
}))
|
|
902
902
|
]), 1032, ["columns", "t"])
|
|
@@ -906,7 +906,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
906
906
|
} : void 0,
|
|
907
907
|
X(R(), (y) => ({
|
|
908
908
|
name: y,
|
|
909
|
-
fn: E((
|
|
909
|
+
fn: E((fe) => [
|
|
910
910
|
k(A.$slots, `${i.t}-${n.value}-${y}`, { form: o.formInfo }, void 0, !0)
|
|
911
911
|
])
|
|
912
912
|
}))
|
|
@@ -919,8 +919,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
919
919
|
}, t.value, { data: f.value }), ge({ _: 2 }, [
|
|
920
920
|
X(R(), (y) => ({
|
|
921
921
|
name: y,
|
|
922
|
-
fn: E((
|
|
923
|
-
k(A.$slots, `${i.t}-${n.value}-${y}`, { data:
|
|
922
|
+
fn: E((fe) => [
|
|
923
|
+
k(A.$slots, `${i.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
|
|
924
924
|
])
|
|
925
925
|
}))
|
|
926
926
|
]), 1040, ["modelValue", "placeholder", "disabled", "data"])) : e.value == P(ke).TIME ? (m(), O(p, B({
|
|
@@ -949,8 +949,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
949
949
|
}, t.value), ge({ _: 2 }, [
|
|
950
950
|
X(R(), (y) => ({
|
|
951
951
|
name: y,
|
|
952
|
-
fn: E((
|
|
953
|
-
k(A.$slots, `${i.t}-${n.value}-${y}`, { data:
|
|
952
|
+
fn: E((fe) => [
|
|
953
|
+
k(A.$slots, `${i.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
|
|
954
954
|
])
|
|
955
955
|
}))
|
|
956
956
|
]), 1040, ["modelValue", "type", "placeholder", "value-format", "disabled"])) : e.value == P(ke).COLOR ? (m(), O(I, B({
|
|
@@ -976,8 +976,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
976
976
|
}, t.value), ge({ _: 2 }, [
|
|
977
977
|
X(R(), (y) => ({
|
|
978
978
|
name: y,
|
|
979
|
-
fn: E((
|
|
980
|
-
k(A.$slots, `${i.t}-${n.value}-${y}`, { data:
|
|
979
|
+
fn: E((fe) => [
|
|
980
|
+
k(A.$slots, `${i.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
|
|
981
981
|
])
|
|
982
982
|
}))
|
|
983
983
|
]), 1040, ["modelValue", "disabled"])) : e.value == P(ke).TRANSFER ? (m(), O(Re, B({
|
|
@@ -987,8 +987,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
987
987
|
}, t.value), ge({ _: 2 }, [
|
|
988
988
|
X(R(), (y) => ({
|
|
989
989
|
name: y,
|
|
990
|
-
fn: E((
|
|
991
|
-
k(A.$slots, `${i.t}-${n.value}-${y}`, { data:
|
|
990
|
+
fn: E((fe) => [
|
|
991
|
+
k(A.$slots, `${i.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
|
|
992
992
|
])
|
|
993
993
|
}))
|
|
994
994
|
]), 1040, ["modelValue"])) : e.value == P(ke).CASCADER ? (m(), O(He, B({
|
|
@@ -998,8 +998,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
998
998
|
}, t.value, { options: D.value }), ge({ _: 2 }, [
|
|
999
999
|
X(R(), (y) => ({
|
|
1000
1000
|
name: y,
|
|
1001
|
-
fn: E((
|
|
1002
|
-
k(A.$slots, `${i.t}-${n.value}-${y}`, { data:
|
|
1001
|
+
fn: E((fe) => [
|
|
1002
|
+
k(A.$slots, `${i.t}-${n.value}-${y}`, { data: fe }, void 0, !0)
|
|
1003
1003
|
])
|
|
1004
1004
|
}))
|
|
1005
1005
|
]), 1040, ["modelValue", "options"])) : e.value == P(ke).IMAGE ? (m(), O(ht, B({
|
|
@@ -1014,7 +1014,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1014
1014
|
ref: Me
|
|
1015
1015
|
}), ge({
|
|
1016
1016
|
default: E(() => {
|
|
1017
|
-
var y,
|
|
1017
|
+
var y, fe;
|
|
1018
1018
|
return [
|
|
1019
1019
|
!l.value || ((y = t.value) == null ? void 0 : y.multiple) === !0 ? (m(), O(Pe, { key: 0 }, {
|
|
1020
1020
|
default: E(() => [
|
|
@@ -1030,8 +1030,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1030
1030
|
te(Xe, B({
|
|
1031
1031
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
1032
1032
|
src: l.value
|
|
1033
|
-
}, { fit: "cover", lazy: !0, ...(
|
|
1034
|
-
X(R(), (ye,
|
|
1033
|
+
}, { fit: "cover", lazy: !0, ...(fe = t.value) == null ? void 0 : fe.img }), ge({ _: 2 }, [
|
|
1034
|
+
X(R(), (ye, ft) => ({
|
|
1035
1035
|
name: ye,
|
|
1036
1036
|
fn: E((pt) => [
|
|
1037
1037
|
k(A.$slots, `${i.t}-${n.value}-${ye}`, { data: pt }, void 0, !0)
|
|
@@ -1079,7 +1079,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1079
1079
|
}),
|
|
1080
1080
|
_: 2
|
|
1081
1081
|
}, [
|
|
1082
|
-
X(R(), (y,
|
|
1082
|
+
X(R(), (y, fe) => ({
|
|
1083
1083
|
name: y,
|
|
1084
1084
|
fn: E((ye) => [
|
|
1085
1085
|
k(A.$slots, `${i.t}-${n.value}-${y}`, { data: ye }, void 0, !0)
|
|
@@ -1090,7 +1090,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1090
1090
|
modelValue: l.value,
|
|
1091
1091
|
"onUpdate:modelValue": C[22] || (C[22] = (y) => l.value = y)
|
|
1092
1092
|
}, t.value, { placeholder: d.value }), ge({ _: 2 }, [
|
|
1093
|
-
X(R(), (y,
|
|
1093
|
+
X(R(), (y, fe) => ({
|
|
1094
1094
|
name: y,
|
|
1095
1095
|
fn: E((ye) => [
|
|
1096
1096
|
k(A.$slots, `${i.t}-${n.value}-${y}`, { data: ye }, void 0, !0)
|
|
@@ -1105,7 +1105,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1105
1105
|
placeholder: d.value,
|
|
1106
1106
|
disabled: h.value[n.value].disabled
|
|
1107
1107
|
}, t.value), ge({ _: 2 }, [
|
|
1108
|
-
X(R(), (y,
|
|
1108
|
+
X(R(), (y, fe) => ({
|
|
1109
1109
|
name: y,
|
|
1110
1110
|
fn: E((ye) => [
|
|
1111
1111
|
k(A.$slots, `${i.t}-${n.value}-${y}`, { data: ye }, void 0, !0)
|
|
@@ -1131,7 +1131,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1131
1131
|
]),
|
|
1132
1132
|
_: 2
|
|
1133
1133
|
}, [
|
|
1134
|
-
X(R(), (y,
|
|
1134
|
+
X(R(), (y, fe) => ({
|
|
1135
1135
|
name: y,
|
|
1136
1136
|
fn: E((ye) => [
|
|
1137
1137
|
k(A.$slots, `${i.t}-${n.value}-${y}`, { data: ye }, void 0, !0)
|
|
@@ -1168,7 +1168,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1168
1168
|
key: 23,
|
|
1169
1169
|
style: Ue(b.value)
|
|
1170
1170
|
}, [
|
|
1171
|
-
Array.isArray(K.value) && K.value.length > 0 ? (m(!0), U(le, { key: 0 }, X(K.value, (y,
|
|
1171
|
+
Array.isArray(K.value) && K.value.length > 0 ? (m(!0), U(le, { key: 0 }, X(K.value, (y, fe) => (m(), U(le, { key: fe }, [
|
|
1172
1172
|
typeof y == "object" ? (m(), O(se, B({
|
|
1173
1173
|
key: 0,
|
|
1174
1174
|
"disable-transitions": "",
|
|
@@ -1206,8 +1206,8 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1206
1206
|
maxlength: ((L = t.value) == null ? void 0 : L.max) || 25,
|
|
1207
1207
|
clearable: !0,
|
|
1208
1208
|
onInput: C[27] || (C[27] = (y) => {
|
|
1209
|
-
var
|
|
1210
|
-
return e.value == P(ke).NUMBER ? M(y, ((
|
|
1209
|
+
var fe;
|
|
1210
|
+
return e.value == P(ke).NUMBER ? M(y, ((fe = t.value) == null ? void 0 : fe.precision) || 2) : y;
|
|
1211
1211
|
}),
|
|
1212
1212
|
onClear: C[28] || (C[28] = () => {
|
|
1213
1213
|
i.t == "q" && h.value.table.load();
|
|
@@ -1262,7 +1262,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1262
1262
|
}),
|
|
1263
1263
|
key: "3"
|
|
1264
1264
|
} : void 0,
|
|
1265
|
-
X(R(), (y,
|
|
1265
|
+
X(R(), (y, fe) => ({
|
|
1266
1266
|
name: y,
|
|
1267
1267
|
fn: E((ye) => [
|
|
1268
1268
|
k(A.$slots, `${i.t}-${n.value}-${y}`, {
|
|
@@ -1300,7 +1300,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1300
1300
|
const v = async (M, w, g) => {
|
|
1301
1301
|
let s = 5;
|
|
1302
1302
|
for (; s > 0; ) {
|
|
1303
|
-
if (await
|
|
1303
|
+
if (await ct(), e.value) {
|
|
1304
1304
|
e.value.validate((F, _) => {
|
|
1305
1305
|
F ? n("submit", M, w, g) : console.error("表单验证不通过!", _);
|
|
1306
1306
|
});
|
|
@@ -1312,7 +1312,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1312
1312
|
}, u = async (M, w) => {
|
|
1313
1313
|
let g = 5;
|
|
1314
1314
|
for (; g > 0; ) {
|
|
1315
|
-
if (await
|
|
1315
|
+
if (await ct(), e.value)
|
|
1316
1316
|
try {
|
|
1317
1317
|
e.value.resetFields(), n("reset", M, w);
|
|
1318
1318
|
return;
|
|
@@ -1504,7 +1504,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1504
1504
|
originalOrder: 1
|
|
1505
1505
|
// 添加原始顺序标识
|
|
1506
1506
|
}
|
|
1507
|
-
]),
|
|
1507
|
+
]), ce = it(() => ie.value.filter((M) => !M.hidden).sort((M, w) => M.sort - w.sort || M.originalOrder - w.originalOrder));
|
|
1508
1508
|
return i({
|
|
1509
1509
|
submit: v,
|
|
1510
1510
|
saveSubmit: v,
|
|
@@ -1675,7 +1675,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1675
1675
|
style: Ue(l.value.form.footer.style)
|
|
1676
1676
|
}, [
|
|
1677
1677
|
k(M.$slots, "f-footer-left", {}, void 0, !0),
|
|
1678
|
-
(m(!0), U(le, null, X(
|
|
1678
|
+
(m(!0), U(le, null, X(ce.value, (j) => (m(), U(le, null, [
|
|
1679
1679
|
k(M.$slots, j.name + "-left", {}, void 0, !0),
|
|
1680
1680
|
k(M.$slots, j.name, {}, () => {
|
|
1681
1681
|
var W;
|
|
@@ -1883,7 +1883,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1883
1883
|
more: R
|
|
1884
1884
|
}, V);
|
|
1885
1885
|
}, u = Lt(), d = () => {
|
|
1886
|
-
var V, K, ve, Ee, ie,
|
|
1886
|
+
var V, K, ve, Ee, ie, ce, $e, Fe, Se;
|
|
1887
1887
|
const Y = [
|
|
1888
1888
|
{
|
|
1889
1889
|
key: "query",
|
|
@@ -1898,7 +1898,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1898
1898
|
},
|
|
1899
1899
|
{
|
|
1900
1900
|
key: "reset",
|
|
1901
|
-
hidden: (
|
|
1901
|
+
hidden: (ce = (ie = (Ee = t.value) == null ? void 0 : Ee.query) == null ? void 0 : ie.reset) == null ? void 0 : ce.hidden,
|
|
1902
1902
|
component: Ye,
|
|
1903
1903
|
props: {
|
|
1904
1904
|
...t.value.query.reset,
|
|
@@ -1934,7 +1934,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1934
1934
|
alert("查询设置,正在开发中......");
|
|
1935
1935
|
};
|
|
1936
1936
|
return (Y, R) => {
|
|
1937
|
-
var ve, Ee, ie,
|
|
1937
|
+
var ve, Ee, ie, ce, $e, Fe, Se, ee, oe, Me, M, w, g, s, F, _, q;
|
|
1938
1938
|
const V = z("el-form-item"), K = z("el-drawer");
|
|
1939
1939
|
return m(), U(le, null, [
|
|
1940
1940
|
Q("div", {
|
|
@@ -1987,7 +1987,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
1987
1987
|
}),
|
|
1988
1988
|
_: 3
|
|
1989
1989
|
}, 16),
|
|
1990
|
-
(($e = (
|
|
1990
|
+
(($e = (ce = (ie = t.value) == null ? void 0 : ie.query) == null ? void 0 : ce.container) == null ? void 0 : $e.inline) === !1 ? (m(), U("div", {
|
|
1991
1991
|
key: 0,
|
|
1992
1992
|
style: Ue((Se = (Fe = t.value.query) == null ? void 0 : Fe.btns) == null ? void 0 : Se.style)
|
|
1993
1993
|
}, [
|
|
@@ -2092,7 +2092,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
2092
2092
|
]),
|
|
2093
2093
|
_: 1
|
|
2094
2094
|
}, 16)), [
|
|
2095
|
-
[
|
|
2095
|
+
[fl, e.value]
|
|
2096
2096
|
]) : be("", !0)
|
|
2097
2097
|
])
|
|
2098
2098
|
])) : be("", !0)
|
|
@@ -2143,7 +2143,7 @@ const xt = /* @__PURE__ */ Xt(Vl), Zt = {
|
|
|
2143
2143
|
D.toArray();
|
|
2144
2144
|
}
|
|
2145
2145
|
}), c = D;
|
|
2146
|
-
|
|
2146
|
+
cl(() => {
|
|
2147
2147
|
c && c.destroy();
|
|
2148
2148
|
});
|
|
2149
2149
|
}), (D, c) => {
|
|
@@ -2290,7 +2290,7 @@ async function da({ page: o, size: i }) {
|
|
|
2290
2290
|
throw console.error(`保存分页条数时出错 (page: ${o}):`, t), t;
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
2293
|
-
async function
|
|
2293
|
+
async function fa(o) {
|
|
2294
2294
|
dt(o);
|
|
2295
2295
|
try {
|
|
2296
2296
|
const i = await pe.pageInfo.where({ page: o }).first();
|
|
@@ -2299,7 +2299,7 @@ async function ca(o) {
|
|
|
2299
2299
|
throw console.error(`获取分页条数时出错 (page: ${o}):`, i), i;
|
|
2300
2300
|
}
|
|
2301
2301
|
}
|
|
2302
|
-
async function
|
|
2302
|
+
async function ca(o, i) {
|
|
2303
2303
|
dt(o);
|
|
2304
2304
|
try {
|
|
2305
2305
|
const t = await pe.sorts.where({ page: o }).first();
|
|
@@ -2348,7 +2348,7 @@ const pa = { style: { padding: "15px", "box-sizing": "border-box" } }, ma = { st
|
|
|
2348
2348
|
onEnd: async () => {
|
|
2349
2349
|
let b = d.toArray();
|
|
2350
2350
|
try {
|
|
2351
|
-
|
|
2351
|
+
ca(t.tuid, b).then((ae) => {
|
|
2352
2352
|
l("setting-drag-end");
|
|
2353
2353
|
});
|
|
2354
2354
|
} catch (ae) {
|
|
@@ -2713,7 +2713,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2713
2713
|
fit: !1,
|
|
2714
2714
|
type: "hidden",
|
|
2715
2715
|
load: async () => {
|
|
2716
|
-
e.value.table.page.pageSize = await
|
|
2716
|
+
e.value.table.page.pageSize = await fa(ve.value);
|
|
2717
2717
|
let { currentPage: a, pageSize: r } = e.value.table.page;
|
|
2718
2718
|
try {
|
|
2719
2719
|
n(
|
|
@@ -2888,7 +2888,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2888
2888
|
h == null ? void 0 : h.control,
|
|
2889
2889
|
(Je = e.value) == null ? void 0 : Je.control
|
|
2890
2890
|
);
|
|
2891
|
-
const
|
|
2891
|
+
const ce = (a, r = !0) => {
|
|
2892
2892
|
const p = e.value.control[a], $ = r ? (S, I, G, he) => {
|
|
2893
2893
|
var Pe, Xe, ut;
|
|
2894
2894
|
if (!S || !I || G == null)
|
|
@@ -2902,7 +2902,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
2902
2902
|
};
|
|
2903
2903
|
e.value.control[a] = $;
|
|
2904
2904
|
};
|
|
2905
|
-
|
|
2905
|
+
ce("edit"), ce("delete"), ce("view"), ce("save"), ce("add", !1), ce("download", !1), ce("setting", !1);
|
|
2906
2906
|
const $e = (a, r, p, $) => {
|
|
2907
2907
|
var he, _e, Re, He, Pe, Xe;
|
|
2908
2908
|
if (!a || !r || p == null)
|
|
@@ -3047,7 +3047,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3047
3047
|
"row-save",
|
|
3048
3048
|
{ row: a, column: r, index: p, data: e.value.table.data },
|
|
3049
3049
|
(I = !0, G = !0) => {
|
|
3050
|
-
I && e.value.table.load(), G &&
|
|
3050
|
+
I && e.value.table.load(), G && ct(() => {
|
|
3051
3051
|
V.value = Object.assign(
|
|
3052
3052
|
{},
|
|
3053
3053
|
Object.fromEntries(
|
|
@@ -3229,7 +3229,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3229
3229
|
value: !0
|
|
3230
3230
|
}));
|
|
3231
3231
|
try {
|
|
3232
|
-
await
|
|
3232
|
+
await ct();
|
|
3233
3233
|
const a = Object.entries(e.value).filter(
|
|
3234
3234
|
([r, p]) => p.type !== "control" && p.editor !== !1 && p.type !== "hidden"
|
|
3235
3235
|
);
|
|
@@ -3443,6 +3443,10 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3443
3443
|
]), 1032, ["modelValue", "info"])
|
|
3444
3444
|
], !0)
|
|
3445
3445
|
])) : be("", !0),
|
|
3446
|
+
k(a.$slots, "table-title", {
|
|
3447
|
+
model: e.value,
|
|
3448
|
+
queryInfo: f.value
|
|
3449
|
+
}, void 0, !0),
|
|
3446
3450
|
Q("div", La, [
|
|
3447
3451
|
te(He, B({
|
|
3448
3452
|
...a.$attrs,
|
|
@@ -3755,7 +3759,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3755
3759
|
], 64);
|
|
3756
3760
|
};
|
|
3757
3761
|
}
|
|
3758
|
-
}), Pa = /* @__PURE__ */ ot(za, [["__scopeId", "data-v-
|
|
3762
|
+
}), Pa = /* @__PURE__ */ ot(za, [["__scopeId", "data-v-0b837d7b"]]), Na = { class: "g-tree-table" }, ja = { class: "g-tree-container" }, Wa = { class: "g-tree-table-container" }, Ga = /* @__PURE__ */ Object.assign({
|
|
3759
3763
|
name: "g-tree-table",
|
|
3760
3764
|
inheritAttrs: !1
|
|
3761
3765
|
}, {
|
|
@@ -3791,7 +3795,7 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3791
3795
|
h.value ? (m(), O(ve, {
|
|
3792
3796
|
key: 0,
|
|
3793
3797
|
modelValue: D.value,
|
|
3794
|
-
"onUpdate:modelValue": K[0] || (K[0] = (
|
|
3798
|
+
"onUpdate:modelValue": K[0] || (K[0] = (ce) => D.value = ce),
|
|
3795
3799
|
style: { width: "100%", "box-sizing": "border-box", "margin-bottom": "10px" },
|
|
3796
3800
|
placeholder: "输入节点查询",
|
|
3797
3801
|
clearable: ""
|
|
@@ -3805,17 +3809,17 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3805
3809
|
ref: c,
|
|
3806
3810
|
onNodeClick: d
|
|
3807
3811
|
}, V.$attrs.tree), ge({
|
|
3808
|
-
default: E(({ node:
|
|
3812
|
+
default: E(({ node: ce, data: $e }) => [
|
|
3809
3813
|
k(V.$slots, "tree", {
|
|
3810
|
-
node:
|
|
3814
|
+
node: ce,
|
|
3811
3815
|
data: $e
|
|
3812
3816
|
}, () => [
|
|
3813
|
-
Q("span", null, Ce(
|
|
3817
|
+
Q("span", null, Ce(ce.label), 1)
|
|
3814
3818
|
], !0)
|
|
3815
3819
|
]),
|
|
3816
3820
|
_: 2
|
|
3817
3821
|
}, [
|
|
3818
|
-
X(V.$slots, (
|
|
3822
|
+
X(V.$slots, (ce, $e, Fe) => ({
|
|
3819
3823
|
name: $e,
|
|
3820
3824
|
fn: E((Se) => [
|
|
3821
3825
|
k(V.$slots, $e, { data: Se }, void 0, !0)
|
|
@@ -3827,9 +3831,9 @@ const Ma = /* @__PURE__ */ Xt(xa), Ta = { key: 0 }, Fa = { style: { display: "fl
|
|
|
3827
3831
|
Q("div", Wa, [
|
|
3828
3832
|
te(ie, B({
|
|
3829
3833
|
modelValue: l.value,
|
|
3830
|
-
"onUpdate:modelValue": K[1] || (K[1] = (
|
|
3834
|
+
"onUpdate:modelValue": K[1] || (K[1] = (ce) => l.value = ce)
|
|
3831
3835
|
}, V.$attrs, { onLoad: u }), ge({ _: 2 }, [
|
|
3832
|
-
X(V.$slots, (
|
|
3836
|
+
X(V.$slots, (ce, $e, Fe) => ({
|
|
3833
3837
|
name: $e,
|
|
3834
3838
|
fn: E((Se) => [
|
|
3835
3839
|
k(V.$slots, $e, { data: Se }, void 0, !0)
|
|
@@ -4065,7 +4069,7 @@ const ke = {
|
|
|
4065
4069
|
TEXTAREA: "textarea",
|
|
4066
4070
|
TEL: "tel"
|
|
4067
4071
|
}, Ct = () => {
|
|
4068
|
-
|
|
4072
|
+
ct(() => {
|
|
4069
4073
|
const o = document.querySelector(".el-dialog");
|
|
4070
4074
|
if (!o || o.querySelector(".dialog-resize-handle"))
|
|
4071
4075
|
return;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.custom-upload[data-v-9ac2ced7]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-9ac2ced7] .custom-upload img{width:100%;height:100%}[data-v-9ac2ced7] .custom-upload .el-upload--picture-card,[data-v-9ac2ced7] .custom-upload .el-upload-dragger,[data-v-9ac2ced7] .custom-upload .el-upload-list__item{width:var(--up-width);height:var(--up-height);line-height:var(--up-height);box-sizing:border-box}[data-v-9ac2ced7] .custom-upload .el-upload-dragger{display:flex;align-items:center;justify-content:center;border:1px dashed var(--el-border-color);border-radius:6px;background-color:var(--el-fill-color-light);transition:border-color .3s}[data-v-9ac2ced7] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-9ac2ced7] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-9ac2ced7]:hover{background-color:#0003}.g-form-container[data-v-3b3ffd4d]{width:100%;display:flex;flex-direction:column}.g-query-container[data-v-fbc339ad]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-fbc339ad]{min-height:100px;border-radius:4px;background-color:var(--el-bg-color);top:60px;padding-top:10px;width:100%;box-sizing:border-box}.inner[data-v-fbc339ad]{border-radius:4px;min-height:100px;border:1px solid var(--el-border-color);padding:18px 18px 0;box-sizing:border-box;width:100%;background-color:var(--el-bg-color)}.nested-enter-active[data-v-fbc339ad],.nested-leave-active[data-v-fbc339ad]{transition:all .3s ease-in-out}.nested-leave-active[data-v-fbc339ad]{transition-delay:.25s}.nested-enter-from[data-v-fbc339ad],.nested-leave-to[data-v-fbc339ad]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-fbc339ad],.nested-leave-active .inner[data-v-fbc339ad]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-fbc339ad]{transition-delay:.25s}.nested-enter-from .inner[data-v-fbc339ad],.nested-leave-to .inner[data-v-fbc339ad]{transform:translateY(-100px);opacity:.001}.query-form[data-v-fbc339ad]{padding:20px;background-color:var(--el-bg-color);border:1px solid var(--el-border-color);margin:5px;border-radius:4px}.check-box-hover[data-v-13575747]:hover,.check-box-hover[data-v-428381ae]:hover{background:var(--el-border-color)}.allcheck a[data-v-428381ae]{cursor:pointer}.filtered[data-v-428381ae]{pointer-events:none}.g-cell-toopTip[data-v-f28912da]{max-height:400px;border-radius:var(--el-border-radius-base);padding:12px;transition:all .3s ease}.g-cell-toopTip .title[data-v-f28912da]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;height:24px;border-bottom:1px solid var(--el-border-color)}.g-cell-toopTip .title .title-text[data-v-f28912da]{font-weight:700;line-height:24px}.g-cell-toopTip .content[data-v-f28912da]{max-height:300px;overflow-y:auto;line-height:1.5;padding:4px 0}.copy-btn[data-v-f28912da]{width:16px;height:16px;cursor:pointer}.copy-btn[data-v-f28912da]:hover{color:var(--el-color-success)}.control .el-button[data-v-
|
|
1
|
+
.custom-upload[data-v-9ac2ced7]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-9ac2ced7] .custom-upload img{width:100%;height:100%}[data-v-9ac2ced7] .custom-upload .el-upload--picture-card,[data-v-9ac2ced7] .custom-upload .el-upload-dragger,[data-v-9ac2ced7] .custom-upload .el-upload-list__item{width:var(--up-width);height:var(--up-height);line-height:var(--up-height);box-sizing:border-box}[data-v-9ac2ced7] .custom-upload .el-upload-dragger{display:flex;align-items:center;justify-content:center;border:1px dashed var(--el-border-color);border-radius:6px;background-color:var(--el-fill-color-light);transition:border-color .3s}[data-v-9ac2ced7] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-9ac2ced7] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-9ac2ced7]:hover{background-color:#0003}.g-form-container[data-v-3b3ffd4d]{width:100%;display:flex;flex-direction:column}.g-query-container[data-v-fbc339ad]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-fbc339ad]{min-height:100px;border-radius:4px;background-color:var(--el-bg-color);top:60px;padding-top:10px;width:100%;box-sizing:border-box}.inner[data-v-fbc339ad]{border-radius:4px;min-height:100px;border:1px solid var(--el-border-color);padding:18px 18px 0;box-sizing:border-box;width:100%;background-color:var(--el-bg-color)}.nested-enter-active[data-v-fbc339ad],.nested-leave-active[data-v-fbc339ad]{transition:all .3s ease-in-out}.nested-leave-active[data-v-fbc339ad]{transition-delay:.25s}.nested-enter-from[data-v-fbc339ad],.nested-leave-to[data-v-fbc339ad]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-fbc339ad],.nested-leave-active .inner[data-v-fbc339ad]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-fbc339ad]{transition-delay:.25s}.nested-enter-from .inner[data-v-fbc339ad],.nested-leave-to .inner[data-v-fbc339ad]{transform:translateY(-100px);opacity:.001}.query-form[data-v-fbc339ad]{padding:20px;background-color:var(--el-bg-color);border:1px solid var(--el-border-color);margin:5px;border-radius:4px}.check-box-hover[data-v-13575747]:hover,.check-box-hover[data-v-428381ae]:hover{background:var(--el-border-color)}.allcheck a[data-v-428381ae]{cursor:pointer}.filtered[data-v-428381ae]{pointer-events:none}.g-cell-toopTip[data-v-f28912da]{max-height:400px;border-radius:var(--el-border-radius-base);padding:12px;transition:all .3s ease}.g-cell-toopTip .title[data-v-f28912da]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;height:24px;border-bottom:1px solid var(--el-border-color)}.g-cell-toopTip .title .title-text[data-v-f28912da]{font-weight:700;line-height:24px}.g-cell-toopTip .content[data-v-f28912da]{max-height:300px;overflow-y:auto;line-height:1.5;padding:4px 0}.copy-btn[data-v-f28912da]{width:16px;height:16px;cursor:pointer}.copy-btn[data-v-f28912da]:hover{color:var(--el-color-success)}.control .el-button[data-v-0b837d7b]{padding:0 3px;margin:0 3px}.g-table-container[data-v-0b837d7b]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-0b837d7b]{background-color:var(--el-bg-color);margin-bottom:10px;border:1px solid var(--el-border-color-lighter)}.table-container[data-v-0b837d7b]{box-sizing:border-box;background-color:var(--el-bg-color)}.max[data-v-0b837d7b]{cursor:pointer;color:var(--el-text-color)}.max[data-v-0b837d7b]:hover{color:var(--el-color-primary)}.btns[data-v-0b837d7b]{display:flex}[data-v-0b837d7b] .drag-dialog{resize:both;overflow:auto}[data-v-0b837d7b] .el-dialog__header,[data-v-0b837d7b] .el-dialog__body{pointer-events:auto!important}.g-tree-table[data-v-c888e4fc]{width:100%;display:flex;box-sizing:border-box}.g-tree-container[data-v-c888e4fc]{display:flex;width:100%;box-sizing:border-box;border-radius:4px;overflow:auto;height:100%;border:1px solid var(--el-border-color-lighter)}.g-tree-table-container[data-v-c888e4fc]{display:flex;flex:1;overflow:auto}.g-tree-left[data-v-c888e4fc]{display:flex;flex-direction:column;box-sizing:border-box;margin-right:10px;overflow:auto}.op-group[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;font-weight:700;color:#fff;padding:5px 25px;box-sizing:border-box;background-color:var(--el-color-primary-light-3)}.op-items[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;color:#666;margin-left:12px}.op-items span[data-v-c0ac6b77]{background-color:var(--el-color-primary-light-7);border-radius:3px;margin:2px 2px 0 0;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
|