产品列表
@context.Description
Coptyright Bootstrap Blazor
@code { ///
/// ///
public sealed partial class ListViews { private IEnumerable Products { get; set; } = Enumerable.Empty(); ///
/// ///
protected override void OnInitialized() { base.OnInitialized(); Products = Enumerable.Range(1, 20).Select(i => new Product() { ImageUrl = $"https://imgs.sdgxgz.com/images/Pic{i}.jpg", Description = $"Pic{i}.jpg" }); } } ///
/// ///
internal class Product { ///
/// ///
public string ImageUrl { get; set; } = ""; ///
/// ///
public string Description { get; set; } = ""; } }