mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-14 08:51:27 +08:00
24 lines
467 B
C#
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|