@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.
|
@@ -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
|
|
|
@@ -32264,10 +32268,15 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32264
32268
|
if (iterate_info.iterator_val === bind_field_id) {
|
|
32265
32269
|
const arr_idx = Number($elm?.data()?.xuData?.iterate_info._key);
|
|
32266
32270
|
let new_arr = reference_source_obj.ret.value;
|
|
32267
|
-
if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
|
|
32271
|
+
// if (field_prop.props.fieldType === 'object' && !val_is_reference_field) {
|
|
32272
|
+
if (field_prop.props.fieldType === 'object' && val_is_reference_field) {
|
|
32268
32273
|
let obj_item = new_arr[arr_idx];
|
|
32269
|
-
let e_exp = bind_field_exp.replace('@' + bind_field_id, 'obj_item');
|
|
32270
|
-
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
|
+
|
|
32271
32280
|
new_arr[arr_idx] = obj_item;
|
|
32272
32281
|
} else {
|
|
32273
32282
|
new_arr[arr_idx] = value;
|