Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HireTest
VueElementTemplate
Commits
2c147649
Commit
2c147649
authored
7 years ago
by
Pan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf[json-editor]:refine css
parent
de3b29b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
index.vue
src/components/JsonEditor/index.vue
+8
-3
index.scss
src/styles/index.scss
+0
-4
jsonEditor.vue
src/views/components-demo/jsonEditor.vue
+1
-1
No files found.
src/components/JsonEditor/index.vue
View file @
2c147649
...
...
@@ -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
>
This diff is collapsed.
Click to expand it.
src/styles/index.scss
View file @
2c147649
...
...
@@ -140,10 +140,6 @@ code {
margin-top
:
30px
;
}
.editor-container
.CodeMirror
{
height
:
100%
!
important
;
}
.text-center
{
text-align
:
center
}
...
...
This diff is collapsed.
Click to expand it.
src/views/components-demo/jsonEditor.vue
View file @
2c147649
<
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>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment