File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,8 @@ computed: {
142
142
height: ' auto' ,
143
143
maxHeight: ' 300px' ,
144
144
overflowY: ' visible' ,
145
- display: ' inline-block'
145
+ display: ' inline-block' ,
146
+ textAlign: ' left'
146
147
},
147
148
row: {
148
149
width: ' 500px' ,
@@ -246,6 +247,7 @@ computed: {
246
247
| tree | Object - override default tree css |
247
248
| row | Object - override default tree node css |
248
249
| row.child | Object - override style of ` <div> ` into the ` <li> ` row (e.g. you can manage the height of the row) |
250
+ | rowIndent | Object - override style of ` <ul> ` (e.g. you can manage the child node indent) |
249
251
| expanded | Object - contains the class of the expanded icon |
250
252
| addNode | Object - contains the class and the style of the addNode button |
251
253
| editNode | Object - contains the class and the style of the editNode button |
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ export default {
62
62
height: ' auto' ,
63
63
maxHeight: ' 300px' ,
64
64
overflowY: ' visible' ,
65
- display: ' inline-block'
65
+ display: ' inline-block' ,
66
+ textAlign: ' left'
66
67
},
67
68
row: {
68
69
width: ' 500px' ,
@@ -155,10 +156,6 @@ export default {
155
156
</script >
156
157
157
158
<style lang="scss" scoped>
158
- .tree-indent {
159
- margin : 0 10px ;
160
- display : inline-block ;
161
- }
162
159
.small-tree-indent {
163
160
margin : 0 3px ;
164
161
display : inline-block ;
Original file line number Diff line number Diff line change 7
7
:style =" styles.row.child"
8
8
@click =" toggleEvent('selected', node, 'node', $event)" >
9
9
<span @click.stop =" options.events.expanded.state == true && node.nodes != undefined && node.nodes.length > 0 && toggleEvent('expanded', node)" >
10
- <span v-for =" (count, index) in depth" class =" tree-indent" v-bind:key =" index" ></span >
11
10
<i
12
11
v-if =" options.events.expanded.state == true && node.nodes != undefined && node.nodes.length > 0"
13
12
:class =" [{'expanded': expanded == true}, styles.expanded.class]" >
76
75
</span >
77
76
</span >
78
77
</div >
79
- <ul v-if =" expanded" >
78
+ <ul v-if =" expanded" :style = " styles.rowIndent " >
80
79
<tree-row
81
80
v-for =" child in node.nodes"
82
81
:ref =" 'tree-row-' + child.id"
@@ -117,6 +116,9 @@ export default {
117
116
height: ' 35px'
118
117
}
119
118
},
119
+ rowIndent: {
120
+ paddingLeft: ' 20px'
121
+ },
120
122
expanded: {
121
123
class: ' expanded_icon'
122
124
},
@@ -349,10 +351,6 @@ export default {
349
351
</script >
350
352
351
353
<style lang="scss" scoped>
352
- .tree-indent {
353
- margin : 0 10px ;
354
- display : inline-block ;
355
- }
356
354
.small-tree-indent {
357
355
margin : 0 3px ;
358
356
display : inline-block ;
You can’t perform that action at this time.
0 commit comments