@douyinfe/semi-ui 2.53.1 → 2.53.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.
package/dist/umd/semi-ui.js
CHANGED
|
@@ -22737,8 +22737,9 @@ class ReactResizeObserver extends BaseComponent {
|
|
|
22737
22737
|
}
|
|
22738
22738
|
};
|
|
22739
22739
|
this.handleResizeEventTriggered = entries => {
|
|
22740
|
+
var _a, _b, _c, _d;
|
|
22740
22741
|
if (this.props.observerProperty === ObserverProperty.All) {
|
|
22741
|
-
this.props.onResize(entries);
|
|
22742
|
+
(_b = (_a = this.props).onResize) === null || _b === void 0 ? void 0 : _b.call(_a, entries);
|
|
22742
22743
|
} else {
|
|
22743
22744
|
const finalEntries = [];
|
|
22744
22745
|
for (const entry of entries) {
|
|
@@ -22753,7 +22754,7 @@ class ReactResizeObserver extends BaseComponent {
|
|
|
22753
22754
|
}
|
|
22754
22755
|
}
|
|
22755
22756
|
if (finalEntries.length > 0) {
|
|
22756
|
-
this.props.onResize(finalEntries);
|
|
22757
|
+
(_d = (_c = this.props).onResize) === null || _d === void 0 ? void 0 : _d.call(_c, finalEntries);
|
|
22757
22758
|
}
|
|
22758
22759
|
}
|
|
22759
22760
|
};
|