提交 2c147649 编写于 作者: P Pan

perf[json-editor]:refine css

上级 de3b29b5
......@@ -53,11 +53,16 @@ export default {
}
</script>
<style>
.CodeMirror {
<style scoped>
.json-editor{
height: 100%;
position: relative;
}
.json-editor .cm-s-rubyblue span.cm-string {
.json-editor >>> .CodeMirror {
height: auto;
min-height: 300px;
}
.json-editor >>> .cm-s-rubyblue span.cm-string {
color: #F08047;
}
</style>
......@@ -140,10 +140,6 @@ code {
margin-top: 30px;
}
.editor-container .CodeMirror {
height: 100%!important;
}
.text-center {
text-align: center
}
......
<template>
<div class="components-container" style="height:100vh">
<div class="components-container">
<code>JsonEditor is base on <a href="https://github.com/codemirror/CodeMirror" target="_blank">CodeMirrorr</a> , lint base on json-lint </code>
<div class="editor-container">
<json-editor ref="jsonEditor" v-model="value"></json-editor>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册