@douyinfe/semi-ui 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.
package/dist/umd/semi-ui.js
CHANGED
|
@@ -61321,6 +61321,9 @@ class ModalFoundation extends foundation {
|
|
|
61321
61321
|
this._adapter.enabledBodyScroll();
|
|
61322
61322
|
this._adapter.notifyClose();
|
|
61323
61323
|
}
|
|
61324
|
+
enabledBodyScroll() {
|
|
61325
|
+
this._adapter.enabledBodyScroll();
|
|
61326
|
+
}
|
|
61324
61327
|
}
|
|
61325
61328
|
;// CONCATENATED MODULE: ../semi-foundation/modal/modalContentFoundation.ts
|
|
61326
61329
|
|
|
@@ -62377,6 +62380,8 @@ class Modal extends BaseComponent {
|
|
|
62377
62380
|
componentWillUnmount() {
|
|
62378
62381
|
if (this.props.visible) {
|
|
62379
62382
|
this.foundation.destroy();
|
|
62383
|
+
} else {
|
|
62384
|
+
this.foundation.enabledBodyScroll();
|
|
62380
62385
|
}
|
|
62381
62386
|
}
|
|
62382
62387
|
render() {
|