mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 01:11:52 +08:00
1a10f34029
Co-authored-by: James Yeung <shunjiey@hotmail.com>
40 lines
907 B
C#
40 lines
907 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
|
|
namespace AntDesign
|
|
{
|
|
/// <summary>
|
|
/// modal footer Component
|
|
/// </summary>
|
|
public partial class ModalFooter
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[CascadingParameter]
|
|
public DialogOptions ModalProps { get; set; }
|
|
|
|
private async Task HandleCancel(MouseEventArgs e)
|
|
{
|
|
var onCancel = ModalProps.OnCancel;
|
|
if (onCancel != null)
|
|
{
|
|
await onCancel.Invoke(e);
|
|
}
|
|
}
|
|
|
|
private async Task HandleOk(MouseEventArgs e)
|
|
{
|
|
var onOk = ModalProps.OnOk;
|
|
if (onOk != null)
|
|
{
|
|
await onOk.Invoke(e);
|
|
}
|
|
}
|
|
}
|
|
}
|