Commit 44fc42cf70fd5861f151c2c76ed78f214e8acd91

Authored by ww
1 parent ec709a73

perf: 修复jsoneditor 高度问题

... ... @@ -108,7 +108,7 @@
108 108 </script>
109 109
110 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 112 <div ref="jsonEditorElRef" class="jsoneditor"></div>
113 113 </div>
114 114 </template>
... ... @@ -119,6 +119,11 @@
119 119
120 120 :deep(.jsoneditor) {
121 121 border: none !important;
  122 +
  123 + .ace-jsoneditor,
  124 + textarea.jsoneditor-text {
  125 + min-height: auto;
  126 + }
122 127 }
123 128 }
124 129 </style>
... ...