You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ui/src/components/widgets/InfiniteScrollSelect.vue
+40-19Lines changed: 40 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@
32
32
resourceType="account"
33
33
optionValueKey="name"
34
34
optionLabelKey="name"
35
-
@change-option="handleAccountChange" />
35
+
@change-option-value="handleAccountNameChange" />
36
36
37
37
Props:
38
38
- api (String, required): API command name (e.g., 'listAccounts')
@@ -45,7 +45,8 @@
45
45
- defaultIcon (String, optional): Icon to be shown when there is no resource icon for the option. Default is 'cloud-outlined'
46
46
47
47
Events:
48
-
- @change-option (Function): Emits the selected option object when value changes. Do not use @change as it will give warnings and may not work
48
+
- @change-option-value (Function): Emits the selected option value(s) when value(s) changes. Do not use @change as it will give warnings and may not work
49
+
- @change-option (Function): Emits the selected option object when value changes. Works only when mode is not multiple
49
50
50
51
Features:
51
52
- Debounced remote filtering
@@ -168,7 +169,7 @@ export default {
168
169
this.onSearch()
169
170
}
170
171
},
171
-
emits: ['change-option'],
172
+
emits: ['change-option-value', 'change-option'],
172
173
methods: {
173
174
asyncfetchItems () {
174
175
if (this.successiveFetches===0&&this.loading) return
@@ -199,19 +200,7 @@ export default {
199
200
}
200
201
})
201
202
this.page++
202
-
203
-
if (this.preselectedOptionValue&&this.successiveFetches<this.maxSuccessiveFetches) {
0 commit comments