dotnet / dotnet/aspnetcore

Provide a new form component to simplify form authoring

未关闭
#49,653 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area-blazor enhancement feature-blazor-component-model Pillar: Complete Blazor Web
主要语言
C#
星标
38.4k
派生
10.9k
平均合并
2 天 9 小时
30 天内合并 PR
276

描述

When I tried to implement a logout form, this is what I ended up with:

```razor

Logout

```

It didn't make sense to use `EditForm` for this form because `EditForm` requires a model or an edit context, which I don't really need.

A couple of observations:
- I had to explicitly specify a form name, which is now required for all forms
- I had to manually add antiforgery support

In Razor Pages the form tag helper handles these concerns for you:

```

Logout

```

Should we provide a new framework component that makes authoring these sorts of forms easier?

贡献指南

打开贡献指南

调研方向

该 issue 没有指明仓库文件、测试或入口点。首先确定现有的表单组件和 antiforgery 测试,然后确定该组件预期的 API 和验收标准,再估算实现工作量。

由索引模型根据 Issue 内容生成。

评估

领域
web-dev
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。