将所有 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

@@ -110,7 +110,7 @@ function onClose() {
<VImg :src="filter_svg" cover class="mt-7" max-width="3rem" />
</VCardText>
</VCard>
<VDialog
<DialogWrapper
v-if="ruleInfoDialog"
v-model="ruleInfoDialog"
scrollable
@@ -215,6 +215,6 @@ function onClose() {
}}</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</div>
</template>

View File

@@ -196,7 +196,7 @@ onUnmounted(() => {
</VCard>
</VHover>
<VDialog
<DialogWrapper
v-if="downloaderInfoDialog"
v-model="downloaderInfoDialog"
scrollable
@@ -383,6 +383,6 @@ onUnmounted(() => {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</div>
</template>

View File

@@ -223,7 +223,7 @@ function onClose() {
<VImg :src="filter_group_svg" cover class="mt-10" max-width="3rem" />
</VCardText>
</VCard>
<VDialog
<DialogWrapper
v-if="groupInfoDialog"
v-model="groupInfoDialog"
scrollable
@@ -308,7 +308,7 @@ function onClose() {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
<ImportCodeDialog
v-if="importCodeDialog"
v-model="importCodeDialog"

View File

@@ -204,7 +204,7 @@ onMounted(() => {
</VCardText>
</VCard>
<VDialog
<DialogWrapper
v-if="mediaServerInfoDialog"
v-model="mediaServerInfoDialog"
scrollable
@@ -506,6 +506,6 @@ onMounted(() => {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</div>
</template>

View File

@@ -141,7 +141,7 @@ function onClose() {
</VCardText>
</VCard>
<VDialog
<DialogWrapper
v-if="notificationInfoDialog"
v-model="notificationInfoDialog"
scrollable
@@ -476,6 +476,6 @@ function onClose() {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</div>
</template>

View File

@@ -267,15 +267,15 @@ const dropdownItems = ref([
<!-- 安装插件进度框 -->
<ProgressDialog v-if="progressDialog" v-model="progressDialog" :text="progressText" />
<!-- 更新日志 -->
<VDialog v-if="releaseDialog" v-model="releaseDialog" width="600" scrollable>
<DialogWrapper v-if="releaseDialog" v-model="releaseDialog" width="600" scrollable>
<VCard :title="t('plugin.updateHistoryTitle', { name: props.plugin?.plugin_name })">
<VDialogCloseBtn @click="releaseDialog = false" />
<VDivider />
<VersionHistory :history="props.plugin?.history" />
</VCard>
</VDialog>
</DialogWrapper>
<!-- 插件详情-->
<VDialog v-if="detailDialog" v-model="detailDialog" max-width="30rem">
<DialogWrapper v-if="detailDialog" v-model="detailDialog" max-width="30rem">
<VCard>
<VDialogCloseBtn @click="detailDialog = false" />
<VCardText>
@@ -335,6 +335,6 @@ const dropdownItems = ref([
</VCol>
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
</div>
</template>

View File

@@ -547,7 +547,7 @@ watch(
<ProgressDialog v-if="progressDialog" v-model="progressDialog" :text="progressText" />
<!-- 更新日志 -->
<VDialog v-if="releaseDialog" v-model="releaseDialog" width="600" scrollable :fullscreen="!display.mdAndUp.value">
<DialogWrapper v-if="releaseDialog" v-model="releaseDialog" width="600" scrollable :fullscreen="!display.mdAndUp.value">
<VCard :title="t('plugin.updateHistoryTitle', { name: props.plugin?.plugin_name })">
<VDialogCloseBtn @click="releaseDialog = false" />
<VDivider />
@@ -562,10 +562,10 @@ watch(
</VBtn>
</VCardItem>
</VCard>
</VDialog>
</DialogWrapper>
<!-- 实时日志弹窗 -->
<VDialog
<DialogWrapper
v-if="loggingDialog"
v-model="loggingDialog"
scrollable
@@ -591,10 +591,10 @@ watch(
<LoggingView :logfile="`plugins/${props.plugin?.id?.toLowerCase()}.log`" />
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
<!-- 插件分身对话框 -->
<VDialog
<DialogWrapper
v-if="pluginCloneDialog"
v-model="pluginCloneDialog"
width="600"
@@ -700,7 +700,7 @@ watch(
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</div>
</template>

View File

@@ -350,7 +350,7 @@ const dropdownItems = ref([
</VHover>
<!-- 重命名对话框 -->
<VDialog v-if="renameDialog" v-model="renameDialog" max-width="400">
<DialogWrapper v-if="renameDialog" v-model="renameDialog" max-width="400">
<VCard>
<VCardItem>
<template #prepend>
@@ -374,10 +374,10 @@ const dropdownItems = ref([
<VBtn color="primary" prepend-icon="mdi-check" class="px-5" @click="confirmRename">确认</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
<!-- 设置对话框 -->
<VDialog
<DialogWrapper
v-if="settingDialog"
v-model="settingDialog"
max-width="600"
@@ -480,7 +480,7 @@ const dropdownItems = ref([
<VBtn color="primary" prepend-icon="mdi-content-save" class="px-5" @click="saveSettings">保存</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</div>
</template>

View File

@@ -220,7 +220,7 @@ function onClose() {
@close="smbConfigDialog = false"
@done="handleDone"
/>
<VDialog
<DialogWrapper
v-if="customConfigDialog"
v-model="customConfigDialog"
scrollable
@@ -263,6 +263,6 @@ function onClose() {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</div>
</template>

View File

@@ -278,7 +278,7 @@ onMounted(() => {
</VCard>
<!-- 更多来源对话框 -->
<VDialog v-model="showMoreTorrents" max-width="25rem" location="center">
<DialogWrapper v-model="showMoreTorrents" max-width="25rem" location="center">
<VCard>
<VCardTitle class="py-3 d-flex align-center">
<span>其他来源</span>
@@ -361,7 +361,7 @@ onMounted(() => {
</VList>
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
<AddDownloadDialog
v-if="addDownloadDialog"