Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
8df0ee54
Commit
8df0ee54
authored
May 10, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix treeViewstyle
parent
b9b0ffaa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
TreeView.js
src/ui/TreeView.js
+2
-2
treeView.js
src/ui/styles/treeView.js
+2
-2
No files found.
src/ui/TreeView.js
View file @
8df0ee54
...
...
@@ -45,7 +45,7 @@ class TreeView {
}
formatData
(
key
,
data
,
children
,
expand
,
keyPath
)
{
var
label
=
yo
`<
span style=
${
this
.
cssLabel
}
><label style=
${
ui
.
formatCss
(
style
.
caret
)}
></label><span style=
${
ui
.
formatCss
(
style
.
data
)}
>
${
this
.
formatSelf
(
key
,
data
)}
</span></span
>`
var
label
=
yo
`<
div style=
${
this
.
cssLabel
}
><div class="fa fa-caret-right" style=
${
ui
.
formatCss
(
style
.
caret
)}
></div><span style=
${
ui
.
formatCss
(
style
.
data
)}
>
${
this
.
formatSelf
(
key
,
data
)}
</span></div
>`
var
renderedChildren
=
''
if
(
children
.
length
)
{
renderedChildren
=
yo
`<ul style=
${
this
.
cssUl
}
>
${
children
}
</ul>`
...
...
@@ -59,7 +59,7 @@ class TreeView {
self
.
nodeIsExpanded
[
keyPath
]
=
list
.
style
.
display
===
'block'
}
}
else
{
label
.
firstElementChild
.
style
.
display
=
'none
'
label
.
firstElementChild
.
style
.
visibility
=
'hidden
'
}
return
yo
`<li style=
${
this
.
cssLi
}
>
${
label
}${
renderedChildren
}
</li>`
}
...
...
src/ui/styles/treeView.js
View file @
8df0ee54
...
...
@@ -22,9 +22,9 @@ module.exports = {
'font-family'
:
'arial,sans-serif'
},
caret
:
{
'margin-top'
:
'3px'
'margin-top'
:
'3px'
,
'width'
:
'10px'
},
data
:
{
'margin-left'
:
'10px'
}
}
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