element-assits 0.0.27 → 0.0.28
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/lib/index.js +130 -129
- package/lib/style.scss +115 -115
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -788,21 +788,21 @@ function te(t, e, n, r, s, i) {
|
|
|
788
788
|
return a;
|
|
789
789
|
if (!S(t))
|
|
790
790
|
return t;
|
|
791
|
-
var
|
|
792
|
-
if (
|
|
791
|
+
var f = w(t);
|
|
792
|
+
if (f) {
|
|
793
793
|
if (a = Ji(t), !o)
|
|
794
794
|
return fr(t, a);
|
|
795
795
|
} else {
|
|
796
|
-
var
|
|
796
|
+
var d = K(t), u = d == ln || d == ka;
|
|
797
797
|
if (ne(t))
|
|
798
798
|
return Li(t, o);
|
|
799
|
-
if (
|
|
800
|
-
if (a = l ||
|
|
799
|
+
if (d == cn || d == on || u && !s) {
|
|
800
|
+
if (a = l || u ? {} : xa(t), !o)
|
|
801
801
|
return l ? Di(t, Oi(a, t)) : Ii(t, Ei(a, t));
|
|
802
802
|
} else {
|
|
803
|
-
if (!m[
|
|
803
|
+
if (!m[d])
|
|
804
804
|
return s ? t : {};
|
|
805
|
-
a = wa(t,
|
|
805
|
+
a = wa(t, d, o);
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
808
|
i || (i = new A());
|
|
@@ -814,7 +814,7 @@ function te(t, e, n, r, s, i) {
|
|
|
814
814
|
}) : Ea(t) && t.forEach(function(y, v) {
|
|
815
815
|
a.set(v, te(y, e, n, v, t, i));
|
|
816
816
|
});
|
|
817
|
-
var _ = c ? l ? an : Ie : l ? Je : be, x =
|
|
817
|
+
var _ = c ? l ? an : Ie : l ? Je : be, x = f ? void 0 : _(t);
|
|
818
818
|
return wr(x || t, function(y, v) {
|
|
819
819
|
x && (v = y, y = t[v]), Xe(a, v, te(y, e, n, v, t, i));
|
|
820
820
|
}), a;
|
|
@@ -851,18 +851,18 @@ function dn(t, e, n, r, s, i) {
|
|
|
851
851
|
var a = n & uo, o = t.length, l = e.length;
|
|
852
852
|
if (o != l && !(a && l > o))
|
|
853
853
|
return !1;
|
|
854
|
-
var c = i.get(t),
|
|
855
|
-
if (c &&
|
|
856
|
-
return c == e &&
|
|
857
|
-
var
|
|
858
|
-
for (i.set(t, e), i.set(e, t); ++
|
|
859
|
-
var _ = t[
|
|
854
|
+
var c = i.get(t), f = i.get(e);
|
|
855
|
+
if (c && f)
|
|
856
|
+
return c == e && f == t;
|
|
857
|
+
var d = -1, u = !0, p = n & fo ? new ie() : void 0;
|
|
858
|
+
for (i.set(t, e), i.set(e, t); ++d < o; ) {
|
|
859
|
+
var _ = t[d], x = e[d];
|
|
860
860
|
if (r)
|
|
861
|
-
var y = a ? r(x, _,
|
|
861
|
+
var y = a ? r(x, _, d, e, t, i) : r(_, x, d, t, e, i);
|
|
862
862
|
if (y !== void 0) {
|
|
863
863
|
if (y)
|
|
864
864
|
continue;
|
|
865
|
-
|
|
865
|
+
u = !1;
|
|
866
866
|
break;
|
|
867
867
|
}
|
|
868
868
|
if (p) {
|
|
@@ -870,15 +870,15 @@ function dn(t, e, n, r, s, i) {
|
|
|
870
870
|
if (!un(p, O) && (_ === v || s(_, v, n, r, i)))
|
|
871
871
|
return p.push(O);
|
|
872
872
|
})) {
|
|
873
|
-
|
|
873
|
+
u = !1;
|
|
874
874
|
break;
|
|
875
875
|
}
|
|
876
876
|
} else if (!(_ === x || s(_, x, n, r, i))) {
|
|
877
|
-
|
|
877
|
+
u = !1;
|
|
878
878
|
break;
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
|
-
return i.delete(t), i.delete(e),
|
|
881
|
+
return i.delete(t), i.delete(e), u;
|
|
882
882
|
}
|
|
883
883
|
function po(t) {
|
|
884
884
|
var e = -1, n = Array(t.size);
|
|
@@ -920,8 +920,8 @@ function Oo(t, e, n, r, s, i, a) {
|
|
|
920
920
|
if (c)
|
|
921
921
|
return c == e;
|
|
922
922
|
r |= mo, a.set(t, e);
|
|
923
|
-
var
|
|
924
|
-
return a.delete(t),
|
|
923
|
+
var f = dn(o(t), o(e), r, s, i, a);
|
|
924
|
+
return a.delete(t), f;
|
|
925
925
|
case To:
|
|
926
926
|
if (Oe)
|
|
927
927
|
return Oe.call(t) == Oe.call(e);
|
|
@@ -930,12 +930,12 @@ function Oo(t, e, n, r, s, i, a) {
|
|
|
930
930
|
}
|
|
931
931
|
var Ao = 1, Lo = Object.prototype, Po = Lo.hasOwnProperty;
|
|
932
932
|
function Ro(t, e, n, r, s, i) {
|
|
933
|
-
var a = n & Ao, o = Ie(t), l = o.length, c = Ie(e),
|
|
934
|
-
if (l !=
|
|
933
|
+
var a = n & Ao, o = Ie(t), l = o.length, c = Ie(e), f = c.length;
|
|
934
|
+
if (l != f && !a)
|
|
935
935
|
return !1;
|
|
936
|
-
for (var
|
|
937
|
-
var
|
|
938
|
-
if (!(a ?
|
|
936
|
+
for (var d = l; d--; ) {
|
|
937
|
+
var u = o[d];
|
|
938
|
+
if (!(a ? u in e : Po.call(e, u)))
|
|
939
939
|
return !1;
|
|
940
940
|
}
|
|
941
941
|
var p = i.get(t), _ = i.get(e);
|
|
@@ -943,16 +943,16 @@ function Ro(t, e, n, r, s, i) {
|
|
|
943
943
|
return p == e && _ == t;
|
|
944
944
|
var x = !0;
|
|
945
945
|
i.set(t, e), i.set(e, t);
|
|
946
|
-
for (var y = a; ++
|
|
947
|
-
|
|
948
|
-
var v = t[
|
|
946
|
+
for (var y = a; ++d < l; ) {
|
|
947
|
+
u = o[d];
|
|
948
|
+
var v = t[u], O = e[u];
|
|
949
949
|
if (r)
|
|
950
|
-
var ce = a ? r(O, v,
|
|
950
|
+
var ce = a ? r(O, v, u, e, t, i) : r(v, O, u, t, e, i);
|
|
951
951
|
if (!(ce === void 0 ? v === O || s(v, O, n, r, i) : ce)) {
|
|
952
952
|
x = !1;
|
|
953
953
|
break;
|
|
954
954
|
}
|
|
955
|
-
y || (y =
|
|
955
|
+
y || (y = u == "constructor");
|
|
956
956
|
}
|
|
957
957
|
if (x && !y) {
|
|
958
958
|
var z = t.constructor, j = e.constructor;
|
|
@@ -964,22 +964,22 @@ var Fo = 1, It = "[object Arguments]", Mt = "[object Array]", ue = "[object Obje
|
|
|
964
964
|
function Io(t, e, n, r, s, i) {
|
|
965
965
|
var a = w(t), o = w(e), l = a ? Mt : K(t), c = o ? Mt : K(e);
|
|
966
966
|
l = l == It ? ue : l, c = c == It ? ue : c;
|
|
967
|
-
var
|
|
968
|
-
if (
|
|
967
|
+
var f = l == ue, d = c == ue, u = l == c;
|
|
968
|
+
if (u && ne(t)) {
|
|
969
969
|
if (!ne(e))
|
|
970
970
|
return !1;
|
|
971
|
-
a = !0,
|
|
971
|
+
a = !0, f = !1;
|
|
972
972
|
}
|
|
973
|
-
if (
|
|
973
|
+
if (u && !f)
|
|
974
974
|
return i || (i = new A()), a || Ye(t) ? dn(t, e, n, r, s, i) : Oo(t, e, l, n, r, s, i);
|
|
975
975
|
if (!(n & Fo)) {
|
|
976
|
-
var p =
|
|
976
|
+
var p = f && Nt.call(t, "__wrapped__"), _ = d && Nt.call(e, "__wrapped__");
|
|
977
977
|
if (p || _) {
|
|
978
978
|
var x = p ? t.value() : t, y = _ ? e.value() : e;
|
|
979
979
|
return i || (i = new A()), s(x, y, n, r, i);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
-
return
|
|
982
|
+
return u ? (i || (i = new A()), Ro(t, e, n, r, s, i)) : !1;
|
|
983
983
|
}
|
|
984
984
|
function it(t, e, n, r, s) {
|
|
985
985
|
return t === e ? !0 : t == null || e == null || !L(t) && !L(e) ? t !== t && e !== e : Io(t, e, n, r, it, s);
|
|
@@ -996,15 +996,15 @@ function Do(t, e, n, r) {
|
|
|
996
996
|
}
|
|
997
997
|
for (; ++s < i; ) {
|
|
998
998
|
o = n[s];
|
|
999
|
-
var l = o[0], c = t[l],
|
|
999
|
+
var l = o[0], c = t[l], f = o[1];
|
|
1000
1000
|
if (a && o[2]) {
|
|
1001
1001
|
if (c === void 0 && !(l in t))
|
|
1002
1002
|
return !1;
|
|
1003
1003
|
} else {
|
|
1004
|
-
var
|
|
1004
|
+
var d = new A();
|
|
1005
1005
|
if (r)
|
|
1006
|
-
var
|
|
1007
|
-
if (!(
|
|
1006
|
+
var u = r(c, f, l, t, e, d);
|
|
1007
|
+
if (!(u === void 0 ? it(f, c, Mo | No, r, d) : u))
|
|
1008
1008
|
return !1;
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
@@ -1076,24 +1076,24 @@ var Zo = function() {
|
|
|
1076
1076
|
const Ae = Zo;
|
|
1077
1077
|
var Vo = "Expected a function", Qo = Math.max, el = Math.min;
|
|
1078
1078
|
function tl(t, e, n) {
|
|
1079
|
-
var r, s, i, a, o, l, c = 0,
|
|
1079
|
+
var r, s, i, a, o, l, c = 0, f = !1, d = !1, u = !0;
|
|
1080
1080
|
if (typeof t != "function")
|
|
1081
1081
|
throw new TypeError(Vo);
|
|
1082
|
-
e = ft(e) || 0, S(n) && (
|
|
1082
|
+
e = ft(e) || 0, S(n) && (f = !!n.leading, d = "maxWait" in n, i = d ? Qo(ft(n.maxWait) || 0, e) : i, u = "trailing" in n ? !!n.trailing : u);
|
|
1083
1083
|
function p(b) {
|
|
1084
1084
|
var I = r, Z = s;
|
|
1085
1085
|
return r = s = void 0, c = b, a = t.apply(Z, I), a;
|
|
1086
1086
|
}
|
|
1087
1087
|
function _(b) {
|
|
1088
|
-
return c = b, o = setTimeout(v, e),
|
|
1088
|
+
return c = b, o = setTimeout(v, e), f ? p(b) : a;
|
|
1089
1089
|
}
|
|
1090
1090
|
function x(b) {
|
|
1091
1091
|
var I = b - l, Z = b - c, ot = e - I;
|
|
1092
|
-
return
|
|
1092
|
+
return d ? el(ot, i - Z) : ot;
|
|
1093
1093
|
}
|
|
1094
1094
|
function y(b) {
|
|
1095
1095
|
var I = b - l, Z = b - c;
|
|
1096
|
-
return l === void 0 || I >= e || I < 0 ||
|
|
1096
|
+
return l === void 0 || I >= e || I < 0 || d && Z >= i;
|
|
1097
1097
|
}
|
|
1098
1098
|
function v() {
|
|
1099
1099
|
var b = Ae();
|
|
@@ -1102,7 +1102,7 @@ function tl(t, e, n) {
|
|
|
1102
1102
|
o = setTimeout(v, x(b));
|
|
1103
1103
|
}
|
|
1104
1104
|
function O(b) {
|
|
1105
|
-
return o = void 0,
|
|
1105
|
+
return o = void 0, u && r ? p(b) : (r = s = void 0, a);
|
|
1106
1106
|
}
|
|
1107
1107
|
function ce() {
|
|
1108
1108
|
o !== void 0 && clearTimeout(o), c = 0, r = l = s = o = void 0;
|
|
@@ -1115,7 +1115,7 @@ function tl(t, e, n) {
|
|
|
1115
1115
|
if (r = arguments, s = this, l = b, I) {
|
|
1116
1116
|
if (o === void 0)
|
|
1117
1117
|
return _(l);
|
|
1118
|
-
if (
|
|
1118
|
+
if (d)
|
|
1119
1119
|
return clearTimeout(o), o = setTimeout(v, e), p(l);
|
|
1120
1120
|
}
|
|
1121
1121
|
return o === void 0 && (o = setTimeout(v, e)), a;
|
|
@@ -1139,14 +1139,14 @@ function sl(t, e, n, r) {
|
|
|
1139
1139
|
n && (e = He(e, ve(n))), r ? (i = nl, a = !1) : e.length >= rl && (i = un, a = !1, e = new ie(e));
|
|
1140
1140
|
e:
|
|
1141
1141
|
for (; ++s < o; ) {
|
|
1142
|
-
var
|
|
1143
|
-
if (
|
|
1144
|
-
for (var
|
|
1145
|
-
if (e[
|
|
1142
|
+
var f = t[s], d = n == null ? f : n(f);
|
|
1143
|
+
if (f = r || f !== 0 ? f : 0, a && d === d) {
|
|
1144
|
+
for (var u = c; u--; )
|
|
1145
|
+
if (e[u] === d)
|
|
1146
1146
|
continue e;
|
|
1147
|
-
l.push(
|
|
1147
|
+
l.push(f);
|
|
1148
1148
|
} else
|
|
1149
|
-
i(e,
|
|
1149
|
+
i(e, d, r) || l.push(f);
|
|
1150
1150
|
}
|
|
1151
1151
|
return l;
|
|
1152
1152
|
}
|
|
@@ -1209,8 +1209,8 @@ function yl(t, e, n, r) {
|
|
|
1209
1209
|
if (l === "__proto__" || l === "constructor" || l === "prototype")
|
|
1210
1210
|
return t;
|
|
1211
1211
|
if (s != a) {
|
|
1212
|
-
var
|
|
1213
|
-
c = r ? r(
|
|
1212
|
+
var f = o[l];
|
|
1213
|
+
c = r ? r(f, l, o) : void 0, c === void 0 && (c = S(f) ? f : Ue(e[s + 1]) ? [] : {});
|
|
1214
1214
|
}
|
|
1215
1215
|
Xe(o, l, c), o = o[l];
|
|
1216
1216
|
}
|
|
@@ -1234,8 +1234,8 @@ function h(t, e, n, r, s, i, a, o) {
|
|
|
1234
1234
|
var l = typeof t == "function" ? t.options : t;
|
|
1235
1235
|
e && (l.render = e, l.staticRenderFns = n, l._compiled = !0), r && (l.functional = !0), i && (l._scopeId = "data-v-" + i);
|
|
1236
1236
|
var c;
|
|
1237
|
-
if (a ? (c = function(
|
|
1238
|
-
|
|
1237
|
+
if (a ? (c = function(u) {
|
|
1238
|
+
u = u || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !u && typeof __VUE_SSR_CONTEXT__ < "u" && (u = __VUE_SSR_CONTEXT__), s && s.call(this, u), u && u._registeredComponents && u._registeredComponents.add(a);
|
|
1239
1239
|
}, l._ssrRegister = c) : s && (c = o ? function() {
|
|
1240
1240
|
s.call(
|
|
1241
1241
|
this,
|
|
@@ -1244,13 +1244,13 @@ function h(t, e, n, r, s, i, a, o) {
|
|
|
1244
1244
|
} : s), c)
|
|
1245
1245
|
if (l.functional) {
|
|
1246
1246
|
l._injectStyles = c;
|
|
1247
|
-
var
|
|
1247
|
+
var f = l.render;
|
|
1248
1248
|
l.render = function(p, _) {
|
|
1249
|
-
return c.call(_),
|
|
1249
|
+
return c.call(_), f(p, _);
|
|
1250
1250
|
};
|
|
1251
1251
|
} else {
|
|
1252
|
-
var
|
|
1253
|
-
l.beforeCreate =
|
|
1252
|
+
var d = l.beforeCreate;
|
|
1253
|
+
l.beforeCreate = d ? [].concat(d, c) : [c];
|
|
1254
1254
|
}
|
|
1255
1255
|
return {
|
|
1256
1256
|
exports: t,
|
|
@@ -1609,13 +1609,13 @@ async function D(t, ...e) {
|
|
|
1609
1609
|
}), a = C(t) ? t : () => Promise.resolve({ default: t }), { default: o } = await a().catch(() => {
|
|
1610
1610
|
i.type = "error", i.message = "\u7EC4\u4EF6\u8F7D\u5165\u5931\u8D25", i.showClose = !0, i.iconClass = void 0, setTimeout(i.close, 3e3);
|
|
1611
1611
|
}).finally(() => {
|
|
1612
|
-
D.prevHashes = D.prevHashes.filter((
|
|
1612
|
+
D.prevHashes = D.prevHashes.filter((d) => d !== n);
|
|
1613
1613
|
}), l = () => {
|
|
1614
|
-
const
|
|
1615
|
-
if (document.getElementById(
|
|
1614
|
+
const d = "__async-load-component-css";
|
|
1615
|
+
if (document.getElementById(d))
|
|
1616
1616
|
return;
|
|
1617
1617
|
const p = document.createElement("style");
|
|
1618
|
-
p.id =
|
|
1618
|
+
p.id = d, p.innerHTML = `
|
|
1619
1619
|
.async-load-component { min-width: 212px; }
|
|
1620
1620
|
.async-load-component.el-message-fade-leave-active { transition: none !important; }
|
|
1621
1621
|
.async-load-component .el-message__content { margin-left: 8px; color: #666; }
|
|
@@ -1624,20 +1624,20 @@ async function D(t, ...e) {
|
|
|
1624
1624
|
name: "AsyncContainer",
|
|
1625
1625
|
parent: this,
|
|
1626
1626
|
mounted() {
|
|
1627
|
-
const
|
|
1627
|
+
const d = () => {
|
|
1628
1628
|
document.body.removeChild(this.$el), this.$destroy();
|
|
1629
1629
|
};
|
|
1630
|
-
this.$on("closed",
|
|
1631
|
-
|
|
1632
|
-
p.$on("closed",
|
|
1630
|
+
this.$on("closed", d), this.$children.forEach((u) => {
|
|
1631
|
+
u.$on("closed", d), u.$children.forEach((p) => {
|
|
1632
|
+
p.$on("closed", d);
|
|
1633
1633
|
});
|
|
1634
1634
|
});
|
|
1635
1635
|
},
|
|
1636
|
-
render(
|
|
1637
|
-
return
|
|
1636
|
+
render(d) {
|
|
1637
|
+
return d(o, ...e);
|
|
1638
1638
|
}
|
|
1639
|
-
}),
|
|
1640
|
-
l(), i.close(),
|
|
1639
|
+
}), f = new c();
|
|
1640
|
+
l(), i.close(), f.$mount(), document.body.appendChild(f.$el);
|
|
1641
1641
|
}
|
|
1642
1642
|
const Wl = {
|
|
1643
1643
|
components: { LayoutContainer: Bl },
|
|
@@ -1704,8 +1704,8 @@ const Wl = {
|
|
|
1704
1704
|
dealtItem(t, e) {
|
|
1705
1705
|
const n = [this.model, this], r = {}, s = (C(t.component) ? t.component(...n) : t.component) || "el-input", i = [];
|
|
1706
1706
|
if (t.required && i.push({ required: !0, message: "\u5FC5\u586B\u4FE1\u606F" }), C(t.rules)) {
|
|
1707
|
-
const
|
|
1708
|
-
w(
|
|
1707
|
+
const f = t.rules(...n);
|
|
1708
|
+
w(f) && i.push(...f);
|
|
1709
1709
|
} else
|
|
1710
1710
|
w(t.rules) && i.push(...t.rules);
|
|
1711
1711
|
const a = {};
|
|
@@ -1827,11 +1827,11 @@ const at = zl.exports, Ul = {
|
|
|
1827
1827
|
const e = this.getWidth(t), n = this.getWidth(this.$refs.sa.$el) + 10, r = this.getWidth(this.$refs.tm.$el), s = Math.floor(e / this.referenceItemWidth), i = Math.floor((e - n) / this.referenceItemWidth), a = Math.floor((e - n - r) / this.referenceItemWidth);
|
|
1828
1828
|
this.defaultCount = this.limit === "all" ? this.allLength : typeof this.limit == "number" ? Math.min(this.limit, this.allLength) : a >= 1 ? a : i >= 1 ? i : s;
|
|
1829
1829
|
const o = this.showAll ? this.allLength : this.defaultCount, l = o <= a ? (e - n - r) / o - 10 : o <= i ? (e - n) / o - 10 : o < s ? (e - (o - 1) * 10) / o : (e - (s - 1) * 10) / s, c = o > i && o < s ? o : s;
|
|
1830
|
-
let
|
|
1831
|
-
for (let
|
|
1832
|
-
|
|
1833
|
-
const
|
|
1834
|
-
|
|
1830
|
+
let f = 0;
|
|
1831
|
+
for (let d of this.allColumn) {
|
|
1832
|
+
f += d.exclusiveDoubleCells ? 2 : 1;
|
|
1833
|
+
const u = Math.min(l, this.maxItemWidth), p = d.exclusiveDoubleCells ? u * 2 + 10 : u;
|
|
1834
|
+
d.style.width = p + "px", f % c === 0 ? d.style.marginRight = 0 : d.style.marginRight = "10px";
|
|
1835
1835
|
}
|
|
1836
1836
|
this.resetSearchCount();
|
|
1837
1837
|
},
|
|
@@ -2384,14 +2384,14 @@ function fc(t) {
|
|
|
2384
2384
|
let r = e.offsetLeft, s = e.offsetTop, i = !1, a, o;
|
|
2385
2385
|
const l = () => {
|
|
2386
2386
|
i = !1, a = void 0, o = void 0, r = e.offsetLeft, s = e.offsetTop;
|
|
2387
|
-
}, c = (
|
|
2387
|
+
}, c = (f) => {
|
|
2388
2388
|
if (!i)
|
|
2389
2389
|
return;
|
|
2390
|
-
const
|
|
2391
|
-
e.style.left = r +
|
|
2390
|
+
const d = f.pageX - a, u = f.pageY - o;
|
|
2391
|
+
e.style.left = r + d + "px", e.style.top = s + u + "px";
|
|
2392
2392
|
};
|
|
2393
|
-
return e.style.left = r + "px", e.style.top = s + "px", e.style.margin = 0, n.addEventListener("mousedown", (
|
|
2394
|
-
r = e.offsetLeft, s = e.offsetTop, a =
|
|
2393
|
+
return e.style.left = r + "px", e.style.top = s + "px", e.style.margin = 0, n.addEventListener("mousedown", (f) => {
|
|
2394
|
+
r = e.offsetLeft, s = e.offsetTop, a = f.pageX, o = f.pageY, i = !0;
|
|
2395
2395
|
}), document.addEventListener("mouseup", l), document.addEventListener("mousemove", c), () => {
|
|
2396
2396
|
document.removeEventListener("mouseup", l), document.removeEventListener("mousemove", c);
|
|
2397
2397
|
};
|
|
@@ -2413,18 +2413,18 @@ function M(t, e) {
|
|
|
2413
2413
|
const n = document.createElement("div");
|
|
2414
2414
|
n.style.position = "absolute", hc(n, e), t.style.userSelect = "none", t.appendChild(n);
|
|
2415
2415
|
let r = t.offsetLeft, s = t.offsetTop, i = t.offsetWidth, a = t.offsetHeight, o = !1, l, c;
|
|
2416
|
-
const
|
|
2416
|
+
const f = () => {
|
|
2417
2417
|
o = !1, l = void 0, c = void 0, r = t.offsetLeft, s = t.offsetTop, i = t.offsetWidth, a = t.offsetHeight;
|
|
2418
|
-
},
|
|
2418
|
+
}, d = (u) => {
|
|
2419
2419
|
if (!o)
|
|
2420
2420
|
return;
|
|
2421
|
-
const p =
|
|
2421
|
+
const p = u.pageX - l, _ = u.pageY - c;
|
|
2422
2422
|
e.indexOf("left") > -1 && i - p > 200 && (t.style.left = r + p + "px", t.style.width = i - p + "px"), e.indexOf("right") > -1 && i + p > 200 && (t.style.width = i + p + "px"), e.indexOf("top") > -1 && a - _ > 200 && (t.style.top = s + _ + "px", t.style.height = a - _ + "px"), e.indexOf("bottom") > -1 && a + _ > 200 && (t.style.height = a + _ + "px");
|
|
2423
2423
|
};
|
|
2424
|
-
return n.addEventListener("mousedown", (
|
|
2425
|
-
o = !0, l =
|
|
2426
|
-
}), document.addEventListener("mouseup",
|
|
2427
|
-
document.removeEventListener("mouseup",
|
|
2424
|
+
return n.addEventListener("mousedown", (u) => {
|
|
2425
|
+
o = !0, l = u.pageX, c = u.pageY, r = t.offsetLeft, s = t.offsetTop, i = t.offsetWidth, a = t.offsetHeight;
|
|
2426
|
+
}), document.addEventListener("mouseup", f), document.addEventListener("mousemove", d), () => {
|
|
2427
|
+
document.removeEventListener("mouseup", f), document.removeEventListener("mousemove", d);
|
|
2428
2428
|
};
|
|
2429
2429
|
}
|
|
2430
2430
|
function hc(t, e) {
|
|
@@ -2851,8 +2851,8 @@ const kc = {
|
|
|
2851
2851
|
return null;
|
|
2852
2852
|
let n = 0;
|
|
2853
2853
|
t.addEventListener("scroll", (r) => {
|
|
2854
|
-
const s = t.scrollTop, i = 12, a = t.clientHeight - i, l = e.offsetHeight - a,
|
|
2855
|
-
n = s,
|
|
2854
|
+
const s = t.scrollTop, i = 12, a = t.clientHeight - i, l = e.offsetHeight - a, f = s > l - 20, d = n - s > 0 ? "up" : "down";
|
|
2855
|
+
n = s, f && d === "down" && (this.scrollNext(), r.preventDefault(), r.stopPropagation());
|
|
2856
2856
|
});
|
|
2857
2857
|
},
|
|
2858
2858
|
scrollToBottom() {
|
|
@@ -3351,24 +3351,24 @@ class Q {
|
|
|
3351
3351
|
function qe(t, e, n = 0, r = [], s = [], i = !0, a) {
|
|
3352
3352
|
const o = $(), l = e || "root";
|
|
3353
3353
|
n++, s.push(o);
|
|
3354
|
-
const c = s.join("."),
|
|
3354
|
+
const c = s.join("."), d = (a && a.required || []).includes(l), u = {
|
|
3355
3355
|
...ae(t, ["properties", "required"]),
|
|
3356
3356
|
prop: l,
|
|
3357
|
-
required:
|
|
3357
|
+
required: d,
|
|
3358
3358
|
__state: new Q(n, o, c)
|
|
3359
3359
|
};
|
|
3360
|
-
if (
|
|
3360
|
+
if (u.__state.virtualArrayItems = !1, a && a.type === "array" && l === "items" && (u.__state.virtualArrayItems = !0), u.__state.isRoot = i, r.push(u), t.type === "object") {
|
|
3361
3361
|
if (B(t.properties)) {
|
|
3362
|
-
|
|
3362
|
+
u.__state.hasChildren = !0, u.__state.isExpanded = !0;
|
|
3363
3363
|
for (let [p, _] of Object.entries(t.properties))
|
|
3364
3364
|
qe(_, p, n, r, [...s], !1, t);
|
|
3365
3365
|
}
|
|
3366
3366
|
} else
|
|
3367
|
-
t.type === "array" && B(t.items) && (
|
|
3367
|
+
t.type === "array" && B(t.items) && (u.__state.hasChildren = !0, u.__state.isExpanded = !0, qe(t.items, "items", n, r, [...s], !1, t));
|
|
3368
3368
|
return r;
|
|
3369
3369
|
}
|
|
3370
3370
|
function Iu(t, e = {}) {
|
|
3371
|
-
return t.forEach((n) => {
|
|
3371
|
+
return t.filter((n) => !n.__state.isTemp).forEach((n) => {
|
|
3372
3372
|
const r = n.__state.prefix.split(".").reduce((i, a) => {
|
|
3373
3373
|
const o = t.find((l) => l.__state.uuid === a);
|
|
3374
3374
|
return i.push(o.prop), o.type === "object" && i.push("properties"), i;
|
|
@@ -3560,12 +3560,12 @@ const Gu = Uu.exports;
|
|
|
3560
3560
|
const Xu = {
|
|
3561
3561
|
components: { EaScrollbar: Te, EaVirtualScroll: xe, CellAction: Wu },
|
|
3562
3562
|
props: {
|
|
3563
|
-
|
|
3563
|
+
value: { type: Object, required: !0 },
|
|
3564
3564
|
height: { type: Number, default: 500 },
|
|
3565
3565
|
allowEdit: { type: Boolean, default: !0 }
|
|
3566
3566
|
},
|
|
3567
3567
|
data() {
|
|
3568
|
-
const t = qe(this.
|
|
3568
|
+
const t = qe(this.value), e = [...t];
|
|
3569
3569
|
return {
|
|
3570
3570
|
column: ju,
|
|
3571
3571
|
rawList: e,
|
|
@@ -3585,28 +3585,26 @@ const Xu = {
|
|
|
3585
3585
|
s.__state.show[t.__state.prefix] = !0;
|
|
3586
3586
|
})), this.syncUpdate();
|
|
3587
3587
|
},
|
|
3588
|
-
handleInput(t) {
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
__state: u
|
|
3604
|
-
});
|
|
3588
|
+
handleInput(t, e) {
|
|
3589
|
+
if (e === "type") {
|
|
3590
|
+
const n = this.rawList.findIndex((s) => s.__state.prefix === t.__state.prefix), r = this.rawList[n];
|
|
3591
|
+
if (r) {
|
|
3592
|
+
const s = Fe(r, n, this.rawList), i = $();
|
|
3593
|
+
if (t.type === "object") {
|
|
3594
|
+
const a = t.__state.prefix + "." + i, o = t.__state.level + 1, l = new Q(o, i, a);
|
|
3595
|
+
l.isTemp = !0, r.__state.hasChildren = !0, r.__state.isExpanded = !0, this.rawList.splice(n + 1, s[1] - s[0], { type: "string", __state: l });
|
|
3596
|
+
} else if (t.type === "array") {
|
|
3597
|
+
const a = t.__state.prefix + "." + i, o = t.__state.level + 1, l = new Q(o, i, a);
|
|
3598
|
+
r.__state.hasChildren = !0, r.__state.isExpanded = !0, l.virtualArrayItems = !0, this.rawList.splice(n + 1, s[1] - s[0], { prop: "items", type: "string", __state: l });
|
|
3599
|
+
} else
|
|
3600
|
+
t.__state.hasChildren = !1, this.rawList.splice(n + 1, s[1] - s[0]);
|
|
3601
|
+
this.syncUpdate();
|
|
3602
|
+
}
|
|
3605
3603
|
}
|
|
3606
|
-
|
|
3604
|
+
this.schemaChange();
|
|
3607
3605
|
},
|
|
3608
3606
|
handleTempAdd(t) {
|
|
3609
|
-
t.__state.isTemp = !1;
|
|
3607
|
+
t.__state.isTemp = !1, this.schemaChange();
|
|
3610
3608
|
},
|
|
3611
3609
|
handleRowEdit({ type: t, evt: e }, n, r) {
|
|
3612
3610
|
const s = this.rawList.findIndex((l) => l.__state.prefix === n.__state.prefix), i = this.rawList[s];
|
|
@@ -3616,13 +3614,13 @@ const Xu = {
|
|
|
3616
3614
|
let o = s + 1;
|
|
3617
3615
|
if (i.__state.hasChildren && (o = Fe(i, s, this.rawList)[1]), t === "next") {
|
|
3618
3616
|
const l = n.__state.prefix.replace(/([^.]+)$/, a), c = n.__state.level;
|
|
3619
|
-
this.rawList.splice(o, 0, { type: "string", __state: new Q(c, a, l) });
|
|
3617
|
+
this.rawList.splice(o, 0, { type: "string", __state: new Q(c, a, l) }), this.schemaChange();
|
|
3620
3618
|
} else if (t === "sub") {
|
|
3621
|
-
const l = n.__state.prefix + "." + a, c = n.__state.level + 1,
|
|
3622
|
-
|
|
3619
|
+
const l = n.__state.prefix + "." + a, c = n.__state.level + 1, f = this.rawList[s + 1];
|
|
3620
|
+
f && f.__state.isTemp ? f.__state.isTemp = !1 : this.rawList.splice(o, 0, { type: "string", __state: new Q(c, a, l) }), this.schemaChange();
|
|
3623
3621
|
} else if (t === "remove") {
|
|
3624
3622
|
const l = o - s;
|
|
3625
|
-
this.rawList.splice(s, l);
|
|
3623
|
+
this.rawList.splice(s, l), this.schemaChange();
|
|
3626
3624
|
} else
|
|
3627
3625
|
t === "conf" && this.$asyncLoad(() => Promise.resolve().then(() => Ce), {
|
|
3628
3626
|
attrs: { popperClass: "ea-popover-no-margin", placement: "right" },
|
|
@@ -3633,8 +3631,8 @@ const Xu = {
|
|
|
3633
3631
|
on: {
|
|
3634
3632
|
done: (c) => {
|
|
3635
3633
|
Object.assign(n, c);
|
|
3636
|
-
const
|
|
3637
|
-
n.__state.prefix = n.__state.prefix.replace(n.__state.uuid,
|
|
3634
|
+
const f = $();
|
|
3635
|
+
n.__state.prefix = n.__state.prefix.replace(n.__state.uuid, f), n.__state.uuid = f, this.showAdvancedConfRow = void 0, this.schemaChange();
|
|
3638
3636
|
}
|
|
3639
3637
|
}
|
|
3640
3638
|
}))
|
|
@@ -3645,6 +3643,9 @@ const Xu = {
|
|
|
3645
3643
|
handleScrollRecalc() {
|
|
3646
3644
|
!this.showAdvancedConfRow || this.showAdvancedConfRow.close();
|
|
3647
3645
|
},
|
|
3646
|
+
schemaChange() {
|
|
3647
|
+
this.$emit("input", this.getData());
|
|
3648
|
+
},
|
|
3648
3649
|
validate() {
|
|
3649
3650
|
return this.rawList.every((t) => t.prop !== void 0);
|
|
3650
3651
|
},
|
|
@@ -3674,7 +3675,7 @@ var Ku = function() {
|
|
|
3674
3675
|
width: i.width + "px",
|
|
3675
3676
|
...a === 0 && { paddingLeft: r.__state.level * 20 + "px" }
|
|
3676
3677
|
} }, [i.component ? n(i.component, e._b({ tag: "component", attrs: { "is-root": a === 0 && r.__state.isRoot, "is-tag": a === 0 && r.__state.virtualArrayItems, "is-disabled": i.bind && i.bind.virtualArrayItemsDisabled && r.__state.virtualArrayItems, row: r }, on: { input: function(o) {
|
|
3677
|
-
return e.handleInput(r);
|
|
3678
|
+
return e.handleInput(r, i.prop);
|
|
3678
3679
|
} }, model: { value: r[i.prop], callback: function(o) {
|
|
3679
3680
|
e.$set(r, i.prop, o);
|
|
3680
3681
|
}, expression: "item[m.prop]" } }, "component", i.bind, !1)) : n("span", [e._v(e._s(r[i.prop]))])], 1);
|
package/lib/style.scss
CHANGED
|
@@ -11,71 +11,6 @@ $--color-border-base: #DCDFE6 !default;
|
|
|
11
11
|
$--color-border-light: #E4E7ED !default;
|
|
12
12
|
$--color-border-lighter: #EBEEF5 !default;
|
|
13
13
|
$--color-border-extralight: #F2F6FC !default;
|
|
14
|
-
.ea-button-tooltip + .ea-button-tooltip {
|
|
15
|
-
margin-left: 10px;
|
|
16
|
-
}
|
|
17
|
-
td {
|
|
18
|
-
.ea-button-tooltip + .ea-button-tooltip {
|
|
19
|
-
margin-left: 4px;
|
|
20
|
-
&.text {
|
|
21
|
-
margin-left: 10px;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
.el-button [class*="el-icon-"] + span {
|
|
25
|
-
margin-left: 2px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.el-button.ea-button.mini-rect-btn {
|
|
30
|
-
padding: 7px;
|
|
31
|
-
border: 0;
|
|
32
|
-
& [class^="design-"] {
|
|
33
|
-
margin-right: 0;
|
|
34
|
-
}
|
|
35
|
-
&:not(.is-disabled) {
|
|
36
|
-
&.primary {
|
|
37
|
-
background-color: rgba($--color-primary, .15);
|
|
38
|
-
color: $--color-primary;
|
|
39
|
-
&:hover,&:focus {
|
|
40
|
-
background-color: $--color-primary;
|
|
41
|
-
i { color: #fff }
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
&.success {
|
|
45
|
-
background-color: rgba($--color-success, .15);
|
|
46
|
-
color: $--color-success;
|
|
47
|
-
&:hover,&:focus {
|
|
48
|
-
background-color: $--color-success;
|
|
49
|
-
i { color: #fff }
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
&.info {
|
|
53
|
-
background-color: rgba($--color-info, .15);
|
|
54
|
-
color: $--color-info;
|
|
55
|
-
&:hover,&:focus {
|
|
56
|
-
background-color: $--color-info;
|
|
57
|
-
i { color: #fff }
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
&.warning {
|
|
61
|
-
background-color: rgba($--color-warning, .15);
|
|
62
|
-
color: $--color-warning;
|
|
63
|
-
&:hover,&:focus {
|
|
64
|
-
background-color: $--color-warning;
|
|
65
|
-
i { color: #fff }
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
&.danger {
|
|
69
|
-
background-color: rgba($--color-danger, .15);
|
|
70
|
-
color: $--color-danger;
|
|
71
|
-
&:hover,&:focus {
|
|
72
|
-
background-color: $--color-danger;
|
|
73
|
-
i { color: #fff }
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
14
|
.ea-select {
|
|
80
15
|
display: inline-block;
|
|
81
16
|
position: relative;
|
|
@@ -223,6 +158,71 @@ td {
|
|
|
223
158
|
transform: scaleY(0);
|
|
224
159
|
}
|
|
225
160
|
|
|
161
|
+
.ea-button-tooltip + .ea-button-tooltip {
|
|
162
|
+
margin-left: 10px;
|
|
163
|
+
}
|
|
164
|
+
td {
|
|
165
|
+
.ea-button-tooltip + .ea-button-tooltip {
|
|
166
|
+
margin-left: 4px;
|
|
167
|
+
&.text {
|
|
168
|
+
margin-left: 10px;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
.el-button [class*="el-icon-"] + span {
|
|
172
|
+
margin-left: 2px;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.el-button.ea-button.mini-rect-btn {
|
|
177
|
+
padding: 7px;
|
|
178
|
+
border: 0;
|
|
179
|
+
& [class^="design-"] {
|
|
180
|
+
margin-right: 0;
|
|
181
|
+
}
|
|
182
|
+
&:not(.is-disabled) {
|
|
183
|
+
&.primary {
|
|
184
|
+
background-color: rgba($--color-primary, .15);
|
|
185
|
+
color: $--color-primary;
|
|
186
|
+
&:hover,&:focus {
|
|
187
|
+
background-color: $--color-primary;
|
|
188
|
+
i { color: #fff }
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
&.success {
|
|
192
|
+
background-color: rgba($--color-success, .15);
|
|
193
|
+
color: $--color-success;
|
|
194
|
+
&:hover,&:focus {
|
|
195
|
+
background-color: $--color-success;
|
|
196
|
+
i { color: #fff }
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
&.info {
|
|
200
|
+
background-color: rgba($--color-info, .15);
|
|
201
|
+
color: $--color-info;
|
|
202
|
+
&:hover,&:focus {
|
|
203
|
+
background-color: $--color-info;
|
|
204
|
+
i { color: #fff }
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
&.warning {
|
|
208
|
+
background-color: rgba($--color-warning, .15);
|
|
209
|
+
color: $--color-warning;
|
|
210
|
+
&:hover,&:focus {
|
|
211
|
+
background-color: $--color-warning;
|
|
212
|
+
i { color: #fff }
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
&.danger {
|
|
216
|
+
background-color: rgba($--color-danger, .15);
|
|
217
|
+
color: $--color-danger;
|
|
218
|
+
&:hover,&:focus {
|
|
219
|
+
background-color: $--color-danger;
|
|
220
|
+
i { color: #fff }
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
226
|
.el-dialog.ea-modal {
|
|
227
227
|
&.is-closing {
|
|
228
228
|
margin: 0 0 50px !important;
|
|
@@ -241,14 +241,6 @@ td {
|
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
.ea-list {
|
|
245
|
-
.loading-text {
|
|
246
|
-
color: $--color-secondary-text;
|
|
247
|
-
text-align: center;
|
|
248
|
-
font-size: inherit;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
244
|
.ea-split-container {
|
|
253
245
|
display: flex;
|
|
254
246
|
&.is-down {
|
|
@@ -286,8 +278,12 @@ td {
|
|
|
286
278
|
}
|
|
287
279
|
}
|
|
288
280
|
|
|
289
|
-
.ea-
|
|
290
|
-
text
|
|
281
|
+
.ea-list {
|
|
282
|
+
.loading-text {
|
|
283
|
+
color: $--color-secondary-text;
|
|
284
|
+
text-align: center;
|
|
285
|
+
font-size: inherit;
|
|
286
|
+
}
|
|
291
287
|
}
|
|
292
288
|
|
|
293
289
|
.ea-tree {
|
|
@@ -302,6 +298,10 @@ td {
|
|
|
302
298
|
}
|
|
303
299
|
}
|
|
304
300
|
|
|
301
|
+
.ea-number .el-input__inner {
|
|
302
|
+
text-align: left;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
305
|
.ea-desc {
|
|
306
306
|
font-size: 14px;
|
|
307
307
|
&__title {
|
|
@@ -566,6 +566,18 @@ td {
|
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
+
.conf-header {
|
|
570
|
+
border-bottom: 1px solid #DDD;
|
|
571
|
+
padding-bottom: 10px;
|
|
572
|
+
margin-bottom: 10px;
|
|
573
|
+
}
|
|
574
|
+
.conf-body {
|
|
575
|
+
width: 300px;
|
|
576
|
+
}
|
|
577
|
+
.dense-much .el-form-item {
|
|
578
|
+
margin-bottom: 8px !important;
|
|
579
|
+
}
|
|
580
|
+
|
|
569
581
|
.ea-table-modal {
|
|
570
582
|
overflow: visible;
|
|
571
583
|
right: unset;
|
|
@@ -620,16 +632,36 @@ td {
|
|
|
620
632
|
}
|
|
621
633
|
}
|
|
622
634
|
|
|
623
|
-
.
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
635
|
+
.ea-switch-mini {
|
|
636
|
+
.el-switch__core {
|
|
637
|
+
width: 30px !important;
|
|
638
|
+
height: 16px;
|
|
639
|
+
&::after {
|
|
640
|
+
width: 12px;
|
|
641
|
+
height: 12px;
|
|
642
|
+
left: 2px;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
&.is-checked .el-switch__core::after {
|
|
646
|
+
margin-left: -13px;
|
|
647
|
+
}
|
|
627
648
|
}
|
|
628
|
-
|
|
629
|
-
|
|
649
|
+
|
|
650
|
+
.ea-form .el-form-item__content {
|
|
651
|
+
& > .el-input-number,
|
|
652
|
+
& > .el-input,
|
|
653
|
+
& > .ea-select,
|
|
654
|
+
& > .el-select {
|
|
655
|
+
width: 100%;
|
|
656
|
+
}
|
|
630
657
|
}
|
|
631
|
-
.
|
|
632
|
-
|
|
658
|
+
.ea-form .el-form-item.hidden-label {
|
|
659
|
+
> .el-form-item__label {
|
|
660
|
+
display: none;
|
|
661
|
+
}
|
|
662
|
+
> .el-form-item__content {
|
|
663
|
+
width: 100%;
|
|
664
|
+
}
|
|
633
665
|
}
|
|
634
666
|
|
|
635
667
|
.ea-select-container {
|
|
@@ -671,35 +703,3 @@ td {
|
|
|
671
703
|
}
|
|
672
704
|
}
|
|
673
705
|
}
|
|
674
|
-
|
|
675
|
-
.ea-form .el-form-item__content {
|
|
676
|
-
& > .el-input-number,
|
|
677
|
-
& > .el-input,
|
|
678
|
-
& > .ea-select,
|
|
679
|
-
& > .el-select {
|
|
680
|
-
width: 100%;
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
.ea-form .el-form-item.hidden-label {
|
|
684
|
-
> .el-form-item__label {
|
|
685
|
-
display: none;
|
|
686
|
-
}
|
|
687
|
-
> .el-form-item__content {
|
|
688
|
-
width: 100%;
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
.ea-switch-mini {
|
|
693
|
-
.el-switch__core {
|
|
694
|
-
width: 30px !important;
|
|
695
|
-
height: 16px;
|
|
696
|
-
&::after {
|
|
697
|
-
width: 12px;
|
|
698
|
-
height: 12px;
|
|
699
|
-
left: 2px;
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
&.is-checked .el-switch__core::after {
|
|
703
|
-
margin-left: -13px;
|
|
704
|
-
}
|
|
705
|
-
}
|