@douyinfe/semi-ui 2.35.0-beta.0 → 2.35.0
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.
|
@@ -290,7 +290,10 @@ class OverflowList extends _baseComponent.default {
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
componentDidUpdate(prevProps, prevState) {
|
|
293
|
-
|
|
293
|
+
const prevItemsKeys = prevProps.items.map(item => item.key);
|
|
294
|
+
const nowItemsKeys = this.props.items.map(item => item.key); // Determine whether to update by comparing key values
|
|
295
|
+
|
|
296
|
+
if (!(0, _isEqual2.default)(prevItemsKeys, nowItemsKeys)) {
|
|
294
297
|
this.itemRefs = {};
|
|
295
298
|
this.setState({
|
|
296
299
|
visibleState: new Map()
|
|
@@ -264,7 +264,10 @@ class OverflowList extends BaseComponent {
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
componentDidUpdate(prevProps, prevState) {
|
|
267
|
-
|
|
267
|
+
const prevItemsKeys = prevProps.items.map(item => item.key);
|
|
268
|
+
const nowItemsKeys = this.props.items.map(item => item.key); // Determine whether to update by comparing key values
|
|
269
|
+
|
|
270
|
+
if (!_isEqual(prevItemsKeys, nowItemsKeys)) {
|
|
268
271
|
this.itemRefs = {};
|
|
269
272
|
this.setState({
|
|
270
273
|
visibleState: new Map()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.35.0
|
|
3
|
+
"version": "2.35.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"lib/*"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@douyinfe/semi-animation": "2.35.0
|
|
21
|
-
"@douyinfe/semi-animation-react": "2.35.0
|
|
22
|
-
"@douyinfe/semi-foundation": "2.35.0
|
|
23
|
-
"@douyinfe/semi-icons": "2.35.0
|
|
24
|
-
"@douyinfe/semi-illustrations": "2.35.0
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.35.0
|
|
20
|
+
"@douyinfe/semi-animation": "2.35.0",
|
|
21
|
+
"@douyinfe/semi-animation-react": "2.35.0",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.35.0",
|
|
23
|
+
"@douyinfe/semi-icons": "2.35.0",
|
|
24
|
+
"@douyinfe/semi-illustrations": "2.35.0",
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.35.0",
|
|
26
26
|
"async-validator": "^3.5.0",
|
|
27
27
|
"classnames": "^2.2.6",
|
|
28
28
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
],
|
|
70
70
|
"author": "",
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "bddc219454c94eef034a483a41072e41b4c84bc2",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|