ant-design-blazor/components/notification/config/AntNotificationGlobalConfig.cs
zxyao cd73cf1cdd feat: add component notification (#99)
* feat: add notification

* fix: onclick event trigger on onclise on server rendering

* fix: notification no longer requires container

* fix: convert OnClick and OnClose type to event
2020-05-10 22:43:58 +08:00

44 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.AspNetCore.Components;
namespace AntBlazor
{
/// <summary>
/// AntNotification全局配置
/// </summary>
public class AntNotificationGlobalConfig
{
/// <summary>
/// 消息从底部弹出时,距离底部的位置,单位像素。
/// </summary>
public double? Bottom { get; set; } = null;
/// <summary>
/// 消息从顶部弹出时,距离顶部的位置,单位像素。
/// </summary>
public double? Top { get; set; } = null;
/// <summary>
/// 是否开启 RTL 模式
/// </summary>
public bool? Rtl { get; set; } = null;
/// <summary>
/// 自定义关闭图标
/// </summary>
public RenderFragment CloseIcon { get; set; } = null;
/// <summary>
/// 自动关闭的延时,单位为秒。默认 4.5 秒后自动关闭,配置为 null 则不自动关闭
/// </summary>
public double? Duration { get; set; } = null;
/// <summary>
/// 弹出位置
/// </summary>
public AntNotificationPlacement? Placement { get; set; } = null;
}
}