mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-11-29 18:48:50 +08:00
fix(module: table): empty and row height issue when ScrollY was set (#3265)
This commit is contained in:
parent
26bd778305
commit
4c927d683e
@ -48,7 +48,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class="ant-table-body" @ref="_tableBodyRef" style="@(ScrollX!=null?" overflow: auto scroll;":"overflow-y: scroll;") max-height: @((CssSizeLength)ScrollY); min-height:@((CssSizeLength)ScrollY); --scrollbar-width: @((CssSizeLength)_scrollBarWidth);">
|
||||
<table style="@(ScrollX!=null?$" width: {(CssSizeLength)ScrollX}; min-width: 100%;":"") min-height:@((CssSizeLength)ScrollY); @TableLayoutStyle">
|
||||
<table style="@(ScrollX!=null?$" width: {(CssSizeLength)ScrollX}; min-width: 100%;":"") @(_isEmpty?$"min-height:{(CssSizeLength)ScrollY};":"") @TableLayoutStyle">
|
||||
@colGroup((this, false))
|
||||
<tbody class="ant-table-tbody">
|
||||
<tr aria-hidden="true" class="ant-table-measure-row" style="height: 0px; font-size: 0px;">
|
||||
@ -202,7 +202,7 @@ Func<Table<TItem>, IEnumerable<TItem>, int, Dictionary<TItem, RowData<TItem>>, R
|
||||
}
|
||||
else
|
||||
#endif
|
||||
if (table._total <= 0 || showItems == null||table._isEmpty)
|
||||
if (table._isEmpty||showItems==null)
|
||||
{
|
||||
<tr class="ant-table-placeholder">
|
||||
<td colspan="@(table.ColumnContext.Columns.Count + (table.ExpandTemplate != null? 1 : 0))" class="ant-table-cell">
|
||||
|
@ -450,6 +450,8 @@ namespace AntDesign
|
||||
_shouldRender = true;
|
||||
}
|
||||
|
||||
_isEmpty = _total <= 0 || _showItems == null;
|
||||
|
||||
if (!_preventRender)
|
||||
{
|
||||
if (_outerSelectedRows != null)
|
||||
|
Loading…
Reference in New Issue
Block a user