File tree Expand file tree Collapse file tree
src/components/BootstrapBlazor.Region/Components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ public partial class SelectCity
1515 [ Parameter ]
1616 public bool IsMultiple { get ; set ; }
1717
18- private string InputId => $ "{ Id } _input";
19-
2018 private string ? ClassString => CssBuilder . Default ( "select bb-city" )
2119 . AddClass ( "disabled" , IsDisabled )
2220 . AddClassFromAttributes ( AdditionalAttributes )
Original file line number Diff line number Diff line change 1- // Copyright (c) BootstrapBlazor & Argo Zhang (argo@live.ca). All rights reserved.
1+ // Copyright (c) BootstrapBlazor & Argo Zhang (argo@live.ca). All rights reserved.
22// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33// Website: https://www.blazor.zone or https://argozhang.github.io/
44
@@ -15,8 +15,6 @@ public partial class SelectProvince
1515 [ Parameter ]
1616 public bool IsMultiple { get ; set ; }
1717
18- private string InputId => $ "{ Id } _input";
19-
2018 private string ? ClassString => CssBuilder . Default ( "select bb-province" )
2119 . AddClass ( "disabled" , IsDisabled )
2220 . AddClassFromAttributes ( AdditionalAttributes )
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ namespace BootstrapBlazor.Components;
99/// </summary>
1010public partial class SelectRegion
1111{
12- private string InputId => $ "{ Id } _input";
13-
1412 private string ? ClassString => CssBuilder . Default ( "select bb-region" )
1513 . AddClass ( "disabled" , IsDisabled )
1614 . AddClassFromAttributes ( AdditionalAttributes )
Original file line number Diff line number Diff line change @@ -83,6 +83,11 @@ public abstract class SelectRegionBase : PopoverSelectBase<string>
8383 . AddClass ( $ "text-danger", IsValid . HasValue && ! IsValid . Value )
8484 . Build ( ) ;
8585
86+ /// <summary>
87+ /// 获得 选择框组件 Id
88+ /// </summary>
89+ protected string InputId => $ "{ Id } _input";
90+
8691 /// <summary>
8792 /// <inheritdoc/>
8893 /// </summary>
You can’t perform that action at this time.
0 commit comments