将所有 VDialog 组件替换为 DialogWrapper 组件

This commit is contained in:
jxxghp
2025-07-10 12:44:37 +08:00
parent 273d1f8ef2
commit 0918fa1685
63 changed files with 463 additions and 146 deletions

View File

@@ -132,7 +132,7 @@ onMounted(() => {
})
</script>
<template>
<VDialog max-width="35rem" scrollable>
<DialogWrapper max-width="35rem" scrollable>
<VCard>
<VCardItem class="py-2">
<template #prepend>
@@ -209,5 +209,5 @@ onMounted(() => {
</VBtn>
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -70,7 +70,7 @@ async function savaAlistConfig() {
</script>
<template>
<VDialog width="50rem" scrollable :fullscreen="!display.mdAndUp.value">
<DialogWrapper width="50rem" scrollable :fullscreen="!display.mdAndUp.value">
<VCard>
<VDialogCloseBtn @click="emit('close')" />
<VCardItem>
@@ -143,5 +143,5 @@ async function savaAlistConfig() {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -110,7 +110,7 @@ onUnmounted(() => {
</script>
<template>
<VDialog width="40rem" scrollable :fullscreen="!display.mdAndUp.value">
<DialogWrapper width="40rem" scrollable :fullscreen="!display.mdAndUp.value">
<VCard>
<VDialogCloseBtn @click="emit('close')" />
<VCardItem>
@@ -148,5 +148,5 @@ onUnmounted(() => {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -170,7 +170,7 @@ onMounted(() => {
})
</script>
<template>
<VDialog max-width="40rem" scrollable>
<DialogWrapper max-width="40rem" scrollable>
<VCard>
<VDialogCloseBtn @click="emit('close')" />
<VCardText>
@@ -286,5 +286,5 @@ onMounted(() => {
</VCol>
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -146,7 +146,7 @@ async function doDelete() {
}
</script>
<template>
<VDialog max-width="40rem" scrollable>
<DialogWrapper max-width="40rem" scrollable>
<VCard>
<VCardText>
<VCol>
@@ -243,7 +243,7 @@ async function doDelete() {
</VCardText>
<VDialogCloseBtn @click="emit('close')" />
</VCard>
</VDialog>
</DialogWrapper>
</template>
<style lang="scss">

View File

@@ -24,7 +24,7 @@ function handleImport() {
</script>
<template>
<VDialog width="40rem" scrollable max-height="85vh">
<DialogWrapper width="40rem" scrollable max-height="85vh">
<VCard>
<VCardItem>
<template #prepend>
@@ -43,5 +43,5 @@ function handleImport() {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -15,12 +15,12 @@ defineProps({
const emit = defineEmits(['close'])
</script>
<template>
<VDialog max-width="50rem">
<DialogWrapper max-width="50rem">
<VCard>
<VDialogCloseBtn @click="emit('close')" />
<VCardItem>
<MediaInfoCard :context="context" />
</VCardItem>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -148,7 +148,7 @@ onBeforeMount(async () => {
})
</script>
<template>
<VDialog scrollable max-width="60rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper scrollable max-width="60rem" :fullscreen="!display.mdAndUp.value">
<!-- Vuetify 渲染模式 -->
<VCard v-if="renderMode === 'vuetify'" :title="`${props.plugin?.plugin_name} - ${t('dialog.pluginConfig.title')}`">
<VDialogCloseBtn @click="emit('close')" />
@@ -187,5 +187,5 @@ onBeforeMount(async () => {
<!-- 进度框 -->
<ProgressDialog v-if="progressDialog" v-model="progressDialog" :text="progressText" />
</VDialog>
</DialogWrapper>
</template>

View File

@@ -124,7 +124,7 @@ onMounted(() => {
})
</script>
<template>
<VDialog scrollable max-width="80rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper scrollable max-width="80rem" :fullscreen="!display.mdAndUp.value">
<!-- Vuetify 渲染模式 -->
<VCard v-if="renderMode === 'vuetify'" :title="`${props.plugin?.plugin_name}`">
<VDialogCloseBtn @click="emit('close')" />
@@ -160,5 +160,5 @@ onMounted(() => {
/>
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -63,7 +63,7 @@ onMounted(() => {
</script>
<template>
<VDialog width="50rem" scrollable :fullscreen="!display.mdAndUp.value">
<DialogWrapper width="50rem" scrollable :fullscreen="!display.mdAndUp.value">
<VCard>
<VCardItem>
<VCardTitle>
@@ -89,5 +89,5 @@ onMounted(() => {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -10,12 +10,12 @@ const props = defineProps({
</script>
<template>
<!-- Progress Dialog -->
<VDialog :scrim="false" width="25rem">
<DialogWrapper :scrim="false" width="25rem">
<VCard elevation="3" color="primary">
<VCardText class="text-center">
{{ props.text || t('dialog.progress.processing') }}
<VProgressLinear color="white" class="mb-0 mt-1" :model-value="props.value" indeterminate />
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -57,7 +57,7 @@ async function handleReset() {
</script>
<template>
<VDialog width="50rem" scrollable :fullscreen="!display.mdAndUp.value">
<DialogWrapper width="50rem" scrollable :fullscreen="!display.mdAndUp.value">
<VCard>
<VDialogCloseBtn @click="emit('close')" />
<VCardItem>
@@ -99,5 +99,5 @@ async function handleReset() {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -269,7 +269,7 @@ onUnmounted(() => {
</script>
<template>
<VDialog scrollable max-width="45rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper scrollable max-width="45rem" :fullscreen="!display.mdAndUp.value">
<VCard>
<VCardItem class="py-2">
<template #prepend> <VIcon icon="mdi-folder-move" class="me-2" /> </template>
@@ -487,7 +487,7 @@ onUnmounted(() => {
<!-- 手动整理进度框 -->
<ProgressDialog v-if="progressDialog" v-model="progressDialog" :text="progressText" :value="progressValue" />
<!-- TMDB ID搜索框 -->
<VDialog v-model="mediaSelectorDialog" width="40rem" scrollable max-height="85vh">
<DialogWrapper v-model="mediaSelectorDialog" width="40rem" scrollable max-height="85vh">
<MediaIdSelector
v-if="mediaSource === 'themoviedb'"
v-model="transferForm.tmdbid"
@@ -500,6 +500,6 @@ onUnmounted(() => {
@close="mediaSelectorDialog = false"
:type="mediaSource"
/>
</VDialog>
</VDialog>
</DialogWrapper>
</DialogWrapper>
</template>

View File

@@ -357,7 +357,7 @@ onMounted(() => {
})
</script>
<template>
<VDialog v-model="dialog" max-width="42rem" scrollable :fullscreen="!display.mdAndUp.value">
<DialogWrapper v-model="dialog" max-width="42rem" scrollable :fullscreen="!display.mdAndUp.value">
<VCard class="search-dialog">
<!-- 搜索输入框 -->
<VCardItem class="pa-4 pa-sm-5 search-box-container">
@@ -741,7 +741,7 @@ onMounted(() => {
</div>
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
<!-- 站点选择对话框 -->
<SearchSiteDialog

View File

@@ -56,7 +56,7 @@ const filteredSites = computed(() => {
</script>
<template>
<!-- Site Selection Dialog -->
<VDialog max-width="40rem" fullscreen-mobile>
<DialogWrapper max-width="40rem" fullscreen-mobile>
<VCard class="site-dialog">
<VCardItem>
<template #prepend>
@@ -169,7 +169,7 @@ const filteredSites = computed(() => {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>
<style scoped>
.site-checkbox-wrapper {

View File

@@ -147,7 +147,7 @@ onMounted(async () => {
</script>
<template>
<VDialog scrollable :close-on-back="false" eager max-width="45rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper scrollable :close-on-back="false" eager max-width="45rem" :fullscreen="!display.mdAndUp.value">
<VCard>
<VCardItem :class="props.oper === 'add' ? 'py-3' : 'py-2'">
<template #prepend>
@@ -350,5 +350,5 @@ onMounted(async () => {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -71,7 +71,7 @@ async function updateSiteCookie() {
}
</script>
<template>
<VDialog max-width="30rem" scrollable>
<DialogWrapper max-width="30rem" scrollable>
<!-- Dialog Content -->
<VCard :title="t('dialog.siteCookieUpdate.title')">
<VDialogCloseBtn @click="emit('close')" />
@@ -114,5 +114,5 @@ async function updateSiteCookie() {
</VCard>
<!-- 进度框 -->
<ProgressDialog v-if="progressDialog" v-model="progressDialog" :text="progressText" />
</VDialog>
</DialogWrapper>
</template>

View File

@@ -130,7 +130,7 @@ onMounted(() => {
})
</script>
<template>
<VDialog scrollable fullscreen :scrim="false" transition="dialog-bottom-transition">
<DialogWrapper scrollable fullscreen :scrim="false" transition="dialog-bottom-transition">
<VCard>
<!-- Toolbar -->
<div>
@@ -281,7 +281,7 @@ onMounted(() => {
@error="addDownloadError"
@close="addDownloadDialog = false"
/>
</VDialog>
</DialogWrapper>
</template>
<style lang="scss" scoped>

View File

@@ -287,7 +287,7 @@ onBeforeMount(() => {
</script>
<template>
<VDialog scrollable eager max-width="80rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper scrollable eager max-width="80rem" :fullscreen="!display.mdAndUp.value">
<VCard>
<VCardItem>
<VCardTitle
@@ -484,5 +484,5 @@ onBeforeMount(() => {
</VCard>
<!-- 进度框 -->
<ProgressDialog v-if="progressDialog" v-model="progressDialog" :text="t('dialog.siteUserData.refreshing')" />
</VDialog>
</DialogWrapper>
</template>

View File

@@ -50,7 +50,7 @@ async function saveSmbConfig() {
</script>
<template>
<VDialog width="50rem" scrollable :fullscreen="!display.mdAndUp.value">
<DialogWrapper width="50rem" scrollable :fullscreen="!display.mdAndUp.value">
<VCard>
<VDialogCloseBtn @click="emit('close')" />
<VCardItem>
@@ -127,5 +127,5 @@ async function saveSmbConfig() {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -280,7 +280,7 @@ onMounted(() => {
</script>
<template>
<VDialog scrollable max-width="45rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper scrollable max-width="45rem" :fullscreen="!display.mdAndUp.value">
<VCard>
<VCardItem class="py-2">
<VDialogCloseBtn @click="emit('close')" />
@@ -539,5 +539,5 @@ onMounted(() => {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -85,7 +85,7 @@ onBeforeMount(() => {
})
</script>
<template>
<VDialog scrollable max-width="80rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper scrollable max-width="80rem" :fullscreen="!display.mdAndUp.value">
<VCard>
<VCardItem class="my-2">
<VDialogCloseBtn @click="emit('close')" />
@@ -206,7 +206,7 @@ onBeforeMount(() => {
</div>
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
</template>
<style lang="scss" scoped>

View File

@@ -146,7 +146,7 @@ function getMediaTypeText(type: string | undefined) {
</script>
<template>
<VDialog scrollable max-width="50rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper scrollable max-width="50rem" :fullscreen="!display.mdAndUp.value">
<VCard class="mx-auto" width="100%">
<VCardItem>
<VCardTitle>{{ t('dialog.subscribeHistory.title', { type: getMediaTypeText(props.type) }) }}</VCardTitle>
@@ -220,5 +220,5 @@ function getMediaTypeText(type: string | undefined) {
</VCard>
<!-- 进度框 -->
<ProgressDialog v-if="progressDialog" v-model="progressDialog" :text="progressText" />
</VDialog>
</DialogWrapper>
</template>

View File

@@ -55,7 +55,7 @@ const $toast = useToast()
</script>
<template>
<VDialog scrollable max-width="30rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper scrollable max-width="30rem" :fullscreen="!display.mdAndUp.value">
<VCard>
<VCardItem class="py-2">
<template #prepend>
@@ -112,5 +112,5 @@ const $toast = useToast()
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -154,7 +154,7 @@ onUnmounted(() => {
</script>
<template>
<VDialog scrollable max-width="50rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper scrollable max-width="50rem" :fullscreen="!display.mdAndUp.value">
<VCard class="mx-auto" width="100%">
<VCardItem>
<VCardTitle>{{ t('dialog.transferQueue.title') }}</VCardTitle>
@@ -202,5 +202,5 @@ onUnmounted(() => {
</VWindow>
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -115,7 +115,7 @@ onUnmounted(() => {
</script>
<template>
<VDialog width="40rem" scrollable :fullscreen="!display.mdAndUp.value">
<DialogWrapper width="40rem" scrollable :fullscreen="!display.mdAndUp.value">
<VCard>
<VDialogCloseBtn @click="emit('close')" />
<VCardItem>
@@ -147,5 +147,5 @@ onUnmounted(() => {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -366,7 +366,7 @@ onMounted(() => {
</script>
<template>
<VDialog scrollable max-width="40rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper scrollable max-width="40rem" :fullscreen="!display.mdAndUp.value">
<VCard>
<VCardItem :class="props.oper === 'add' ? 'py-3' : 'py-2'">
<template #prepend>
@@ -619,5 +619,5 @@ onMounted(() => {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -134,7 +134,7 @@ onMounted(async () => {
</script>
<template>
<VDialog width="40rem" scrollable>
<DialogWrapper width="40rem" scrollable>
<VCard>
<VCardItem>
<VCardTitle>
@@ -179,5 +179,5 @@ onMounted(async () => {
</VBtn>
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -197,7 +197,7 @@ const isMacOS = computed(() => {
</script>
<template>
<VDialog scrollable fullscreen :scrim="false" transition="dialog-bottom-transition">
<DialogWrapper scrollable fullscreen :scrim="false" transition="dialog-bottom-transition">
<VCard class="workflow-dialog">
<!-- Toolbar -->
<VToolbar color="primary" density="comfortable">
@@ -256,7 +256,7 @@ const isMacOS = computed(() => {
@close="importCodeDialog = false"
@save="saveCodeString"
/>
</VDialog>
</DialogWrapper>
</template>
<style lang="scss">

View File

@@ -85,7 +85,7 @@ async function editWorkflow() {
</script>
<template>
<VDialog scrollable :close-on-back="false" eager max-width="30rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper scrollable :close-on-back="false" eager max-width="30rem" :fullscreen="!display.mdAndUp.value">
<VCard>
<VCardItem>
<template #prepend>
@@ -140,5 +140,5 @@ async function editWorkflow() {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -68,7 +68,7 @@ const $toast = useToast()
</script>
<template>
<VDialog scrollable max-width="30rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper scrollable max-width="30rem" :fullscreen="!display.mdAndUp.value">
<VCard>
<VCardItem class="py-2">
<template #prepend>
@@ -132,5 +132,5 @@ const $toast = useToast()
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>