chore(deps): update lint (#1928)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
This commit is contained in:
parent
2838e18ff7
commit
3c43a1cdd1
62 changed files with 464 additions and 434 deletions
|
@ -6,7 +6,7 @@ defineProps<{
|
|||
active: boolean
|
||||
}>()
|
||||
|
||||
const onActivate = () => {
|
||||
function onActivate() {
|
||||
(document.activeElement as HTMLElement).blur()
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -38,9 +38,11 @@ const results = computed(() => {
|
|||
// Reset index when results change
|
||||
watch([results, focused], () => index.value = -1)
|
||||
|
||||
const shift = (delta: number) => index.value = (index.value + delta % results.value.length + results.value.length) % results.value.length
|
||||
function shift(delta: number) {
|
||||
return index.value = (index.value + delta % results.value.length + results.value.length) % results.value.length
|
||||
}
|
||||
|
||||
const activate = () => {
|
||||
function activate() {
|
||||
const currentIndex = index.value
|
||||
|
||||
if (query.value.length === 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue