2020-03-22 21:24:41 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
2020-06-23 15:19:44 +08:00
|
|
|
|
using System.Threading.Tasks;
|
2020-03-22 21:24:41 +08:00
|
|
|
|
|
2020-05-29 00:33:49 +08:00
|
|
|
|
namespace AntDesign
|
2020-03-22 21:24:41 +08:00
|
|
|
|
{
|
|
|
|
|
public class DrawerRef
|
|
|
|
|
{
|
2020-06-23 15:19:44 +08:00
|
|
|
|
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();
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-22 21:24:41 +08:00
|
|
|
|
}
|
2020-06-23 15:19:44 +08:00
|
|
|
|
}
|