@douyinfe/semi-foundation 2.51.0 → 2.51.1

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.
@@ -65,5 +65,6 @@ export default class ModalFoundation extends BaseFoundation<ModalAdapter> {
65
65
  handleOk(e: any): void;
66
66
  beforeShow(): void;
67
67
  afterHide(): void;
68
+ enabledBodyScroll(): void;
68
69
  toggleDisplayNone: (displayNone: boolean, callback?: (displayNone: boolean) => void) => void;
69
70
  }
@@ -65,5 +65,8 @@ class ModalFoundation extends _foundation.default {
65
65
  this._adapter.enabledBodyScroll();
66
66
  this._adapter.notifyClose();
67
67
  }
68
+ enabledBodyScroll() {
69
+ this._adapter.enabledBodyScroll();
70
+ }
68
71
  }
69
72
  exports.default = ModalFoundation;
@@ -65,5 +65,6 @@ export default class ModalFoundation extends BaseFoundation<ModalAdapter> {
65
65
  handleOk(e: any): void;
66
66
  beforeShow(): void;
67
67
  afterHide(): void;
68
+ enabledBodyScroll(): void;
68
69
  toggleDisplayNone: (displayNone: boolean, callback?: (displayNone: boolean) => void) => void;
69
70
  }
@@ -58,4 +58,7 @@ export default class ModalFoundation extends BaseFoundation {
58
58
  this._adapter.enabledBodyScroll();
59
59
  this._adapter.notifyClose();
60
60
  }
61
+ enabledBodyScroll() {
62
+ this._adapter.enabledBodyScroll();
63
+ }
61
64
  }
@@ -111,6 +111,10 @@ export default class ModalFoundation extends BaseFoundation<ModalAdapter> {
111
111
  this._adapter.notifyClose();
112
112
  }
113
113
 
114
+ enabledBodyScroll() {
115
+ this._adapter.enabledBodyScroll();
116
+ }
117
+
114
118
  // afterClose() {
115
119
  // this._adapter.notifyClose();
116
120
  // }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.51.0",
3
+ "version": "2.51.1",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build:lib": "node ./scripts/compileLib.js",
7
7
  "prepublishOnly": "npm run build:lib"
8
8
  },
9
9
  "dependencies": {
10
- "@douyinfe/semi-animation": "2.51.0",
10
+ "@douyinfe/semi-animation": "2.51.1",
11
11
  "async-validator": "^3.5.0",
12
12
  "classnames": "^2.2.6",
13
13
  "date-fns": "^2.29.3",
@@ -23,7 +23,7 @@
23
23
  "*.scss",
24
24
  "*.css"
25
25
  ],
26
- "gitHead": "5a554bf517411b933e891ad51b874bd9eb6c87c6",
26
+ "gitHead": "c81cf7801f7c7afd385d63e1e7dd1cf533d7fc83",
27
27
  "devDependencies": {
28
28
  "@babel/plugin-transform-runtime": "^7.15.8",
29
29
  "@babel/preset-env": "^7.15.8",