lh-ui-next 0.2.1-beta.17 → 0.2.1-beta.19

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.2.0",
8
- ## test version : "0.2.1-beta.17,
8
+ ## test version : "0.2.1-beta.19,
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
@@ -2982,7 +2982,7 @@ const zl = /* @__PURE__ */ w(_l, [["render", Il]]), Dl = {
2982
2982
  let l = i.children[s];
2983
2983
  t(l);
2984
2984
  }
2985
- i.checked && (this.leafOnly ? i.isLeaf && e.push(i.key) : e.push(i.key));
2985
+ i.checked && !i.disabled && (this.leafOnly ? i.isLeaf && e.push(i.key) : e.push(i.key));
2986
2986
  };
2987
2987
  for (let i = 0; i < this.store.data.length; i++) {
2988
2988
  let s = this.store.data[i];
@@ -6764,7 +6764,7 @@ const Ea = {
6764
6764
  },
6765
6765
  //处于聚焦状态。并且开始第一次的查询
6766
6766
  realVisible() {
6767
- return this.operating && this.inputValue && this.ajaxTimes < 1;
6767
+ return this.operating && this.inputValue && this.ajaxTimes < 1 && (this.searchResultList.length > 0 && this.searchResultList[0] !== "error" || this.searchResultList.length === 0);
6768
6768
  }
6769
6769
  },
6770
6770
  methods: {
@@ -6798,13 +6798,11 @@ const Ea = {
6798
6798
  searchText: e,
6799
6799
  resultList: []
6800
6800
  }), e == "" || e == null ? (this.searchResultList = [], document.getElementById(this.myid) !== null && (this.operating = !1)) : (this.ajaxTimes++, Ke(this.url, t).then((i) => {
6801
- if (i.code == this.successCode) {
6802
- this.ajaxTimes--;
6803
- const s = i.data || [];
6804
- for (let l = 0; l < this.resultListData.length; l++) {
6805
- const n = this.resultListData[l];
6806
- t[this.field] == n.searchText && (n.resultList = s);
6807
- }
6801
+ let s = [];
6802
+ i.code == this.successCode ? s = i.data || [] : s = ["error"], this.ajaxTimes--;
6803
+ for (let l = 0; l < this.resultListData.length; l++) {
6804
+ const n = this.resultListData[l];
6805
+ t[this.field] == n.searchText && (n.resultList = s);
6808
6806
  }
6809
6807
  }));
6810
6808
  },