Skip to content

在Table的EditTemplate中使用Row,ColSpan不起作用 #3241

@LostRoy

Description

@LostRoy

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

在Table的EditTemplate中,使用了Row控制 ItemsPerRow="ItemsPerRow.Four",内部再嵌套Row使 ColSpan="4" ,但是没有起作用
1712563440753

Expected Behavior

No response

Steps To Reproduce

以下是直接使用的 TableDemo

<Table TItem="Foo" AutoGenerateColumns="true" class="table-demo"
    IsPagination="true" PageItemsSource="PageItemsSource"
    IsStriped="true" IsBordered="true" IsMultipleSelect="true" EditDialogRowType="RowType.Inline"
    ShowSkeleton="true" ShowToolbar="true" ShowSearch="true" ShowExtendButtons="true"
    OnQueryAsync="OnQueryAsync" OnSaveAsync="OnSaveAsync" OnDeleteAsync="OnDeleteAsync">
    <TableColumns>
        <TableColumn @bind-Field="@context.Hobby" Items="GetHobbys(context)" />
    </TableColumns>

    <EditTemplate Context="value">
        <Row ItemsPerRow="ItemsPerRow.Four" RowType="RowType.Inline">
            <BootstrapInput @bind-Value="@value.Name" />
            <BootstrapInput @bind-Value="@value.Name" />
            <BootstrapInput @bind-Value="@value.Name" />
            <BootstrapInput @bind-Value="@value.Name" />
            <Row ColSpan="4" RowType="RowType.Inline">
                <BootstrapInput @bind-Value="@value.Name" />
            </Row>
            <BootstrapInput @bind-Value="@value.Name" />
            <BootstrapInput @bind-Value="@value.Name" />
            <BootstrapInput @bind-Value="@value.Name" />
        </Row>
    </EditTemplate>

</Table>

Exceptions (if any)

No response

.NET Version

8.0

Anything else?

BootstrapBlazor 8.*

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions