Files
admin-web/src/modules/container-loading/components/SmartLoadingDialog.vue
T

33 lines
1.3 KiB
Vue
Raw Normal View History

2026-08-14 19:02:34 +08:00
<script setup lang="ts">
import '@/styles/adminDensity.css'
2026-08-14 19:02:34 +08:00
import AppDialog from '@/shared/components/AppDialog.vue'
import GlobalSmartLoadingView from '../pages/GlobalSmartLoadingView.vue'
const open = defineModel<boolean>({ default: false })
</script>
<template>
<AppDialog
v-model="open"
class="smart-loading-dialog admin-density-dialog"
2026-08-14 19:02:34 +08:00
title="智能装柜"
width="min(1600px, 98vw)"
2026-09-04 11:35:24 +08:00
fullscreenable
default-fullscreen
2026-08-14 19:02:34 +08:00
cancel-text="关闭"
:show-confirm="false"
destroy-on-close
>
2026-09-03 11:47:32 +08:00
<GlobalSmartLoadingView embedded />
2026-08-14 19:02:34 +08:00
</AppDialog>
</template>
<style scoped>
2026-09-04 11:35:24 +08:00
:global(.smart-loading-dialog.app-dialog.el-dialog:not(.is-fullscreen)) { width: min(1600px, 98vw); height: 94vh; max-height: 94vh; margin-block: 3vh !important; }
:global(.smart-loading-dialog.app-dialog.admin-density-dialog .el-dialog__body) { display: flex; min-height: 0; flex: 1; padding: 0; overflow: hidden; }
2026-09-03 13:49:40 +08:00
:global(.smart-loading-dialog .app-dialog__body) { display: flex; min-width: 0; min-height: 0; flex: 1; overflow: hidden; }
2026-08-14 19:02:34 +08:00
@media (max-width: 720px) {
2026-09-04 11:35:24 +08:00
:global(.smart-loading-dialog.app-dialog.el-dialog:not(.is-fullscreen)) { width: calc(100vw - 12px); height: calc(100svh - 12px); max-height: calc(100svh - 12px); margin-block: 6px !important; }
2026-08-14 19:02:34 +08:00
}
</style>