@kigi/components 1.5.10-beta.5 → 1.5.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kigi/components",
3
- "version": "1.5.10-beta.5",
3
+ "version": "1.5.12",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -112,6 +112,8 @@ export class MbgSelectMultiListController {
112
112
 
113
113
  searchNgModel() {
114
114
  this.$timeout(() => {
115
+ const search = (this.label || '').split(',')
116
+ const keys = search.map((word) => word.trim())
115
117
  const dataModel = JSON.parse(JSON.stringify(this.ngModel))
116
118
  const options = {
117
119
  shouldSort: true,
@@ -120,7 +122,7 @@ export class MbgSelectMultiListController {
120
122
  distance: 100,
121
123
  maxPatternLength: 32,
122
124
  minMatchCharLength: 1,
123
- keys: [this.label],
125
+ keys,
124
126
  }
125
127
  const fuse = new Fuse(dataModel, options)
126
128
  const result = fuse.search(this.inputValueResult)