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
+45-3Lines changed: 45 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,10 @@
41
41
- optionValueKey (String, optional): Property to use as the value for options (e.g., 'name'). Default is 'id'
42
42
- optionLabelKey (String, optional): Property to use as the label for options (e.g., 'name'). Default is 'name'
43
43
- defaultOption (Object, optional): Preselected object to include initially
44
+
- allowClear (Boolean, optional): Whether to allow clearing the selection. Default is false
44
45
- showIcon (Boolean, optional): Whether to show icon for the options. Default is true
45
46
- defaultIcon (String, optional): Icon to be shown when there is no resource icon for the option. Default is 'cloud-outlined'
47
+
- selectFirstOption (Boolean, optional): Whether to automatically select the first option when options are loaded. Default is false
46
48
47
49
Events:
48
50
- @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
@@ -58,7 +60,7 @@
58
60
:filter-option="false"
59
61
:loading="loading"
60
62
show-search
61
-
allowClear
63
+
:allowClear="allowClear"
62
64
placeholder="Select"
63
65
@search="onSearchTimed"
64
66
@popupScroll="onScroll"
@@ -78,7 +80,7 @@
78
80
</template>
79
81
<a-select-optionv-for="option in options":key="option.id":value="option[optionValueKey]">
0 commit comments