lh-ui-next 0.1.7-beta.48 → 0.1.7-beta.49
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 +11 -11
- package/lib/lh-ui-next.umd.js +1 -1
- package/package.json +1 -1
- package/static/css/package/pagination.less +29 -30
- package/static/css/package/popover.less +1 -2
- package/static/css/package/select.less +1 -2
- 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/static/js/lang/zh-CN.js +2 -2
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.49",
|
|
8
|
+
## test version : "0.1.7-beta.49",
|
|
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
|
@@ -406,7 +406,7 @@ const Vt = {
|
|
|
406
406
|
offset: {
|
|
407
407
|
type: Number,
|
|
408
408
|
required: !1,
|
|
409
|
-
default:
|
|
409
|
+
default: 4
|
|
410
410
|
},
|
|
411
411
|
appendToBody: {
|
|
412
412
|
type: Boolean,
|
|
@@ -488,25 +488,25 @@ const Vt = {
|
|
|
488
488
|
const t = this.$refs.popoverReference.getBoundingClientRect(), i = this.$refs.popoverContent.getBoundingClientRect(), s = document.documentElement.clientWidth, l = document.documentElement.clientHeight;
|
|
489
489
|
let n = 0, a = 0, o = "";
|
|
490
490
|
const d = () => {
|
|
491
|
-
n = t.top + t.height / 2 - i.height / 2, n = t.top < 0 ? t.top : Math.max(0, n), n = t.top > l - t.height ? t.top + t.height - i.height : Math.min(l - i.height, n), a = t.left + t.width
|
|
491
|
+
n = t.top + t.height / 2 - i.height / 2, n = t.top < 0 ? t.top : Math.max(0, n), n = t.top > l - t.height ? t.top + t.height - i.height : Math.min(l - i.height, n), a = t.left + t.width + this.offset;
|
|
492
492
|
}, u = () => {
|
|
493
493
|
a = t.left + t.width / 2 - i.width / 2, t.width < i.width && (a = t.left < 0 ? t.left : Math.max(0, a), a = t.left > s - t.width ? t.left + t.width - i.width : Math.min(s - i.width, a));
|
|
494
494
|
}, p = () => {
|
|
495
|
-
let N = t.top - i.height
|
|
495
|
+
let N = t.top - i.height - this.offset, M = t.top + t.height + this.offset, F = N < 0 ? "bottom" : "", z = M > l - i.height ? "top" : "";
|
|
496
496
|
return F && z ? "" : F || z;
|
|
497
497
|
};
|
|
498
498
|
switch (e) {
|
|
499
499
|
case "top":
|
|
500
|
-
n = t.top - i.height
|
|
500
|
+
n = t.top - i.height - this.offset, u(), o = p();
|
|
501
501
|
break;
|
|
502
502
|
case "right":
|
|
503
|
-
d(), o = a > s - i.width ? "left" : "";
|
|
503
|
+
d(), a = t.left - i.width + this.offset, o = a > s - i.width ? "left" : "";
|
|
504
504
|
break;
|
|
505
505
|
case "bottom":
|
|
506
|
-
n = t.top + t.height
|
|
506
|
+
n = t.top + t.height + this.offset, u(), o = p();
|
|
507
507
|
break;
|
|
508
508
|
case "left":
|
|
509
|
-
d(), a = t.left - i.width
|
|
509
|
+
d(), a = t.left - i.width - this.offset, o = a < 0 ? "right" : "";
|
|
510
510
|
break;
|
|
511
511
|
}
|
|
512
512
|
let C = n;
|
|
@@ -1255,7 +1255,7 @@ function Gt(e, t, i, s, l, n) {
|
|
|
1255
1255
|
i.disabled ? m("", !0) : (r(), c("ul", {
|
|
1256
1256
|
key: 0,
|
|
1257
1257
|
ref: "ulCommon",
|
|
1258
|
-
style: T({ width: l.popoverContentWidth + "px" })
|
|
1258
|
+
style: T([{ width: l.popoverContentWidth + "px" }, { "min-width": "100px" }])
|
|
1259
1259
|
}, [
|
|
1260
1260
|
i.isTitle && i.isRemoveTitleHTML ? (r(!0), c(g, { key: 0 }, y(l.myoptionList, (u) => v((r(), c("li", {
|
|
1261
1261
|
onClick: (p) => n.itemClick(u),
|
|
@@ -7515,7 +7515,7 @@ function Uo(e, t, i, s, l, n) {
|
|
|
7515
7515
|
width: "640",
|
|
7516
7516
|
popoverContentClass: l.popoverContentClass,
|
|
7517
7517
|
isBoundingClientRectLeft: "",
|
|
7518
|
-
boundingClientRectLeftValue: "
|
|
7518
|
+
boundingClientRectLeftValue: "10",
|
|
7519
7519
|
ref: "datePopover"
|
|
7520
7520
|
}, {
|
|
7521
7521
|
reference: k(() => [
|
|
@@ -8516,10 +8516,10 @@ const Pr = {
|
|
|
8516
8516
|
search: "\u67E5\u8BE2"
|
|
8517
8517
|
},
|
|
8518
8518
|
pagination: {
|
|
8519
|
-
totalLeft: "\u5171
|
|
8519
|
+
totalLeft: "\u5171",
|
|
8520
8520
|
totalRight: "\u6761\u6570\u636E",
|
|
8521
8521
|
pageText: "\u6761/\u9875",
|
|
8522
|
-
goPageText: "\
|
|
8522
|
+
goPageText: "\u8DF3\u81F3",
|
|
8523
8523
|
pageUnitText: "\u9875",
|
|
8524
8524
|
prevPage: "\u4E0A\u4E00\u9875",
|
|
8525
8525
|
nextPage: "\u4E0B\u4E00\u9875",
|