@xuda.io/runtime-bundle 1.0.1153 → 1.0.1155

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.
@@ -27877,7 +27877,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27877
27877
 
27878
27878
  const attr_new = attr.split('xu-exp:')[1];
27879
27879
  // REGULAR ATTRIBUTE
27880
- if (attr_new && attr_new.substr(0, 2) !== 'xu') {
27880
+ if (attr_new && attr_new.substr(0, 2) !== 'xu' && queue_obj.paramsP.ui_type !== 'xu-widget') {
27881
27881
  queue_obj.paramsP.elem_val.$elm.attr(attr_new !== 'viewBox' ? attr_new.toLowerCase() : attr_new, res.result);
27882
27882
  } else {
27883
27883
  try {
@@ -32787,7 +32787,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32787
32787
  return {};
32788
32788
  },
32789
32789
  'xu-script': async function ($elm, val) {
32790
- var checkExist = setInterval(function () {
32790
+ var checkExist = setInterval(async function () {
32791
32791
  if ($elm.is(':visible')) {
32792
32792
  try {
32793
32793
  // var res = eval('(' + val.value + ')');
@@ -32795,10 +32795,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32795
32795
  // ${val.value}
32796
32796
  // })(document.querySelector(\`[xu-ui-id="${$elm.attr('xu-ui-id')}"]\`));`;
32797
32797
 
32798
- const fn = `(el)=>{${val.value} };`;
32798
+ const fn = `async (el)=>{${val.value} };`;
32799
32799
 
32800
32800
  var res = eval(fn);
32801
- res($elm[0]);
32801
+ await res($elm[0]);
32802
32802
  // if (typeof res === 'function') {
32803
32803
  // res($elm[0]);
32804
32804
  // }