lh-ui-next 0.1.7-beta.40 → 0.1.7-beta.41
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 +18 -22
- 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.41",
|
|
8
|
+
## test version : "0.1.7-beta.41",
|
|
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
|
@@ -3332,7 +3332,7 @@ const Jl = {
|
|
|
3332
3332
|
components: {
|
|
3333
3333
|
lhCheckbox: q
|
|
3334
3334
|
},
|
|
3335
|
-
emits: ["check-change", "init-finished"],
|
|
3335
|
+
emits: ["check-change", "init-finished", "levelShowCount-change"],
|
|
3336
3336
|
props: {
|
|
3337
3337
|
data: {
|
|
3338
3338
|
type: Array,
|
|
@@ -3387,6 +3387,13 @@ const Jl = {
|
|
|
3387
3387
|
let t = JSON.parse(JSON.stringify(e));
|
|
3388
3388
|
this.initData(t);
|
|
3389
3389
|
}
|
|
3390
|
+
},
|
|
3391
|
+
levelShowCount: {
|
|
3392
|
+
immediate: !1,
|
|
3393
|
+
deep: !0,
|
|
3394
|
+
handler: function(e) {
|
|
3395
|
+
this.$emit("levelShowCount-change", e);
|
|
3396
|
+
}
|
|
3390
3397
|
}
|
|
3391
3398
|
},
|
|
3392
3399
|
computed: {
|
|
@@ -3395,6 +3402,10 @@ const Jl = {
|
|
|
3395
3402
|
},
|
|
3396
3403
|
KeyFieldName() {
|
|
3397
3404
|
return typeof this.props.KeyFieldName > "u" ? "value" : this.props.KeyFieldName;
|
|
3405
|
+
},
|
|
3406
|
+
levelShowCount() {
|
|
3407
|
+
let e = 1, t = this.secondList.length > 0 ? 1 : 0, i = this.thirdList.length > 0 ? 1 : 0, s = this.fourthList.length > 0 ? 1 : 0;
|
|
3408
|
+
return e + t + i + s;
|
|
3398
3409
|
}
|
|
3399
3410
|
},
|
|
3400
3411
|
methods: {
|
|
@@ -3905,7 +3916,7 @@ const Bn = {
|
|
|
3905
3916
|
data() {
|
|
3906
3917
|
return {
|
|
3907
3918
|
showList: [],
|
|
3908
|
-
pWidth:
|
|
3919
|
+
pWidth: 160,
|
|
3909
3920
|
searchText: "",
|
|
3910
3921
|
innerChangeFlag: !1,
|
|
3911
3922
|
storeKeyList: [],
|
|
@@ -3946,26 +3957,9 @@ const Bn = {
|
|
|
3946
3957
|
}
|
|
3947
3958
|
},
|
|
3948
3959
|
methods: {
|
|
3949
|
-
debounce: function(e, t) {
|
|
3950
|
-
this.fun !== null && clearTimeout(this.fun), this.fun = setTimeout(e, t);
|
|
3951
|
-
},
|
|
3952
|
-
listenResize() {
|
|
3953
|
-
this.debounce(this.changeWidth, 500);
|
|
3954
|
-
},
|
|
3955
3960
|
handleResizeCallback() {
|
|
3956
3961
|
this.$refs.myPopover.setRefClient();
|
|
3957
3962
|
},
|
|
3958
|
-
changeWidth() {
|
|
3959
|
-
if (this.popoverContentWidth) {
|
|
3960
|
-
this.pWidth = this.popoverContentWidth;
|
|
3961
|
-
return;
|
|
3962
|
-
}
|
|
3963
|
-
let e = this.$refs.myPopover.$el;
|
|
3964
|
-
if (e.style.width) {
|
|
3965
|
-
let i = e.offsetWidth;
|
|
3966
|
-
i < 200 && (i = 200), this.pWidth = i;
|
|
3967
|
-
}
|
|
3968
|
-
},
|
|
3969
3963
|
hideOthers() {
|
|
3970
3964
|
this.$refs.myTree.hideOthers();
|
|
3971
3965
|
},
|
|
@@ -3989,6 +3983,9 @@ const Bn = {
|
|
|
3989
3983
|
},
|
|
3990
3984
|
initFinished(e) {
|
|
3991
3985
|
this.arrayLenth = e;
|
|
3986
|
+
},
|
|
3987
|
+
levelShowCountChange(e) {
|
|
3988
|
+
this.pWidth = e * 160;
|
|
3992
3989
|
}
|
|
3993
3990
|
},
|
|
3994
3991
|
computed: {
|
|
@@ -4000,10 +3997,8 @@ const Bn = {
|
|
|
4000
3997
|
}
|
|
4001
3998
|
},
|
|
4002
3999
|
mounted() {
|
|
4003
|
-
this.changeWidth(), window.addEventListener("resize", this.listenResize);
|
|
4004
4000
|
},
|
|
4005
4001
|
beforeUnmount() {
|
|
4006
|
-
window.removeEventListener("resize", this.listenResize);
|
|
4007
4002
|
}
|
|
4008
4003
|
}, Rn = { class: "lh-treeS-select-div" }, Wn = { class: "treeS-select-div-header" }, On = { class: "treeS-select-div-content-wapper" }, Hn = { class: "treeS-select-div-footer" }, An = { class: "count-text pull-left" }, Un = { class: "pull-right" }, jn = ["innerHTML"], Kn = ["title"], Yn = ["innerHTML"], Jn = {
|
|
4009
4004
|
key: 0,
|
|
@@ -4076,8 +4071,9 @@ function Xn(e, t, i, s, l, n) {
|
|
|
4076
4071
|
props: i.treeProps,
|
|
4077
4072
|
onCheckChange: n.checkChangeCallback,
|
|
4078
4073
|
onInitFinished: n.initFinished,
|
|
4074
|
+
onLevelShowCountChange: n.levelShowCountChange,
|
|
4079
4075
|
ref: "myTree"
|
|
4080
|
-
}, null, 8, ["data", "props", "onCheckChange", "onInitFinished"])
|
|
4076
|
+
}, null, 8, ["data", "props", "onCheckChange", "onInitFinished", "onLevelShowCountChange"])
|
|
4081
4077
|
]),
|
|
4082
4078
|
h("div", Hn, [
|
|
4083
4079
|
h("span", An, b(l.showList.length) + "/" + b(l.arrayLenth), 1),
|