Skip to content

Commit d443952

Browse files
authored
feat(Table): remove table-layout style when fix column (#7052)
* feat: 固定列时移除 table-layout 样式 * doc: 更新示例 * chore: bump version * doc: 更新模板列示例 * chore: bump version 9.12.1-beta01 * refactor: 文档格式化
1 parent 841ccab commit d443952

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

src/BootstrapBlazor.Server/Components/Samples/Table/TablesEdit.razor

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
<h4>@((MarkupString)Localizer["TablesEditDescription"].Value)</h4>
1010

1111
<DemoBlock Title="@Localizer["TablesEditItemsTitle"]" Introduction="@Localizer["TablesEditItemsIntro"]" Name="EditItems">
12-
<section ignore class="row form-inline g-3">
13-
<div class="col-12">
14-
<div>@((MarkupString)Localizer["TablesEditItemsDescription"].Value)</div>
15-
</div>
16-
<div class="col-12 col-sm-6">
17-
<BootstrapInputGroup>
18-
<BootstrapInputGroupLabel DisplayText="IsGroupExtendButtons"></BootstrapInputGroupLabel>
19-
<Switch @bind-Value="_useGroup"></Switch>
20-
</BootstrapInputGroup>
21-
</div>
22-
</section>
12+
<section ignore class="row form-inline g-3">
13+
<div class="col-12">
14+
<div>@((MarkupString)Localizer["TablesEditItemsDescription"].Value)</div>
15+
</div>
16+
<div class="col-12 col-sm-6">
17+
<BootstrapInputGroup>
18+
<BootstrapInputGroupLabel DisplayText="IsGroupExtendButtons"></BootstrapInputGroupLabel>
19+
<Switch @bind-Value="_useGroup"></Switch>
20+
</BootstrapInputGroup>
21+
</div>
22+
</section>
2323
<Table TItem="Foo" @bind-Items="EditItems"
24-
IsStriped="true" IsBordered="true" IsMultipleSelect="true" IsGroupExtendButtons="_useGroup"
24+
IsStriped="true" IsBordered="true" IsMultipleSelect="true" IsGroupExtendButtons="_useGroup"
2525
ShowToolbar="true" ShowExtendButtons="true" ShowSkeleton="true"
2626
OnAddAsync="@OnAddAsync">
2727
<TableColumns>
@@ -318,7 +318,7 @@
318318
<TableColumn @bind-Field="@context.Hobby" Items="@Hobbies" Ignore="true" />
319319
<TableTemplateColumn Text="@Localizer["TableTemplateColumnText"]">
320320
<Template Context="v">
321-
Test
321+
@v.Row.ReadonlyColumn
322322
</Template>
323323
</TableTemplateColumn>
324324
</TableColumns>

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup Condition="'$(VisualStudioVersion)' == '17.0'">
4-
<Version>9.12.0</Version>
4+
<Version>9.12.1-beta01</Version>
55
</PropertyGroup>
66

77
<PropertyGroup Condition="'$(VisualStudioVersion)' == '18.0'">
8-
<Version>10.0.0-rc.2.2.0</Version>
8+
<Version>10.0.0-rc.2.2.1</Version>
99
</PropertyGroup>
1010

1111
<ItemGroup>

src/BootstrapBlazor/Components/Table/Table.razor.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,6 @@ tr.active:not(.is-edit):hover {
549549

550550
.table-fixed-column {
551551
.table {
552-
table-layout: fixed;
553552
border-collapse: separate;
554553
border-spacing: 0;
555554
}

0 commit comments

Comments
 (0)