@xuda.io/xuda-worker-bundle-min 1.3.2445 → 1.3.2447

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.
Files changed (2) hide show
  1. package/index.js +11 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -627,11 +627,12 @@ func.runtime.render.get_root_data_system = function (SESSION_ID) {
627
627
  func.runtime.render.resolve_xu_for_source = async function (SESSION_ID, dsSessionP, value) {
628
628
  let arr = value;
629
629
  let reference_source_obj;
630
+ const normalized_reference = typeof value === 'string' && value.startsWith('@') ? value.substring(1) : value;
630
631
  const _progFields = await func.datasource.get_progFields(SESSION_ID, dsSessionP);
631
- let view_field_obj = func.common.find_item_by_key(_progFields, 'field_id', value);
632
+ let view_field_obj = func.common.find_item_by_key(_progFields, 'field_id', normalized_reference);
632
633
 
633
- if (view_field_obj) {
634
- reference_source_obj = await func.datasource.get_value(SESSION_ID, value, dsSessionP);
634
+ if (view_field_obj || normalized_reference !== value) {
635
+ reference_source_obj = await func.datasource.get_value(SESSION_ID, normalized_reference, dsSessionP);
635
636
  arr = reference_source_obj?.ret?.value;
636
637
  } else {
637
638
  if (typeof value === 'string') {
@@ -787,8 +788,14 @@ func.runtime.bind.resolve_field = async function (SESSION_ID, prog_id, dsSession
787
788
  if (ret_get_value.found) {
788
789
  _dsP = ret_get_value.dsSessionP;
789
790
  let _ds = SESSION_OBJ[SESSION_ID].DS_GLB[_dsP];
790
- _prog_id = _ds.prog_id;
791
+ _prog_id = _ds?.prog_id;
791
792
  field_prop = await find_in_view(field_id, _prog_id);
793
+ if (!field_prop) {
794
+ field_prop = _ds?.dynamic_fields?.[field_id];
795
+ if (field_prop) {
796
+ is_dynamic_field = true;
797
+ }
798
+ }
792
799
  }
793
800
  }
794
801
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.2445",
3
+ "version": "1.3.2447",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {