From 1075860848d14e3d6d1506b91d9c9039433bf4cc Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 03 三月 2025 17:40:13 +0800 Subject: [PATCH] 合并附件和业务表格 --- src/components/chat/chatComponents/htmlCom/HTMLCom.vue | 25 ++++++++++--------------- 1 files changed, 10 insertions(+), 15 deletions(-) diff --git a/src/components/chat/chatComponents/htmlCom/HTMLCom.vue b/src/components/chat/chatComponents/htmlCom/HTMLCom.vue index 1b1586a..d6e2cb8 100644 --- a/src/components/chat/chatComponents/htmlCom/HTMLCom.vue +++ b/src/components/chat/chatComponents/htmlCom/HTMLCom.vue @@ -1,29 +1,24 @@ <template> - <iframe - ref="iframeRef" - :src="data" + <IframeResizer + class="iframe-resizer" + license="GPLv3" + :src="data.url" width="100%" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" - height="370" + /> </template> <script setup lang="ts"> -import { onMounted, ref } from 'vue'; -import { Local, WinLoginInfo } from '/@/utils/storage'; -import { accessSessionKey, userNameKey } from '/@/utils/request'; - -defineProps(['data']); +import IframeResizer from '@iframe-resizer/vue/iframe-resizer.vue'; +import { ref } from 'vue'; +import { chatComProps } from '../common'; const iframeRef = ref<HTMLIFrameElement>(null); -onMounted(() => { - iframeRef.value.onload = () => { - iframeRef.value.contentWindow.localStorage; - // WinLoginInfo.set(Local.get(accessSessionKey), Local.get(userNameKey), iframeRef.value.contentWindow); - }; -}); + +const props = defineProps(chatComProps); </script> <style scoped lang="scss"></style> -- Gitblit v1.9.3