兰宝车间质量管理系统-前端
ahao
2024-01-05 b112b793d5f79d6b82967a7717b49011e6a56b04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<template>
  <div :style="'height:' + height">
    <iframe :id="iframeId" style="width: 100%; height: 100%; border: 0" :src="src"></iframe>
  </div>
</template>
 
<script setup lang="ts">
import { propTypes } from '@/utils/propTypes';
 
const props = defineProps({
  src: propTypes.string.def('/'),
  iframeId: propTypes.string.isRequired
});
const height = ref(document.documentElement.clientHeight - 94.5 + 'px');
</script>