From 9b18b2b9df96e6c7eef78593fe584e26fa37a8dc Mon Sep 17 00:00:00 2001 From: Argo-Tianyi <argo@163.com> Date: Sun, 30 Jan 2022 11:16:03 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E7=B2=BE=E7=AE=80=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=86=85=E7=BD=AE=E6=94=AF=E6=8C=81=20CheckboxList=20=E6=97=A0?= =?UTF-8?q?=E9=9C=80=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Samples/EditorForms.razor | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/BootstrapBlazor.Shared/Samples/EditorForms.razor b/src/BootstrapBlazor.Shared/Samples/EditorForms.razor index d9b1e62ba..2b8a8ca9e 100644 --- a/src/BootstrapBlazor.Shared/Samples/EditorForms.razor +++ b/src/BootstrapBlazor.Shared/Samples/EditorForms.razor @@ -20,13 +20,7 @@ <FieldItems> <EditorItem @bind-Field="@context.Education" Editable="false" /> <EditorItem @bind-Field="@context.Complete" Editable="false" /> - <EditorItem @bind-Field="@context.Hobby"> - <EditTemplate Context="value"> - <div class="col-12"> - <CheckboxList @bind-Value="@value.Hobby" Items="@Hobbys" /> - </div> - </EditTemplate> - </EditorItem> + <EditorItem @bind-Field="@context.Hobby" Items="@Hobbys" /> </FieldItems> <Buttons> <Button Icon="fa fa-save" Text="@Localizer["ButtonText"]" /> @@ -43,13 +37,7 @@ <EditorForm Model="@ValidateModel"> <FieldItems> <EditorItem @bind-Field="@context.DateTime" Readonly="true" /> - <EditorItem @bind-Field="@context.Hobby"> - <EditTemplate Context="value"> - <div class="col-12"> - <CheckboxList @bind-Value="@value.Hobby" Items="@Hobbys" /> - </div> - </EditTemplate> - </EditorItem> + <EditorItem @bind-Field="@context.Hobby" Items="@Hobbys" /> </FieldItems> <Buttons> <Button ButtonType="ButtonType.Submit" Icon="fa fa-save" Text='@Localizer["ButtonText"]' /> -- Gitee