lh-ui-next 0.1.8-beta.6 → 0.1.8-beta.8
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 +24 -16
- package/lib/lh-ui-next.umd.js +1 -1
- package/package.json +1 -1
- package/static/css/compact/compact.less +12 -0
- package/static/css/package/tab.less +2 -3
- 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/iconFontComponent/iconfont.css +34 -6
- package/static/iconFontComponent/iconfont.eot +0 -0
- package/static/iconFontComponent/iconfont.js +1 -1
- package/static/iconFontComponent/iconfont.json +49 -0
- package/static/iconFontComponent/iconfont.svg +14 -0
- package/static/iconFontComponent/iconfont.ttf +0 -0
- package/static/iconFontComponent/iconfont.woff +0 -0
- package/static/iconFontComponent/iconfont.woff2 +0 -0
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.7",
|
|
8
|
-
## test version : "0.1.8-beta.
|
|
8
|
+
## test version : "0.1.8-beta.8,
|
|
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
|
@@ -3798,13 +3798,17 @@ const Jl = {
|
|
|
3798
3798
|
},
|
|
3799
3799
|
//根据key值选中单个节点和节点下的所有子孙级。
|
|
3800
3800
|
setCheckedKeyAndChildren(e) {
|
|
3801
|
-
let t = this.findNodeByKey(e)
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3801
|
+
let t = this.findNodeByKey(e);
|
|
3802
|
+
if (t) {
|
|
3803
|
+
let i = [e], s = (l) => {
|
|
3804
|
+
for (let n = 0; n < l.children.length; n++) {
|
|
3805
|
+
let a = l.children[n];
|
|
3806
|
+
i.push(a.key), a.isLeaf || s(a);
|
|
3807
|
+
}
|
|
3808
|
+
};
|
|
3809
|
+
t.isLeaf || s(t), this.setCheckedKeys(i);
|
|
3810
|
+
} else
|
|
3811
|
+
console.warn("输入了一个不存在的key值" + e);
|
|
3808
3812
|
},
|
|
3809
3813
|
//隐藏其他
|
|
3810
3814
|
hideOthers() {
|
|
@@ -4387,7 +4391,7 @@ const Xn = {
|
|
|
4387
4391
|
this.canNotSwitch || this.tablist[e].disabled || (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));
|
|
4388
4392
|
}
|
|
4389
4393
|
}
|
|
4390
|
-
}, Gn = ["onClick"], Zn = ["onClick"], Qn = ["onClick"], $n = ["onClick"], es = {
|
|
4394
|
+
}, Gn = ["onClick", "innerHTML"], Zn = ["onClick", "innerHTML"], Qn = ["onClick", "innerHTML"], $n = ["onClick", "innerHTML"], es = {
|
|
4391
4395
|
key: 0,
|
|
4392
4396
|
class: "more-wrap"
|
|
4393
4397
|
}, ts = /* @__PURE__ */ d("span", { class: "more" }, [
|
|
@@ -4405,8 +4409,9 @@ function os(e, t, i, s, l, n) {
|
|
|
4405
4409
|
(r(!0), c(g, null, y(i.tablist, (a, o) => (r(), c("span", {
|
|
4406
4410
|
class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled }]),
|
|
4407
4411
|
style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
4408
|
-
onClick: (h) => n.tabswitch(o)
|
|
4409
|
-
|
|
4412
|
+
onClick: (h) => n.tabswitch(o),
|
|
4413
|
+
innerHTML: a.name
|
|
4414
|
+
}, null, 14, Gn))), 256))
|
|
4410
4415
|
], 2)) : m("", !0),
|
|
4411
4416
|
i.tabType == "n2" ? (r(), c("div", {
|
|
4412
4417
|
key: 1,
|
|
@@ -4415,8 +4420,9 @@ function os(e, t, i, s, l, n) {
|
|
|
4415
4420
|
(r(!0), c(g, null, y(i.tablist, (a, o) => (r(), c("span", {
|
|
4416
4421
|
class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled }]),
|
|
4417
4422
|
style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
4418
|
-
onClick: (h) => n.tabswitch(o)
|
|
4419
|
-
|
|
4423
|
+
onClick: (h) => n.tabswitch(o),
|
|
4424
|
+
innerHTML: a.name
|
|
4425
|
+
}, null, 14, Zn))), 256))
|
|
4420
4426
|
], 2)) : m("", !0),
|
|
4421
4427
|
i.tabType == "n3" ? (r(), c("div", {
|
|
4422
4428
|
key: 2,
|
|
@@ -4425,8 +4431,9 @@ function os(e, t, i, s, l, n) {
|
|
|
4425
4431
|
(r(!0), c(g, null, y(i.tablist, (a, o) => (r(), c("span", {
|
|
4426
4432
|
class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled }]),
|
|
4427
4433
|
style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
4428
|
-
onClick: (h) => n.tabswitch(o)
|
|
4429
|
-
|
|
4434
|
+
onClick: (h) => n.tabswitch(o),
|
|
4435
|
+
innerHTML: a.name
|
|
4436
|
+
}, null, 14, Qn))), 256))
|
|
4430
4437
|
], 2)) : m("", !0),
|
|
4431
4438
|
i.tabType == "n4" ? (r(), c("div", {
|
|
4432
4439
|
key: 3,
|
|
@@ -4440,8 +4447,9 @@ function os(e, t, i, s, l, n) {
|
|
|
4440
4447
|
ref_for: !0,
|
|
4441
4448
|
ref: "n4Item",
|
|
4442
4449
|
style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
|
|
4443
|
-
onClick: (h) => n.tabswitch(o)
|
|
4444
|
-
|
|
4450
|
+
onClick: (h) => n.tabswitch(o),
|
|
4451
|
+
innerHTML: a.name
|
|
4452
|
+
}, null, 14, $n))
|
|
4445
4453
|
], 64))), 256)),
|
|
4446
4454
|
l.isFold ? (r(), c("span", es, [
|
|
4447
4455
|
ts,
|