using System.Collections.Generic; using System.Threading.Tasks; using antblazorpro.Models; using antblazorpro.Services; using Microsoft.AspNetCore.Components; using AntDesign; namespace antblazorpro.Pages.List { public partial class BasicList { private readonly BasicListFormModel _model = new BasicListFormModel(); private readonly IDictionary _pStatus = new Dictionary { {"active", ProgressStatus.Active}, {"exception", ProgressStatus.Exception}, {"normal", ProgressStatus.Normal}, {"success", ProgressStatus.Success} }; private ListItemDataType[] _data = { }; [Inject] protected IProjectService ProjectService { get; set; } private void ShowModal() { } protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); _data = await ProjectService.GetFakeListAsync(5); } } }