@xuda.io/runtime-bundle 1.0.756 → 1.0.758

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.
@@ -12604,9 +12604,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12604
12604
  let obj_item = new_arr[arr_idx];
12605
12605
  // let e_exp = bind_field_exp.replace('@' + bind_field_id, 'obj_item');
12606
12606
  // let new_val = eval(e_exp + `="${value}"`);
12607
- let str = val.value.replace(bind_field_id, obj_item) + `="${value}"`;
12607
+ let e_exp = val.value.replace(bind_field_id, 'obj_item');
12608
12608
 
12609
- eval(str);
12609
+ let new_val = eval(e_exp + `="${value}"`);
12610
12610
 
12611
12611
  new_arr[arr_idx] = obj_item;
12612
12612
  } else {
@@ -12651,16 +12651,13 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12651
12651
  } else {
12652
12652
  value = false;
12653
12653
  }
12654
- }
12655
-
12656
- if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'radio' && $elm.attr('value')) {
12654
+ } else if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'radio' && $elm.attr('value')) {
12657
12655
  if (value.includes($elm.attr('value'))) {
12658
12656
  value = $elm.attr('value');
12659
12657
  } else {
12660
12658
  value = false;
12661
12659
  }
12662
- }
12663
- if (field_prop.props.fieldType === 'object' && $elm.attr('type') === 'text' && val.value.split('.').length > 1) {
12660
+ } else if (field_prop.props.fieldType === 'object' && val.value.split('.').length > 1) {
12664
12661
  let str = val.value.replace(bind_field_id, '(' + JSON.stringify(value) + ')');
12665
12662
  value = eval(str);
12666
12663
  }
@@ -10314,9 +10314,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10314
10314
  let obj_item = new_arr[arr_idx];
10315
10315
  // let e_exp = bind_field_exp.replace('@' + bind_field_id, 'obj_item');
10316
10316
  // let new_val = eval(e_exp + `="${value}"`);
10317
- let str = val.value.replace(bind_field_id, obj_item) + `="${value}"`;
10317
+ let e_exp = val.value.replace(bind_field_id, 'obj_item');
10318
10318
 
10319
- eval(str);
10319
+ let new_val = eval(e_exp + `="${value}"`);
10320
10320
 
10321
10321
  new_arr[arr_idx] = obj_item;
10322
10322
  } else {
@@ -10361,16 +10361,13 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10361
10361
  } else {
10362
10362
  value = false;
10363
10363
  }
10364
- }
10365
-
10366
- if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'radio' && $elm.attr('value')) {
10364
+ } else if (field_prop.props.fieldType === 'array' && $elm.attr('type') === 'radio' && $elm.attr('value')) {
10367
10365
  if (value.includes($elm.attr('value'))) {
10368
10366
  value = $elm.attr('value');
10369
10367
  } else {
10370
10368
  value = false;
10371
10369
  }
10372
- }
10373
- if (field_prop.props.fieldType === 'object' && $elm.attr('type') === 'text' && val.value.split('.').length > 1) {
10370
+ } else if (field_prop.props.fieldType === 'object' && val.value.split('.').length > 1) {
10374
10371
  let str = val.value.replace(bind_field_id, '(' + JSON.stringify(value) + ')');
10375
10372
  value = eval(str);
10376
10373
  }