@dckj-npm/lowcode-code-generator 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +6 -14
- package/dist/cli.js.map +1 -1
- package/dist/standalone-loader.esm.js +1 -1
- package/dist/standalone-loader.js +1 -1
- package/dist/standalone-worker.js +1 -1
- package/dist/standalone-worker.min.js +1 -1
- package/dist/standalone-worker.min.js.map +2 -2
- package/dist/standalone.js +1 -1
- package/dist/standalone.min.js +1 -1
- package/dist/standalone.min.js.map +2 -2
- package/package.json +2 -7
- package/CHANGELOG.md +0 -280
- package/CONTRIBUTING.md +0 -40
- package/example-schema.json +0 -276
- package/example-schema.json5 +0 -276
package/example-schema.json5
DELETED
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
version: '1.0.0',
|
|
3
|
-
componentsMap: [
|
|
4
|
-
{
|
|
5
|
-
componentName: 'Button',
|
|
6
|
-
package: '@alifd/next',
|
|
7
|
-
version: '1.19.18',
|
|
8
|
-
destructuring: true,
|
|
9
|
-
exportName: 'Button',
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
componentName: 'Button.Group',
|
|
13
|
-
package: '@alifd/next',
|
|
14
|
-
version: '1.19.18',
|
|
15
|
-
destructuring: true,
|
|
16
|
-
exportName: 'Button',
|
|
17
|
-
subName: 'Group',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
componentName: 'Input',
|
|
21
|
-
package: '@alifd/next',
|
|
22
|
-
version: '1.19.18',
|
|
23
|
-
destructuring: true,
|
|
24
|
-
exportName: 'Input',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
componentName: 'Form',
|
|
28
|
-
package: '@alifd/next',
|
|
29
|
-
version: '1.19.18',
|
|
30
|
-
destructuring: true,
|
|
31
|
-
exportName: 'Form',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
componentName: 'Form.Item',
|
|
35
|
-
package: '@alifd/next',
|
|
36
|
-
version: '1.19.18',
|
|
37
|
-
destructuring: true,
|
|
38
|
-
exportName: 'Form',
|
|
39
|
-
subName: 'Item',
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
componentName: 'NumberPicker',
|
|
43
|
-
package: '@alifd/next',
|
|
44
|
-
version: '1.19.18',
|
|
45
|
-
destructuring: true,
|
|
46
|
-
exportName: 'NumberPicker',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
componentName: 'Select',
|
|
50
|
-
package: '@alifd/next',
|
|
51
|
-
version: '1.19.18',
|
|
52
|
-
destructuring: true,
|
|
53
|
-
exportName: 'Select',
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
componentsTree: [
|
|
57
|
-
{
|
|
58
|
-
componentName: 'Page',
|
|
59
|
-
id: 'node$1',
|
|
60
|
-
meta: {
|
|
61
|
-
title: '测试',
|
|
62
|
-
router: '/',
|
|
63
|
-
},
|
|
64
|
-
props: {
|
|
65
|
-
ref: 'outerView',
|
|
66
|
-
autoLoading: true,
|
|
67
|
-
},
|
|
68
|
-
fileName: 'test',
|
|
69
|
-
state: {
|
|
70
|
-
text: 'outer',
|
|
71
|
-
},
|
|
72
|
-
lifeCycles: {
|
|
73
|
-
componentDidMount: {
|
|
74
|
-
type: 'JSFunction',
|
|
75
|
-
value: "function componentDidMount() { console.log('componentDidMount'); }",
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
dataSource: {
|
|
79
|
-
list: [
|
|
80
|
-
{
|
|
81
|
-
id: 'urlParams',
|
|
82
|
-
type: 'urlParams',
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
{
|
|
86
|
-
id: 'user',
|
|
87
|
-
type: 'fetch',
|
|
88
|
-
options: {
|
|
89
|
-
method: 'GET',
|
|
90
|
-
uri: 'https://shs.xxx.com/mock/1458/demo/user',
|
|
91
|
-
isSync: true,
|
|
92
|
-
},
|
|
93
|
-
dataHandler: {
|
|
94
|
-
type: 'JSFunction',
|
|
95
|
-
value: 'function (response) {\nif (!response.data.success){\n throw new Error(response.data.message);\n }\n return response.data.data;\n}',
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
{
|
|
100
|
-
id: 'orders',
|
|
101
|
-
type: 'fetch',
|
|
102
|
-
options: {
|
|
103
|
-
method: 'GET',
|
|
104
|
-
uri: 'https://shs.xxx.com/mock/1458/demo/orders',
|
|
105
|
-
isSync: true,
|
|
106
|
-
},
|
|
107
|
-
dataHandler: {
|
|
108
|
-
type: 'JSFunction',
|
|
109
|
-
value: 'function (response) {\nif (!response.data.success){\n throw new Error(response.data.message);\n }\n return response.data.data.result;\n}',
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
dataHandler: {
|
|
114
|
-
type: 'JSFunction',
|
|
115
|
-
value: 'function (dataMap) {\n console.info("All datasources loaded:", dataMap);\n}',
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
children: [
|
|
119
|
-
{
|
|
120
|
-
componentName: 'Form',
|
|
121
|
-
id: 'node$2',
|
|
122
|
-
props: {
|
|
123
|
-
labelCol: {
|
|
124
|
-
type: 'JSExpression',
|
|
125
|
-
value: 'this.state.colNum',
|
|
126
|
-
},
|
|
127
|
-
style: {},
|
|
128
|
-
ref: 'testForm',
|
|
129
|
-
},
|
|
130
|
-
children: [
|
|
131
|
-
{
|
|
132
|
-
componentName: 'Form.Item',
|
|
133
|
-
id: 'node$3',
|
|
134
|
-
props: {
|
|
135
|
-
label: '姓名:',
|
|
136
|
-
name: 'name',
|
|
137
|
-
initValue: '李雷',
|
|
138
|
-
},
|
|
139
|
-
children: [
|
|
140
|
-
{
|
|
141
|
-
componentName: 'Input',
|
|
142
|
-
id: 'node$4',
|
|
143
|
-
props: {
|
|
144
|
-
placeholder: '请输入',
|
|
145
|
-
size: 'medium',
|
|
146
|
-
style: {
|
|
147
|
-
width: 320,
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
],
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
componentName: 'Form.Item',
|
|
155
|
-
id: 'node$5',
|
|
156
|
-
props: {
|
|
157
|
-
label: '年龄:',
|
|
158
|
-
name: 'age',
|
|
159
|
-
initValue: '22',
|
|
160
|
-
},
|
|
161
|
-
children: [
|
|
162
|
-
{
|
|
163
|
-
componentName: 'NumberPicker',
|
|
164
|
-
id: 'node$6',
|
|
165
|
-
props: {
|
|
166
|
-
size: 'medium',
|
|
167
|
-
type: 'normal',
|
|
168
|
-
},
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
componentName: 'Form.Item',
|
|
174
|
-
id: 'node$7',
|
|
175
|
-
props: {
|
|
176
|
-
label: '职业:',
|
|
177
|
-
name: 'profession',
|
|
178
|
-
},
|
|
179
|
-
children: [
|
|
180
|
-
{
|
|
181
|
-
componentName: 'Select',
|
|
182
|
-
id: 'node$8',
|
|
183
|
-
props: {
|
|
184
|
-
dataSource: [
|
|
185
|
-
{
|
|
186
|
-
label: '教师',
|
|
187
|
-
value: 't',
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
label: '医生',
|
|
191
|
-
value: 'd',
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
label: '歌手',
|
|
195
|
-
value: 's',
|
|
196
|
-
},
|
|
197
|
-
],
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
],
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
componentName: 'Div',
|
|
204
|
-
id: 'node$9',
|
|
205
|
-
props: {
|
|
206
|
-
style: {
|
|
207
|
-
textAlign: 'center',
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
children: [
|
|
211
|
-
{
|
|
212
|
-
componentName: 'Button.Group',
|
|
213
|
-
id: 'node$a',
|
|
214
|
-
props: {},
|
|
215
|
-
children: [
|
|
216
|
-
{
|
|
217
|
-
componentName: 'Button',
|
|
218
|
-
id: 'node$b',
|
|
219
|
-
condition: {
|
|
220
|
-
type: 'JSExpression',
|
|
221
|
-
value: 'this.index >= 1',
|
|
222
|
-
},
|
|
223
|
-
loop: ['a', 'b', 'c'],
|
|
224
|
-
props: {
|
|
225
|
-
type: 'primary',
|
|
226
|
-
style: {
|
|
227
|
-
margin: '0 5px 0 5px',
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
children: [
|
|
231
|
-
{
|
|
232
|
-
type: 'JSExpression',
|
|
233
|
-
value: 'this.item',
|
|
234
|
-
},
|
|
235
|
-
],
|
|
236
|
-
},
|
|
237
|
-
],
|
|
238
|
-
},
|
|
239
|
-
],
|
|
240
|
-
},
|
|
241
|
-
],
|
|
242
|
-
},
|
|
243
|
-
],
|
|
244
|
-
},
|
|
245
|
-
],
|
|
246
|
-
constants: {
|
|
247
|
-
ENV: 'prod',
|
|
248
|
-
DOMAIN: 'xxx.xxx.com',
|
|
249
|
-
},
|
|
250
|
-
css: 'body {font-size: 12px;} .table { width: 100px;}',
|
|
251
|
-
config: {
|
|
252
|
-
sdkVersion: '1.0.3',
|
|
253
|
-
historyMode: 'hash',
|
|
254
|
-
targetRootID: 'J_Container',
|
|
255
|
-
layout: {
|
|
256
|
-
componentName: 'BasicLayout',
|
|
257
|
-
props: {
|
|
258
|
-
logo: '...',
|
|
259
|
-
name: '测试网站',
|
|
260
|
-
},
|
|
261
|
-
},
|
|
262
|
-
theme: {
|
|
263
|
-
package: '@alife/theme-fusion',
|
|
264
|
-
version: '^0.1.0',
|
|
265
|
-
primary: '#ff9966',
|
|
266
|
-
},
|
|
267
|
-
},
|
|
268
|
-
meta: {
|
|
269
|
-
name: 'demo应用',
|
|
270
|
-
git_group: 'appGroup',
|
|
271
|
-
project_name: 'app_demo',
|
|
272
|
-
description: '这是一个测试应用',
|
|
273
|
-
spma: 'spa23d',
|
|
274
|
-
creator: 'Test',
|
|
275
|
-
},
|
|
276
|
-
}
|