@douyinfe/semi-ui 2.38.2-alpha.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.
- package/dist/umd/semi-ui.js +5 -10
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/datePicker/dateInput.d.ts +1 -1
- package/lib/cjs/datePicker/datePicker.d.ts +1 -1
- package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
- package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/cjs/form/baseForm.d.ts +1 -1
- package/lib/cjs/form/field.d.ts +1 -1
- package/lib/cjs/input/textarea.js +1 -1
- package/lib/cjs/modal/confirm.d.ts +15 -15
- package/lib/cjs/table/Body/index.js +1 -1
- package/lib/es/datePicker/dateInput.d.ts +1 -1
- package/lib/es/datePicker/datePicker.d.ts +1 -1
- package/lib/es/datePicker/monthsGrid.d.ts +1 -1
- package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/es/form/baseForm.d.ts +1 -1
- package/lib/es/form/field.d.ts +1 -1
- package/lib/es/input/textarea.js +1 -1
- package/lib/es/modal/confirm.d.ts +15 -15
- package/lib/es/table/Body/index.js +1 -1
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -17854,14 +17854,9 @@ class AnchorFoundation extends foundation {
|
|
|
17854
17854
|
*/
|
|
17855
17855
|
behavior: actions => {
|
|
17856
17856
|
// We just need to scroll the innermost target container
|
|
17857
|
-
const
|
|
17858
|
-
|
|
17859
|
-
|
|
17860
|
-
} = action;
|
|
17861
|
-
return el.scrollHeight > el.clientHeight;
|
|
17862
|
-
});
|
|
17863
|
-
const el = get_default()(verticalScrollAction, 'el');
|
|
17864
|
-
const top = get_default()(verticalScrollAction, 'top');
|
|
17857
|
+
const innermostAction = get_default()(actions, '0');
|
|
17858
|
+
const el = get_default()(innermostAction, 'el');
|
|
17859
|
+
const top = get_default()(innermostAction, 'top');
|
|
17865
17860
|
if (el) {
|
|
17866
17861
|
const offsetTop = top - targetOffset;
|
|
17867
17862
|
if (el.scroll && canSmoothScroll) {
|
|
@@ -59926,7 +59921,7 @@ class TextArea extends BaseComponent {
|
|
|
59926
59921
|
this._resizeListener && window.removeEventListener('resize', this._resizeListener);
|
|
59927
59922
|
}
|
|
59928
59923
|
componentDidUpdate(prevProps, prevState) {
|
|
59929
|
-
if (this.props.value !== prevProps.value && this.props.autosize) {
|
|
59924
|
+
if ((this.props.value !== prevProps.value || this.props.placeholder !== prevProps.placeholder) && this.props.autosize) {
|
|
59930
59925
|
this.foundation.resizeTextarea();
|
|
59931
59926
|
}
|
|
59932
59927
|
}
|
|
@@ -79631,7 +79626,7 @@ class Body extends BaseComponent {
|
|
|
79631
79626
|
if (props.virtualized) {
|
|
79632
79627
|
getVirtualizedListRef(this.listRef);
|
|
79633
79628
|
} else {
|
|
79634
|
-
console.warn('getVirtualizedListRef only works with virtualized. ' + 'See https://semi.design/
|
|
79629
|
+
console.warn('getVirtualizedListRef only works with virtualized. ' + 'See https://semi.design/en-US/show/table for more information.');
|
|
79635
79630
|
}
|
|
79636
79631
|
}
|
|
79637
79632
|
this.foundation = new TableBodyFoundation(this.adapter);
|