-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum FormValidType extends Enum<FormValidType>
对应的vue表单验证类型
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classFormValidType.Companion
-
Enum Constant Summary
Enum Constants Enum Constant Description EMPTYSTRINGstring 字符串类型
NUMBERnumber number类型,自动添加 .number 修饰符 el-input
BOOLEANboolean 布尔类型 el-switch
REGEXPregexp 正则表达式,必须是可以正确转化为 RegExp 实例的字符串 el-input
INTEGERinteger number 类型的整数,自动添加 .number 修饰符 el-input
FLOATfloat number 类型的浮点数,自动添加 .number 修饰符 el-input
ENUMenum 枚举类型,需要和 enum, options 属性配合使用,值必须是 enum 数组中的一个 el-select
DATEdate 必须是合法的 Date 对象 el-date-picker
URLurl 符合链接格式的字符串 el-input
HEXhex 符合哈希格式的字符串 el-input
EMAILemail 符合邮件格式的字符串 el-input
OBJECTobject object 类型,配合 fields 和 defaultField 使用 dynamic-form-item
ARRAYarray array 类型,配合 defaultField 使用 dynamic-form-item
-
Method Summary
Modifier and Type Method Description final FormValidTypevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<FormValidType>values()Returns an array containing the constants of this enum type, in the order they're declared. final StringgetValue()-
-
Method Detail
-
valueOf
final FormValidType valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<FormValidType> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
-
-
-