File tree 2 files changed +20
-16
lines changed
2 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 1
1
/*!
2
- * light-vue-tree v1.0.1
2
+ * light-vue-tree v1.0.3
3
3
* open source under the MIT license
4
4
*/
5
5
435
435
expanded = _node$data . expanded ,
436
436
isLeaf = _node$data . isLeaf ,
437
437
children = node . children ;
438
- return children && children . length || lazy && ! isLeaf ? expandIconSlot ? h ( "div" , {
438
+ return h ( "div" , {
439
+ "class" : "expand_box" ,
439
440
"style" : {
440
441
display : visibleExpand
441
442
}
442
- } , [ expandIconSlot ( {
443
+ } , [ children && children . length || lazy && ! isLeaf ? expandIconSlot ? expandIconSlot ( {
443
444
expanded : expanded ,
444
445
node : node ,
445
446
toggleFold : toggleFold
446
- } ) ] ) : h ( "span" , {
447
+ } ) : h ( "span" , {
447
448
"class" : [ 'icon' , expanded ? 'rotate180-enter icon-expand' : 'rotate180-leave icon-unexpand' ] ,
448
449
"on" : {
449
450
"click" : function click ( ) {
450
451
return toggleFold ( node ) ;
451
452
}
452
453
}
453
- } , [ "\u25BC" ] ) : null ;
454
+ } , [ "\u25BC" ] ) : null ] ) ;
454
455
} ,
455
456
renderCheckbox : function renderCheckbox ( ) {
456
457
var h = this . $createElement ;
2396
2397
dropType = 'none' ;
2397
2398
}
2398
2399
2399
- var iconPosition = dropNode . $el . querySelector ( '.icon ' ) . getBoundingClientRect ( ) ;
2400
+ var iconPosition = dropNode . $el . querySelector ( '.expand_box ' ) . getBoundingClientRect ( ) ;
2400
2401
var dropIndicator = this . $refs . dropIndicator ;
2401
2402
2402
2403
if ( dropType === 'before' ) {
Original file line number Diff line number Diff line change 93
93
align-items : center;
94
94
padding-left : 22px ;
95
95
}
96
- .vue-tree .child-node .node-content .icon {
96
+ .vue-tree .child-node .node-content .expand_box {
97
+ height : 100% ;
98
+ overflow : hidden;
97
99
position : absolute;
98
100
display : inline-block;
99
101
left : 0px ;
100
102
font-size : 12px ;
101
103
}
102
- .vue-tree .child-node .node-content .icon-expand {
103
- color : # 1F2E4D ;
104
+ .vue-tree .child-node .node-content .expand_box . icon-expand {
105
+ color : # 1f2e4d ;
104
106
}
105
- .vue-tree .child-node .node-content .icon-unexpand {
107
+ .vue-tree .child-node .node-content .expand_box . icon-unexpand {
106
108
color : # b7beca ;
107
109
}
108
110
.vue-tree .child-node .node-content .inner-wrap {
119
121
border-bottom : 1px solid # 409eff ;
120
122
}
121
123
.vue-tree .child-node .active-li .inner-wrap {
122
- background : # F1F3F5 ;
124
+ background : # f1f3f5 ;
123
125
}
124
126
.vue-tree .child-node .inset {
125
127
cursor : move;
134
136
background-color : # 409eff ;
135
137
color : # fff ;
136
138
}
137
- .vue-checkbox {
139
+ .vue-tree . vue- checkbox {
138
140
position : relative;
139
141
width : 13px ;
140
142
height : 13px ;
141
143
}
142
- .vue-checkbox-input {
144
+ .vue-tree . vue- checkbox-input {
143
145
position : absolute;
144
146
width : 100% ;
145
147
height : 100% ;
148
150
z-index : 3 ;
149
151
margin : 0 ;
150
152
background : transparent;
153
+ cursor : pointer;
151
154
}
152
- .vue-checkbox-indeterminate {
155
+ .vue-tree . vue- checkbox-indeterminate {
153
156
box-sizing : border-box;
154
157
position : absolute;
155
158
width : 100% ;
160
163
z-index : 4 ;
161
164
border-radius : 3px ;
162
165
}
163
- .vue-checkbox-indeterminate : after {
166
+ .vue-tree . vue- checkbox-indeterminate: after {
164
167
position : absolute;
165
- content : '' ;
168
+ content : "" ;
166
169
width : 100% ;
167
170
height : 2px ;
168
171
background : # fff ;
You can’t perform that action at this time.
0 commit comments