dotnet / dotnet/aspnetcore

Provide a new form component to simplify form authoring

オープン
#49,653 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
area-blazor enhancement feature-blazor-component-model Pillar: Complete Blazor Web
主要言語
C#
スター
38.4k
フォーク
10.9k
平均マージ
2日 10時間
マージ済み PR(30日)
281

説明

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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。