@xuda.io/runtime-bundle 1.0.843 → 1.0.845

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.
@@ -27847,18 +27847,14 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27847
27847
  },
27848
27848
  render_viewport: async function () {
27849
27849
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
27850
- if (nodeP?.children?.length) {
27851
- // func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
27852
- // setTimeout(async () => {
27850
+ if (nodeP?.children?.length && !$div.children().length) {
27851
+ $div.removeClass('skeleton');
27853
27852
  for await (const [key, val] of Object.entries(nodeP.children)) {
27854
27853
  const ret = await func.UI.screen.render_ui_tree(SESSION_ID, $div, nodeP.children[key], parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, nodeP, null, $root_container);
27855
27854
  }
27856
- // return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
27857
- // }, 1000);
27858
27855
  }
27859
- // setTimeout(async () => {
27856
+
27860
27857
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
27861
- // }, 10000);
27862
27858
  },
27863
27859
  };
27864
27860
 
@@ -34449,10 +34445,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34449
34445
 
34450
34446
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
34451
34447
  $div.on('inViewport', function () {
34452
- if ($div.children().length) {
34453
- // const ui_id = $($div.children()[0]).attr('xu-ui-id');
34454
- return;
34455
- }
34448
+ if ($div.children().length) return;
34456
34449
 
34457
34450
  hover_in($div);
34458
34451
 
@@ -34463,6 +34456,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34463
34456
 
34464
34457
  $div.on('outViewport', function () {
34465
34458
  $div.empty();
34459
+ $div.addClass('skeleton');
34466
34460
  observer_inViewport.observe($div[0]);
34467
34461
  });
34468
34462