@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.
@@ -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([