lh-ui-next 0.2.1-beta.5 → 0.2.1-beta.7
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 +1 -1
- package/lib/lh-ui-next.mjs +18 -3
- package/lib/lh-ui-next.umd.js +1 -1
- package/package.json +1 -1
- package/static/css/package/date.less +9 -0
- package/static/css/theme-compact-blue/main.css +1 -1
- package/static/css/theme-compact-dark/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
|
@@ -5,7 +5,7 @@ alpha version is use to self-test; beta version is use to public survey.for exam
|
|
|
5
5
|
1.0.0-alpha.1
|
|
6
6
|
1.0.0-test.2
|
|
7
7
|
## Official version : "0.2.0",
|
|
8
|
-
## test version : "0.2.1-beta.
|
|
8
|
+
## test version : "0.2.1-beta.7,
|
|
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
|
@@ -1017,6 +1017,11 @@ const Ue = /* @__PURE__ */ x(Mt, [["render", Ft]]), Et = {
|
|
|
1017
1017
|
type: Boolean,
|
|
1018
1018
|
required: !1,
|
|
1019
1019
|
default: !0
|
|
1020
|
+
},
|
|
1021
|
+
//item点击之前的事件
|
|
1022
|
+
itemClickPreEvent: {
|
|
1023
|
+
type: [Function, String],
|
|
1024
|
+
default: ""
|
|
1020
1025
|
}
|
|
1021
1026
|
},
|
|
1022
1027
|
data() {
|
|
@@ -1114,7 +1119,7 @@ const Ue = /* @__PURE__ */ x(Mt, [["render", Ft]]), Et = {
|
|
|
1114
1119
|
},
|
|
1115
1120
|
//点击li的时候
|
|
1116
1121
|
itemClick(e) {
|
|
1117
|
-
if (e.disabled)
|
|
1122
|
+
if (e.disabled || typeof this.itemClickPreEvent == "function" && !this.itemClickPreEvent(e))
|
|
1118
1123
|
return !1;
|
|
1119
1124
|
this.selectType == 1 && (this.manualStatus = !1), this.changeClick(e.value), this.$emit("itemClick", e);
|
|
1120
1125
|
},
|
|
@@ -6419,11 +6424,21 @@ const ra = {
|
|
|
6419
6424
|
},
|
|
6420
6425
|
//改变年份
|
|
6421
6426
|
yearClick(e) {
|
|
6422
|
-
this.type === "year"
|
|
6427
|
+
if (this.type === "year") {
|
|
6428
|
+
if (this.yearDisable(e))
|
|
6429
|
+
return;
|
|
6430
|
+
this.showDate.year = e, this.selectDate = e.toString(), this.$emit("yearClick", this.selectDate);
|
|
6431
|
+
} else
|
|
6432
|
+
this.showDate.year = e, this.dateType = "month";
|
|
6433
|
+
this.headerValueChange();
|
|
6423
6434
|
},
|
|
6424
6435
|
//改变月份
|
|
6425
6436
|
monthClick(e) {
|
|
6426
6437
|
this.type === "month" ? (this.selectDate = this.showDate.year.toString() + "-" + (e > 9 ? e : "0" + e.toString()), this.$emit("monthClick", this.selectDate)) : (this.showDate.month = e, this.dateType = "date"), this.headerValueChange();
|
|
6438
|
+
},
|
|
6439
|
+
//年份是否是disabled的状态
|
|
6440
|
+
yearDisable(e) {
|
|
6441
|
+
return typeof this.pickerOptions.disabledDate == "function" ? this.pickerOptions.disabledDate(e) : !1;
|
|
6427
6442
|
}
|
|
6428
6443
|
},
|
|
6429
6444
|
computed: {
|
|
@@ -6541,7 +6556,7 @@ function Ma(e, t, i, s, l, n) {
|
|
|
6541
6556
|
h("tbody", null, [
|
|
6542
6557
|
(r(!0), d(g, null, y(n.decadesList, (a) => (r(), d("tr", null, [
|
|
6543
6558
|
(r(!0), d(g, null, y(a, (o) => (r(), d("td", {
|
|
6544
|
-
class: f({ selected: o === e.showDate.year }),
|
|
6559
|
+
class: f({ selected: o === e.showDate.year, disabled: n.yearDisable(o) }),
|
|
6545
6560
|
onClick: E((c) => n.yearClick(o), ["stop"])
|
|
6546
6561
|
}, [
|
|
6547
6562
|
h("a", za, b(o), 1)
|