lh-ui-next 0.1.8-beta.16 → 0.1.8-beta.18

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 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.16,
8
+ ## test version : "0.1.8-beta.18,
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
@@ -633,7 +633,9 @@ const Vt = {
633
633
  }
634
634
  },
635
635
  mounted() {
636
- this.popoverRefMouseover = this.antiShakeFn(this.popoverRefMouseover, this.openDelay), this.popoverRefMouseout = this.antiShakeFn(this.popoverRefMouseout, Number(this.openDelay) + Number(this.closeDelay)), document.addEventListener("click", this.handleDocumentClick), document.addEventListener("scroll", this.updatePopper, !0), document.addEventListener("resize", this.updatePopper);
636
+ this.popoverRefMouseover = this.antiShakeFn(this.popoverRefMouseover, this.openDelay), this.popoverRefMouseout = this.antiShakeFn(this.popoverRefMouseout, Number(this.openDelay) + Number(this.closeDelay)), document.addEventListener("click", this.handleDocumentClick), document.body.addEventListener("scroll", (e) => {
637
+ e.target.className.indexOf("lh-tree-specail-container") === -1 && this.updatePopper();
638
+ }, !0), document.addEventListener("resize", this.updatePopper);
637
639
  },
638
640
  created() {
639
641
  U.on("closeDownComponent", (t) => {
@@ -4353,6 +4355,10 @@ const Gn = {
4353
4355
  dropWidth: {
4354
4356
  type: [Number, String],
4355
4357
  default: ""
4358
+ },
4359
+ disabled: {
4360
+ type: Boolean,
4361
+ default: !1
4356
4362
  }
4357
4363
  },
4358
4364
  data() {
@@ -4398,7 +4404,7 @@ const Gn = {
4398
4404
  },
4399
4405
  //真正的切换
4400
4406
  realSwitch(e) {
4401
- 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));
4407
+ 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));
4402
4408
  }
4403
4409
  }
4404
4410
  }, Zn = ["onClick", "innerHTML"], Qn = ["onClick", "innerHTML"], $n = ["onClick", "innerHTML"], es = ["onClick", "innerHTML"], ts = {
@@ -4417,7 +4423,7 @@ function rs(e, t, i, s, l, n) {
4417
4423
  class: f(["lh-tab-div-n1", i.size])
4418
4424
  }, [
4419
4425
  (r(!0), c(g, null, y(i.tablist, (a, o) => (r(), c("span", {
4420
- class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled }]),
4426
+ class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled || i.disabled && !n.isActive(o) }]),
4421
4427
  style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
4422
4428
  onClick: (h) => n.tabswitch(o),
4423
4429
  innerHTML: a.name
@@ -4428,7 +4434,7 @@ function rs(e, t, i, s, l, n) {
4428
4434
  class: f(["lh-tab-div-n2", i.size])
4429
4435
  }, [
4430
4436
  (r(!0), c(g, null, y(i.tablist, (a, o) => (r(), c("span", {
4431
- class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled }]),
4437
+ class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled || i.disabled && !n.isActive(o) }]),
4432
4438
  style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
4433
4439
  onClick: (h) => n.tabswitch(o),
4434
4440
  innerHTML: a.name
@@ -4439,7 +4445,7 @@ function rs(e, t, i, s, l, n) {
4439
4445
  class: f(["lh-tab-div-n3", i.size])
4440
4446
  }, [
4441
4447
  (r(!0), c(g, null, y(i.tablist, (a, o) => (r(), c("span", {
4442
- class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled }]),
4448
+ class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled || i.disabled && !n.isActive(o) }]),
4443
4449
  style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
4444
4450
  onClick: (h) => n.tabswitch(o),
4445
4451
  innerHTML: a.name
@@ -4453,7 +4459,7 @@ function rs(e, t, i, s, l, n) {
4453
4459
  (r(!0), c(g, null, y(l.myTabList, (a, o) => (r(), c(g, null, [
4454
4460
  a.isFold ? m("", !0) : (r(), c("span", {
4455
4461
  key: 0,
4456
- class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled }]),
4462
+ class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled || i.disabled && !n.isActive(o) }]),
4457
4463
  ref_for: !0,
4458
4464
  ref: "n4Item",
4459
4465
  style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
@@ -4474,7 +4480,7 @@ function rs(e, t, i, s, l, n) {
4474
4480
  onClick: (h) => n.tabswitch(o)
4475
4481
  }, [
4476
4482
  d("span", {
4477
- class: f(["li-span", { active: n.isActive(o), disabled: a.disabled }]),
4483
+ class: f(["li-span", { active: n.isActive(o), disabled: a.disabled || i.disabled && !n.isActive(o) }]),
4478
4484
  title: a.name,
4479
4485
  style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline" })
4480
4486
  }, b(a.name), 15, ss)
@@ -4489,7 +4495,7 @@ function rs(e, t, i, s, l, n) {
4489
4495
  class: f(["lh-tab-div-n5", i.size])
4490
4496
  }, [
4491
4497
  (r(!0), c(g, null, y(i.tablist, (a, o) => (r(), c("span", {
4492
- class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled }]),
4498
+ class: f(["lh-tab-content", { active: n.isActive(o), disabled: a.disabled || i.disabled && !n.isActive(o) }]),
4493
4499
  style: T({ cursor: i.canNotSwitch ? "default" : "pointer", display: a.nodisplay ? "none" : "inline-block" }),
4494
4500
  onClick: (h) => n.tabswitch(o)
4495
4501
  }, b(a.name), 15, as))), 256))