@xuda.io/runtime-bundle 1.0.753 → 1.0.754

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.
@@ -12573,7 +12573,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12573
12573
 
12574
12574
  var value = await func.common.get_cast_val(SESSION_ID, 'xu-bind', 'value', field_prop.props.fieldType, bind.getter($elm[0]));
12575
12575
 
12576
- if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
12576
+ // if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
12577
+ // value = bind.getter($elm[0]);
12578
+ // }
12579
+
12580
+ if (field_prop.props.fieldType === 'object') {
12577
12581
  value = bind.getter($elm[0]);
12578
12582
  }
12579
12583
 
@@ -12598,8 +12602,12 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12598
12602
  // if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
12599
12603
  if (field_prop.props.fieldType === 'object' && val_is_reference_field) {
12600
12604
  let obj_item = new_arr[arr_idx];
12601
- let e_exp = bind_field_exp.replace('@' + bind_field_id, 'obj_item');
12602
- let new_val = eval(e_exp + `="${value}"`);
12605
+ // let e_exp = bind_field_exp.replace('@' + bind_field_id, 'obj_item');
12606
+ // let new_val = eval(e_exp + `="${value}"`);
12607
+ let str = val.value.replace(bind_field_id, '(' + JSON.stringify(value) + ')') + `="${value}"`;
12608
+
12609
+ eval(str);
12610
+
12603
12611
  new_arr[arr_idx] = obj_item;
12604
12612
  } else {
12605
12613
  new_arr[arr_idx] = value;
@@ -10283,7 +10283,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10283
10283
 
10284
10284
  var value = await func.common.get_cast_val(SESSION_ID, 'xu-bind', 'value', field_prop.props.fieldType, bind.getter($elm[0]));
10285
10285
 
10286
- if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
10286
+ // if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
10287
+ // value = bind.getter($elm[0]);
10288
+ // }
10289
+
10290
+ if (field_prop.props.fieldType === 'object') {
10287
10291
  value = bind.getter($elm[0]);
10288
10292
  }
10289
10293
 
@@ -10308,8 +10312,12 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10308
10312
  // if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
10309
10313
  if (field_prop.props.fieldType === 'object' && val_is_reference_field) {
10310
10314
  let obj_item = new_arr[arr_idx];
10311
- let e_exp = bind_field_exp.replace('@' + bind_field_id, 'obj_item');
10312
- let new_val = eval(e_exp + `="${value}"`);
10315
+ // let e_exp = bind_field_exp.replace('@' + bind_field_id, 'obj_item');
10316
+ // let new_val = eval(e_exp + `="${value}"`);
10317
+ let str = val.value.replace(bind_field_id, '(' + JSON.stringify(value) + ')') + `="${value}"`;
10318
+
10319
+ eval(str);
10320
+
10313
10321
  new_arr[arr_idx] = obj_item;
10314
10322
  } else {
10315
10323
  new_arr[arr_idx] = value;