Skip to content

Commit cf0ba4e

Browse files
committed
refactor: 更改修饰符
1 parent f00ae50 commit cf0ba4e

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,20 @@ public partial class AutoComplete
101101

102102
private List<string> _items = [];
103103

104-
private string? SkipEscString => SkipEsc ? "true" : null;
104+
/// <summary>
105+
/// 获得 是否跳过 ESC 按键字符串
106+
/// </summary>
107+
protected string? SkipEscString => SkipEsc ? "true" : null;
105108

106-
private string? SkipEnterString => SkipEnter ? "true" : null;
109+
/// <summary>
110+
/// 获得 是否跳过 Enter 按键字符串
111+
/// </summary>
112+
protected string? SkipEnterString => SkipEnter ? "true" : null;
107113

108-
private string? ScrollIntoViewBehaviorString => ScrollIntoViewBehavior == ScrollIntoViewBehavior.Smooth ? null : ScrollIntoViewBehavior.ToDescriptionString();
114+
/// <summary>
115+
/// 获得 滚动行为字符串
116+
/// </summary>
117+
protected string? ScrollIntoViewBehaviorString => ScrollIntoViewBehavior == ScrollIntoViewBehavior.Smooth ? null : ScrollIntoViewBehavior.ToDescriptionString();
109118

110119
/// <summary>
111120
/// <inheritdoc/>

0 commit comments

Comments
 (0)