mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
搜索弹窗
This commit is contained in:
@@ -21,6 +21,7 @@ const search = () => {
|
|||||||
if (!searchWord.value) {
|
if (!searchWord.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
searchDialog.value = false;
|
||||||
router.push({
|
router.push({
|
||||||
path: "/browse/media/search",
|
path: "/browse/media/search",
|
||||||
query: {
|
query: {
|
||||||
@@ -43,10 +44,33 @@ const search = () => {
|
|||||||
<!-- 👉 Search -->
|
<!-- 👉 Search -->
|
||||||
<div class="d-flex align-center cursor-pointer" style="user-select: none">
|
<div class="d-flex align-center cursor-pointer" style="user-select: none">
|
||||||
<!-- 👉 Search Trigger button -->
|
<!-- 👉 Search Trigger button -->
|
||||||
<IconBtn class="d-lg-none">
|
<VDialog
|
||||||
<VDialog v-model="searchDialog" activator="parent" width="auto"> </VDialog>
|
v-model="searchDialog"
|
||||||
<VIcon icon="mdi-magnify" />
|
max-width="600"
|
||||||
</IconBtn>
|
transition="dialog-top-transition"
|
||||||
|
>
|
||||||
|
<!-- Dialog Activator -->
|
||||||
|
<template #activator="{ props }">
|
||||||
|
<IconBtn class="d-lg-none" v-bind="props">
|
||||||
|
<VIcon icon="mdi-magnify" />
|
||||||
|
</IconBtn>
|
||||||
|
</template>
|
||||||
|
<!-- Dialog Content -->
|
||||||
|
<VCard title="搜索">
|
||||||
|
<VCardText>
|
||||||
|
<VRow>
|
||||||
|
<VCol cols="12">
|
||||||
|
<VTextField v-model="searchWord" label="电影、电视剧名称" />
|
||||||
|
</VCol>
|
||||||
|
</VRow>
|
||||||
|
</VCardText>
|
||||||
|
|
||||||
|
<VCardActions>
|
||||||
|
<VSpacer />
|
||||||
|
<VBtn @click="search" @keydown.enter="search"> 搜索 </VBtn>
|
||||||
|
</VCardActions>
|
||||||
|
</VCard>
|
||||||
|
</VDialog>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="w-1/5">
|
<span class="w-1/5">
|
||||||
|
|||||||
Reference in New Issue
Block a user