mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 16:16:42 +08:00
订阅编辑弹窗小屏时全屏
This commit is contained in:
@@ -3,6 +3,10 @@ import { useToast } from 'vue-toast-notification'
|
|||||||
import { numberValidator } from '@/@validators'
|
import { numberValidator } from '@/@validators'
|
||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import type { Site, Subscribe } from '@/api/types'
|
import type { Site, Subscribe } from '@/api/types'
|
||||||
|
import { useDisplay } from 'vuetify'
|
||||||
|
|
||||||
|
// 显示器宽度
|
||||||
|
const displayWidth = useDisplay().width
|
||||||
|
|
||||||
// 输入参数
|
// 输入参数
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -270,6 +274,7 @@ onMounted(() => {
|
|||||||
<VDialog
|
<VDialog
|
||||||
scrollable
|
scrollable
|
||||||
max-width="60rem"
|
max-width="60rem"
|
||||||
|
:fullscreen="displayWidth < (60 * 16)"
|
||||||
>
|
>
|
||||||
<VCard
|
<VCard
|
||||||
:title="`${props.default ? `${props.type}默认订阅规则` : `编辑订阅 - ${subscribeForm.name} ${subscribeForm.season ? `第 ${subscribeForm.season} 季` : ''}`}`"
|
:title="`${props.default ? `${props.type}默认订阅规则` : `编辑订阅 - ${subscribeForm.name} ${subscribeForm.season ? `第 ${subscribeForm.season} 季` : ''}`}`"
|
||||||
|
|||||||
Reference in New Issue
Block a user