Skip to content

Commit 95360dc

Browse files
committed
feat: 增加 SearchableColumns 参数设置
1 parent a704298 commit 95360dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
@inject IStringLocalizer<GlobalSearch> Localizer
22

3-
<MeiliSearchBox SearchBoxPlaceHolder="@Localizer["SearchPlaceHolder"]" SearchStatus="@Localizer["SearchStatus"]" SearchResultPlaceHolder="@Localizer["SearchResultPlaceHolder"]"></MeiliSearchBox>
3+
<MeiliSearchBox SearchBoxPlaceHolder="@Localizer["SearchPlaceHolder"]" SearchStatus="@Localizer["SearchStatus"]" SearchResultPlaceHolder="@Localizer["SearchResultPlaceHolder"]" SearchableColumns="SearchableColumns"></MeiliSearchBox>
4+
5+
@code {
6+
private List<string> SearchableColumns { get; set; } = new List<string> { "menu", "title", "subTitle", "demos.title", "demos.raw" };
7+
}

0 commit comments

Comments
 (0)