| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <template>
- <ventBox1 class="module-common" :style="style">
- <template #title>
- <div>{{ moduleName }}</div>
- </template>
- <template #container>
- <slot></slot>
- </template>
- </ventBox1>
- </template>
- <script lang="ts" setup>
- // import ModuleLeft from './original/moduleLeft.vue';
- // import ModuleBottom from './original/moduleBottom.vue';
- import { computed } from 'vue';
- import { ShowStyle } from '../../../deviceManager/configurationTable/types';
- import ventBox1 from '/@/components/vent/ventBox1.vue';
- const props = defineProps<{
- showStyle: ShowStyle;
- moduleName: string;
- visible: boolean;
- }>();
- defineEmits(['close']);
- const style = computed(() => {
- const size = props.showStyle.size;
- const position = props.showStyle.position;
- return size + position + 'position: absolute;';
- });
- // 根据配置里的定位判断应该使用哪个module组件
- // function getModuleComponent(position) {
- // if (position === '中下') {
- // return ModuleBottom;
- // }
- // return ModuleLeft;
- // }
- </script>
- <style scoped>
- .module-common .box1-center {
- height: calc(100% - 70px);
- }
- :deep(.box1-center) {
- height: calc(100% - 70px);
- }
- :deep(.box1-center > .box-container) {
- height: 100%;
- padding: 0 !important;
- width: 100% !important;
- }
- </style>
|