mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix Vmenu
This commit is contained in:
@@ -14,6 +14,7 @@ const props = defineProps<Props>()
|
|||||||
<VMenu
|
<VMenu
|
||||||
v-if="props.menuList"
|
v-if="props.menuList"
|
||||||
activator="parent"
|
activator="parent"
|
||||||
|
close-on-content-click
|
||||||
>
|
>
|
||||||
<VList
|
<VList
|
||||||
:items="props.menuList"
|
:items="props.menuList"
|
||||||
|
|||||||
@@ -187,14 +187,14 @@ const subscribeForm = reactive({
|
|||||||
<div class="me-n3">
|
<div class="me-n3">
|
||||||
<IconBtn>
|
<IconBtn>
|
||||||
<VIcon icon="mdi-dots-vertical" :color="getTextColor()" />
|
<VIcon icon="mdi-dots-vertical" :color="getTextColor()" />
|
||||||
<VMenu activator="parent">
|
<VMenu activator="parent" close-on-content-click>
|
||||||
<VList>
|
<VList>
|
||||||
<VListItem
|
<VListItem
|
||||||
v-for="(item, i) in dropdownItems"
|
v-for="(item, i) in dropdownItems"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
:base-color="item.props.color"
|
:base-color="item.props.color"
|
||||||
:key="i"
|
:key="i"
|
||||||
@click.stop="item.props.click"
|
@click="item.props.click"
|
||||||
>
|
>
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<VIcon :icon="item.props.prependIcon"></VIcon>
|
<VIcon :icon="item.props.prependIcon"></VIcon>
|
||||||
|
|||||||
@@ -134,15 +134,15 @@ onMounted(() => {
|
|||||||
<div class="me-n3">
|
<div class="me-n3">
|
||||||
<IconBtn>
|
<IconBtn>
|
||||||
<VIcon icon="mdi-dots-vertical" color="white" />
|
<VIcon icon="mdi-dots-vertical" color="white" />
|
||||||
<VMenu activator="parent">
|
<VMenu activator="parent" close-on-content-click>
|
||||||
<VList>
|
<VList>
|
||||||
<VListItem variant="plain" @click.stop="openTorrentDetail">
|
<VListItem variant="plain" @click="openTorrentDetail">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<VIcon icon="mdi-information"></VIcon>
|
<VIcon icon="mdi-information"></VIcon>
|
||||||
</template>
|
</template>
|
||||||
<VListItemTitle>查看详情</VListItemTitle>
|
<VListItemTitle>查看详情</VListItemTitle>
|
||||||
</VListItem>
|
</VListItem>
|
||||||
<VListItem variant="plain" @click.stop="downloadTorrentFile">
|
<VListItem variant="plain" @click="downloadTorrentFile">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<VIcon icon="mdi-download"></VIcon>
|
<VIcon icon="mdi-download"></VIcon>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -277,9 +277,9 @@ onMounted(() => {
|
|||||||
<td>
|
<td>
|
||||||
<IconBtn v-show="!user.is_superuser">
|
<IconBtn v-show="!user.is_superuser">
|
||||||
<VIcon icon="mdi-dots-vertical" />
|
<VIcon icon="mdi-dots-vertical" />
|
||||||
<VMenu activator="parent">
|
<VMenu activator="parent" close-on-content-click>
|
||||||
<VList>
|
<VList>
|
||||||
<VListItem variant="plain" @click.stop="deactivateUser(user)">
|
<VListItem variant="plain" @click="deactivateUser(user)">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<VIcon icon="mdi-lock"></VIcon>
|
<VIcon icon="mdi-lock"></VIcon>
|
||||||
</template>
|
</template>
|
||||||
@@ -290,7 +290,7 @@ onMounted(() => {
|
|||||||
<VListItem
|
<VListItem
|
||||||
variant="plain"
|
variant="plain"
|
||||||
base-color="error"
|
base-color="error"
|
||||||
@click.stop="deleteUser(user)"
|
@click="deleteUser(user)"
|
||||||
>
|
>
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<VIcon icon="mdi-delete"></VIcon>
|
<VIcon icon="mdi-delete"></VIcon>
|
||||||
|
|||||||
Reference in New Issue
Block a user