mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-14 17:01:18 +08:00
c9656ca227
* feat(module: image): add image * add image preview * add locale
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);
|
|
}
|
|
}
|
|
}
|