2020-05-10 22:43:58 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
|
|
2020-05-29 00:33:49 +08:00
|
|
|
|
namespace AntDesign
|
2020-05-10 22:43:58 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// AntNotification全局配置
|
|
|
|
|
/// </summary>
|
2020-05-16 16:52:44 +08:00
|
|
|
|
public class NotificationGlobalConfig
|
2020-05-10 22:43:58 +08:00
|
|
|
|
{
|
|
|
|
|
/// <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>
|
2020-05-16 16:52:44 +08:00
|
|
|
|
public NotificationPlacement? Placement { get; set; } = null;
|
2020-05-10 22:43:58 +08:00
|
|
|
|
}
|
|
|
|
|
}
|