lh-ui-next 0.1.9-beta.13 → 0.1.9-beta.14
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 +10 -10
- 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.1.8",
|
|
8
|
-
## test version : "0.1.9-beta.
|
|
8
|
+
## test version : "0.1.9-beta.14,
|
|
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
|
@@ -4412,12 +4412,12 @@ const Gn = {
|
|
|
4412
4412
|
isActive(e) {
|
|
4413
4413
|
return this.modelValue == e;
|
|
4414
4414
|
},
|
|
4415
|
-
tabswitch(e) {
|
|
4416
|
-
typeof this.tabSwitchBeforeEvent == "function" ? this.tabSwitchBeforeEvent(this.realSwitch, e) : this.realSwitch(e);
|
|
4415
|
+
tabswitch(e, t) {
|
|
4416
|
+
typeof this.tabSwitchBeforeEvent == "function" ? this.tabSwitchBeforeEvent(this.realSwitch, e) : this.realSwitch(e, t);
|
|
4417
4417
|
},
|
|
4418
4418
|
//真正的切换
|
|
4419
|
-
realSwitch(e) {
|
|
4420
|
-
this.canNotSwitch || this.tablist[e].disabled || this.disabled && !this.isActive(e) || (this.beforeSwitchReg === -1 ? (this.$emit("update:modelValue", e), this.$emit("tabItemClick", e)) : this.beforeSwitchReg ? (this.$emit("update:modelValue", e), this.$emit("tabItemClick", e)) : this.$msg.warning(this.beforeSwitchRegDes));
|
|
4419
|
+
realSwitch(e, t) {
|
|
4420
|
+
this.canNotSwitch || this.tablist[e].disabled || this.disabled && !this.isActive(e) || (this.beforeSwitchReg === -1 ? (this.$emit("update:modelValue", e), this.$emit("tabItemClick", { index: e, item: t })) : this.beforeSwitchReg ? (this.$emit("update:modelValue", e), this.$emit("tabItemClick", { index: e, item: t })) : this.$msg.warning(this.beforeSwitchRegDes));
|
|
4421
4421
|
}
|
|
4422
4422
|
}
|
|
4423
4423
|
}, Zn = ["onClick", "innerHTML"], Qn = ["onClick", "innerHTML"], $n = ["onClick", "innerHTML"], es = ["onClick", "innerHTML"], ts = {
|
|
@@ -4438,7 +4438,7 @@ function rs(e, t, i, s, l, n) {
|
|
|
4438
4438
|
(r(!0), c(g, null, y(i.tablist, (a, o) => (r(), c("span", {
|
|
4439
4439
|
class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled || i.disabled && !n.isActive(o) }]),
|
|
4440
4440
|
style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
4441
|
-
onClick: (d) => n.tabswitch(o),
|
|
4441
|
+
onClick: (d) => n.tabswitch(o, a),
|
|
4442
4442
|
innerHTML: a.name
|
|
4443
4443
|
}, null, 14, Zn))), 256))
|
|
4444
4444
|
], 2)) : m("", !0),
|
|
@@ -4449,7 +4449,7 @@ function rs(e, t, i, s, l, n) {
|
|
|
4449
4449
|
(r(!0), c(g, null, y(i.tablist, (a, o) => (r(), c("span", {
|
|
4450
4450
|
class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled || i.disabled && !n.isActive(o) }]),
|
|
4451
4451
|
style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
4452
|
-
onClick: (d) => n.tabswitch(o),
|
|
4452
|
+
onClick: (d) => n.tabswitch(o, a),
|
|
4453
4453
|
innerHTML: a.name
|
|
4454
4454
|
}, null, 14, Qn))), 256))
|
|
4455
4455
|
], 2)) : m("", !0),
|
|
@@ -4460,7 +4460,7 @@ function rs(e, t, i, s, l, n) {
|
|
|
4460
4460
|
(r(!0), c(g, null, y(i.tablist, (a, o) => (r(), c("span", {
|
|
4461
4461
|
class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled || i.disabled && !n.isActive(o) }]),
|
|
4462
4462
|
style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
4463
|
-
onClick: (d) => n.tabswitch(o),
|
|
4463
|
+
onClick: (d) => n.tabswitch(o, a),
|
|
4464
4464
|
innerHTML: a.name
|
|
4465
4465
|
}, null, 14, $n))), 256))
|
|
4466
4466
|
], 2)) : m("", !0),
|
|
@@ -4476,7 +4476,7 @@ function rs(e, t, i, s, l, n) {
|
|
|
4476
4476
|
ref_for: !0,
|
|
4477
4477
|
ref: "n4Item",
|
|
4478
4478
|
style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
4479
|
-
onClick: (d) => n.tabswitch(o),
|
|
4479
|
+
onClick: (d) => n.tabswitch(o, a),
|
|
4480
4480
|
innerHTML: a.name
|
|
4481
4481
|
}, null, 14, es))
|
|
4482
4482
|
], 64))), 256)),
|
|
@@ -4490,7 +4490,7 @@ function rs(e, t, i, s, l, n) {
|
|
|
4490
4490
|
(r(!0), c(g, null, y(l.myTabList, (a, o) => (r(), c(g, null, [
|
|
4491
4491
|
a.isFold && !a.nodisplay ? (r(), c("li", {
|
|
4492
4492
|
key: 0,
|
|
4493
|
-
onClick: (d) => n.tabswitch(o)
|
|
4493
|
+
onClick: (d) => n.tabswitch(o, a)
|
|
4494
4494
|
}, [
|
|
4495
4495
|
h("span", {
|
|
4496
4496
|
class: f(["li-span", { active: n.isActive(o), disabled: a.disabled || i.disabled && !n.isActive(o) }]),
|
|
@@ -4510,7 +4510,7 @@ function rs(e, t, i, s, l, n) {
|
|
|
4510
4510
|
(r(!0), c(g, null, y(i.tablist, (a, o) => (r(), c("span", {
|
|
4511
4511
|
class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled || i.disabled && !n.isActive(o) }]),
|
|
4512
4512
|
style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
4513
|
-
onClick: (d) => n.tabswitch(o)
|
|
4513
|
+
onClick: (d) => n.tabswitch(o, a)
|
|
4514
4514
|
}, b(a.name), 15, as))), 256))
|
|
4515
4515
|
], 2)) : m("", !0),
|
|
4516
4516
|
os
|