@@ -2,6 +2,7 @@ export const data = [
2
2
{
3
3
id : '1' ,
4
4
title : 'folder' ,
5
+ name : 'folder' ,
5
6
key : 'folder' ,
6
7
type : 'folder' ,
7
8
contextMenu : [
@@ -15,55 +16,110 @@ export const data = [
15
16
{
16
17
id : '2' ,
17
18
title : 'abccccccccc' ,
19
+ name : 'abccccccccc' ,
18
20
key : 'abccccccccc' ,
19
21
type : 'folder' ,
20
22
children : [
21
23
{
22
24
id : '3' ,
23
25
title : 'test.txt' ,
26
+ name : 'test.txt' ,
24
27
key : 'test.txt' ,
25
28
type : 'file' ,
26
- icon : 'symbol-file'
29
+ icon : 'symbol-file' ,
30
+ value : `create table if not exists ods_order_header (
31
+ order_header_id string comment '订单头id'
32
+ ,order_date bigint comment '订单日期'
33
+ ,shop_id string comment '店铺id'
34
+ ,customer_id string comment '客户id'
35
+ ,order_status bigint comment '订单状态'
36
+ ,pay_date bigint comment '支付日期'
37
+
38
+ )comment '销售订单明细表'`
27
39
} ,
28
40
{
29
41
id : '4' ,
30
42
title : 'test.js' ,
43
+ name : 'test.js' ,
31
44
key : 'test.js' ,
32
45
type : 'file' ,
33
46
icon : 'file-binary' ,
47
+ value : `function mix(constructor) {
48
+ /// <summary locid="15">
49
+ /// Defines a class using the given constructor and the union of the set of instance members
50
+ /// specified by all the mixin objects. The mixin parameter list can be of variable length.
51
+ /// </summary>
52
+ /// <param name="constructor" locid="9">
53
+ /// A constructor function that will be used to instantiate this class.
54
+ /// </param>
55
+ /// <returns locid="12">
56
+ /// The newly defined class.
57
+ /// </returns>
58
+ constructor = constructor || function () { };
59
+ var i, len;
60
+ for (i = 0, len = arguments.length; i < len; i++) {
61
+ initializeProperties(constructor.prototype, arguments[i]);
62
+ }
63
+ return constructor;
64
+ }`
34
65
} ,
35
66
{
36
67
id : '5' ,
37
68
title : 'test.html' ,
69
+ name : 'test.html' ,
38
70
key : 'test.html' ,
39
71
type : 'file' ,
40
72
icon : 'file-code' ,
73
+ value : `<!DOCTYPE HTML>
74
+ <!--Example of comments in HTML-->
75
+ <html>
76
+ <head>
77
+ <!--This is the head section-->
78
+ <title>HTML Sample</title>
79
+ <meta charset="utf-8">
80
+
81
+ <!--This is the script tag-->
82
+ <script type="text/javascript">
83
+ function ButtonClick(){
84
+ // Example of comments in JavaScript
85
+ window.alert("I'm an alert sample!");
86
+ }
87
+ </script>
88
+ </head>
89
+ <body>
90
+ </body>
91
+ </html>
92
+ `
41
93
} ,
42
94
] ,
43
95
} ,
44
96
{
45
97
id : '6' ,
46
98
title : 'xyz' ,
99
+ name : 'xyz' ,
47
100
key : 'xyz' ,
48
101
type : 'folder' ,
49
102
children : [
50
103
{
51
104
id : '7' ,
52
105
title : 'test.pdf' ,
106
+ name : 'test.pdf' ,
53
107
key : 'test.pdf' ,
54
108
type : 'file' ,
55
109
icon : 'file-pdf' ,
56
110
} ,
57
111
{
58
112
id : '8' ,
59
113
title : 'test.media' ,
114
+ name : 'test.media' ,
60
115
key : 'test.media' ,
61
116
type : 'file' ,
62
117
icon : 'file-media' ,
63
118
} ,
64
119
{
65
120
id : '9' ,
66
121
title : 'test.zip' ,
122
+ name : 'test.zip' ,
67
123
key : 'test.zip' ,
68
124
type : 'file' ,
69
125
icon : 'file-zip' ,
@@ -73,6 +129,7 @@ export const data = [
73
129
{
74
130
id : '10' ,
75
131
title : 'file.yaml' ,
132
+ name : 'file.yaml' ,
76
133
key : 'file.yaml' ,
77
134
type : 'file' ,
78
135
} ,
0 commit comments