@xuda.io/runtime-bundle 1.0.1152 → 1.0.1154
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.
|
@@ -10828,7 +10828,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10828
10828
|
return {};
|
|
10829
10829
|
},
|
|
10830
10830
|
'xu-script': async function ($elm, val) {
|
|
10831
|
-
var checkExist = setInterval(function () {
|
|
10831
|
+
var checkExist = setInterval(async function () {
|
|
10832
10832
|
if ($elm.is(':visible')) {
|
|
10833
10833
|
try {
|
|
10834
10834
|
// var res = eval('(' + val.value + ')');
|
|
@@ -10836,10 +10836,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10836
10836
|
// ${val.value}
|
|
10837
10837
|
// })(document.querySelector(\`[xu-ui-id="${$elm.attr('xu-ui-id')}"]\`));`;
|
|
10838
10838
|
|
|
10839
|
-
const fn = `(el)=>{${val.value} };`;
|
|
10839
|
+
const fn = `async (el)=>{${val.value} };`;
|
|
10840
10840
|
|
|
10841
10841
|
var res = eval(fn);
|
|
10842
|
-
res($elm[0]);
|
|
10842
|
+
await res($elm[0]);
|
|
10843
10843
|
// if (typeof res === 'function') {
|
|
10844
10844
|
// res($elm[0]);
|
|
10845
10845
|
// }
|