feat(表格添加纵向滚动条时,scroll设置修改):
This commit is contained in:
parent
12b37e145d
commit
ea3e0ad872
|
@ -732,11 +732,11 @@ var Table = function (_Component) {
|
||||||
if (fixed) {
|
if (fixed) {
|
||||||
// bodyStyle.height = bodyStyle.height || scroll.y;
|
// bodyStyle.height = bodyStyle.height || scroll.y;
|
||||||
innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
|
innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
|
||||||
innerBodyStyle.overflowY = bodyStyle.overflowY || 'auto';
|
innerBodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
|
||||||
} else {
|
} else {
|
||||||
bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
|
bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
|
||||||
}
|
}
|
||||||
bodyStyle.overflowY = bodyStyle.overflowY || 'auto';
|
bodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
|
||||||
useFixedHeader = true;
|
useFixedHeader = true;
|
||||||
|
|
||||||
// Add negative margin bottom for scroll bar overflow bug
|
// Add negative margin bottom for scroll bar overflow bug
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bee-table",
|
"name": "bee-table",
|
||||||
"version": "1.4.33",
|
"version": "1.4.34",
|
||||||
"description": "Table ui component for react",
|
"description": "Table ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|
Loading…
Reference in New Issue