@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.
@@ -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
- out += pad + ' onValueChange = { ' + st + ' = it },\n';
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dongmingzhixiu/vuexir-compiler",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Vue SFC → IR → 原生源码(SwiftUI / Compose)编译器核心:纯函数、零 IO",
5
5
  "type": "module",
6
6
  "license": "MIT",