Skip to content

表单字段属性

zhongku edited this page Jul 2, 2018 · 1 revision

` ///

/// 表单字段属性 /// public class FormFieldProperty { /// /// 字段英文名字 /// public string Field { get; }
    /// <summary>
    ///     Gets or sets the name of the field.
    ///     字段的中文名字
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    ///     控件类型,输入框类型
    /// </summary>
    public ControlsType Type { get; set; }

    /// <summary>
    /// 必填
    /// </summary>
    public bool Required { get; set; } = false;

    /// <summary>
    ///     控件的数据源
    /// </summary>
    public string DataSource { get; set; }

    /// <summary>
    ///     验证方式
    ///     远程验证方式
    /// </summary>
    public ValidType ValidType { get; set; }

    /// <summary>
    ///     提示文字
    /// </summary>
    public string PlaceHolder { get; set; }

    /// <summary>
    ///     其他标志
    /// </summary>
    public string Mark { get; set; }

    /// <summary>
    /// 最大长度
    /// </summary>
    public long Maxlength { get; set; }

    /// <summary>
    /// 最小长度
    /// </summary>
    public long MinLength { get; set; }

    /// <summary>
    ///     字段排序,从小到大排列,默认值9999
    /// </summary>
    public long SortOrder { get; set; } = 9999;

}`
Clone this wiki locally