From 1aa303d80a547d3e29d554c54cfbc7989da1da10 Mon Sep 17 00:00:00 2001
From: gerson <1405270578@qq.com>
Date: 星期六, 10 八月 2024 13:39:24 +0800
Subject: [PATCH] amis 测试

---
 src/components/chat/chatComponents/htmlCom/HTMLCom.vue |   26 +++++++++++---------------
 1 files changed, 11 insertions(+), 15 deletions(-)

diff --git a/src/components/chat/chatComponents/htmlCom/HTMLCom.vue b/src/components/chat/chatComponents/htmlCom/HTMLCom.vue
index 1b1586a..5e97b35 100644
--- a/src/components/chat/chatComponents/htmlCom/HTMLCom.vue
+++ b/src/components/chat/chatComponents/htmlCom/HTMLCom.vue
@@ -1,29 +1,25 @@
 <template>
-	<iframe
-		ref="iframeRef"
-		:src="data"
+	<IframeResizer
+		class="iframe-resizer"
+		license="GPLv3"
+		:src="data.url"
 		width="100%"
+		style="min-height: 500px"
 		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