@aochuang/client-sdk 1.0.373 → 1.0.374

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.
@@ -183,6 +183,12 @@ export default {
183
183
  // 向下
184
184
  if (evt.keyCode === 40) {
185
185
  evt.preventDefault()
186
+ if (this.hasMore && !this.loadingMore && index >= this.data.length - 2) {
187
+ this.$emit('load-more')
188
+ }
189
+ if (this.hasMore && index === this.data.length - 1) {
190
+ return
191
+ }
186
192
  const nextIndex = index + 1 > this.data.length - 1 ? 0 : index + 1
187
193
  this.focusId = this.data[nextIndex].id
188
194
  this.scrollTo(this.focusId)
@@ -275,6 +275,7 @@ export default {
275
275
  this.suggestioning = true
276
276
  this.suggestionsLoadingMore = false
277
277
  this.suggestionsHasMore = false
278
+ this.suggestionsData = []
278
279
  this.suggestionsKeyword = keyword
279
280
  this.popoverActive = true
280
281
  clearTimeout(this._loadSuggestionsTimer)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aochuang/client-sdk",
3
- "version": "1.0.373",
3
+ "version": "1.0.374",
4
4
  "description": "",
5
5
  "files": [
6
6
  "common",