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: {
142142 height: ' auto' ,
143143 maxHeight: ' 300px' ,
144144 overflowY: ' visible' ,
145- display: ' inline-block'
145+ display: ' inline-block' ,
146+ textAlign: ' left'
146147 },
147148 row: {
148149 width: ' 500px' ,
@@ -246,6 +247,7 @@ computed: {
246247| tree | Object - override default tree css |
247248| row | Object - override default tree node css |
248249| 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) |
249251| expanded | Object - contains the class of the expanded icon |
250252| addNode | Object - contains the class and the style of the addNode button |
251253| 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 {
6262 height: ' auto' ,
6363 maxHeight: ' 300px' ,
6464 overflowY: ' visible' ,
65- display: ' inline-block'
65+ display: ' inline-block' ,
66+ textAlign: ' left'
6667 },
6768 row: {
6869 width: ' 500px' ,
@@ -155,10 +156,6 @@ export default {
155156 </script >
156157
157158<style lang="scss" scoped>
158- .tree-indent {
159- margin : 0 10px ;
160- display : inline-block ;
161- }
162159.small-tree-indent {
163160 margin : 0 3px ;
164161 display : inline-block ;
Original file line number Diff line number Diff line change 77 :style =" styles.row.child"
88 @click =" toggleEvent('selected', node, 'node', $event)" >
99 <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 >
1110 <i
1211 v-if =" options.events.expanded.state == true && node.nodes != undefined && node.nodes.length > 0"
1312 :class =" [{'expanded': expanded == true}, styles.expanded.class]" >
7675 </span >
7776 </span >
7877 </div >
79- <ul v-if =" expanded" >
78+ <ul v-if =" expanded" :style = " styles.rowIndent " >
8079 <tree-row
8180 v-for =" child in node.nodes"
8281 :ref =" 'tree-row-' + child.id"
@@ -117,6 +116,9 @@ export default {
117116 height: ' 35px'
118117 }
119118 },
119+ rowIndent: {
120+ paddingLeft: ' 20px'
121+ },
120122 expanded: {
121123 class: ' expanded_icon'
122124 },
@@ -349,10 +351,6 @@ export default {
349351 </script >
350352
351353<style lang="scss" scoped>
352- .tree-indent {
353- margin : 0 10px ;
354- display : inline-block ;
355- }
356354.small-tree-indent {
357355 margin : 0 3px ;
358356 display : inline-block ;
You can’t perform that action at this time.
0 commit comments