@xuda.io/runtime-bundle 1.0.751 → 1.0.753
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/js/xuda-runtime-slim.js
CHANGED
|
@@ -12595,7 +12595,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12595
12595
|
if (iterate_info.iterator_val === bind_field_id) {
|
|
12596
12596
|
const arr_idx = Number($elm?.data()?.xuData?.iterate_info._key);
|
|
12597
12597
|
let new_arr = reference_source_obj.ret.value;
|
|
12598
|
-
if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
|
|
12598
|
+
// if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
|
|
12599
|
+
if (field_prop.props.fieldType === 'object' && val_is_reference_field) {
|
|
12599
12600
|
let obj_item = new_arr[arr_idx];
|
|
12600
12601
|
let e_exp = bind_field_exp.replace('@' + bind_field_id, 'obj_item');
|
|
12601
12602
|
let new_val = eval(e_exp + `="${value}"`);
|
|
@@ -12651,6 +12652,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12651
12652
|
value = false;
|
|
12652
12653
|
}
|
|
12653
12654
|
}
|
|
12655
|
+
if (field_prop.props.fieldType === 'object' && $elm.attr('type') === 'text' && val.value.split('.').length > 1) {
|
|
12656
|
+
let str = val.value.replace(bind_field_id, '(' + JSON.stringify(value) + ')');
|
|
12657
|
+
value = eval(str);
|
|
12658
|
+
}
|
|
12654
12659
|
} else {
|
|
12655
12660
|
value = val.value;
|
|
12656
12661
|
}
|
|
@@ -10305,7 +10305,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10305
10305
|
if (iterate_info.iterator_val === bind_field_id) {
|
|
10306
10306
|
const arr_idx = Number($elm?.data()?.xuData?.iterate_info._key);
|
|
10307
10307
|
let new_arr = reference_source_obj.ret.value;
|
|
10308
|
-
if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
|
|
10308
|
+
// if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
|
|
10309
|
+
if (field_prop.props.fieldType === 'object' && val_is_reference_field) {
|
|
10309
10310
|
let obj_item = new_arr[arr_idx];
|
|
10310
10311
|
let e_exp = bind_field_exp.replace('@' + bind_field_id, 'obj_item');
|
|
10311
10312
|
let new_val = eval(e_exp + `="${value}"`);
|
|
@@ -10361,6 +10362,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10361
10362
|
value = false;
|
|
10362
10363
|
}
|
|
10363
10364
|
}
|
|
10365
|
+
if (field_prop.props.fieldType === 'object' && $elm.attr('type') === 'text' && val.value.split('.').length > 1) {
|
|
10366
|
+
let str = val.value.replace(bind_field_id, '(' + JSON.stringify(value) + ')');
|
|
10367
|
+
value = eval(str);
|
|
10368
|
+
}
|
|
10364
10369
|
} else {
|
|
10365
10370
|
value = val.value;
|
|
10366
10371
|
}
|