lc-test3 1.1.4 → 1.1.6
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/p.js +150 -255
- package/package.json +1 -1
package/p.js
CHANGED
|
@@ -1,255 +1,150 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
at https://lowcode.example.com/vendors-loview-react-lowcode_node_modules_pnpm_emotion_css_11_11_2_node_modules_emotion_css_d-8c49fa.async.js:43819:73
|
|
152
|
-
at div
|
|
153
|
-
at x (https://10.4.5.136/unpkg/styled-components@5.3.11/dist/styled-components.js:1:37459)
|
|
154
|
-
at https://lowcode.example.com/vendors-loview-react-lowcode_node_modules_pnpm_emotion_css_11_11_2_node_modules_emotion_css_d-8c49fa.async.js:43819:73
|
|
155
|
-
at div
|
|
156
|
-
at x (https://10.4.5.136/unpkg/styled-components@5.3.11/dist/styled-components.js:1:37459)
|
|
157
|
-
at WorkspacePanel (https://lowcode.example.com/src_components_index_ts-src_components_DraggableModal_index_less.async.js:77175:23)
|
|
158
|
-
at div
|
|
159
|
-
at x (https://10.4.5.136/unpkg/styled-components@5.3.11/dist/styled-components.js:1:37459)
|
|
160
|
-
at div
|
|
161
|
-
at x (https://10.4.5.136/unpkg/styled-components@5.3.11/dist/styled-components.js:1:37459)
|
|
162
|
-
at DesignerPanel (https://lowcode.example.com/src_components_index_ts-src_components_DraggableModal_index_less.async.js:34067:24)
|
|
163
|
-
at https://lowcode.example.com/vendors-loview-react-lowcode_node_modules_pnpm_emotion_css_11_11_2_node_modules_emotion_css_d-8c49fa.async.js:43819:73
|
|
164
|
-
at main
|
|
165
|
-
at https://lowcode.example.com/vendors-node_modules_pnpm_ant-design_icons-svg_4_4_2_node_modules_ant-design_icons-svg_es_asn-d4fb4f.async.js:13551:18
|
|
166
|
-
at Content
|
|
167
|
-
at div
|
|
168
|
-
at https://lowcode.example.com/vendors-node_modules_pnpm_ant-design_icons-svg_4_4_2_node_modules_ant-design_icons-svg_es_asn-d4fb4f.async.js:13571:42
|
|
169
|
-
at Layout
|
|
170
|
-
at div
|
|
171
|
-
at https://lowcode.example.com/vendors-node_modules_pnpm_ant-design_icons-svg_4_4_2_node_modules_ant-design_icons-svg_es_asn-d4fb4f.async.js:13571:42
|
|
172
|
-
at Layout
|
|
173
|
-
at LocaleProvider (https://lowcode.example.com/vendors-node_modules_pnpm_ant-design_icons-svg_4_4_2_node_modules_ant-design_icons-svg_es_asn-d4fb4f.async.js:14086:5)
|
|
174
|
-
at MotionWrapper (https://lowcode.example.com/vendors-node_modules_pnpm_ant-design_icons-svg_4_4_2_node_modules_ant-design_icons-svg_es_asn-d4fb4f.async.js:11670:5)
|
|
175
|
-
at ProviderChildren (https://lowcode.example.com/vendors-node_modules_pnpm_ant-design_icons-svg_4_4_2_node_modules_ant-design_icons-svg_es_asn-d4fb4f.async.js:12124:5)
|
|
176
|
-
at ConfigProvider (https://lowcode.example.com/vendors-node_modules_pnpm_ant-design_icons-svg_4_4_2_node_modules_ant-design_icons-svg_es_asn-d4fb4f.async.js:12378:54)
|
|
177
|
-
at ThemeProvider (https://10.4.5.136/unpkg/styled-components@5.3.11/dist/styled-components.js:1:30129)
|
|
178
|
-
at SystemProvider (https://lowcode.example.com/mf-dep____vendor.7254a7da.async.js:110099:27)
|
|
179
|
-
at Designer (https://lowcode.example.com/src_components_index_ts-src_components_DraggableModal_index_less.async.js:34184:22)
|
|
180
|
-
at DesignerProvider (https://lowcode.example.com/p__Designer__index.async.js:23369:24)
|
|
181
|
-
at div
|
|
182
|
-
at DesignerView (https://lowcode.example.com/p__Designer__index.async.js:41676:73)
|
|
183
|
-
at Suspense
|
|
184
|
-
at RemoteComponent (https://lowcode.example.com/mf-dep_node_modules_cache_mfsu_mf-va__workspace_lowcode_lowcode-app-dev-platform_node_modules__pnpm_-097e60.e2d58b62.async.js:696:25)
|
|
185
|
-
at Routes (https://lowcode.example.com/mf-dep_node_modules_cache_mfsu_mf-va__workspace_lowcode_lowcode-app-dev-platform_node_modules__pnpm_-097e60.e2d58b62.async.js:202:76)
|
|
186
|
-
at Router (https://lowcode.example.com/vendors-node_modules_pnpm_react-router_6_3_0_react_18_1_0_node_modules_react-router_index_js.async.js:1678:15)
|
|
187
|
-
at BrowserRoutes (https://lowcode.example.com/mf-dep_node_modules_cache_mfsu_mf-va__workspace_lowcode_lowcode-app-dev-platform_node_modules__pnpm_-097e60.e2d58b62.async.js:162:23)
|
|
188
|
-
at r (https://lowcode.example.com/mf-dep_node_modules_cache_mfsu_mf-va__workspace_lowcode_lowcode-app-dev-platform_node_modules__pnpm_-097e60.e2d58b62.async.js:2736:7350)
|
|
189
|
-
at Provider (https://lowcode.example.com/src_umi_umi_ts.async.js:6510:21)
|
|
190
|
-
at InitialStateProvider (https://lowcode.example.com/src_umi_umi_ts.async.js:7508:64)
|
|
191
|
-
at Provider (https://lowcode.example.com/src_umi_umi_ts.async.js:7738:34)
|
|
192
|
-
at ProviderWrapper (https://lowcode.example.com/src_umi_umi_ts.async.js:7970:61)
|
|
193
|
-
at MotionWrapper (https://lowcode.example.com/vendors-node_modules_pnpm_ant-design_icons-svg_4_4_2_node_modules_ant-design_icons-svg_es_asn-d4fb4f.async.js:11670:5)
|
|
194
|
-
at ProviderChildren (https://lowcode.example.com/vendors-node_modules_pnpm_ant-design_icons-svg_4_4_2_node_modules_ant-design_icons-svg_es_asn-d4fb4f.async.js:12124:5)
|
|
195
|
-
at ConfigProvider (https://lowcode.example.com/vendors-node_modules_pnpm_ant-design_icons-svg_4_4_2_node_modules_ant-design_icons-svg_es_asn-d4fb4f.async.js:12378:54)
|
|
196
|
-
at AntdProvider (https://lowcode.example.com/src_umi_umi_ts.async.js:7170:23)
|
|
197
|
-
at Browser (https://lowcode.example.com/mf-dep_node_modules_cache_mfsu_mf-va__workspace_lowcode_lowcode-app-dev-platform_node_modules__pnpm_-097e60.e2d58b62.async.js:267:68)
|
|
198
|
-
|
|
199
|
-
Consider adding an error boundary to your tree to customize error handling behavior.
|
|
200
|
-
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
|
|
201
|
-
(anonymous) @ index.ts:6
|
|
202
|
-
/?systemId=LC0000004��n=true/#/designer:1 Uncaught (in promise) Error: Unknown node type: "Computed"
|
|
203
|
-
at cloneNodeInternal (cloneNode.js:49:1)
|
|
204
|
-
at cloneIfNode (cloneNode.js:16:1)
|
|
205
|
-
at cloneIfNodeOrArray (cloneNode.js:24:1)
|
|
206
|
-
at cloneNodeInternal (cloneNode.js:54:1)
|
|
207
|
-
at cloneIfNode (cloneNode.js:16:1)
|
|
208
|
-
at cloneIfNodeOrArray (cloneNode.js:24:1)
|
|
209
|
-
at cloneNodeInternal (cloneNode.js:54:1)
|
|
210
|
-
at cloneIfNode (cloneNode.js:16:1)
|
|
211
|
-
at cloneIfNodeOrArray (cloneNode.js:24:1)
|
|
212
|
-
at cloneNodeInternal (cloneNode.js:54:1)
|
|
213
|
-
at cloneIfNode (cloneNode.js:16:1)
|
|
214
|
-
at cloneIfNodeOrArray (cloneNode.js:24:1)
|
|
215
|
-
at cloneNodeInternal (cloneNode.js:54:1)
|
|
216
|
-
at cloneIfNode (cloneNode.js:16:1)
|
|
217
|
-
at cloneNode.js:22:1
|
|
218
|
-
at Array.map (<anonymous>)
|
|
219
|
-
at cloneIfNodeOrArray (cloneNode.js:22:1)
|
|
220
|
-
at cloneNodeInternal (cloneNode.js:54:1)
|
|
221
|
-
at cloneIfNode (cloneNode.js:16:1)
|
|
222
|
-
at cloneIfNodeOrArray (cloneNode.js:24:1)
|
|
223
|
-
at cloneNodeInternal (cloneNode.js:54:1)
|
|
224
|
-
at cloneIfNode (cloneNode.js:16:1)
|
|
225
|
-
at cloneNode.js:22:1
|
|
226
|
-
at Array.map (<anonymous>)
|
|
227
|
-
at cloneIfNodeOrArray (cloneNode.js:22:1)
|
|
228
|
-
at cloneNodeInternal (cloneNode.js:54:1)
|
|
229
|
-
at cloneIfNode (cloneNode.js:16:1)
|
|
230
|
-
at cloneIfNodeOrArray (cloneNode.js:24:1)
|
|
231
|
-
at cloneNodeInternal (cloneNode.js:54:1)
|
|
232
|
-
at cloneIfNode (cloneNode.js:16:1)
|
|
233
|
-
at cloneNode.js:22:1
|
|
234
|
-
at Array.map (<anonymous>)
|
|
235
|
-
at cloneIfNodeOrArray (cloneNode.js:22:1)
|
|
236
|
-
at cloneNodeInternal (cloneNode.js:54:1)
|
|
237
|
-
at cloneIfNode (cloneNode.js:16:1)
|
|
238
|
-
at cloneIfNodeOrArray (cloneNode.js:24:1)
|
|
239
|
-
at cloneNodeInternal (cloneNode.js:54:1)
|
|
240
|
-
at cloneIfNode (cloneNode.js:16:1)
|
|
241
|
-
at cloneNode.js:22:1
|
|
242
|
-
at Array.map (<anonymous>)
|
|
243
|
-
at cloneIfNodeOrArray (cloneNode.js:22:1)
|
|
244
|
-
at cloneNodeInternal (cloneNode.js:54:1)
|
|
245
|
-
at cloneIfNode (cloneNode.js:16:1)
|
|
246
|
-
at cloneIfNodeOrArray (cloneNode.js:24:1)
|
|
247
|
-
at cloneNodeInternal (cloneNode.js:54:1)
|
|
248
|
-
at cloneIfNode (cloneNode.js:16:1)
|
|
249
|
-
at cloneNode.js:22:1
|
|
250
|
-
at Array.map (<anonymous>)
|
|
251
|
-
at cloneIfNodeOrArray (cloneNode.js:22:1)
|
|
252
|
-
at cloneNodeInternal (cloneNode.js:54:1)
|
|
253
|
-
workspace.ts:1390 [Workspace] Saving files to IndexedDB cache...
|
|
254
|
-
workspace-cache.ts:188 [WorkspaceCache] Cached 483 files in 3444ms
|
|
255
|
-
workspace.ts:1397 [Workspace] Cache saved successfully
|
|
1
|
+
TypeError: Got a MemberExpression for MemberExpression property
|
|
2
|
+
Printer.MemberExpression
|
|
3
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/generators/expressions.js:254
|
|
4
|
+
251 | function MemberExpression(node) {
|
|
5
|
+
252 | this.print(node.object);
|
|
6
|
+
253 | if (!node.computed && isMemberExpression(node.property)) {
|
|
7
|
+
> 254 | throw new TypeError("Got a MemberExpression for MemberExpression property");
|
|
8
|
+
255 | }
|
|
9
|
+
256 | let computed = node.computed;
|
|
10
|
+
257 | if (isLiteral(node.property) && typeof node.property.value === "number") {
|
|
11
|
+
View compiled
|
|
12
|
+
Printer.exactSource
|
|
13
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:239
|
|
14
|
+
236 | }
|
|
15
|
+
237 | exactSource(loc, cb) {
|
|
16
|
+
238 | if (!loc) {
|
|
17
|
+
> 239 | cb();
|
|
18
|
+
| ^ 240 | return;
|
|
19
|
+
241 | }
|
|
20
|
+
242 | this._catchUp("start", loc);
|
|
21
|
+
View compiled
|
|
22
|
+
Printer.print
|
|
23
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:427
|
|
24
|
+
424 | this._lastCommentLine = 0;
|
|
25
|
+
425 | this._printLeadingComments(node, parent);
|
|
26
|
+
426 | const loc = nodeType === "Program" || nodeType === "File" ? null : node.loc;
|
|
27
|
+
> 427 | this.exactSource(loc, printMethod.bind(this, node, parent));
|
|
28
|
+
| ^ 428 | if (shouldPrintParens) {
|
|
29
|
+
429 | this._printTrailingComments(node, parent);
|
|
30
|
+
430 | if (indentParenthesized) {
|
|
31
|
+
View compiled
|
|
32
|
+
Printer.OptionalMemberExpression
|
|
33
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/generators/expressions.js:143
|
|
34
|
+
140 | optional,
|
|
35
|
+
141 | property
|
|
36
|
+
142 | } = node;
|
|
37
|
+
> 143 | this.print(node.object);
|
|
38
|
+
| ^ 144 | if (!computed && isMemberExpression(property)) {
|
|
39
|
+
145 | throw new TypeError("Got a MemberExpression for MemberExpression property");
|
|
40
|
+
146 | }
|
|
41
|
+
View compiled
|
|
42
|
+
Printer.exactSource
|
|
43
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:239
|
|
44
|
+
236 | }
|
|
45
|
+
237 | exactSource(loc, cb) {
|
|
46
|
+
238 | if (!loc) {
|
|
47
|
+
> 239 | cb();
|
|
48
|
+
| ^ 240 | return;
|
|
49
|
+
241 | }
|
|
50
|
+
242 | this._catchUp("start", loc);
|
|
51
|
+
View compiled
|
|
52
|
+
Printer.print
|
|
53
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:427
|
|
54
|
+
424 | this._lastCommentLine = 0;
|
|
55
|
+
425 | this._printLeadingComments(node, parent);
|
|
56
|
+
426 | const loc = nodeType === "Program" || nodeType === "File" ? null : node.loc;
|
|
57
|
+
> 427 | this.exactSource(loc, printMethod.bind(this, node, parent));
|
|
58
|
+
| ^ 428 | if (shouldPrintParens) {
|
|
59
|
+
429 | this._printTrailingComments(node, parent);
|
|
60
|
+
430 | if (indentParenthesized) {
|
|
61
|
+
View compiled
|
|
62
|
+
Printer.ExpressionStatement
|
|
63
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/generators/expressions.js:220
|
|
64
|
+
217 | }
|
|
65
|
+
218 | function ExpressionStatement(node) {
|
|
66
|
+
219 | this.tokenContext |= _index.TokenContext.expressionStatement;
|
|
67
|
+
> 220 | this.print(node.expression);
|
|
68
|
+
221 | this.semicolon();
|
|
69
|
+
222 | }
|
|
70
|
+
223 | function AssignmentPattern(node) {
|
|
71
|
+
View compiled
|
|
72
|
+
Printer.exactSource
|
|
73
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:239
|
|
74
|
+
236 | }
|
|
75
|
+
237 | exactSource(loc, cb) {
|
|
76
|
+
238 | if (!loc) {
|
|
77
|
+
> 239 | cb();
|
|
78
|
+
| ^ 240 | return;
|
|
79
|
+
241 | }
|
|
80
|
+
242 | this._catchUp("start", loc);
|
|
81
|
+
View compiled
|
|
82
|
+
Printer.print
|
|
83
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:427
|
|
84
|
+
424 | this._lastCommentLine = 0;
|
|
85
|
+
425 | this._printLeadingComments(node, parent);
|
|
86
|
+
426 | const loc = nodeType === "Program" || nodeType === "File" ? null : node.loc;
|
|
87
|
+
> 427 | this.exactSource(loc, printMethod.bind(this, node, parent));
|
|
88
|
+
| ^ 428 | if (shouldPrintParens) {
|
|
89
|
+
429 | this._printTrailingComments(node, parent);
|
|
90
|
+
430 | if (indentParenthesized) {
|
|
91
|
+
View compiled
|
|
92
|
+
Printer.generate
|
|
93
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:92
|
|
94
|
+
89 | if (this.format.preserveFormat) {
|
|
95
|
+
90 | this.tokenMap = new _tokenMap.TokenMap(ast, this._tokens, this._originalCode);
|
|
96
|
+
91 | }
|
|
97
|
+
> 92 | this.print(ast);
|
|
98
|
+
| ^ 93 | this._maybeAddAuxComment();
|
|
99
|
+
94 | return this._buf.get();
|
|
100
|
+
95 | }
|
|
101
|
+
View compiled
|
|
102
|
+
generate
|
|
103
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/index.js:108
|
|
104
|
+
105 | const format = normalizeOptions(code, opts, ast);
|
|
105
|
+
106 | const map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null;
|
|
106
|
+
107 | const printer = new _printer.default(format, map, ast.tokens, typeof code === "string" ? code : null);
|
|
107
|
+
> 108 | return printer.generate(ast);
|
|
108
|
+
109 | }
|
|
109
|
+
110 | var _default = exports.default = generate;
|
|
110
|
+
111 |
|
|
111
|
+
View compiled
|
|
112
|
+
ast2code
|
|
113
|
+
.../loview-react-lowcode/packages/core/src/helpers/ast/generate.ts:26
|
|
114
|
+
23 | */
|
|
115
|
+
24 | export function ast2code(ast: t.Node, options = defaultGeneratorOptions) {
|
|
116
|
+
25 | const { formatter = true, ...generatorOptions } = options;
|
|
117
|
+
> 26 | let code = generator(ast, {
|
|
118
|
+
27 | ...defaultGeneratorOptions,
|
|
119
|
+
28 | ...generatorOptions,
|
|
120
|
+
29 | }).code;
|
|
121
|
+
View compiled
|
|
122
|
+
expression2code
|
|
123
|
+
.../loview-react-lowcode/packages/core/src/helpers/ast/generate.ts:47
|
|
124
|
+
44 | */
|
|
125
|
+
45 | export function expression2code(node: t.Expression) {
|
|
126
|
+
46 | const statement = t.expressionStatement(node);
|
|
127
|
+
> 47 | let ret = ast2code(statement).trim();
|
|
128
|
+
48 | // �Ƴ�ĩβ�ķֺ�
|
|
129
|
+
49 | if (ret.endsWith(';')) {
|
|
130
|
+
50 | ret = ret.slice(0, -1);
|
|
131
|
+
View compiled
|
|
132
|
+
node2value
|
|
133
|
+
.../loview-react-lowcode/packages/core/src/helpers/ast/generate.ts:192
|
|
134
|
+
189 | case 'CallExpression': // {{[1,2,3].map(fn)}}
|
|
135
|
+
190 | case 'JSXElement': // {{<Box>hello</Box>}}
|
|
136
|
+
191 | case 'JSXFragment': // {{<><Box /></>}}
|
|
137
|
+
> 192 | ret = expression2code(node);
|
|
138
|
+
| ^ 193 | if (isWrapCode) {
|
|
139
|
+
194 | ret = wrapCode(ret);
|
|
140
|
+
195 | }
|
|
141
|
+
View compiled
|
|
142
|
+
OptionalMemberExpression
|
|
143
|
+
.../loview-react-lowcode/packages/core/src/helpers/ast/traverse.ts:2214
|
|
144
|
+
2211 | },
|
|
145
|
+
2212 |
|
|
146
|
+
2213 | OptionalMemberExpression(path) {
|
|
147
|
+
> 2214 | const variable = node2value(path.node, false);
|
|
148
|
+
| ^ 2215 | if (isLowCodeVariable(variable) && !variables.includes(variable)) {
|
|
149
|
+
2216 | variables.push(variable);
|
|
150
|
+
2217 | }
|