Skip to content

Commit d618178

Browse files
committed
test: 增加必填项约束
1 parent 3218d18 commit d618178

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/UnitTest/Components/SelectTableTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
using Microsoft.AspNetCore.Components.Forms;
77
using Microsoft.Extensions.Localization;
8+
using System.ComponentModel.DataAnnotations;
89

910
namespace UnitTest.Components;
1011

@@ -513,6 +514,7 @@ private static Task<QueryData<Foo>> OnFilterQueryAsync(QueryPageOptions options,
513514

514515
class SelectTableModel()
515516
{
517+
[Required]
516518
public Foo? Foo { get; set; }
517519
}
518520

0 commit comments

Comments
 (0)