lh-ui-next 0.1.7-beta.41 → 0.1.7-beta.42
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 +2 -2
- package/lib/lh-ui-next.mjs +34 -29
- package/lib/lh-ui-next.umd.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
alpha version is use to self-test; beta version is use to public survey.for example:
|
|
5
5
|
1.0.0-alpha.1
|
|
6
6
|
1.0.0-test.2
|
|
7
|
-
## Official version : "0.1.7-beta.
|
|
8
|
-
## test version : "0.1.7-beta.
|
|
7
|
+
## Official version : "0.1.7-beta.42",
|
|
8
|
+
## test version : "0.1.7-beta.42",
|
|
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
|
@@ -3528,34 +3528,6 @@ const Jl = {
|
|
|
3528
3528
|
nodeCheckChangeAll() {
|
|
3529
3529
|
this.allChecked ? this.allSelect() : this.clearSelect(), this.checkChanged();
|
|
3530
3530
|
},
|
|
3531
|
-
allSelect() {
|
|
3532
|
-
let e = (t) => {
|
|
3533
|
-
if (t.checked = !0, t.indeterminate = !1, t.childSelectedCount = (t.children || []).length, !t.isLeaf)
|
|
3534
|
-
for (let i = 0; i < t.children.length; i++) {
|
|
3535
|
-
let s = t.children[i];
|
|
3536
|
-
e(s);
|
|
3537
|
-
}
|
|
3538
|
-
};
|
|
3539
|
-
for (let t = 0; t < this.store.data.length; t++) {
|
|
3540
|
-
let i = this.store.data[t];
|
|
3541
|
-
e(i);
|
|
3542
|
-
}
|
|
3543
|
-
this.firstChecked = !0, this.firstIndeterminate = !1, this.secondChecked1 = !0, this.secondIndeterminate1 = !1, this.secondChecked2 = !0, this.secondIndeterminate2 = !1, this.thirdChecked = !0, this.thirdIndeterminate = !1, this.fourthChecked = !0, this.fourthIndeterminate = !1;
|
|
3544
|
-
},
|
|
3545
|
-
clearSelect() {
|
|
3546
|
-
let e = (t) => {
|
|
3547
|
-
if (t.checked = !1, t.indeterminate = !1, t.childSelectedCount = 0, !t.isLeaf)
|
|
3548
|
-
for (let i = 0; i < t.children.length; i++) {
|
|
3549
|
-
let s = t.children[i];
|
|
3550
|
-
e(s);
|
|
3551
|
-
}
|
|
3552
|
-
};
|
|
3553
|
-
for (let t = 0; t < this.store.data.length; t++) {
|
|
3554
|
-
let i = this.store.data[t];
|
|
3555
|
-
e(i);
|
|
3556
|
-
}
|
|
3557
|
-
this.firstChecked = !1, this.firstIndeterminate = !1, this.secondChecked1 = !1, this.secondIndeterminate1 = !1, this.secondChecked2 = !1, this.secondIndeterminate2 = !1, this.thirdChecked = !1, this.thirdIndeterminate = !1, this.fourthChecked = !1, this.fourthIndeterminate = !1;
|
|
3558
|
-
},
|
|
3559
3531
|
nodeCheckChange3() {
|
|
3560
3532
|
for (let t = 0; t < this.thirdList.length; t++) {
|
|
3561
3533
|
let i = this.thirdList[t];
|
|
@@ -3589,6 +3561,34 @@ const Jl = {
|
|
|
3589
3561
|
};
|
|
3590
3562
|
l(t), s == 0 ? (this.secondChecked1 = !1, this.secondIndeterminate1 = !1) : s > 0 && s == i ? (this.secondChecked1 = !0, this.secondIndeterminate1 = !1) : s > 0 && s < i && (this.secondChecked1 = !1, this.secondIndeterminate1 = !0);
|
|
3591
3563
|
},
|
|
3564
|
+
allSelect() {
|
|
3565
|
+
let e = (t) => {
|
|
3566
|
+
if (t.checked = !0, t.indeterminate = !1, t.childSelectedCount = (t.children || []).length, !t.isLeaf)
|
|
3567
|
+
for (let i = 0; i < t.children.length; i++) {
|
|
3568
|
+
let s = t.children[i];
|
|
3569
|
+
e(s);
|
|
3570
|
+
}
|
|
3571
|
+
};
|
|
3572
|
+
for (let t = 0; t < this.store.data.length; t++) {
|
|
3573
|
+
let i = this.store.data[t];
|
|
3574
|
+
e(i);
|
|
3575
|
+
}
|
|
3576
|
+
this.firstChecked = !0, this.firstIndeterminate = !1, this.secondChecked1 = !0, this.secondIndeterminate1 = !1, this.secondChecked2 = !0, this.secondIndeterminate2 = !1, this.thirdChecked = !0, this.thirdIndeterminate = !1, this.fourthChecked = !0, this.fourthIndeterminate = !1;
|
|
3577
|
+
},
|
|
3578
|
+
clearSelect() {
|
|
3579
|
+
let e = (t) => {
|
|
3580
|
+
if (t.checked = !1, t.indeterminate = !1, t.childSelectedCount = 0, !t.isLeaf)
|
|
3581
|
+
for (let i = 0; i < t.children.length; i++) {
|
|
3582
|
+
let s = t.children[i];
|
|
3583
|
+
e(s);
|
|
3584
|
+
}
|
|
3585
|
+
};
|
|
3586
|
+
for (let t = 0; t < this.store.data.length; t++) {
|
|
3587
|
+
let i = this.store.data[t];
|
|
3588
|
+
e(i);
|
|
3589
|
+
}
|
|
3590
|
+
this.firstChecked = !1, this.firstIndeterminate = !1, this.secondChecked1 = !1, this.secondIndeterminate1 = !1, this.secondChecked2 = !1, this.secondIndeterminate2 = !1, this.thirdChecked = !1, this.thirdIndeterminate = !1, this.fourthChecked = !1, this.fourthIndeterminate = !1;
|
|
3591
|
+
},
|
|
3592
3592
|
getCheckedKeys() {
|
|
3593
3593
|
let e = [], t = (i) => {
|
|
3594
3594
|
if (!i.isLeaf)
|
|
@@ -3631,6 +3631,10 @@ const Jl = {
|
|
|
3631
3631
|
}
|
|
3632
3632
|
this.checkChanged();
|
|
3633
3633
|
},
|
|
3634
|
+
clickNodeByKey(e) {
|
|
3635
|
+
let t = this.findNodeByKey(e);
|
|
3636
|
+
t && (t.checked = !t.checked, this.oneNodeClickCallback(t), this.checkChanged());
|
|
3637
|
+
},
|
|
3634
3638
|
hideOthers() {
|
|
3635
3639
|
this.secondList = [], this.thirdList = [], this.fourthList = [], this.clickedFisrtNode = {};
|
|
3636
3640
|
}
|
|
@@ -3866,7 +3870,7 @@ Se.install = function(e) {
|
|
|
3866
3870
|
const Bn = {
|
|
3867
3871
|
name: "lhTreeSpecialSelect",
|
|
3868
3872
|
componentName: "lhTreeSpecialSelect",
|
|
3869
|
-
emits: ["update:modelValue"],
|
|
3873
|
+
emits: ["update:modelValue", "clearCallback"],
|
|
3870
3874
|
props: {
|
|
3871
3875
|
modelValue: {
|
|
3872
3876
|
type: [Array, String],
|
|
@@ -3964,6 +3968,7 @@ const Bn = {
|
|
|
3964
3968
|
this.$refs.myTree.hideOthers();
|
|
3965
3969
|
},
|
|
3966
3970
|
buttonFuc1() {
|
|
3971
|
+
this.$emit("clearCallback", 1);
|
|
3967
3972
|
},
|
|
3968
3973
|
search() {
|
|
3969
3974
|
this.$refs.myTree && this.$refs.myTree.search(this.searchText);
|