custom code - added "route" param
This commit is contained in:
parent
d8ce468228
commit
071c0ebb40
|
@ -27,7 +27,7 @@ export const buildCodeForScreens = screens => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const buildComponentCode = componentProps =>
|
const buildComponentCode = componentProps =>
|
||||||
`"${componentProps._id}" : (render, context, state, routeParams) => {
|
`"${componentProps._id}" : (render, context, state, route) => {
|
||||||
${componentProps._code}
|
${componentProps._code}
|
||||||
},
|
},
|
||||||
`
|
`
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="editor-code-surround">
|
<div class="editor-code-surround">
|
||||||
function(render, context, store) {'{'}
|
function(render, context, state, route) {'{'}
|
||||||
</div>
|
</div>
|
||||||
<div class="editor">
|
<div class="editor">
|
||||||
<textarea bind:this={editor} />
|
<textarea bind:this={editor} />
|
||||||
|
|
Loading…
Reference in New Issue