添加项目文件。

This commit is contained in:
2023-03-13 15:00:34 +08:00
parent 42bf06ca3e
commit 1d73df3235
1205 changed files with 185078 additions and 0 deletions

View File

@@ -0,0 +1,584 @@
using JNPF.DependencyInjection;
using Newtonsoft.Json;
namespace JNPF.VisualDev.Engine;
/// <summary>
/// 组件模型.
/// </summary>
[SuppressSniffer]
public class FieldsModel
{
/// <summary>
/// 配置.
/// </summary>
public ConfigModel __config__ { get; set; }
/// <summary>
/// 插槽.
/// </summary>
public SlotModel __slot__ { get; set; }
/// <summary>
/// 占位提示.
/// </summary>
public string placeholder { get; set; }
/// <summary>
/// 样式.
/// </summary>
public object style { get; set; }
/// <summary>
/// 是否可清除.
/// </summary>
public bool clearable { get; set; }
/// <summary>
/// 前图标.
/// </summary>
[JsonProperty(propertyName: "prefix-icon")]
public string prefixicon { get; set; }
/// <summary>
/// 后图标.
/// </summary>
[JsonProperty(propertyName: "suffix-icon")]
public string suffixicon { get; set; }
/// <summary>
/// 最大长度.
/// </summary>
public string maxlength { get; set; }
/// <summary>
/// 是否显示输入字数统计.
/// </summary>
[JsonProperty(propertyName: "show-word-limit")]
public bool showWordlimit { get; set; }
/// <summary>
/// 是否只读.
/// </summary>
public bool @readonly { get; set; }
/// <summary>
/// 是否禁用.
/// </summary>
public bool disabled { get; set; }
/// <summary>
/// 设置默认值为空字符串.
/// </summary>
public string __vModel__ { get; set; } = string.Empty;
/// <summary>
/// 类型.
/// </summary>
public string type { get; set; }
/// <summary>
/// 自适应内容高度.
/// </summary>
public object autosize { get; set; }
/// <summary>
/// 计数器步长.
/// </summary>
public int? step { get; set; }
/// <summary>
/// 是否只能输入 step 的倍数.
/// </summary>
[JsonProperty(propertyName: "step-strictly")]
public bool stepstrictly { get; set; }
/// <summary>
/// 控制按钮位置.
/// </summary>
[JsonProperty(propertyName: "controls-position")]
public string controlsposition { get; set; }
/// <summary>
/// 文本样式.
/// </summary>
public object textStyle { get; set; }
/// <summary>
/// 字体样式.
/// </summary>
public string fontStyle { get; set; }
/// <summary>
/// 是否显示中文大写.
/// </summary>
public bool showChinese { get; set; }
/// <summary>
/// 是否显示密码.
/// </summary>
[JsonProperty(propertyName: "show-password")]
public bool showPassword { get; set; }
/// <summary>
/// 规格.
/// </summary>
public string size { get; set; }
/// <summary>
/// 是否可搜索.
/// </summary>
public bool filterable { get; set; }
/// <summary>
/// 是否多选.
/// </summary>
public bool multiple { get; set; }
/// <summary>
/// 配置选项.
/// </summary>
public PropsModel props { get; set; }
/// <summary>
/// 输入框中是否显示选中值的完整路径.
/// </summary>
[JsonProperty(propertyName: "show-all-levels")]
public bool showalllevels { get; set; }
/// <summary>
/// 选项分隔符.
/// </summary>
public string separator { get; set; }
/// <summary>
/// 是否为时间范围选择,仅对<see cref="el-time-picker"/>有效.
/// </summary>
public bool isrange { get; set; }
/// <summary>
/// 选择范围时的分隔符.
/// </summary>
[JsonProperty(propertyName: "range-separator")]
public string rangeseparator { get; set; }
/// <summary>
/// 范围选择时开始日期/时间的占位内容.
/// </summary>
[JsonProperty(propertyName: "start-placeholder")]
public string startplaceholder { get; set; }
/// <summary>
/// 范围选择时开始日期/时间的占位内容.
/// </summary>
[JsonProperty(propertyName: "end-placeholder")]
public string endplaceholder { get; set; }
/// <summary>
/// 显示绑定值的格式.
/// </summary>
public string format { get; set; }
/// <summary>
/// 实际绑定值的格式.
/// </summary>
[JsonProperty(propertyName: "value-format")]
public string valueformat { get; set; }
/// <summary>
/// 当前时间日期选择器特有的选项.
/// </summary>
[JsonProperty(propertyName: "picker-options")]
public object pickeroptions { get; set; }
/// <summary>
/// 最大值.
/// </summary>
public int? max { get; set; }
/// <summary>
/// 是否允许半选.
/// </summary>
[JsonProperty(propertyName: "allow-half")]
public bool allowhalf { get; set; }
/// <summary>
/// 是否显示文本.
/// </summary>
[JsonProperty(propertyName: "show-text")]
public bool showtext { get; set; }
/// <summary>
/// 是否显示分数.
/// </summary>
[JsonProperty(propertyName: "show-score")]
public bool showScore { get; set; }
/// <summary>
/// 是否支持透明度选择.
/// </summary>
[JsonProperty(propertyName: "show-alpha")]
public bool showalpha { get; set; }
/// <summary>
/// 颜色的格式.
/// </summary>
[JsonProperty(propertyName: "color-format")]
public string colorformat { get; set; }
/// <summary>
/// 颜色.
/// </summary>
public string color { get; set; }
/// <summary>
/// switch 打开时的文字描述.
/// </summary>
[JsonProperty(propertyName: "active-text")]
public string activetext { get; set; }
/// <summary>
/// switch 关闭时的文字描述.
/// </summary>
[JsonProperty(propertyName: "inactive-text")]
public string inactivetext { get; set; }
/// <summary>
/// switch 打开时的背景色.
/// </summary>
[JsonProperty(propertyName: "active-color")]
public string activecolor { get; set; }
/// <summary>
/// switch 关闭时的背景色.
/// </summary>
[JsonProperty(propertyName: "inactive-color")]
public string inactivecolor { get; set; }
/// <summary>
/// switch 打开时的值.
/// </summary>
[JsonProperty(propertyName: "active-value")]
public int? activevalue { get; set; }
/// <summary>
/// switch 关闭时的值.
/// </summary>
[JsonProperty(propertyName: "inactive-value")]
public int? inactivevalue { get; set; }
/// <summary>
/// 最小值.
/// </summary>
public int? min { get; set; }
/// <summary>
/// 是否显示间断点.
/// </summary>
[JsonProperty(propertyName: "show-stops")]
public bool showstops { get; set; }
/// <summary>
/// 是否为范围选择
/// 滑块.
/// </summary>
public bool range { get; set; }
/// <summary>
/// 可接受上传类型.
/// </summary>
public string accept { get; set; }
/// <summary>
/// 是否显示上传提示.
/// </summary>
public bool showTip { get; set; }
/// <summary>
/// 文件大小.
/// </summary>
public int? fileSize { get; set; }
/// <summary>
/// 文件大小单位.
/// </summary>
public string sizeUnit { get; set; }
/// <summary>
/// 最大上传个数.
/// </summary>
public int? limit { get; set; }
/// <summary>
/// 文案的位置.
/// </summary>
[JsonProperty(propertyName: "content-position")]
public string contentposition { get; set; }
/// <summary>
/// 上传按钮文本.
/// </summary>
public string buttonText { get; set; }
/// <summary>
/// 等级.
/// </summary>
public int level { get; set; }
/// <summary>
/// 配置项.
/// </summary>
public List<object> options { get; set; }
/// <summary>
/// 动作文本.
/// </summary>
public string actionText { get; set; }
/// <summary>
/// 设置阴影显示时机.
/// </summary>
public string shadow { get; set; }
/// <summary>
/// app卡片容器标题.
/// </summary>
public string header { get; set; }
/// <summary>
/// 分组标题的内容.
/// </summary>
public string content { get; set; }
/// <summary>
/// 关联表单id.
/// </summary>
public string modelId { get; set; }
/// <summary>
/// 关联表单字段.
/// </summary>
public string relationField { get; set; }
/// <summary>
/// 关联表单属性 显示 字段.
/// </summary>
public string showField { get; set; }
/// <summary>
/// 流程ID.
/// </summary>
public string flowId { get; set; }
/// <summary>
/// 查询类型
/// 1-等于,2-模糊,3-范围,.
/// </summary>
public int? searchType { get; set; }
/// <summary>
/// 数据接口ID.
/// </summary>
public string interfaceId { get; set; }
/// <summary>
/// 列表配置.
/// </summary>
public List<ColumnOptionsModel> columnOptions { get; set; }
/// <summary>
/// 是否分页.
/// </summary>
public bool hasPage { get; set; }
/// <summary>
/// 页数.
/// </summary>
public int? pageSize { get; set; }
/// <summary>
/// 弹窗选择主键.
/// </summary>
public string propsValue { get; set; }
/// <summary>
/// 折叠菜单.
/// </summary>
public bool accordion { get; set; }
/// <summary>
/// 标题.
/// </summary>
public string title { get; set; }
/// <summary>
/// 名称.
/// </summary>
public string name { get; set; }
/// <summary>
/// Tab位置.
/// </summary>
[JsonProperty(propertyName: "tab-position")]
public string tabPosition { get; set; }
/// <summary>
/// 精度.
/// </summary>
public int? precision { get; set; }
/// <summary>
/// 开关控件 属性 - 开启展示值.
/// </summary>
public string activeTxt { get; set; }
/// <summary>
/// 开关控件 属性 - 关闭展示值.
/// </summary>
public string inactiveTxt { get; set; }
/// <summary>
/// 系统控件 - 所属组织 属性 - 显示内容
/// all :显示组织, last 显示部门.
/// </summary>
public string showLevel { get; set; }
/// <summary>
/// 对齐方式.
/// </summary>
public string align { get; set; }
/// <summary>
/// 是否开启合计.
/// </summary>
[JsonProperty(propertyName: "show-summary")]
public bool showSummary { get; set; }
/// <summary>
/// 合计数组.
/// </summary>
public List<string> summaryField { get; set; }
/// <summary>
/// 弹窗类型.
/// </summary>
public string popupType { get; set; }
/// <summary>
/// 弹窗标题.
/// </summary>
public string popupTitle { get; set; }
/// <summary>
/// 弹窗宽度.
/// </summary>
public string popupWidth { get; set; }
/// <summary>
/// 链接地址.
/// </summary>
public string href { get; set; }
/// <summary>
/// 打开方式.
/// </summary>
public string target { get; set; }
/// <summary>
/// .
/// </summary>
public bool closable { get; set; }
/// <summary>
/// 是否显示图标.
/// </summary>
[JsonProperty(propertyName: "show-icon")]
public bool showIcon { get; set; }
/// <summary>
/// 可选范围.
/// </summary>
public string selectType { get; set; }
/// <summary>
/// 可选部门.
/// </summary>
public List<string> ableDepIds { get; set; }
/// <summary>
/// 可选岗位.
/// </summary>
public List<string> ablePosIds { get; set; }
/// <summary>
/// 可选用户.
/// </summary>
public List<string> ableUserIds { get; set; }
/// <summary>
/// 可选角色.
/// </summary>
public List<string> ableRoleIds { get; set; }
/// <summary>
/// 可选分组.
/// </summary>
public List<string> ableGroupIds { get; set; }
/// <summary>
/// 新用户选择控件.
/// </summary>
public List<string> ableIds { get; set; }
/// <summary>
/// 子表添加数据类型
/// 0-常规,1-数据传递.
/// </summary>
public int addType { get; set; }
/// <summary>
/// .
/// </summary>
public object addTableConf { get; set; }
/// <summary>
/// 联动模板json.
/// </summary>
public List<LinkageConfig> templateJson { get; set; }
/// <summary>
/// 后端自我创建字段、用于统一处理减少循环判断
/// 是否查询字段.
/// </summary>
public bool isQueryField { get; set; }
/// <summary>
/// 后端自我创建字段、用于统一处理减少循环判断
/// 是否列表展示.
/// </summary>
public bool isIndexShow { get; set; }
/// <summary>
/// 后端自我创建字段、用于统一处理减少循环判断
/// 是否被联动(反).
/// </summary>
public bool IsLinked { get; set; }
/// <summary>
/// 后端自我创建字段、用于统一处理减少循环判断
/// 是否联动(正).
/// </summary>
public bool IsLinkage { get; set; }
/// <summary>
/// 后端自我创建字段、用于统一处理减少循环判断
/// 联动反向关系.
/// </summary>
public List<LinkageConfig> linkageReverseRelationship { get; set; } = new List<LinkageConfig>();
/// <summary>
/// 后端自我创建字段、用于统一处理减少循环
/// 上级__vModel__.
/// </summary>
public string superiorVModel { get; set; }
}