feat:代码生成模板新增清空操作

This commit is contained in:
不做码农
2022-09-23 09:53:23 +08:00
parent c6aecf2c76
commit b8b323a090
7 changed files with 74 additions and 3 deletions

View File

@@ -59,7 +59,8 @@ namespace ZR.CodeGenerator
ShowBtnEdit = dto.GenTable.Options.CheckedBtn.Any(f => f == 2),
ShowBtnDelete = dto.GenTable.Options.CheckedBtn.Any(f => f == 3),
ShowBtnExport = dto.GenTable.Options.CheckedBtn.Any(f => f == 4),
ShowBtnView = dto.GenTable.Options.CheckedBtn.Any(f => f == 5)
ShowBtnView = dto.GenTable.Options.CheckedBtn.Any(f => f == 5),
ShowBtnTruncate = dto.GenTable.Options.CheckedBtn.Any(f => f == 6),
};
//循环表字段信息

View File

@@ -48,6 +48,7 @@ namespace ZR.CodeGenerator.Model
public bool ShowBtnEdit { get; set; }
public bool ShowBtnDelete { get; set; }
public bool ShowBtnView { get; set; }
public bool ShowBtnTruncate { get; set; }
/// <summary>
/// 上传URL data
/// </summary>