@whitesev/pops 2.4.2 → 2.4.4
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.amd.js +5 -2
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +5 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +5 -2
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +5 -2
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +5 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/Pops.d.ts +1 -0
- package/dist/types/src/components/panel/handlerComponents.d.ts +1 -0
- package/dist/types/src/components/panel/types/index.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.iife.js
CHANGED
|
@@ -6555,6 +6555,7 @@ var pops = (function () {
|
|
|
6555
6555
|
height: window.innerHeight < 450 ? "70vh" : "500px",
|
|
6556
6556
|
position: "center",
|
|
6557
6557
|
animation: "pops-anim-fadein-zoom",
|
|
6558
|
+
useDeepMenuSwtichAnimation: true,
|
|
6558
6559
|
zIndex: 10000,
|
|
6559
6560
|
drag: false,
|
|
6560
6561
|
dragLimit: true,
|
|
@@ -7239,6 +7240,7 @@ var pops = (function () {
|
|
|
7239
7240
|
/** 右侧容器 */
|
|
7240
7241
|
$contentSectionContainer: null,
|
|
7241
7242
|
},
|
|
7243
|
+
$config: {},
|
|
7242
7244
|
/**
|
|
7243
7245
|
* 初始化
|
|
7244
7246
|
* @param details
|
|
@@ -7248,6 +7250,7 @@ var pops = (function () {
|
|
|
7248
7250
|
this.$el = {
|
|
7249
7251
|
...details.$el,
|
|
7250
7252
|
};
|
|
7253
|
+
this.$config = details.config;
|
|
7251
7254
|
this.asideULElement = this.$el.$contentAside.querySelector(`ul.pops-${PopsType}-aside-top-container`);
|
|
7252
7255
|
this.asideBottomULElement = this.$el.$contentAside.querySelector(`ul.pops-${PopsType}-aside-bottom-container`);
|
|
7253
7256
|
this.sectionContainerHeaderULElement =
|
|
@@ -9683,7 +9686,7 @@ var pops = (function () {
|
|
|
9683
9686
|
$deepMenuSection.remove();
|
|
9684
9687
|
};
|
|
9685
9688
|
// 返回上一层菜单
|
|
9686
|
-
if (document.startViewTransition) {
|
|
9689
|
+
if (that.$config.useDeepMenuSwtichAnimation && document.startViewTransition) {
|
|
9687
9690
|
const leaveTransition = document.startViewTransition(leaveViewTransition);
|
|
9688
9691
|
await leaveTransition.ready;
|
|
9689
9692
|
// 向右移出
|
|
@@ -9731,7 +9734,7 @@ var pops = (function () {
|
|
|
9731
9734
|
}
|
|
9732
9735
|
that.$el.$sectionWrapper.appendChild($deepMenuSection);
|
|
9733
9736
|
};
|
|
9734
|
-
if (document.startViewTransition) {
|
|
9737
|
+
if (that.$config.useDeepMenuSwtichAnimation && document.startViewTransition) {
|
|
9735
9738
|
const transition = document.startViewTransition(enterViewTransition);
|
|
9736
9739
|
await transition.ready;
|
|
9737
9740
|
await $deepMenuSection.animate([
|