mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 01:11:52 +08:00
db64810a20
* refactor: change confirm return * feat(module: drawer): add DrawerService * fix: change type EventCallback in configs to Func * fix: typo Co-authored-by: ElderJames <shunjiey@hotmail.com>
35 lines
700 B
C#
35 lines
700 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public class DrawerRef
|
|
{
|
|
private DrawerConfig _config;
|
|
private DrawerService _service;
|
|
|
|
internal DrawerRef(DrawerConfig config)
|
|
{
|
|
_config = config;
|
|
}
|
|
|
|
internal DrawerRef(DrawerConfig config, DrawerService service)
|
|
{
|
|
_config = config;
|
|
_service = service;
|
|
}
|
|
|
|
/// <summary>
|
|
/// clsoe the drawer
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public Task CloseAsync()
|
|
{
|
|
return _config.HandleOnClose();
|
|
}
|
|
|
|
}
|
|
}
|