Newer
Older
KaiFengPC / src / layout / components / InnerLink / index.vue
@zhangdeliang zhangdeliang on 23 May 412 bytes 初始化项目
  1. <template>
  2. <div :style="'height:' + height">
  3. <iframe
  4. :id="iframeId"
  5. style="width: 100%; height: 100%"
  6. :src="src"
  7. frameborder="no"
  8. ></iframe>
  9. </div>
  10. </template>
  11.  
  12. <script setup>
  13. const props = defineProps({
  14. src: {
  15. type: String,
  16. default: "/"
  17. },
  18. iframeId: {
  19. type: String
  20. }
  21. });
  22.  
  23. const height = ref(document.documentElement.clientHeight - 94.5 + "px");
  24. </script>