File tree Expand file tree Collapse file tree 4 files changed +100
-0
lines changed Expand file tree Collapse file tree 4 files changed +100
-0
lines changed Original file line number Diff line number Diff line change
1
+ var data = {
2
+ name: 'My Tree',
3
+ children: [
4
+ { name: 'hello' },
5
+ { name: 'wat' },
6
+ {
7
+ name: 'child folder',
8
+ children: [
9
+ {
10
+ name: 'child folder',
11
+ children: [
12
+ { name: 'hello' },
13
+ { name: 'wat' }
14
+ ]
15
+ },
16
+ { name: 'hello' },
17
+ { name: 'wat' },
18
+ {
19
+ name: 'child folder',
20
+ children: [
21
+ { name: 'hello' },
22
+ { name: 'wat' }
23
+ ]
24
+ }
25
+ ]
26
+ }
27
+ ]
28
+ }
29
+
30
+ Vue.component('item',{
31
+ template:'#item-template',
32
+ props:{
33
+ model:Object
34
+ },
35
+ data:function() {
36
+
37
+ }
38
+ })
Original file line number Diff line number Diff line change
1
+ body {
2
+ font-family : Helvetica Neue, Arial, sans-serif;
3
+ font-size : 14px ;
4
+ color : # 444 ;
5
+ }
6
+
7
+ table {
8
+ border : 2px solid # 42b983 ;
9
+ border-radius : 3px ;
10
+ background-color : # fff ;
11
+ }
12
+
13
+ th {
14
+ background-color : # 42b983 ;
15
+ color : rgba (255 , 255 , 255 , 0.66 );
16
+ cursor : pointer;
17
+ -webkit-user-select : none;
18
+ -moz-user-select : none;
19
+ -user-select : none;
20
+ }
21
+
22
+ td {
23
+ background-color : # f9f9f9 ;
24
+ }
25
+
26
+ th , td {
27
+ min-width : 120px ;
28
+ padding : 10px 20px ;
29
+ }
30
+
31
+ th .active {
32
+ color : # fff ;
33
+ }
34
+
35
+ th .active .arrow {
36
+ opacity : 1 ;
37
+ }
38
+
39
+ .arrow {
40
+ display : inline-block;
41
+ vertical-align : middle;
42
+ width : 0 ;
43
+ height : 0 ;
44
+ margin-left : 5px ;
45
+ opacity : 0.66 ;
46
+ }
47
+
48
+ .arrow .asc {
49
+ border-left : 4px solid transparent;
50
+ border-right : 4px solid transparent;
51
+ border-bottom : 4px solid # fff ;
52
+ }
53
+
54
+ .arrow .dsc {
55
+ border-left : 4px solid transparent;
56
+ border-right : 4px solid transparent;
57
+ border-top : 4px solid # fff ;
58
+ }
59
+
60
+ # search {
61
+ margin-bottom : 10px ;
62
+ }
You can’t perform that action at this time.
0 commit comments