From 6b39521805e60e613956130cb9913edadfc55ef0 Mon Sep 17 00:00:00 2001 From: N1KO Date: Thu, 19 Dec 2024 17:11:14 +0800 Subject: [PATCH] file-parse --- .../resources/templates/file-baogutang.html | 48 ++++++++++++++----- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/baogutang-admin/src/main/resources/templates/file-baogutang.html b/baogutang-admin/src/main/resources/templates/file-baogutang.html index 995daaa..5e94bc1 100644 --- a/baogutang-admin/src/main/resources/templates/file-baogutang.html +++ b/baogutang-admin/src/main/resources/templates/file-baogutang.html @@ -5,6 +5,9 @@ BAOGUTANG-FILE + + + + + - -
-

BAOGUTANG-FILE

+ +
+
+
+ +
+ +
+
+
+

文件转 Base64

- @@ -132,7 +155,6 @@

Base64 转文件

-
@@ -271,6 +293,8 @@ reader.onload = function (e) { const textArea = document.createElement('textarea'); textArea.value = e.target.result; + textArea.style.width = '100%'; + textArea.style.height = '200px'; previewArea.appendChild(textArea); }; reader.readAsText(blob);