Client/AntDesignClient/Gardener.Client.AntDesignUi.Base/CustomService/BaseTable.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// -----------------------------------------------------------------------------
// 园丁,是个很简单的管理系统
// gitee:https://gitee.com/hgflydream/Gardener
// issues:https://gitee.com/hgflydream/Gardener/issues
// -----------------------------------------------------------------------------
using AntDesign;
using Gardener.Base;
using Gardener.Client.AntDesignUi.Base.Components;
using Gardener.Client.AntDesignUi.Base.Constants;
using Gardener.Client.AntDesignUi.Base.Services;
using Gardener.Client.Base;
using Mapster;
using Microsoft.AspNetCore.Components;
namespace Gardener.Client.AntDesignUi.Base.CustomService
{
/// <summary>
/// table基类(无主键表,TDto不继承BaseDto)
/// </summary>
public abstract class BaseTable<TDto, TKey, TLocalResource>
: ReuseTabsPageAndFormBase<TKey, bool>
where TDto : class, new()
{
/// <summary>
/// table引用
/// </summary>
protected ITable? _table;
/// <summary>
/// 当前页数据集合
/// </summary>
protected IEnumerable<TDto>? _datas;
/// <summary>
/// 选择的行
/// </summary>
protected IEnumerable<TDto>? _selectedRows;
/// <summary>
/// table加载中控制
/// </summary>
protected bool _tableIsLoading = false;
/// <summary>
/// 多选删除按钮加载中控制
/// </summary>
protected bool _deletesBtnLoading = false;
/// <summary>
/// 导出数据加载中绑定数据
/// </summary>
protected bool _exportDataLoading = false;
/// <summary>
/// 服务
/// </summary>
[Inject]
protected IServiceBase<TDto, TKey> _service { get; set; } = null!;
后面还有 64 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
