ant-design-blazor/components/notification/config/NotificationGlobalConfig.cs
zxyao 68d9743fe3 refactor(notification): using a common global container (#116)
* refactor: using a common global container

* refactor: notification remove instance
2020-05-16 16:52:44 +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 NotificationGlobalConfig
{
/// <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 NotificationPlacement? Placement { get; set; } = null;
}
}