namespace YBEE.EQM.Application;

/// <summary>
/// 导出列定义
/// </summary>
/// <typeparam name="T"></typeparam>
public class ExportExcelColDto<T>
{
    /// <summary>
    /// 名称
    /// </summary>
    public string Name { get; set; }
    /// <summary>
    /// 宽度
    /// </summary>
    public int? Width { get; set; }
    /// <summary>
    /// 水平对齐方式
    /// </summary>
    public ExportExcelCellAlign? Align { get; set; }
    /// <summary>
    /// 获取单元格值
    /// </summary>
    public Func<T, object> GetCellValue { get; set; }
    /// <summary>
    /// 是否自动换行
    /// </summary>
    public bool WrapText { get; set; } = false;
}
