@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.
|
@@ -32242,7 +32242,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32242
32242
|
|
|
32243
32243
|
var value = await func.common.get_cast_val(SESSION_ID, 'xu-bind', 'value', field_prop.props.fieldType, bind.getter($elm[0]));
|
|
32244
32244
|
|
|
32245
|
-
if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
|
|
32245
|
+
// if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
|
|
32246
|
+
// value = bind.getter($elm[0]);
|
|
32247
|
+
// }
|
|
32248
|
+
|
|
32249
|
+
if (field_prop.props.fieldType === 'object') {
|
|
32246
32250
|
value = bind.getter($elm[0]);
|
|
32247
32251
|
}
|
|
32248
32252
|
|
|
@@ -32267,8 +32271,12 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32267
32271
|
// if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
|
|
32268
32272
|
if (field_prop.props.fieldType === 'object' && val_is_reference_field) {
|
|
32269
32273
|
let obj_item = new_arr[arr_idx];
|
|
32270
|
-
let e_exp = bind_field_exp.replace('@' + bind_field_id, 'obj_item');
|
|
32271
|
-
let new_val = eval(e_exp + `="${value}"`);
|
|
32274
|
+
// let e_exp = bind_field_exp.replace('@' + bind_field_id, 'obj_item');
|
|
32275
|
+
// let new_val = eval(e_exp + `="${value}"`);
|
|
32276
|
+
let str = val.value.replace(bind_field_id, '(' + JSON.stringify(value) + ')') + `="${value}"`;
|
|
32277
|
+
|
|
32278
|
+
eval(str);
|
|
32279
|
+
|
|
32272
32280
|
new_arr[arr_idx] = obj_item;
|
|
32273
32281
|
} else {
|
|
32274
32282
|
new_arr[arr_idx] = value;
|