增加自适应组件

This commit is contained in:
aixianling
2023-10-11 18:21:40 +08:00
parent 7be1dfd235
commit 6b7ff8e58c
7 changed files with 238 additions and 3 deletions

View File

@@ -0,0 +1,51 @@
<template>
<section class="AppBIBoard" :class="{fullscreen}">
<ai-fit-view>
<ai-dv-wrapper ref="fddv">
<template v-slot:head="head">
<fengdu-head v-bind="head" @fullscreen="handleFullScreen" @setting="handleSetting"/>
</template>
<ai-dv-viewer v-bind="$props"/>
</ai-dv-wrapper>
</ai-fit-view>
</section>
</template>
<script>
import AiFitView from "dui/packages/layout/AiFitView.vue";
import FengduHead from "./components/fengduHead.vue";
export default {
name: "AppBIBoard",
label: "丰都指挥舱",
components: {FengduHead, AiFitView},
props: {
instance: Function,
dict: Object
},
data() {
return {
fullscreen: false
}
},
methods: {
handleFullScreen() {
this.fullscreen = this.$refs.fddv.handleFullScreen()
},
handleSetting(v) {
this.$refs.fddv.dialog = v
}
},
}
</script>
<style scoped lang="scss">
.AppBIBoard {
&.fullscreen {
position: fixed;
z-index: 202310111819;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
}
</style>