ant-design-blazor/components/image/ImageService.cs
James Yeung c9656ca227 feat(module: image): add image component (#1038)
* feat(module: image): add image

* add image preview

* add locale
2021-01-25 02:05:18 +08:00

24 lines
467 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace AntDesign
{
public class ImageService
{
public event Action<string> ImagePreviewOpened;
public event Action<string> ImagePreviewClosed;
public void OpenImage(string url)
{
ImagePreviewOpened?.Invoke(url);
}
public void CloseImage(string url)
{
ImagePreviewClosed?.Invoke(url);
}
}
}