@douyinfe/semi-ui 2.52.1 → 2.52.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/dist/umd/semi-ui.js
CHANGED
|
@@ -22686,13 +22686,17 @@ class ReactResizeObserver extends BaseComponent {
|
|
|
22686
22686
|
ref.current = node;
|
|
22687
22687
|
}
|
|
22688
22688
|
};
|
|
22689
|
-
|
|
22689
|
+
if (globalThis['ResizeObserver']) {
|
|
22690
|
+
this.observer = new ResizeObserver(props.onResize);
|
|
22691
|
+
}
|
|
22690
22692
|
}
|
|
22691
22693
|
componentDidMount() {
|
|
22692
|
-
|
|
22694
|
+
var _a;
|
|
22695
|
+
(_a = this.observeElement) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
22693
22696
|
}
|
|
22694
22697
|
componentDidUpdate(prevProps) {
|
|
22695
|
-
|
|
22698
|
+
var _a;
|
|
22699
|
+
(_a = this.observeElement) === null || _a === void 0 ? void 0 : _a.call(this, this.props.observeParent !== prevProps.observeParent);
|
|
22696
22700
|
}
|
|
22697
22701
|
componentWillUnmount() {
|
|
22698
22702
|
if (this.observer) {
|
|
@@ -36287,7 +36291,7 @@ function util_traverseDataNodes(treeNodes, callback) {
|
|
|
36287
36291
|
let item = null;
|
|
36288
36292
|
// Process node if is not root
|
|
36289
36293
|
if (node) {
|
|
36290
|
-
const key = parent ? `${parent.key}${constants_VALUE_SPLIT}${node.value}` : node.value
|
|
36294
|
+
const key = parent ? `${parent.key}${constants_VALUE_SPLIT}${node.value}` : `${node.value}`;
|
|
36291
36295
|
const pos = parent ? util_getPosition(parent.pos, ind) : `${ind}`;
|
|
36292
36296
|
item = {
|
|
36293
36297
|
data: Object.assign({}, node),
|