mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 04:58:05 +08:00
29 lines
589 B
C#
29 lines
589 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public partial class ImagePreviewGroup
|
|
{
|
|
[Parameter]
|
|
public RenderFragment ChildContent { get; set; }
|
|
|
|
internal IList<Image> Images => _images;
|
|
|
|
private IList<Image> _images;
|
|
|
|
public void AddImage(Image image)
|
|
{
|
|
_images ??= new List<Image>();
|
|
_images.Add(image);
|
|
}
|
|
|
|
public void Remove(Image image)
|
|
{
|
|
_images.Remove(image);
|
|
}
|
|
}
|
|
}
|