mirror of
https://gitee.com/JavaLionLi/plus-ui.git
synced 2026-09-20 18:15:57 +08:00
16 lines
424 B
Vue
16 lines
424 B
Vue
<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>
|