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