@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.
@@ -232,6 +232,7 @@ declare class Pops {
232
232
  $contentAside: HTMLElement;
233
233
  $contentSectionContainer: HTMLElement;
234
234
  };
235
+ $config: Required<PopsPanelDetails>;
235
236
  init(details: {
236
237
  config: Required<PopsPanelDetails>;
237
238
  $el: {
@@ -45,6 +45,7 @@ export declare const PanelHandlerComponents: () => {
45
45
  /** 右侧容器 */
46
46
  $contentSectionContainer: HTMLElement;
47
47
  };
48
+ $config: Required<PopsPanelDetails>;
48
49
  /**
49
50
  * 初始化
50
51
  * @param details
@@ -143,4 +143,11 @@ export interface PopsPanelDetails extends PopsTitleConfig, PopsDragConfig, PopsC
143
143
  * @default false
144
144
  */
145
145
  isMobile?: boolean;
146
+ /**
147
+ * 是否使用深度菜单切换动画
148
+ *
149
+ * 如果浏览器不支持`document.startViewTransition`函数,那么即使使用`useDeepMenuSwtichAnimation`为true,那么不会使用动画
150
+ * @default true
151
+ */
152
+ useDeepMenuSwtichAnimation?: true;
146
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitesev/pops",
3
- "version": "2.4.2",
3
+ "version": "2.4.5",
4
4
  "description": "弹窗库",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/WhiteSevs/TamperMonkeyScript/tree/master/lib/pops#readme",