@douyinfe/semi-ui 2.38.1 → 2.38.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.
@@ -130,7 +130,7 @@ class TextArea extends _baseComponent.default {
130
130
  this._resizeListener && window.removeEventListener('resize', this._resizeListener);
131
131
  }
132
132
  componentDidUpdate(prevProps, prevState) {
133
- if (this.props.value !== prevProps.value && this.props.autosize) {
133
+ if ((this.props.value !== prevProps.value || this.props.placeholder !== prevProps.placeholder) && this.props.autosize) {
134
134
  this.foundation.resizeTextarea();
135
135
  }
136
136
  }
@@ -503,7 +503,7 @@ class Body extends _baseComponent.default {
503
503
  if (props.virtualized) {
504
504
  getVirtualizedListRef(this.listRef);
505
505
  } else {
506
- console.warn('getVirtualizedListRef only works with virtualized. ' + 'See https://semi.design/zh-CN/show/table for more information.');
506
+ console.warn('getVirtualizedListRef only works with virtualized. ' + 'See https://semi.design/en-US/show/table for more information.');
507
507
  }
508
508
  }
509
509
  this.foundation = new _bodyFoundation.default(this.adapter);
@@ -122,7 +122,7 @@ class TextArea extends BaseComponent {
122
122
  this._resizeListener && window.removeEventListener('resize', this._resizeListener);
123
123
  }
124
124
  componentDidUpdate(prevProps, prevState) {
125
- if (this.props.value !== prevProps.value && this.props.autosize) {
125
+ if ((this.props.value !== prevProps.value || this.props.placeholder !== prevProps.placeholder) && this.props.autosize) {
126
126
  this.foundation.resizeTextarea();
127
127
  }
128
128
  }
@@ -496,7 +496,7 @@ class Body extends BaseComponent {
496
496
  if (props.virtualized) {
497
497
  getVirtualizedListRef(this.listRef);
498
498
  } else {
499
- console.warn('getVirtualizedListRef only works with virtualized. ' + 'See https://semi.design/zh-CN/show/table for more information.');
499
+ console.warn('getVirtualizedListRef only works with virtualized. ' + 'See https://semi.design/en-US/show/table for more information.');
500
500
  }
501
501
  }
502
502
  this.foundation = new BodyFoundation(this.adapter);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.38.1",
3
+ "version": "2.38.2",
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.38.1",
21
- "@douyinfe/semi-animation-react": "2.38.1",
22
- "@douyinfe/semi-foundation": "2.38.1",
23
- "@douyinfe/semi-icons": "2.38.1",
24
- "@douyinfe/semi-illustrations": "2.38.1",
25
- "@douyinfe/semi-theme-default": "2.38.1",
20
+ "@douyinfe/semi-animation": "2.38.2",
21
+ "@douyinfe/semi-animation-react": "2.38.2",
22
+ "@douyinfe/semi-foundation": "2.38.2",
23
+ "@douyinfe/semi-icons": "2.38.2",
24
+ "@douyinfe/semi-illustrations": "2.38.2",
25
+ "@douyinfe/semi-theme-default": "2.38.2",
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": "aaad3c86114e9bd2d9a61c8b78260e18ffc0eec6",
72
+ "gitHead": "e761d8bc2ba54e3b69ac77f5e6425c62ed6b02f1",
73
73
  "devDependencies": {
74
74
  "@babel/plugin-proposal-decorators": "^7.15.8",
75
75
  "@babel/plugin-transform-runtime": "^7.15.8",