mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
focus search tab on query change
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
<template>
|
||||
<div v-show="name == selectedTab">
|
||||
<div v-show="name == s.currentTab">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { inject } from "vue";
|
||||
|
||||
import useSearchStore from "../../stores/search";
|
||||
const s = useSearchStore();
|
||||
defineProps<{
|
||||
name: string;
|
||||
}>();
|
||||
|
||||
const selectedTab = inject("currentTab");
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user