x-essential-lib 0.10.4 → 0.10.5
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/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -124,9 +124,10 @@ async function waitUtil(conditionFunc, timeout, interval) {
|
|
|
124
124
|
function appAppear(name, diff) {
|
|
125
125
|
const appElement = document.getElementById("single-spa-application:" + name);
|
|
126
126
|
if (!appElement) return;
|
|
127
|
-
appElement.classList.remove("app-left", "app-right", "app-reset");
|
|
127
|
+
appElement.classList.remove("app-fade", "app-left", "app-right", "app-reset");
|
|
128
128
|
if (diff > 0) appElement.classList.add("app-left");
|
|
129
129
|
else if (diff < 0) appElement.classList.add("app-right");
|
|
130
|
+
else appElement.classList.add("app-fade");
|
|
130
131
|
setTimeout(() => {
|
|
131
132
|
appElement.classList.add("app-reset");
|
|
132
133
|
}, 50);
|
|
@@ -589,7 +590,7 @@ function onBeforeChange(toPath, fromPath, lastAppPath) {
|
|
|
589
590
|
const diff = toRouteMeta.level - fromRouteMeta.level;
|
|
590
591
|
if (sameApp) if (diff > 0) routeTransName.value = "inner-left";
|
|
591
592
|
else if (diff < 0) routeTransName.value = "inner-right";
|
|
592
|
-
else routeTransName.value = "";
|
|
593
|
+
else routeTransName.value = "inner-fade";
|
|
593
594
|
else {
|
|
594
595
|
routeTransName.value = "";
|
|
595
596
|
appAppear(toRouteMeta.app, diff);
|