@whitesev/pops 2.3.1 → 2.3.2

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.
@@ -21368,6 +21368,7 @@ declare class Pops {
21368
21368
  childMenuTopOrBottomDistance: number;
21369
21369
  className: string;
21370
21370
  isAnimation: boolean;
21371
+ useScaleAnimation: boolean;
21371
21372
  preventDefault: boolean;
21372
21373
  useShadowRoot: boolean;
21373
21374
  only: boolean;
@@ -20953,6 +20953,7 @@ export declare const PopsRightClickMenu: {
20953
20953
  childMenuTopOrBottomDistance: number;
20954
20954
  className: string;
20955
20955
  isAnimation: boolean;
20956
+ useScaleAnimation: boolean;
20956
20957
  preventDefault: boolean;
20957
20958
  useShadowRoot: boolean;
20958
20959
  only: boolean;
@@ -69,9 +69,18 @@ export interface PopsRightClickMenuDetails extends Pick<PopsCommonConfig, "useSh
69
69
  className?: string;
70
70
  /**
71
71
  * 是否启用动画,默认true
72
+ *
73
+ * 该动画为从上往下展开
72
74
  * @default true
73
75
  */
74
76
  isAnimation?: boolean;
77
+ /**
78
+ * 是否使用打开动画,默认true
79
+ *
80
+ * 该动画为放大动画
81
+ * @default true
82
+ */
83
+ useScaleAnimation?: boolean;
75
84
  /**
76
85
  * 是否阻止默认contextmenu事件
77
86
  * @default false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitesev/pops",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "弹窗库",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/WhiteSevs/TamperMonkeyScript/tree/master/lib/pops#readme",