@xuda.io/runtime-bundle 1.0.1264 → 1.0.1265
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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -8674,10 +8674,10 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8674
8674
|
}
|
|
8675
8675
|
|
|
8676
8676
|
const fx = {
|
|
8677
|
-
update_datasource: async function () {
|
|
8677
|
+
update_datasource: async function (currentRecordId) {
|
|
8678
8678
|
if (queue_obj?.paramsP) {
|
|
8679
8679
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[queue_obj.dsSession];
|
|
8680
|
-
_ds.currentRecordId = queue_obj.paramsP.currentRecordId;
|
|
8680
|
+
_ds.currentRecordId = currentRecordId || queue_obj.paramsP.currentRecordId;
|
|
8681
8681
|
|
|
8682
8682
|
var datasource_changes = {
|
|
8683
8683
|
[_ds.dsSession]: { [_ds.currentRecordId]: 'set' },
|
|
@@ -8815,6 +8815,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8815
8815
|
render_viewport: async function () {
|
|
8816
8816
|
const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
|
|
8817
8817
|
if (nodeP?.children?.length && !$div.children().length) {
|
|
8818
|
+
await fx.update_datasource($div?.data()?.xuData?.currentRecordId);
|
|
8818
8819
|
$div.removeClass('skeleton');
|
|
8819
8820
|
for await (const [key, val] of Object.entries(nodeP.children)) {
|
|
8820
8821
|
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);
|
|
@@ -8675,10 +8675,10 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8675
8675
|
}
|
|
8676
8676
|
|
|
8677
8677
|
const fx = {
|
|
8678
|
-
update_datasource: async function () {
|
|
8678
|
+
update_datasource: async function (currentRecordId) {
|
|
8679
8679
|
if (queue_obj?.paramsP) {
|
|
8680
8680
|
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[queue_obj.dsSession];
|
|
8681
|
-
_ds.currentRecordId = queue_obj.paramsP.currentRecordId;
|
|
8681
|
+
_ds.currentRecordId = currentRecordId || queue_obj.paramsP.currentRecordId;
|
|
8682
8682
|
|
|
8683
8683
|
var datasource_changes = {
|
|
8684
8684
|
[_ds.dsSession]: { [_ds.currentRecordId]: 'set' },
|
|
@@ -8816,6 +8816,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
8816
8816
|
render_viewport: async function () {
|
|
8817
8817
|
const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
|
|
8818
8818
|
if (nodeP?.children?.length && !$div.children().length) {
|
|
8819
|
+
await fx.update_datasource($div?.data()?.xuData?.currentRecordId);
|
|
8819
8820
|
$div.removeClass('skeleton');
|
|
8820
8821
|
for await (const [key, val] of Object.entries(nodeP.children)) {
|
|
8821
8822
|
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);
|