@whitesev/pops 2.4.2 → 2.4.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.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.system.js
CHANGED
|
@@ -6557,6 +6557,7 @@ System.register('pops', [], (function (exports) {
|
|
|
6557
6557
|
height: window.innerHeight < 450 ? "70vh" : "500px",
|
|
6558
6558
|
position: "center",
|
|
6559
6559
|
animation: "pops-anim-fadein-zoom",
|
|
6560
|
+
useDeepMenuSwtichAnimation: true,
|
|
6560
6561
|
zIndex: 10000,
|
|
6561
6562
|
drag: false,
|
|
6562
6563
|
dragLimit: true,
|
|
@@ -7241,6 +7242,7 @@ System.register('pops', [], (function (exports) {
|
|
|
7241
7242
|
/** 右侧容器 */
|
|
7242
7243
|
$contentSectionContainer: null,
|
|
7243
7244
|
},
|
|
7245
|
+
$config: {},
|
|
7244
7246
|
/**
|
|
7245
7247
|
* 初始化
|
|
7246
7248
|
* @param details
|
|
@@ -7250,6 +7252,7 @@ System.register('pops', [], (function (exports) {
|
|
|
7250
7252
|
this.$el = {
|
|
7251
7253
|
...details.$el,
|
|
7252
7254
|
};
|
|
7255
|
+
this.$config = details.config;
|
|
7253
7256
|
this.asideULElement = this.$el.$contentAside.querySelector(`ul.pops-${PopsType}-aside-top-container`);
|
|
7254
7257
|
this.asideBottomULElement = this.$el.$contentAside.querySelector(`ul.pops-${PopsType}-aside-bottom-container`);
|
|
7255
7258
|
this.sectionContainerHeaderULElement =
|
|
@@ -9685,7 +9688,7 @@ System.register('pops', [], (function (exports) {
|
|
|
9685
9688
|
$deepMenuSection.remove();
|
|
9686
9689
|
};
|
|
9687
9690
|
// 返回上一层菜单
|
|
9688
|
-
if (document.startViewTransition) {
|
|
9691
|
+
if (that.$config.useDeepMenuSwtichAnimation && document.startViewTransition) {
|
|
9689
9692
|
const leaveTransition = document.startViewTransition(leaveViewTransition);
|
|
9690
9693
|
await leaveTransition.ready;
|
|
9691
9694
|
// 向右移出
|
|
@@ -9733,7 +9736,7 @@ System.register('pops', [], (function (exports) {
|
|
|
9733
9736
|
}
|
|
9734
9737
|
that.$el.$sectionWrapper.appendChild($deepMenuSection);
|
|
9735
9738
|
};
|
|
9736
|
-
if (document.startViewTransition) {
|
|
9739
|
+
if (that.$config.useDeepMenuSwtichAnimation && document.startViewTransition) {
|
|
9737
9740
|
const transition = document.startViewTransition(enterViewTransition);
|
|
9738
9741
|
await transition.ready;
|
|
9739
9742
|
await $deepMenuSection.animate([
|