lh-ui-next 0.1.7-beta.22 → 0.1.7-beta.24
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 +48 -47
- package/lib/lh-ui-next.umd.js +1 -1
- package/package.json +1 -1
- package/static/css/compact/compact.less +19 -18
- package/static/css/package/dialog.less +47 -42
- 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.1.7-beta.
|
|
8
|
-
## test version : "0.1.7-beta.
|
|
7
|
+
## Official version : "0.1.7-beta.24",
|
|
8
|
+
## test version : "0.1.7-beta.24",
|
|
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as c, normalizeClass as f, createCommentVNode as m, renderSlot as L, withDirectives as x, createElementVNode as d, withModifiers as U, withKeys as Re, vModelDynamic as ht, toDisplayString as g, vModelRadio as dt, normalizeStyle as C, vShow as I, resolveDirective as Fe, resolveComponent as S, createBlock as M, withCtx as _, Fragment as b, renderList as y, createVNode as T, createTextVNode as
|
|
1
|
+
import { openBlock as o, createElementBlock as c, normalizeClass as f, createCommentVNode as m, renderSlot as L, withDirectives as x, createElementVNode as d, withModifiers as U, withKeys as Re, vModelDynamic as ht, toDisplayString as g, vModelRadio as dt, normalizeStyle as C, vShow as I, resolveDirective as Fe, resolveComponent as S, createBlock as M, withCtx as _, Fragment as b, renderList as y, createVNode as T, createTextVNode as V, vModelText as te, nextTick as Te, Transition as Le, vModelCheckbox as Ge, createApp as Ie } from "vue";
|
|
2
2
|
const k = (e, t) => {
|
|
3
3
|
const i = e.__vccOpts || e;
|
|
4
4
|
for (const [s, l] of t)
|
|
@@ -517,11 +517,12 @@ const wt = {
|
|
|
517
517
|
};
|
|
518
518
|
break;
|
|
519
519
|
}
|
|
520
|
+
let N = h < 0 ? 0 : h, D = u < 0 ? 0 : u;
|
|
520
521
|
return {
|
|
521
522
|
placementPosition: {
|
|
522
523
|
visibility: "visible",
|
|
523
|
-
top: `${
|
|
524
|
-
left: `${
|
|
524
|
+
top: `${N}px`,
|
|
525
|
+
left: `${D}px`
|
|
525
526
|
},
|
|
526
527
|
resetPlacement: p,
|
|
527
528
|
triangleIconPosition: n
|
|
@@ -1555,7 +1556,7 @@ function zi(e, t, i, s, l, n) {
|
|
|
1555
1556
|
(o(!0), c(b, null, y(i.layout.split(","), (r) => (o(), c(b, null, [
|
|
1556
1557
|
x(d("span", Xt, [
|
|
1557
1558
|
L(e.$slots, "total", {}, () => [
|
|
1558
|
-
|
|
1559
|
+
V(g(`${i.totalLeft} ${i.hasThousandBit ? n.thousandBit(i.total) : i.total} ${i.totalRight}`), 1)
|
|
1559
1560
|
])
|
|
1560
1561
|
], 512), [
|
|
1561
1562
|
[I, r.indexOf("total") > -1]
|
|
@@ -1700,7 +1701,7 @@ function zi(e, t, i, s, l, n) {
|
|
|
1700
1701
|
(o(!0), c(b, null, y(i.layoutRight.split(","), (r) => (o(), c(b, null, [
|
|
1701
1702
|
x(d("span", fi, [
|
|
1702
1703
|
L(e.$slots, "total", {}, () => [
|
|
1703
|
-
|
|
1704
|
+
V(g(`${i.totalLeft} ${i.hasThousandBit ? n.thousandBit(i.total) : i.total} ${i.totalRight}`), 1)
|
|
1704
1705
|
])
|
|
1705
1706
|
], 512), [
|
|
1706
1707
|
[I, r.indexOf("total") > -1]
|
|
@@ -3159,7 +3160,7 @@ function Hl(e, t, i, s, l, n) {
|
|
|
3159
3160
|
}, null, 8, Fl),
|
|
3160
3161
|
d("i", {
|
|
3161
3162
|
class: "lh-ui-font-component icon_component_close",
|
|
3162
|
-
onClick: t[1] || (t[1] = U((...
|
|
3163
|
+
onClick: t[1] || (t[1] = U((...N) => n.delTopItem && n.delTopItem(...N), ["stop"]))
|
|
3163
3164
|
})
|
|
3164
3165
|
], 8, Bl)) : m("", !0)
|
|
3165
3166
|
], 64))), 256)),
|
|
@@ -3202,7 +3203,7 @@ function Hl(e, t, i, s, l, n) {
|
|
|
3202
3203
|
onClick: n.buttonFuc1
|
|
3203
3204
|
}, {
|
|
3204
3205
|
default: _(() => [
|
|
3205
|
-
|
|
3206
|
+
V("\u5168\u9009")
|
|
3206
3207
|
]),
|
|
3207
3208
|
_: 1
|
|
3208
3209
|
}, 8, ["onClick"]),
|
|
@@ -3213,7 +3214,7 @@ function Hl(e, t, i, s, l, n) {
|
|
|
3213
3214
|
onClick: n.buttonFuc2
|
|
3214
3215
|
}, {
|
|
3215
3216
|
default: _(() => [
|
|
3216
|
-
|
|
3217
|
+
V("\u53CD\u9009")
|
|
3217
3218
|
]),
|
|
3218
3219
|
_: 1
|
|
3219
3220
|
}, 8, ["onClick"]),
|
|
@@ -3226,7 +3227,7 @@ function Hl(e, t, i, s, l, n) {
|
|
|
3226
3227
|
onClick: n.buttonFuc3
|
|
3227
3228
|
}, {
|
|
3228
3229
|
default: _(() => [
|
|
3229
|
-
|
|
3230
|
+
V("\u6E05\u7A7A")
|
|
3230
3231
|
]),
|
|
3231
3232
|
_: 1
|
|
3232
3233
|
}, 8, ["onClick"])
|
|
@@ -3350,7 +3351,7 @@ const Ol = {
|
|
|
3350
3351
|
key: 0,
|
|
3351
3352
|
class: "more-wrap"
|
|
3352
3353
|
}, Jl = /* @__PURE__ */ d("span", { class: "more" }, [
|
|
3353
|
-
/* @__PURE__ */
|
|
3354
|
+
/* @__PURE__ */ V("\u66F4\u591A"),
|
|
3354
3355
|
/* @__PURE__ */ d("i", { class: "dropdown-icon lh-ui-font-component icon_component_arrow_down" })
|
|
3355
3356
|
], -1), ql = { class: "lh-scroll-common" }, Xl = ["onClick"], Gl = ["title"], Zl = ["onClick"], Ql = /* @__PURE__ */ d("div", { style: { clear: "both" } }, null, -1);
|
|
3356
3357
|
function $l(e, t, i, s, l, n) {
|
|
@@ -3873,7 +3874,7 @@ function kn(e, t, i, s, l, n) {
|
|
|
3873
3874
|
ref: "searchButton"
|
|
3874
3875
|
}, {
|
|
3875
3876
|
default: _(() => [
|
|
3876
|
-
|
|
3877
|
+
V("\xA0\xA0\xA0\u67E5\u8BE2\xA0\xA0\xA0")
|
|
3877
3878
|
]),
|
|
3878
3879
|
_: 1
|
|
3879
3880
|
}, 8, ["onClick"])) : m("", !0),
|
|
@@ -3884,7 +3885,7 @@ function kn(e, t, i, s, l, n) {
|
|
|
3884
3885
|
onClick: n.clearEvent
|
|
3885
3886
|
}, {
|
|
3886
3887
|
default: _(() => [
|
|
3887
|
-
|
|
3888
|
+
V("\xA0\xA0\xA0\u91CD\u7F6E\xA0\xA0\xA0")
|
|
3888
3889
|
]),
|
|
3889
3890
|
_: 1
|
|
3890
3891
|
}, 8, ["onClick"])
|
|
@@ -3902,7 +3903,7 @@ function kn(e, t, i, s, l, n) {
|
|
|
3902
3903
|
onClick: t[0] || (t[0] = (...r) => n.changeState && n.changeState(...r))
|
|
3903
3904
|
}, [
|
|
3904
3905
|
xn,
|
|
3905
|
-
|
|
3906
|
+
V("\xA0\xA0\u5C55\u5F00\u66F4\u591A ")
|
|
3906
3907
|
], 512), [
|
|
3907
3908
|
[I, !l.state]
|
|
3908
3909
|
]),
|
|
@@ -3911,7 +3912,7 @@ function kn(e, t, i, s, l, n) {
|
|
|
3911
3912
|
onClick: t[1] || (t[1] = (...r) => n.changeState && n.changeState(...r))
|
|
3912
3913
|
}, [
|
|
3913
3914
|
_n,
|
|
3914
|
-
|
|
3915
|
+
V("\xA0\xA0\u6536\u8D77 ")
|
|
3915
3916
|
], 512), [
|
|
3916
3917
|
[I, l.state]
|
|
3917
3918
|
])
|
|
@@ -3923,7 +3924,7 @@ function kn(e, t, i, s, l, n) {
|
|
|
3923
3924
|
ref: "searchButton"
|
|
3924
3925
|
}, {
|
|
3925
3926
|
default: _(() => [
|
|
3926
|
-
|
|
3927
|
+
V("\xA0\xA0\xA0\u67E5\u8BE2\xA0\xA0\xA0")
|
|
3927
3928
|
]),
|
|
3928
3929
|
_: 1
|
|
3929
3930
|
}, 8, ["onClick"])) : m("", !0),
|
|
@@ -3933,7 +3934,7 @@ function kn(e, t, i, s, l, n) {
|
|
|
3933
3934
|
onClick: n.clearEvent
|
|
3934
3935
|
}, {
|
|
3935
3936
|
default: _(() => [
|
|
3936
|
-
|
|
3937
|
+
V("\xA0\xA0\xA0\u91CD\u7F6E\xA0\xA0\xA0")
|
|
3937
3938
|
]),
|
|
3938
3939
|
_: 1
|
|
3939
3940
|
}, 8, ["onClick"])
|
|
@@ -4065,7 +4066,7 @@ function Mn(e, t, i, s, l, n) {
|
|
|
4065
4066
|
}, In)) : m("", !0),
|
|
4066
4067
|
T(a, { onClick: n.searchEvent }, {
|
|
4067
4068
|
default: _(() => [
|
|
4068
|
-
|
|
4069
|
+
V(g(e.$lht("conditionSide.search")), 1)
|
|
4069
4070
|
]),
|
|
4070
4071
|
_: 1
|
|
4071
4072
|
}, 8, ["onClick"])
|
|
@@ -4090,7 +4091,7 @@ function Mn(e, t, i, s, l, n) {
|
|
|
4090
4091
|
ref: "searchButton"
|
|
4091
4092
|
}, {
|
|
4092
4093
|
default: _(() => [
|
|
4093
|
-
|
|
4094
|
+
V(g(e.$lht("conditionSide.search")), 1)
|
|
4094
4095
|
]),
|
|
4095
4096
|
_: 1
|
|
4096
4097
|
}, 8, ["onClick"]),
|
|
@@ -4099,7 +4100,7 @@ function Mn(e, t, i, s, l, n) {
|
|
|
4099
4100
|
onClick: n.clearEvent
|
|
4100
4101
|
}, {
|
|
4101
4102
|
default: _(() => [
|
|
4102
|
-
|
|
4103
|
+
V(g(e.$lht("conditionSide.reset")), 1)
|
|
4103
4104
|
]),
|
|
4104
4105
|
_: 1
|
|
4105
4106
|
}, 8, ["onClick"])
|
|
@@ -4664,26 +4665,26 @@ let De = {
|
|
|
4664
4665
|
u < 0 && (u += n, l--);
|
|
4665
4666
|
var p = new Date(), v = !1;
|
|
4666
4667
|
p.getFullYear() == a && p.getMonth() + 1 == r && p.getDate() == h && (v = !0);
|
|
4667
|
-
var w = s.getDay(),
|
|
4668
|
+
var w = s.getDay(), N = this.nStr1[w];
|
|
4668
4669
|
w == 0 && (w = 7);
|
|
4669
|
-
var
|
|
4670
|
+
var D = l, B = this.leapMonth(l), P = !1;
|
|
4670
4671
|
for (l = 1; l < 13 && u > 0; l++)
|
|
4671
|
-
B > 0 && l == B + 1 && P == !1 ? (--l, P = !0, n = this.leapDays(
|
|
4672
|
+
B > 0 && l == B + 1 && P == !1 ? (--l, P = !0, n = this.leapDays(D)) : n = this.monthDays(D, l), P == !0 && l == B + 1 && (P = !1), u -= n;
|
|
4672
4673
|
u == 0 && B > 0 && l == B + 1 && (P ? P = !1 : (P = !0, --l)), u < 0 && (u += n, --l);
|
|
4673
|
-
var R = l, W = u + 1, it = r - 1, lt = this.toGanZhiYear(
|
|
4674
|
+
var R = l, W = u + 1, it = r - 1, lt = this.toGanZhiYear(D), He = this.getTerm(a, r * 2 - 1), nt = this.getTerm(a, r * 2), Oe = this.toGanZhi((a - 1900) * 12 + r + 11);
|
|
4674
4675
|
h >= He && (Oe = this.toGanZhi((a - 1900) * 12 + r + 12));
|
|
4675
4676
|
var Pe = !1, ze = null;
|
|
4676
4677
|
He == h && (Pe = !0, ze = this.solarTerm[r * 2 - 2]), nt == h && (Pe = !0, ze = this.solarTerm[r * 2 - 1]);
|
|
4677
|
-
var st = Date.UTC(a, it, 1, 0, 0, 0, 0) / 864e5 + 25567 + 10, at = this.toGanZhi(st + h - 1), ot = this.toAstro(r, h), rt = a + "-" + (r < 10 ? "0" + r.toString() : r) + "-" + (h < 10 ? "0" + h.toString() : h), ct =
|
|
4678
|
+
var st = Date.UTC(a, it, 1, 0, 0, 0, 0) / 864e5 + 25567 + 10, at = this.toGanZhi(st + h - 1), ot = this.toAstro(r, h), rt = a + "-" + (r < 10 ? "0" + r.toString() : r) + "-" + (h < 10 ? "0" + h.toString() : h), ct = D + "-" + R + "-" + W, Ae = this.festival, Ue = this.lfestival, je = r + "-" + h, Ye = R + "-" + W;
|
|
4678
4679
|
return {
|
|
4679
4680
|
date: rt,
|
|
4680
4681
|
lunarDate: ct,
|
|
4681
4682
|
festival: Ae[je] ? Ae[je].title : null,
|
|
4682
4683
|
lunarFestival: Ue[Ye] ? Ue[Ye].title : null,
|
|
4683
|
-
lYear:
|
|
4684
|
+
lYear: D,
|
|
4684
4685
|
lMonth: R,
|
|
4685
4686
|
lDay: W,
|
|
4686
|
-
Animal: this.getAnimal(
|
|
4687
|
+
Animal: this.getAnimal(D),
|
|
4687
4688
|
IMonthCn: (P ? "\u95F0" : "") + this.toChinaMonth(R),
|
|
4688
4689
|
IDayCn: this.toChinaDay(W),
|
|
4689
4690
|
cYear: a,
|
|
@@ -4695,7 +4696,7 @@ let De = {
|
|
|
4695
4696
|
isToday: v,
|
|
4696
4697
|
isLeap: P,
|
|
4697
4698
|
nWeek: w,
|
|
4698
|
-
ncWeek: "\u661F\u671F" +
|
|
4699
|
+
ncWeek: "\u661F\u671F" + N,
|
|
4699
4700
|
isTerm: Pe,
|
|
4700
4701
|
Term: ze,
|
|
4701
4702
|
astro: ot
|
|
@@ -4714,8 +4715,8 @@ let De = {
|
|
|
4714
4715
|
for (var p = 0, v = !1, u = 1; u < t; u++)
|
|
4715
4716
|
p = this.leapMonth(e), v || p <= u && p > 0 && (h += this.leapDays(e), v = !0), h += this.monthDays(e, u);
|
|
4716
4717
|
l && (h += a);
|
|
4717
|
-
var w = Date.UTC(1900, 1, 30, 0, 0, 0),
|
|
4718
|
-
return this.solar2lunar(
|
|
4718
|
+
var w = Date.UTC(1900, 1, 30, 0, 0, 0), N = new Date((h + i - 31) * 864e5 + w), D = N.getUTCFullYear(), B = N.getUTCMonth() + 1, P = N.getUTCDate();
|
|
4719
|
+
return this.solar2lunar(D, B, P);
|
|
4719
4720
|
}
|
|
4720
4721
|
};
|
|
4721
4722
|
const Qe = {
|
|
@@ -4765,13 +4766,13 @@ const Qe = {
|
|
|
4765
4766
|
u = h - s + 2, p = De.solar2lunar(e, t, u);
|
|
4766
4767
|
let w = !1;
|
|
4767
4768
|
(h + 1) % 7 === 0 && (w = !0);
|
|
4768
|
-
let
|
|
4769
|
-
h >= n * 7 && (
|
|
4770
|
-
let
|
|
4771
|
-
p.GMTTime = new Date(B), typeof this.pickerOptions.disabledDate == "function" && (v = this.pickerOptions.disabledDate(p.GMTTime)), r[
|
|
4769
|
+
let N = !1;
|
|
4770
|
+
h >= n * 7 && (N = !0);
|
|
4771
|
+
let D = Math.ceil((h + 1) / 7), B = p.date.replace(/-/g, "/") + " 00:00:00";
|
|
4772
|
+
p.GMTTime = new Date(B), typeof this.pickerOptions.disabledDate == "function" && (v = this.pickerOptions.disabledDate(p.GMTTime)), r[D - 1].push({
|
|
4772
4773
|
day: u,
|
|
4773
4774
|
noBorderRight: w,
|
|
4774
|
-
noBorderBottom:
|
|
4775
|
+
noBorderBottom: N,
|
|
4775
4776
|
dayDescription: p,
|
|
4776
4777
|
disabled: v
|
|
4777
4778
|
});
|
|
@@ -4949,18 +4950,18 @@ const Xn = {
|
|
|
4949
4950
|
let u = l * Math.tan(h), p = -1 * s * Math.tan(h);
|
|
4950
4951
|
for (let v = 0; v <= n; v += s)
|
|
4951
4952
|
for (let w = 0; w < a; w += l) {
|
|
4952
|
-
let
|
|
4953
|
+
let N = 0, D = 0;
|
|
4953
4954
|
if (w == 0)
|
|
4954
4955
|
if (v == 0)
|
|
4955
|
-
|
|
4956
|
+
N = 0, D = 0;
|
|
4956
4957
|
else {
|
|
4957
|
-
a / l >= 2 && (
|
|
4958
|
+
a / l >= 2 && (N = N + -1 * a, D = D + -1 * u * (a / l)), r.translate(p, s);
|
|
4958
4959
|
let B = l / 2 + 10, P = B * Math.cos(h), R = B * Math.sin(h);
|
|
4959
|
-
v / s % 2 == 0 ? (
|
|
4960
|
+
v / s % 2 == 0 ? (N = N + -1 * P, D = D + -1 * R) : (N = N + P, D = D + R);
|
|
4960
4961
|
}
|
|
4961
4962
|
else
|
|
4962
|
-
|
|
4963
|
-
r.translate(
|
|
4963
|
+
N = l, D = u;
|
|
4964
|
+
r.translate(N, D), r.fillText(t, 35, 48);
|
|
4964
4965
|
}
|
|
4965
4966
|
return i;
|
|
4966
4967
|
},
|
|
@@ -5694,7 +5695,7 @@ function Rs(e, t, i, s, l, n) {
|
|
|
5694
5695
|
onClick: t[2] || (t[2] = (...p) => n.changeSee && n.changeSee(...p)),
|
|
5695
5696
|
id: l.myid
|
|
5696
5697
|
}, [
|
|
5697
|
-
|
|
5698
|
+
V(g(l.showContent || i.placeholder) + " ", 1),
|
|
5698
5699
|
Ms
|
|
5699
5700
|
], 10, Vs)
|
|
5700
5701
|
]),
|
|
@@ -6179,7 +6180,7 @@ function da(e, t, i, s, l, n) {
|
|
|
6179
6180
|
"prefix-icon": "icon_component_upload"
|
|
6180
6181
|
}, {
|
|
6181
6182
|
default: _(() => [
|
|
6182
|
-
|
|
6183
|
+
V(g(i.buttonText), 1)
|
|
6183
6184
|
]),
|
|
6184
6185
|
_: 1
|
|
6185
6186
|
}, 8, ["size", "onClick", "category"]),
|
|
@@ -6190,7 +6191,7 @@ function da(e, t, i, s, l, n) {
|
|
|
6190
6191
|
onClick: n.removeAll
|
|
6191
6192
|
}, {
|
|
6192
6193
|
default: _(() => [
|
|
6193
|
-
|
|
6194
|
+
V("\u6E05\u7A7A\u4E0A\u4F20")
|
|
6194
6195
|
]),
|
|
6195
6196
|
_: 1
|
|
6196
6197
|
}, 8, ["size", "onClick"])),
|
|
@@ -6269,7 +6270,7 @@ function da(e, t, i, s, l, n) {
|
|
|
6269
6270
|
onClick: (u) => n.downLoad(r)
|
|
6270
6271
|
}, {
|
|
6271
6272
|
default: _(() => [
|
|
6272
|
-
|
|
6273
|
+
V("\u4E0B\u8F7D")
|
|
6273
6274
|
]),
|
|
6274
6275
|
_: 2
|
|
6275
6276
|
}, 1032, ["onClick"])
|
|
@@ -6824,7 +6825,7 @@ function Da(e, t, i, s, l, n) {
|
|
|
6824
6825
|
indeterminate: l.indeterminate,
|
|
6825
6826
|
"onUpdate:indeterminate": t[1] || (t[1] = (v) => l.indeterminate = v)
|
|
6826
6827
|
}, null, 8, ["modelValue", "indeterminate"])) : (o(), c(b, { key: 1 }, [
|
|
6827
|
-
|
|
6828
|
+
V(g(u.label), 1)
|
|
6828
6829
|
], 64)),
|
|
6829
6830
|
d("span", Sa, [
|
|
6830
6831
|
d("i", {
|
|
@@ -7238,13 +7239,13 @@ function no(e, t, i, s, l, n) {
|
|
|
7238
7239
|
onClick: n.cancel
|
|
7239
7240
|
}, {
|
|
7240
7241
|
default: _(() => [
|
|
7241
|
-
|
|
7242
|
+
V(g(l.cancelButtonText), 1)
|
|
7242
7243
|
]),
|
|
7243
7244
|
_: 1
|
|
7244
7245
|
}, 8, ["onClick"]),
|
|
7245
7246
|
T(a, { onClick: n.confirm }, {
|
|
7246
7247
|
default: _(() => [
|
|
7247
|
-
|
|
7248
|
+
V(g(l.confirmButtonText), 1)
|
|
7248
7249
|
]),
|
|
7249
7250
|
_: 1
|
|
7250
7251
|
}, 8, ["onClick"])
|