@xuda.io/runtime-bundle 1.0.752 → 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
 
@@ -12595,10 +12599,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12595
12599
  if (iterate_info.iterator_val === bind_field_id) {
12596
12600
  const arr_idx = Number($elm?.data()?.xuData?.iterate_info._key);
12597
12601
  let new_arr = reference_source_obj.ret.value;
12598
- if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
12602
+ // if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
12603
+ if (field_prop.props.fieldType === 'object' && val_is_reference_field) {
12599
12604
  let obj_item = new_arr[arr_idx];
12600
- let e_exp = bind_field_exp.replace('@' + bind_field_id, 'obj_item');
12601
- 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
+
12602
12611
  new_arr[arr_idx] = obj_item;
12603
12612
  } else {
12604
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
 
@@ -10305,10 +10309,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10305
10309
  if (iterate_info.iterator_val === bind_field_id) {
10306
10310
  const arr_idx = Number($elm?.data()?.xuData?.iterate_info._key);
10307
10311
  let new_arr = reference_source_obj.ret.value;
10308
- if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
10312
+ // if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
10313
+ if (field_prop.props.fieldType === 'object' && val_is_reference_field) {
10309
10314
  let obj_item = new_arr[arr_idx];
10310
- let e_exp = bind_field_exp.replace('@' + bind_field_id, 'obj_item');
10311
- 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
+
10312
10321
  new_arr[arr_idx] = obj_item;
10313
10322
  } else {
10314
10323
  new_arr[arr_idx] = value;