lh-ui-next 0.0.54 → 0.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/lh-ui-next.mjs +62 -57
- package/lib/lh-ui-next.umd.js +1 -1
- package/package.json +1 -1
- package/static/css/compact/compact.less +9 -1
- package/static/css/package/button.less +20 -0
- package/static/css/package/tab.less +13 -15
- package/static/css/theme-compact-blue/main.css +1 -1
- package/static/css/theme-loose-blue/main.css +1 -1
- package/static/css/theme-loose-orange/main.css +1 -1
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
alpha version is use to self-test; beta version is use to public survey.for example:
|
|
5
5
|
1.0.0-alpha.1
|
|
6
6
|
1.0.0-test.2
|
|
7
|
-
## Official version : "0.0.
|
|
8
|
-
## test version : "0.0.
|
|
7
|
+
## Official version : "0.0.55",
|
|
8
|
+
## test version : "0.0.55",
|
|
9
9
|
## npmmirror
|
|
10
10
|
When cnpm sync execution is unsuccessful,you can go the website(http://www.npmmirror.com/package/lh-ui-next) and press sync button to
|
|
11
11
|
manual trigger the sync event
|
package/lib/lh-ui-next.mjs
CHANGED
|
@@ -17,6 +17,10 @@ const k = (e, t) => {
|
|
|
17
17
|
type: String,
|
|
18
18
|
default: "primary"
|
|
19
19
|
},
|
|
20
|
+
categoryTextType: {
|
|
21
|
+
type: [String, Number],
|
|
22
|
+
default: "1"
|
|
23
|
+
},
|
|
20
24
|
size: {
|
|
21
25
|
type: String,
|
|
22
26
|
default: ""
|
|
@@ -35,8 +39,11 @@ const k = (e, t) => {
|
|
|
35
39
|
}
|
|
36
40
|
},
|
|
37
41
|
methods: {
|
|
38
|
-
|
|
39
|
-
return this.category
|
|
42
|
+
categoryClass() {
|
|
43
|
+
return "lh-button-" + this.category;
|
|
44
|
+
},
|
|
45
|
+
categoryTextClass() {
|
|
46
|
+
return "lh-button-text-type" + this.categoryTextType;
|
|
40
47
|
},
|
|
41
48
|
handleClick(e) {
|
|
42
49
|
this.$emit("click", e);
|
|
@@ -45,15 +52,13 @@ const k = (e, t) => {
|
|
|
45
52
|
}, ft = ["disabled", "type"];
|
|
46
53
|
function mt(e, t, i, s, l, n) {
|
|
47
54
|
return o(), c("button", {
|
|
48
|
-
class: f(["lh-button",
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
disabled:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"has-icon": i.prefixIcon || i.suffixIcon
|
|
56
|
-
}]),
|
|
55
|
+
class: f(["lh-button", [
|
|
56
|
+
n.categoryClass(),
|
|
57
|
+
n.categoryTextClass(),
|
|
58
|
+
i.size,
|
|
59
|
+
i.disabled ? "disabled" : "",
|
|
60
|
+
i.prefixIcon || i.suffixIcon ? "has-icon" : ""
|
|
61
|
+
]]),
|
|
57
62
|
disabled: i.disabled,
|
|
58
63
|
onClick: t[0] || (t[0] = (...a) => n.handleClick && n.handleClick(...a)),
|
|
59
64
|
type: i.type
|
|
@@ -666,7 +671,7 @@ function Lt(e, t, i, s, l, n) {
|
|
|
666
671
|
])
|
|
667
672
|
], 8, Tt);
|
|
668
673
|
}
|
|
669
|
-
const
|
|
674
|
+
const J = /* @__PURE__ */ k(St, [["render", Lt]]), Pt = {
|
|
670
675
|
name: "lhScrollbar",
|
|
671
676
|
componentName: "lhScrollbar",
|
|
672
677
|
props: {
|
|
@@ -892,7 +897,7 @@ const Z = /* @__PURE__ */ k(Pt, [["render", Vt]]), Nt = {
|
|
|
892
897
|
name: "lhSelect",
|
|
893
898
|
componentName: "lhSelect",
|
|
894
899
|
components: {
|
|
895
|
-
lhPopover:
|
|
900
|
+
lhPopover: J,
|
|
896
901
|
lhInput: Y,
|
|
897
902
|
lhScrollbar: Z
|
|
898
903
|
},
|
|
@@ -1300,7 +1305,7 @@ function Kt(e, t, i, s, l, n) {
|
|
|
1300
1305
|
_: 3
|
|
1301
1306
|
}, 8, ["width", "modelValue", "zIndex", "appendToBody", "onHide"]);
|
|
1302
1307
|
}
|
|
1303
|
-
const Q = /* @__PURE__ */ k(Nt, [["render", Kt]]),
|
|
1308
|
+
const Q = /* @__PURE__ */ k(Nt, [["render", Kt]]), Jt = {
|
|
1304
1309
|
name: "lhPagination",
|
|
1305
1310
|
componentName: "lhPagination",
|
|
1306
1311
|
emits: ["current-change", "prev-click", "next-click", "size-change"],
|
|
@@ -1498,7 +1503,7 @@ const Q = /* @__PURE__ */ k(Nt, [["render", Kt]]), qt = {
|
|
|
1498
1503
|
},
|
|
1499
1504
|
mounted() {
|
|
1500
1505
|
}
|
|
1501
|
-
},
|
|
1506
|
+
}, qt = {
|
|
1502
1507
|
style: { float: "left" },
|
|
1503
1508
|
class: "layoutLeft"
|
|
1504
1509
|
}, Xt = { class: "lh-pagination__total" }, Gt = ["title"], Zt = { key: 0 }, Qt = { key: 1 }, $t = ["onClick"], ei = /* @__PURE__ */ d("i", {
|
|
@@ -1530,7 +1535,7 @@ function zi(e, t, i, s, l, n) {
|
|
|
1530
1535
|
["lh-pagination--bg"]: i.background
|
|
1531
1536
|
}])
|
|
1532
1537
|
}, [
|
|
1533
|
-
d("div",
|
|
1538
|
+
d("div", qt, [
|
|
1534
1539
|
(o(!0), c(b, null, y(i.layout.split(","), (r) => (o(), c(b, null, [
|
|
1535
1540
|
v(d("span", Xt, [
|
|
1536
1541
|
L(e.$slots, "total", {}, () => [
|
|
@@ -1822,7 +1827,7 @@ function zi(e, t, i, s, l, n) {
|
|
|
1822
1827
|
])
|
|
1823
1828
|
], 2)) : p("", !0);
|
|
1824
1829
|
}
|
|
1825
|
-
const le = /* @__PURE__ */ k(
|
|
1830
|
+
const le = /* @__PURE__ */ k(Jt, [["render", zi]]);
|
|
1826
1831
|
le.install = function(e) {
|
|
1827
1832
|
e.component(le.name, le);
|
|
1828
1833
|
};
|
|
@@ -1862,7 +1867,7 @@ function K(e, t) {
|
|
|
1862
1867
|
}
|
|
1863
1868
|
e.classList || e.setAttribute("class", i);
|
|
1864
1869
|
}
|
|
1865
|
-
function
|
|
1870
|
+
function q(e, t) {
|
|
1866
1871
|
if (!e || !t)
|
|
1867
1872
|
return;
|
|
1868
1873
|
const i = t.split(" ");
|
|
@@ -1903,7 +1908,7 @@ const W = Di < 9 ? function(e, t) {
|
|
|
1903
1908
|
}
|
|
1904
1909
|
};
|
|
1905
1910
|
let Be = !1, Ke = !1, ke;
|
|
1906
|
-
const
|
|
1911
|
+
const Je = function() {
|
|
1907
1912
|
let e = V.modalDom;
|
|
1908
1913
|
return e ? Be = !0 : (Be = !1, e = document.createElement("div"), V.modalDom = e, e.addEventListener("touchmove", function(t) {
|
|
1909
1914
|
t.preventDefault(), t.stopPropagation();
|
|
@@ -1940,17 +1945,17 @@ const qe = function() {
|
|
|
1940
1945
|
for (let r = 0, h = n.length; r < h; r++)
|
|
1941
1946
|
if (n[r].id === e)
|
|
1942
1947
|
return;
|
|
1943
|
-
const a =
|
|
1948
|
+
const a = Je();
|
|
1944
1949
|
K(a, "v-modal"), this.modalFade && !Be && K(a, "v-modal-enter"), s && s.trim().split(/\s+/).forEach((h) => K(a, h)), setTimeout(() => {
|
|
1945
|
-
|
|
1950
|
+
q(a, "v-modal-enter");
|
|
1946
1951
|
}, 200), i && i.parentNode && i.parentNode.nodeType !== 11 ? i.parentNode.appendChild(a) : document.body.appendChild(a), t && (a.style.zIndex = t), a.tabIndex = 0, a.style.display = "", this.modalStack.push({ id: e, zIndex: t, modalClass: s });
|
|
1947
1952
|
},
|
|
1948
1953
|
closeModal: function(e) {
|
|
1949
|
-
const t = this.modalStack, i =
|
|
1954
|
+
const t = this.modalStack, i = Je();
|
|
1950
1955
|
if (t.length > 0) {
|
|
1951
1956
|
const s = t[t.length - 1];
|
|
1952
1957
|
if (s.id === e)
|
|
1953
|
-
s.modalClass && s.modalClass.trim().split(/\s+/).forEach((n) =>
|
|
1958
|
+
s.modalClass && s.modalClass.trim().split(/\s+/).forEach((n) => q(i, n)), t.pop(), t.length > 0 && (i.style.zIndex = t[t.length - 1].zIndex);
|
|
1954
1959
|
else
|
|
1955
1960
|
for (let l = t.length - 1; l >= 0; l--)
|
|
1956
1961
|
if (t[l].id === e) {
|
|
@@ -1959,7 +1964,7 @@ const qe = function() {
|
|
|
1959
1964
|
}
|
|
1960
1965
|
}
|
|
1961
1966
|
t.length === 0 && (this.modalFade && K(i, "v-modal-leave"), setTimeout(() => {
|
|
1962
|
-
t.length === 0 && (i.parentNode && i.parentNode.removeChild(i), i.style.display = "none", V.modalDom = void 0),
|
|
1967
|
+
t.length === 0 && (i.parentNode && i.parentNode.removeChild(i), i.style.display = "none", V.modalDom = void 0), q(i, "v-modal-leave");
|
|
1963
1968
|
}, 200));
|
|
1964
1969
|
}
|
|
1965
1970
|
};
|
|
@@ -2101,7 +2106,7 @@ const Wi = {
|
|
|
2101
2106
|
V.closeModal(this._popupId), this._closing = !1;
|
|
2102
2107
|
},
|
|
2103
2108
|
restoreBodyStyle() {
|
|
2104
|
-
this.modal && this.withoutHiddenClass && (document.body.style.paddingRight = this.bodyPaddingRight,
|
|
2109
|
+
this.modal && this.withoutHiddenClass && (document.body.style.paddingRight = this.bodyPaddingRight, q(
|
|
2105
2110
|
document.body,
|
|
2106
2111
|
"lh-popup-parent--hidden"
|
|
2107
2112
|
)), this.withoutHiddenClass = !0;
|
|
@@ -2311,7 +2316,7 @@ const Yi = {
|
|
|
2311
2316
|
t === !0 && this.$emit("update:indeterminate", !1), this.$emit("update:modelValue", t), this.$emit("check-change", t);
|
|
2312
2317
|
}
|
|
2313
2318
|
}
|
|
2314
|
-
}, Ki = { class: "lh-checkbox-outbox" },
|
|
2319
|
+
}, Ki = { class: "lh-checkbox-outbox" }, Ji = ["disabled"], qi = { class: "lh-checkbox-text" };
|
|
2315
2320
|
function Xi(e, t, i, s, l, n) {
|
|
2316
2321
|
return o(), c("label", {
|
|
2317
2322
|
class: f(["lh-checkbox", [i.disabled ? "lh-checkbox-disabled" : "", l.myValue ? "lh-checkbox-checked" : "", `lh-checkbox-${i.size}`]])
|
|
@@ -2326,11 +2331,11 @@ function Xi(e, t, i, s, l, n) {
|
|
|
2326
2331
|
disabled: i.disabled,
|
|
2327
2332
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => l.myValue = a),
|
|
2328
2333
|
onChange: t[1] || (t[1] = (...a) => n.changed && n.changed(...a))
|
|
2329
|
-
}, null, 40,
|
|
2334
|
+
}, null, 40, Ji), [
|
|
2330
2335
|
[Ge, l.myValue]
|
|
2331
2336
|
])
|
|
2332
2337
|
]),
|
|
2333
|
-
d("span",
|
|
2338
|
+
d("span", qi, [
|
|
2334
2339
|
L(e.$slots, "default")
|
|
2335
2340
|
])
|
|
2336
2341
|
], 2);
|
|
@@ -2973,7 +2978,7 @@ const Dl = /* @__PURE__ */ k(Tl, [["render", Nl]]), Ml = {
|
|
|
2973
2978
|
},
|
|
2974
2979
|
components: {
|
|
2975
2980
|
lhInput: Y,
|
|
2976
|
-
lhPopover:
|
|
2981
|
+
lhPopover: J,
|
|
2977
2982
|
lhTree: $,
|
|
2978
2983
|
lhButton: j,
|
|
2979
2984
|
treeResizeWapper: Dl
|
|
@@ -3312,11 +3317,11 @@ const Ol = {
|
|
|
3312
3317
|
}
|
|
3313
3318
|
}, Al = ["onClick"], Ul = ["onClick"], jl = ["onClick"], Yl = ["onClick"], Kl = {
|
|
3314
3319
|
key: 0,
|
|
3315
|
-
class: "
|
|
3316
|
-
},
|
|
3320
|
+
class: "more-wrap"
|
|
3321
|
+
}, Jl = /* @__PURE__ */ d("span", { class: "more" }, [
|
|
3317
3322
|
/* @__PURE__ */ I("\u66F4\u591A"),
|
|
3318
3323
|
/* @__PURE__ */ d("i", { class: "dropdown-icon lh-ui-font-component icon_component_arrow_down" })
|
|
3319
|
-
], -1),
|
|
3324
|
+
], -1), ql = { class: "lh-scroll-common" }, Xl = ["onClick"], Gl = ["title"], Zl = ["onClick"], Ql = /* @__PURE__ */ d("div", { style: { clear: "both" } }, null, -1);
|
|
3320
3325
|
function $l(e, t, i, s, l, n) {
|
|
3321
3326
|
return o(), c("div", {
|
|
3322
3327
|
class: f(["lh-tab", i.hasBorder ? "with-border" : ""])
|
|
@@ -3359,7 +3364,7 @@ function $l(e, t, i, s, l, n) {
|
|
|
3359
3364
|
(o(!0), c(b, null, y(l.myTabList, (a, r) => (o(), c(b, null, [
|
|
3360
3365
|
a.isFold ? p("", !0) : (o(), c("span", {
|
|
3361
3366
|
key: 0,
|
|
3362
|
-
class: f(["lh-tab-content
|
|
3367
|
+
class: f(["lh-tab-content", { active: n.isActive(r), disabled: a.disabled }]),
|
|
3363
3368
|
ref_for: !0,
|
|
3364
3369
|
ref: "n4Item",
|
|
3365
3370
|
style: C({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
@@ -3367,19 +3372,19 @@ function $l(e, t, i, s, l, n) {
|
|
|
3367
3372
|
}, g(a.name), 15, Yl))
|
|
3368
3373
|
], 64))), 256)),
|
|
3369
3374
|
l.isFold ? (o(), c("span", Kl, [
|
|
3370
|
-
|
|
3375
|
+
Jl,
|
|
3371
3376
|
d("div", {
|
|
3372
3377
|
class: "drop-down-wrap",
|
|
3373
3378
|
style: C(i.dropWidth ? `width:${i.dropWidth}px;` : "width:auto;")
|
|
3374
3379
|
}, [
|
|
3375
|
-
d("ul",
|
|
3380
|
+
d("ul", ql, [
|
|
3376
3381
|
(o(!0), c(b, null, y(l.myTabList, (a, r) => (o(), c(b, null, [
|
|
3377
3382
|
a.isFold && !a.nodisplay ? (o(), c("li", {
|
|
3378
3383
|
key: 0,
|
|
3379
3384
|
onClick: (h) => n.tabswitch(r)
|
|
3380
3385
|
}, [
|
|
3381
3386
|
d("span", {
|
|
3382
|
-
class: f(["
|
|
3387
|
+
class: f(["li-span", { active: n.isActive(r), disabled: a.disabled }]),
|
|
3383
3388
|
title: a.name,
|
|
3384
3389
|
style: C({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline" })
|
|
3385
3390
|
}, g(a.name), 15, Gl)
|
|
@@ -5003,7 +5008,7 @@ const Qe = {
|
|
|
5003
5008
|
/* @__PURE__ */ d("div", null, "\u5468\u4E94"),
|
|
5004
5009
|
/* @__PURE__ */ d("div", null, "\u5468\u516D"),
|
|
5005
5010
|
/* @__PURE__ */ d("div", null, "\u5468\u65E5")
|
|
5006
|
-
], -1), Yn = { class: "flex-wapper" }, Kn = { class: "flex-rows" },
|
|
5011
|
+
], -1), Yn = { class: "flex-wapper" }, Kn = { class: "flex-rows" }, Jn = { class: "flex-columns" }, qn = ["onClick"], Xn = { class: "info-content" };
|
|
5007
5012
|
function Gn(e, t, i, s, l, n) {
|
|
5008
5013
|
return o(), c("div", Wn, [
|
|
5009
5014
|
i.layoutType == "table" ? (o(), c("table", Fn, [
|
|
@@ -5030,14 +5035,14 @@ function Gn(e, t, i, s, l, n) {
|
|
|
5030
5035
|
jn,
|
|
5031
5036
|
d("div", Yn, [
|
|
5032
5037
|
(o(!0), c(b, null, y(e.calendarItems, (a) => (o(), c("div", Kn, [
|
|
5033
|
-
(o(!0), c(b, null, y(a, (r) => (o(), c("div",
|
|
5038
|
+
(o(!0), c(b, null, y(a, (r) => (o(), c("div", Jn, [
|
|
5034
5039
|
d("div", {
|
|
5035
5040
|
class: f(["info", { disabled: r.disabled }])
|
|
5036
5041
|
}, [
|
|
5037
5042
|
d("span", {
|
|
5038
5043
|
onClick: (h) => e.dateClick(r),
|
|
5039
5044
|
class: f(["info-header", { isToday: r.dayDescription == null ? !1 : r.dayDescription.isToday, active: r.dayDescription && r.dayDescription.date === e.selectDate }])
|
|
5040
|
-
}, g(r.day) + " (" + g(r.dayDescription == null ? "" : r.dayDescription.lunarFestival || r.dayDescription.festival || r.dayDescription.IMonthCn + r.dayDescription.IDayCn) + ") ", 11,
|
|
5045
|
+
}, g(r.day) + " (" + g(r.dayDescription == null ? "" : r.dayDescription.lunarFestival || r.dayDescription.festival || r.dayDescription.IMonthCn + r.dayDescription.IDayCn) + ") ", 11, qn),
|
|
5041
5046
|
d("div", Xn, [
|
|
5042
5047
|
L(e.$slots, "infoContent", { data: r })
|
|
5043
5048
|
])
|
|
@@ -5153,8 +5158,8 @@ const pe = /* @__PURE__ */ k(Zn, [["render", $n]]);
|
|
|
5153
5158
|
pe.install = function(e) {
|
|
5154
5159
|
e.component(pe.name, pe);
|
|
5155
5160
|
};
|
|
5156
|
-
|
|
5157
|
-
e.component(
|
|
5161
|
+
J.install = function(e) {
|
|
5162
|
+
e.component(J.name, J);
|
|
5158
5163
|
};
|
|
5159
5164
|
const es = {
|
|
5160
5165
|
name: "lhDateCommon",
|
|
@@ -5471,7 +5476,7 @@ const Ss = {
|
|
|
5471
5476
|
},
|
|
5472
5477
|
components: {
|
|
5473
5478
|
lhInput: Y,
|
|
5474
|
-
lhPopover:
|
|
5479
|
+
lhPopover: J
|
|
5475
5480
|
},
|
|
5476
5481
|
data() {
|
|
5477
5482
|
return {
|
|
@@ -5733,7 +5738,7 @@ const zs = {
|
|
|
5733
5738
|
},
|
|
5734
5739
|
components: {
|
|
5735
5740
|
lhInput: Y,
|
|
5736
|
-
lhPopover:
|
|
5741
|
+
lhPopover: J,
|
|
5737
5742
|
lhButton: j
|
|
5738
5743
|
},
|
|
5739
5744
|
data() {
|
|
@@ -6309,7 +6314,7 @@ const As = {
|
|
|
6309
6314
|
}, js = {
|
|
6310
6315
|
key: 0,
|
|
6311
6316
|
class: "upload-ul-img"
|
|
6312
|
-
}, Ys = { class: "upload-li-img" }, Ks = ["src"],
|
|
6317
|
+
}, Ys = { class: "upload-li-img" }, Ks = ["src"], Js = ["onClick", "title"], qs = ["onClick"], Xs = /* @__PURE__ */ d("div", { style: { clear: "both" } }, null, -1), Gs = {
|
|
6313
6318
|
key: 0,
|
|
6314
6319
|
class: "upload-li-space"
|
|
6315
6320
|
}, Zs = {
|
|
@@ -6368,12 +6373,12 @@ function da(e, t, i, s, l, n) {
|
|
|
6368
6373
|
d("div", {
|
|
6369
6374
|
onClick: (u) => n.downLoad(r),
|
|
6370
6375
|
title: r.response.data.fileName
|
|
6371
|
-
}, g(n.rImgName(r.response.data.fileName)), 9,
|
|
6376
|
+
}, g(n.rImgName(r.response.data.fileName)), 9, Js),
|
|
6372
6377
|
i.showType == "edit" ? (o(), c("i", {
|
|
6373
6378
|
key: 0,
|
|
6374
6379
|
onClick: U((u) => n.removeSingle(r.response.data.fileId, h), ["stop"]),
|
|
6375
6380
|
class: "lh-ui-font-component icon_component_delete pull-right"
|
|
6376
|
-
}, null, 8,
|
|
6381
|
+
}, null, 8, qs)) : p("", !0)
|
|
6377
6382
|
]))), 256)),
|
|
6378
6383
|
Xs
|
|
6379
6384
|
])) : p("", !0)
|
|
@@ -6453,7 +6458,7 @@ const ua = {
|
|
|
6453
6458
|
componentName: "lhDatePicker",
|
|
6454
6459
|
components: {
|
|
6455
6460
|
lhDateCommon: ee,
|
|
6456
|
-
lhPopover:
|
|
6461
|
+
lhPopover: J,
|
|
6457
6462
|
lhInput: Y
|
|
6458
6463
|
},
|
|
6459
6464
|
emits: ["update:modelValue"],
|
|
@@ -7143,7 +7148,7 @@ function ja(e, t, i, s, l, n) {
|
|
|
7143
7148
|
}
|
|
7144
7149
|
const et = /* @__PURE__ */ k(Ea, [["render", ja]]), De = (e, t) => {
|
|
7145
7150
|
t.value ? Te(() => {
|
|
7146
|
-
t.modifiers.fullscreen ? (e.originalPosition = W(document.body, "position"), e.originalOverflow = W(document.body, "overflow"), e.maskStyle.zIndex = "3000", K(e.mask, "is-fullscreen"), Me(document.body, e, t)) : (
|
|
7151
|
+
t.modifiers.fullscreen ? (e.originalPosition = W(document.body, "position"), e.originalOverflow = W(document.body, "overflow"), e.maskStyle.zIndex = "3000", K(e.mask, "is-fullscreen"), Me(document.body, e, t)) : (q(e.mask, "is-fullscreen"), t.modifiers.body ? (e.originalPosition = W(document.body, "position"), ["top", "left"].forEach((i) => {
|
|
7147
7152
|
const s = i === "top" ? "scrollTop" : "scrollLeft";
|
|
7148
7153
|
e.maskStyle[i] = e.getBoundingClientRect()[i] + document.body[s] + document.documentElement[s] - parseInt(W(document.body, `margin-${i}`), 10) + "px";
|
|
7149
7154
|
}), ["height", "width"].forEach((i) => {
|
|
@@ -7155,7 +7160,7 @@ const et = /* @__PURE__ */ k(Ea, [["render", ja]]), De = (e, t) => {
|
|
|
7155
7160
|
e.domVisible = !1;
|
|
7156
7161
|
const i = t.modifiers.fullscreen || t.modifiers.body ? document.body : e;
|
|
7157
7162
|
e.instance.visible = !1, e.instance.hiding = !1, setTimeout(() => {
|
|
7158
|
-
|
|
7163
|
+
q(i, "lh-loading-parent--relative"), q(i, "lh-loading-parent--hidden");
|
|
7159
7164
|
}, 500);
|
|
7160
7165
|
}, 100), e.instance.hiding = !0);
|
|
7161
7166
|
}, Me = (e, t, i) => {
|
|
@@ -7190,13 +7195,13 @@ const Ka = {
|
|
|
7190
7195
|
lock: !1,
|
|
7191
7196
|
customClass: ""
|
|
7192
7197
|
};
|
|
7193
|
-
let Se,
|
|
7198
|
+
let Se, Ja = function() {
|
|
7194
7199
|
this.fullscreen && (Se = void 0), setTimeout(() => {
|
|
7195
7200
|
const e = this.fullscreen || this.body ? document.body : this.target;
|
|
7196
|
-
|
|
7201
|
+
q(e, "lh-loading-parent--relative"), q(e, "lh-loading-parent--hidden"), this.$el && this.$el.parentNode && this.$el.parentNode.removeChild(this.$el);
|
|
7197
7202
|
}, 300), this.visible = !1;
|
|
7198
7203
|
};
|
|
7199
|
-
const
|
|
7204
|
+
const qa = (e, t, i) => {
|
|
7200
7205
|
let s = {};
|
|
7201
7206
|
e.fullscreen ? (i.originalPosition = W(document.body, "position"), i.originalOverflow = W(document.body, "overflow"), s.zIndex = 3e3) : e.body ? (i.originalPosition = W(document.body, "position"), ["top", "left"].forEach((l) => {
|
|
7202
7207
|
let n = l === "top" ? "scrollTop" : "scrollLeft";
|
|
@@ -7210,10 +7215,10 @@ const Ja = (e, t, i) => {
|
|
|
7210
7215
|
if (e = Ze({}, Ka, e), typeof e.target == "string" && (e.target = document.querySelector(e.target)), e.target = e.target || document.body, e.target !== document.body ? e.fullscreen = !1 : e.body = !0, e.fullscreen && Se)
|
|
7211
7216
|
return Se;
|
|
7212
7217
|
let t = e.body ? document.body : e.target, s = Le(et).mount(document.createElement("div"));
|
|
7213
|
-
return s.close =
|
|
7218
|
+
return s.close = Ja, s.originalPosition = "", s.originalOverflow = "", qa(e, t, s), s.originalPosition !== "absolute" && s.originalPosition !== "fixed" && K(t, "lh-loading-parent--relative"), e.fullscreen && e.lock && K(t, "lh-loading-parent--hidden"), t.appendChild(s.$el), Te(() => {
|
|
7214
7219
|
s.visible = !0;
|
|
7215
7220
|
}), e.fullscreen && (Se = s), e.text && s.setText(e.text), s;
|
|
7216
|
-
},
|
|
7221
|
+
}, qe = {
|
|
7217
7222
|
directive: Ya,
|
|
7218
7223
|
service: Xa
|
|
7219
7224
|
}, Ga = {
|
|
@@ -7398,7 +7403,7 @@ const oo = {
|
|
|
7398
7403
|
fe,
|
|
7399
7404
|
me,
|
|
7400
7405
|
pe,
|
|
7401
|
-
|
|
7406
|
+
J,
|
|
7402
7407
|
ee,
|
|
7403
7408
|
be,
|
|
7404
7409
|
ge,
|
|
@@ -7410,7 +7415,7 @@ const oo = {
|
|
|
7410
7415
|
], tt = function(e, t = {}) {
|
|
7411
7416
|
ro.map((i) => {
|
|
7412
7417
|
e.component(i.name, i);
|
|
7413
|
-
}), window.$lhMessage = E, window.$loadingDirective =
|
|
7418
|
+
}), window.$lhMessage = E, window.$loadingDirective = qe.directive, window.$loading = qe.service, window.$confirm = te.confirm, e.config.globalProperties.$lht = (i) => {
|
|
7414
7419
|
let s = [];
|
|
7415
7420
|
return t.language && t.language.locale ? s = t.lang[t.language.locale].message : s = oo, i.split(".").reduce((l, n) => {
|
|
7416
7421
|
if (l)
|
|
@@ -7450,7 +7455,7 @@ const ho = {
|
|
|
7450
7455
|
ConditionSide: fe,
|
|
7451
7456
|
Calendar: me,
|
|
7452
7457
|
WaterMark: pe,
|
|
7453
|
-
Popover:
|
|
7458
|
+
Popover: J,
|
|
7454
7459
|
DateCommon: ee,
|
|
7455
7460
|
FuzzyInput: be,
|
|
7456
7461
|
FuzzySelect: ge,
|