mirror of
https://github.com/rustfs/console.git
synced 2026-09-01 15:17:45 +08:00
fix: editor 滚动条修复
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<script setup>
|
||||
import JsonEditorVue from 'json-editor-vue';
|
||||
import 'vanilla-jsoneditor/themes/jse-theme-dark.css';
|
||||
import JsonEditorVue from "json-editor-vue"
|
||||
import "vanilla-jsoneditor/themes/jse-theme-dark.css"
|
||||
// import { createAjvValidator } from 'svelte-jsoneditor'
|
||||
|
||||
// const validator = createAjvValidator({ schema, schemaDefinitions })
|
||||
const attrs = useAttrs();
|
||||
const attrs = useAttrs()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -15,7 +15,7 @@ const attrs = useAttrs();
|
||||
mode="text"
|
||||
:mainMenuBar="false"
|
||||
selection="TextSelection"
|
||||
class="w-full jse-theme-dark" />
|
||||
class="editor w-full jse-theme-dark" />
|
||||
</div>
|
||||
</template>
|
||||
<style scoped>
|
||||
@@ -23,4 +23,7 @@ const attrs = useAttrs();
|
||||
max-height: 800px;
|
||||
min-height: 300px;
|
||||
}
|
||||
.editor {
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user