@whitesev/pops 3.1.2 → 3.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitesev/pops",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "弹窗库,包含了alert、confirm、prompt、drawer、loading、iframe、rightClickMenu等组件",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/WhiteSevs/TamperMonkeyScript/tree/master/lib/pops#readme",
@@ -41,28 +41,28 @@
41
41
  "license": "MIT",
42
42
  "dependencies": {
43
43
  "any-touch": "^2.2.0",
44
- "worker-timers": "^8.0.25"
44
+ "worker-timers": "8.0.27"
45
45
  },
46
46
  "devDependencies": {
47
- "@eslint/js": "^9.39.1",
47
+ "@eslint/js": "^9.39.2",
48
48
  "@rollup/plugin-commonjs": "^29.0.0",
49
49
  "@rollup/plugin-json": "^6.1.0",
50
50
  "@rollup/plugin-node-resolve": "^16.0.3",
51
51
  "@rollup/plugin-terser": "^0.4.4",
52
52
  "@rollup/plugin-typescript": "12.3.0",
53
- "browserslist": "^4.28.0",
54
- "caniuse-lite": "^1.0.30001757",
55
- "eslint": "^9.39.1",
53
+ "browserslist": "^4.28.1",
54
+ "caniuse-lite": "^1.0.30001761",
55
+ "eslint": "^9.39.2",
56
56
  "eslint-config-prettier": "^10.1.8",
57
57
  "eslint-plugin-compat": "^6.0.2",
58
58
  "eslint-plugin-prettier": "^5.5.4",
59
59
  "globals": "^16.5.0",
60
- "rollup": "^4.53.3",
60
+ "rollup": "^4.54.0",
61
61
  "rollup-plugin-clear": "^2.0.7",
62
62
  "rollup-plugin-import-css": "^4.1.2",
63
63
  "tslib": "^2.8.1",
64
64
  "typescript": "^5.9.3",
65
- "typescript-eslint": "^8.48.0"
65
+ "typescript-eslint": "^8.50.1"
66
66
  },
67
67
  "scripts": {
68
68
  "lint": "eslint .",
@@ -358,9 +358,12 @@ export class ToolTip {
358
358
  * 取消绑定 显示事件
359
359
  */
360
360
  offShowEvent() {
361
- popsDOMUtils.off(this.$data.config.$target, this.$data.config.onShowEventName, this.show, {
362
- capture: true,
363
- });
361
+ popsDOMUtils.off(
362
+ this.$data.config.$target,
363
+ this.$data.config.onShowEventName,
364
+ this.show,
365
+ this.$data.config.eventOption
366
+ );
364
367
  }
365
368
  /**
366
369
  * 关闭提示框
@@ -428,9 +431,12 @@ export class ToolTip {
428
431
  * 取消绑定 关闭事件
429
432
  */
430
433
  offCloseEvent() {
431
- popsDOMUtils.off(this.$data.config.$target, this.$data.config.onCloseEventName, this.close, {
432
- capture: true,
433
- });
434
+ popsDOMUtils.off(
435
+ this.$data.config.$target,
436
+ this.$data.config.onCloseEventName,
437
+ this.close,
438
+ this.$data.config.eventOption
439
+ );
434
440
  }
435
441
  /**
436
442
  * 销毁元素