From 724184eb293da2d0dbccf9462b8b327e4dcbb9b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Fri, 4 Aug 2023 17:00:05 +0800 Subject: [PATCH] =?UTF-8?q?json/detial=E6=B6=88=E6=81=AF=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E5=B1=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/showCopyJsonPop/index.vue | 4 +- .../src/components/showCopyJsonPop/index.vue | 54 ++++++++++++------- .../src/components/umyTable/index.vue | 15 ++++-- 3 files changed, 48 insertions(+), 25 deletions(-) diff --git a/PC/InterFace.Dash/src/components/showCopyJsonPop/index.vue b/PC/InterFace.Dash/src/components/showCopyJsonPop/index.vue index e9de0b7..55fcd6c 100644 --- a/PC/InterFace.Dash/src/components/showCopyJsonPop/index.vue +++ b/PC/InterFace.Dash/src/components/showCopyJsonPop/index.vue @@ -271,8 +271,8 @@ export default { } } - \ No newline at end of file diff --git a/PC/UI.WinIn.FasterZ.Store/src/components/umyTable/index.vue b/PC/UI.WinIn.FasterZ.Store/src/components/umyTable/index.vue index 5df6312..5c494de 100644 --- a/PC/UI.WinIn.FasterZ.Store/src/components/umyTable/index.vue +++ b/PC/UI.WinIn.FasterZ.Store/src/components/umyTable/index.vue @@ -175,7 +175,7 @@ { - this.$refs.copyDetailInput_ref.focus() - document.getElementById('copyDetailInput_dialog_ref').scrollTop = 0 + if(this.$refs.copyDetailInput_ref){ + this.$refs.copyDetailInput_ref.focus() + this.$refs.copyDetailInput_ref.$refs.textarea.scrollTop = 0 + } }) }, closeJsonPop(){ @@ -765,4 +768,10 @@ span { .itemSpan{ white-space: nowrap !important } +::v-deep .copyDetailInput{ + textarea{ + max-height: calc(100vh - 220px) !important; + overflow: auto !important; + } +} \ No newline at end of file