Commit c815744265e39a3f44a06f9a92db699f70896667

Authored by 梁灏
1 parent 5e7ad5e0

fixed #499

Showing 2 changed files with 21 additions and 21 deletions   Show diff stats
examples/routers/tree.vue
@@ -38,26 +38,26 @@ @@ -38,26 +38,26 @@
38 ] 38 ]
39 }] 39 }]
40 }, 40 },
41 -// {  
42 -// expand: true,  
43 -// title: 'parent 1',  
44 -// children: [{  
45 -// title: 'parent 1-0',  
46 -// expand: true,  
47 -// children: [{  
48 -// title: 'leaf'  
49 -// }, {  
50 -// title: 'leaf',  
51 -// }]  
52 -// }, {  
53 -// title: 'parent 1-1',  
54 -// expand: true,  
55 -// checked: true,  
56 -// children: [{  
57 -// title: '<span style="color: red">leaf</span>',  
58 -// }]  
59 -// }]  
60 -// } 41 + {
  42 + expand: true,
  43 + title: 'parent 1',
  44 + children: [{
  45 + title: 'parent 1-0',
  46 + expand: true,
  47 + children: [{
  48 + title: 'leaf'
  49 + }, {
  50 + title: 'leaf',
  51 + }]
  52 + }, {
  53 + title: 'parent 1-1',
  54 + expand: true,
  55 + checked: true,
  56 + children: [{
  57 + title: '<span style="color: red">leaf</span>',
  58 + }]
  59 + }]
  60 + }
61 ] 61 ]
62 } 62 }
63 }, 63 },
src/styles/components/tree.less
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 ul{ 4 ul{
5 list-style: none; 5 list-style: none;
6 margin: 0; 6 margin: 0;
7 - padding: 5px; 7 + padding: 0;
8 font-size: @font-size-small; 8 font-size: @font-size-small;
9 li{ 9 li{
10 list-style: none; 10 list-style: none;