Skip to content

Commit

Permalink
"MudBlazor" Version="8.0.0-preview.6"
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Dec 18, 2024
1 parent c4979f7 commit 4c6e5c8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public LanguageAutocomplete()

private List<LanguageCode> Languages { get; set; } = LocalizationConstants.SupportedLanguages.ToList();

private Task<IEnumerable<string>> SearchFunc_(string value, CancellationToken cancellation = default)
private Task<IEnumerable<string>> SearchFunc_(string? value, CancellationToken cancellation = default)
{
// 如果输入为空,返回完整的语言列表;否则进行模糊搜索
return string.IsNullOrEmpty(value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected override async ValueTask DisposeAsyncCore()
await base.DisposeAsyncCore();
}

private Task<IEnumerable<TenantDto>> SearchKeyValues(string value, CancellationToken cancellation)
private Task<IEnumerable<TenantDto>> SearchKeyValues(string? value, CancellationToken cancellation)
{
IEnumerable<TenantDto> result;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public PickSuperiorIdAutocomplete()

[Inject] private IUserService UserService { get; set; } = default!;

private Task<IEnumerable<ApplicationUserDto>> SearchKeyValues(string value, CancellationToken cancellation)
private Task<IEnumerable<ApplicationUserDto>> SearchKeyValues(string? value, CancellationToken cancellation)
{
var result = UserService.DataSource.Where(x =>
x.TenantId != null && x.TenantId.Equals(TenantId) && !x.UserName.Equals(OwnerName));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected override async ValueTask DisposeAsyncCore()
await base.DisposeAsyncCore();
}

private Task<IEnumerable<ApplicationUserDto>> SearchKeyValues(string value, CancellationToken cancellation)
private Task<IEnumerable<ApplicationUserDto>> SearchKeyValues(string? value, CancellationToken cancellation)
{
var result = UserService.DataSource.Where(x => x.TenantId != null && x.TenantId.Equals(TenantId));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected override async ValueTask DisposeAsyncCore()
await base.DisposeAsyncCore();
}

private Task<IEnumerable<string>> SearchFunc_(string value, CancellationToken cancellation = default)
private Task<IEnumerable<string>> SearchFunc_(string? value, CancellationToken cancellation = default)
{
// if text is null or empty, show complete list
return string.IsNullOrEmpty(value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public TimeZoneAutocomplete()

private List<TimeZoneInfo> TimeZones { get; set; } = TimeZoneInfo.GetSystemTimeZones().ToList();

private Task<IEnumerable<string>> SearchFunc_(string value, CancellationToken cancellation = default)
private Task<IEnumerable<string>> SearchFunc_(string? value, CancellationToken cancellation = default)
{
return string.IsNullOrEmpty(value)
? Task.FromResult(TimeZones.Select(tz => tz.Id).AsEnumerable())
Expand Down
2 changes: 1 addition & 1 deletion src/Server.UI/Server.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<PackageReference Include="BlazorDownloadFile" Version="2.4.0.2" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.6" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.0" />
<PackageReference Include="MudBlazor" Version="8.0.0-preview.5" />
<PackageReference Include="MudBlazor" Version="8.0.0-preview.6" />
<PackageReference Include="Toolbelt.Blazor.HotKeys2" Version="5.1.0" />
<PackageReference Include="Blazor-ApexCharts" Version="4.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.0">
Expand Down

0 comments on commit 4c6e5c8

Please sign in to comment.