lh-ui-next 0.2.1-beta.18 → 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 +1 -1
- package/lib/lh-ui-next.mjs +6 -8
- package/lib/lh-ui-next.umd.js +1 -1
- package/package.json +1 -1
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.
|
|
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
|
package/lib/lh-ui-next.mjs
CHANGED
|
@@ -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
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
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
|
},
|