Skip to content
Discussion options

You must be logged in to vote

@yc-2503 增加 SkipValidate 参数即可

<SelectTable TItem="Foo" @bind-Value="@_foo" OnQueryAsync="OnQueryAsync" SkipValidate
                       GetTextCallback="@GetTextCallback" TableMinWidth="300" IsClearable>
    <TableColumns>
        <TableColumn @bind-Field="@context.Name"></TableColumn>
        <TableColumn @bind-Field="@context.Address"></TableColumn>
    </TableColumns>
</SelectTable>

编辑模板是内置到表单中的,支持验证的组件就要走验证逻辑,SelectTable 你绑定的是页面私有字段,这是不对的,如需要验证请绑定模型 Model 的属性,如果不需要验证增加 SkipValidate 参数

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ArgoZhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Question that needs to be answered
2 participants
Converted from issue

This discussion was converted from issue #6616 on August 20, 2025 01:14.