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

@@ -1552,7 +1552,7 @@ function onDragStartPlugin(evt: any) {
/>
<!-- 插件搜索窗口 -->
<VDialog
<DialogWrapper
v-if="SearchDialog"
v-model="SearchDialog"
scrollable
@@ -1611,20 +1611,20 @@ function onDragStartPlugin(evt: any) {
</VVirtualScroll>
</VList>
</VCard>
</VDialog>
</DialogWrapper>
<!-- 安装插件进度框 -->
<VDialog v-if="progressDialog" v-model="progressDialog" :scrim="false" width="25rem">
<DialogWrapper v-if="progressDialog" v-model="progressDialog" :scrim="false" width="25rem">
<VCard color="primary">
<VCardText class="text-center">
{{ progressText }}
<VProgressLinear indeterminate color="white" class="mb-0 mt-1" />
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
<!-- 新建文件夹对话框 -->
<VDialog v-if="newFolderDialog" v-model="newFolderDialog" max-width="400">
<DialogWrapper v-if="newFolderDialog" v-model="newFolderDialog" max-width="400">
<VCard>
<VDialogCloseBtn @click="newFolderDialog = false" />
<VCardItem>
@@ -1646,5 +1646,5 @@ function onDragStartPlugin(evt: any) {
}}</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -261,7 +261,7 @@ onMounted(() => {
</div>
</div>
</div>
<VDialog v-if="releaseDialog" v-model="releaseDialog" width="600" scrollable>
<DialogWrapper v-if="releaseDialog" v-model="releaseDialog" width="600" scrollable>
<VCard>
<VCardItem>
<VDialogCloseBtn @click="releaseDialog = false" />
@@ -269,7 +269,7 @@ onMounted(() => {
</VCardItem>
<VCardText v-html="releaseDialogBody" />
</VCard>
</VDialog>
</DialogWrapper>
</template>
<style type="scss" scoped>

View File

@@ -423,7 +423,7 @@ onMounted(() => {
</VCard>
<!-- 重新识别对话框 -->
<VDialog v-model="reidentifyDialog" scrollable max-width="35rem">
<DialogWrapper v-model="reidentifyDialog" scrollable max-width="35rem">
<VCard>
<VCardItem class="py-2">
<template #prepend>
@@ -469,5 +469,5 @@ onMounted(() => {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -444,7 +444,7 @@ onMounted(() => {
:indeterminate="true"
/>
<!-- 模板编辑器对话框 -->
<VDialog v-model="editorVisible" v-if="editorVisible" max-width="50rem" :fullscreen="!display.mdAndUp.value">
<DialogWrapper v-model="editorVisible" v-if="editorVisible" max-width="50rem" :fullscreen="!display.mdAndUp.value">
<VCard>
<VCardItem class="py-2">
<template #prepend>
@@ -472,7 +472,7 @@ onMounted(() => {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>
<style scoped>
/* Monaco编辑器容器样式 */

View File

@@ -732,7 +732,7 @@ onDeactivated(() => {
</VRow>
<!-- 高级系统设置 -->
<VDialog
<DialogWrapper
v-if="advancedDialog"
v-model="advancedDialog"
scrollable
@@ -1328,5 +1328,5 @@ onDeactivated(() => {
</VForm>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
</template>

View File

@@ -617,7 +617,7 @@ const handleSortIconClick = () => {
</VCard>
<!-- 全部筛选弹窗 -->
<VDialog
<DialogWrapper
v-model="allFilterMenuOpen"
max-width="50rem"
location="center"
@@ -690,10 +690,10 @@ const handleSortIconClick = () => {
</div>
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
<!-- 筛选弹窗 -->
<VDialog v-model="filterMenuOpen" max-width="25rem" location="center" max-height="85vh">
<DialogWrapper v-model="filterMenuOpen" max-width="25rem" location="center" max-height="85vh">
<VCard>
<VCardTitle class="py-3 d-flex align-center">
<VIcon :icon="getFilterIcon(currentFilter)" class="me-2"></VIcon>
@@ -735,7 +735,7 @@ const handleSortIconClick = () => {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
<!-- 资源列表 -->
<VInfiniteScroll mode="intersect" side="end" :items="displayDataList" class="overflow-visible" @load="loadMore">

View File

@@ -597,7 +597,7 @@ onMounted(() => {
</VCard>
<!-- 全部筛选弹窗 -->
<VDialog
<DialogWrapper
v-model="allFilterMenuOpen"
max-width="50rem"
location="center"
@@ -670,10 +670,10 @@ onMounted(() => {
</div>
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
<!-- 筛选弹窗 -->
<VDialog v-model="filterMenuOpen" max-width="25rem" max-height="85vh" location="center">
<DialogWrapper v-model="filterMenuOpen" max-width="25rem" max-height="85vh" location="center">
<VCard>
<VCardTitle class="py-3 d-flex align-center">
<VIcon :icon="getFilterIcon(currentFilter)" class="me-2"></VIcon>
@@ -715,7 +715,7 @@ onMounted(() => {
</VBtn>
</VCardActions>
</VCard>
</VDialog>
</DialogWrapper>
<!-- 资源列表容器 -->
<VCard class="resource-list-container">

View File

@@ -454,7 +454,7 @@ watch(
</VRow>
<!-- 双重验证弹窗 -->
<VDialog v-if="otpDialog" v-model="otpDialog" max-width="45rem" scrollable>
<DialogWrapper v-if="otpDialog" v-model="otpDialog" max-width="45rem" scrollable>
<!-- 开启双重验证弹窗内容 -->
<VCard>
<VDialogCloseBtn @click="otpDialog = false" />
@@ -492,6 +492,6 @@ watch(
</VForm>
</VCardText>
</VCard>
</VDialog>
</DialogWrapper>
</div>
</template>