mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 09:40:30 +08:00
* fix(dashboard): use v-autocomplete for list+options config field (#7884) Replace v-select with v-autocomplete in the list+options branch of ConfigItemRenderer. v-select's keyboard typeahead auto-toggles the first prefix-matching item in multiple mode, which is unusable for long option lists (e.g. plugin language pickers). v-autocomplete filters the dropdown by typed text instead. Bind v-model:search and clear it in @update:model-value so the search box resets after each selection, allowing consecutive keyword search. * perf(dashboard): memoize list config select items via computed Wrap getSelectItems(itemMeta) in a computed so the options array is only re-mapped when itemMeta changes, not on every keystroke in the v-autocomplete search input. Avoids quadratic-ish work for long option lists --------- Co-authored-by: wanger <wanger@example.com>