@dongmingzhixiu/vuexir-compiler 0.7.1 → 0.7.2
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/codegen/compose.js +2 -1
- package/package.json +1 -1
package/dist/codegen/compose.js
CHANGED
|
@@ -1477,7 +1477,8 @@ function emitNodeInner(node, ctx, depth, loop, useParamModifier = false, parentS
|
|
|
1477
1477
|
ts.push('color = ' + colorExpr(p.color));
|
|
1478
1478
|
let out = pad + 'OutlinedTextField(\n';
|
|
1479
1479
|
out += pad + ' value = ' + st + ',\n';
|
|
1480
|
-
|
|
1480
|
+
const writeBack = ctx.runtimeAsset ? '; vrnPageJs.eval(' + kotlinStr('__vrnWrite(' + JSON.stringify(st) + ',') + ' + org.json.JSONObject.quote(it) + ")")' : '';
|
|
1481
|
+
out += pad + ' onValueChange = { ' + st + ' = it' + writeBack + ' },\n';
|
|
1481
1482
|
if (p.placeholder !== undefined)
|
|
1482
1483
|
out += pad + ' placeholder = { Text(' + kotlinStr(p.placeholder) + ') },\n';
|
|
1483
1484
|
if (ts.length > 0)
|