Client/AntDesignClient/Gardener.Client.AntDesignUi.Base/Components/PageBaseClass/OperationDialogBase.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// -----------------------------------------------------------------------------
// 园丁,是个很简单的管理系统
// gitee:https://gitee.com/hgflydream/Gardener
// issues:https://gitee.com/hgflydream/Gardener/issues
// -----------------------------------------------------------------------------
using AntDesign;
using Microsoft.AspNetCore.Components;
using Mapster;
using Gardener.Client.AntDesignUi.Base.Services;
using Gardener.Client.AntDesignUi.Base.Constants;
using Gardener.Client.Base;
using Gardener.Base.Resources;
using Gardener.Client.Base.Components;
namespace Gardener.Client.AntDesignUi.Base.Components
{
/// <summary>
/// 弹出框基类
/// </summary>
/// <typeparam name="TDialogInput">输入参数的类型</typeparam>
/// <typeparam name="TDialogOutput">输出参数的类型</typeparam>
/// <typeparam name="TLocalResource">本地化资源类</typeparam>
public abstract class OperationDialogBase<TDialogInput, TDialogOutput, TLocalResource> : ReuseTabsPageAndFormBase<TDialogInput, TDialogOutput> where TLocalResource : SharedLocalResource
{
/// <summary>
/// 弹框区域的加载中标识
/// </summary>
protected ClientLoading _dialogLoading = new ClientLoading();
/// <summary>
/// 本地化
/// </summary>
[Inject]
protected IClientLocalizer<TLocalResource> Localizer { get; set; } = null!;
/// <summary>
/// 操作对话框
/// </summary>
[Inject]
protected IOperationDialogService OperationDialogService { get; set; } = null!;
/// <summary>
/// 获取操作会话配置
/// </summary>
/// <returns></returns>
protected virtual OperationDialogSettings GetOperationDialogSettings()
{
OperationDialogSettings dialogSettings = new OperationDialogSettings();
ClientConstant.DefaultOperationDialogSettings.Adapt(dialogSettings);
SetOperationDialogSettings(dialogSettings);
return dialogSettings;
}
/// <summary>
/// 设置操作会话配置
/// </summary>
/// <param name="dialogSettings"></param>
protected virtual void SetOperationDialogSettings(OperationDialogSettings dialogSettings)
{
//set OperationDialogSettings
后面还有 113 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
