@aochuang/client-sdk 1.0.285 → 1.0.286

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.
@@ -246,10 +246,10 @@ export default {
246
246
  if (!nearest) {
247
247
  this.closeSuggestions()
248
248
  }
249
- this.loadSuggestions(nearest)
249
+ this.loadSuggestions(nearest, nearsetInfo)
250
250
  }, 200)
251
251
  },
252
- loadSuggestions (keyword) {
252
+ loadSuggestions (keyword, nearestInfo) {
253
253
  if (!this.fetchSuggestionsMethod) {
254
254
  return
255
255
  }
@@ -258,7 +258,9 @@ export default {
258
258
  this.suggestionsKeyword = keyword
259
259
  clearTimeout(this._loadSuggestionsTimer)
260
260
  return this.fetchSuggestionsMethod({
261
- keyword
261
+ keyword,
262
+ nearestInfo,
263
+ isAtContext: !!(nearestInfo && nearestInfo.isAtContext)
262
264
  }).then(rs => {
263
265
  this.suggestionsData = rs || []
264
266
  }).finally(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aochuang/client-sdk",
3
- "version": "1.0.285",
3
+ "version": "1.0.286",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"