lh-ui-next 0.2.1-beta.6 → 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 +6 -1
- package/lib/lh-ui-next.umd.js +1 -1
- package/package.json +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
|
},
|