ant-design-blazor/components/drawer/config/DrawerOptions.cs
TimChen 1877592211 feat(module: modal): support template component (#345)
* feat: modal support template

* feat: modal update

* feat: modal update

* feat: modal update

* feat: modal update

* docs: fix ci

* fix: demo title

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-07-12 23:19:55 +08:00

59 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using OneOf;
namespace AntDesign
{
public class DrawerOptions
{
public OneOf<RenderFragment, string> Content { get; set; }
public RenderFragment ChildContent { get; set; }
public bool Closable { get; set; } = true;
public bool MaskClosable { get; set; } = true;
public bool Mask { get; set; } = true;
public bool NoAnimation { get; set; } = false;
public bool Keyboard { get; set; } = true;
public OneOf<RenderFragment, string> Title { get; set; }
/// <summary>
/// "left" | "right" | "top" | "bottom"
/// </summary>
public string Placement { get; set; } = "right";
public string MaskStyle { get; set; }
public string BodyStyle { get; set; }
public string WrapClassName { get; set; }
public int Width { get; set; } = 256;
public int Height { get; set; } = 256;
public int ZIndex { get; set; } = 1000;
public int OffsetX { get; set; } = 0;
public int OffsetY { get; set; } = 0;
public bool Visible { get; set; }
/// <summary>
/// 点击关闭时触发返回false时取消关闭动作
/// </summary>
public Func<DrawerClosingEventArgs, Task> OnCancel { get; set; }
}
}