Skip to content

Commit 323e85f

Browse files
BARMJackLian
andauthored
fix(code-gen): fix example-solution.ts format problem (alibaba#2207)
Co-authored-by: 林熠 <jack.lianjie@gmail.com>
1 parent cb2e050 commit 323e85f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/code-generator/src/cli/solutions/example-solution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ codealike.json
289289
},
290290
"lifeCycles": {
291291
"componentDidMount": {
292-
"type": "JSExpression",
293-
"value": "function() { console.log('componentDidMount'); }"
292+
"type": "JSFunction",
293+
"value": "function componentDidMount() {\\n console.log('componentDidMount');\\n}"
294294
}
295295
},
296296
"methodsModule": {

0 commit comments

Comments
 (0)