Commit 44fc42cf70fd5861f151c2c76ed78f214e8acd91

Authored by ww
1 parent ec709a73

perf: 修复jsoneditor 高度问题

@@ -108,7 +108,7 @@ @@ -108,7 +108,7 @@
108 </script> 108 </script>
109 109
110 <template> 110 <template>
111 - <div class="p-2 bg-gray-200" :style="{ height: `${height - 16}px` }"> 111 + <div class="p-2 bg-gray-200" :style="{ height: `${height}px` }">
112 <div ref="jsonEditorElRef" class="jsoneditor"></div> 112 <div ref="jsonEditorElRef" class="jsoneditor"></div>
113 </div> 113 </div>
114 </template> 114 </template>
@@ -119,6 +119,11 @@ @@ -119,6 +119,11 @@
119 119
120 :deep(.jsoneditor) { 120 :deep(.jsoneditor) {
121 border: none !important; 121 border: none !important;
  122 +
  123 + .ace-jsoneditor,
  124 + textarea.jsoneditor-text {
  125 + min-height: auto;
  126 + }
122 } 127 }
123 } 128 }
124 </style> 129 </style>