File tree Expand file tree Collapse file tree 2 files changed +10
-19
lines changed
Expand file tree Collapse file tree 2 files changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export default {
111111< style scoped>
112112 .tree - ul {
113113 margin: 0 ;
114- padding: 0 0 0 15px ;
114+ padding: 0 0 0 17px ;
115115 }
116116 .tree - li {
117117 margin: 0 ;
@@ -120,6 +120,9 @@ export default {
120120 display: flex;
121121 align- items: center;
122122 transform: translate (0 );
123+ overflow: hidden;
124+ text- overflow: ellipsis;
125+ white- space: nowrap;
123126 }
124127 .tree - content {
125128 width: 100 % ;
Original file line number Diff line number Diff line change @@ -5,18 +5,9 @@ export default {
55 render (h , ctx ) {
66 const { props } = ctx
77 const renderIcon = function (props ) {
8- if (props .indeterminate ) return < svg width= " 12" height= " 12" >
9- < rect x= " 0" y= " 0" width= " 12" height= " 12" stroke= " #2080f0" fill= " #2080f0" stroke- width= " 2" / >
10- < rect x= " 1.5" y= " 5" width= " 9" height= " 2" stroke= " #2080f0" fill= " #fff" stroke- width= " 0" / >
11- < / svg>
12- if (props .value ) return < svg width= " 12" height= " 12" >
13- < rect x= " 0" y= " 0" width= " 12" height= " 12" stroke= " #2080f0" fill= " #2080f0" stroke- width= " 2" / >
14- < line x1= " 1.5" x2= " 5.5" y1= " 5.5" y2= " 10.5" stroke= " #fff" fill= " transparent" stroke- width= " 1.5" / >
15- < line x1= " 10.5" x2= " 5" y1= " 2" y2= " 10" stroke= " #fff" fill= " transparent" stroke- width= " 1.5" / >
16- < / svg>
17- return < svg width= " 12" height= " 12" >
18- < rect x= " 0" y= " 0" width= " 12" height= " 12" stroke= " #2080f0" fill= " transparent" stroke- width= " 2" / >
19- < / svg>
8+ if (props .indeterminate ) return < svg t= " 1593660826979" class = " icon" viewBox= " 0 0 1024 1024" version= " 1.1" xmlns= " http://www.w3.org/2000/svg" p- id= " 19241" width= " 18" height= " 18" >< path d= " M170.666667 128h682.666666a42.666667 42.666667 0 0 1 42.666667 42.666667v682.666666a42.666667 42.666667 0 0 1-42.666667 42.666667H170.666667a42.666667 42.666667 0 0 1-42.666667-42.666667V170.666667a42.666667 42.666667 0 0 1 42.666667-42.666667z m42.666666 85.333333v597.333334h597.333334V213.333333H213.333333z m85.333334 256h426.666666v85.333334H298.666667v-85.333334z" p- id= " 19242" fill= " #2080F0" >< / path>< / svg>
9+ if (props .value ) return < svg t= " 1593660847492" class = " icon" viewBox= " 0 0 1024 1024" version= " 1.1" xmlns= " http://www.w3.org/2000/svg" p- id= " 19489" width= " 18" height= " 18" >< path d= " M170.666667 128h682.666666a42.666667 42.666667 0 0 1 42.666667 42.666667v682.666666a42.666667 42.666667 0 0 1-42.666667 42.666667H170.666667a42.666667 42.666667 0 0 1-42.666667-42.666667V170.666667a42.666667 42.666667 0 0 1 42.666667-42.666667z m298.794666 554.666667l301.653334-301.696-60.330667-60.330667-241.322667 241.365333-120.704-120.704-60.330666 60.330667L469.461333 682.666667z" p- id= " 19490" fill= " #2080F0" >< / path>< / svg>
10+ return < svg t= " 1593660598710" class = " icon" viewBox= " 0 0 1024 1024" version= " 1.1" xmlns= " http://www.w3.org/2000/svg" p- id= " 18740" width= " 18" height= " 18" >< path d= " M170.666667 128h682.666666a42.666667 42.666667 0 0 1 42.666667 42.666667v682.666666a42.666667 42.666667 0 0 1-42.666667 42.666667H170.666667a42.666667 42.666667 0 0 1-42.666667-42.666667V170.666667a42.666667 42.666667 0 0 1 42.666667-42.666667z m42.666666 85.333333v597.333334h597.333334V213.333333H213.333333z" p- id= " 18741" fill= " #2080f0" >< / path>< / svg>
2011 }
2112 return < div class = " tree-checkbox" style= {{
2213 filter: ` grayscale(${ props .disabled ? 100 : 0 } %)` ,
@@ -29,13 +20,10 @@ export default {
2920<style scoped>
3021div {
3122 display : block ;
32- width : 12 px ;
33- height : 12 px ;
23+ width : 18 px ;
24+ height : 18 px ;
3425 cursor : pointer ;
35- margin : 0 0 0 4 px ;
26+ margin : 0 0 0 3 px ;
3627 cursor : pointer ;
3728}
38- svg {
39- vertical-align : super ;
40- }
4129 </style >
You can’t perform that action at this time.
0 commit comments