Package 

Enum FormValidType

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum FormValidType
    extends Enum<FormValidType>
                        

    对应的vue表单验证类型

    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      EMPTY
      STRING

      string 字符串类型

      NUMBER

      number number类型,自动添加 .number 修饰符 el-input

      BOOLEAN

      boolean 布尔类型 el-switch

      REGEXP

      regexp 正则表达式,必须是可以正确转化为 RegExp 实例的字符串 el-input

      INTEGER

      integer number 类型的整数,自动添加 .number 修饰符 el-input

      FLOAT

      float number 类型的浮点数,自动添加 .number 修饰符 el-input

      ENUM

      enum 枚举类型,需要和 enum, options 属性配合使用,值必须是 enum 数组中的一个 el-select

      DATE

      date 必须是合法的 Date 对象 el-date-picker

      URL

      url 符合链接格式的字符串 el-input

      HEX

      hex 符合哈希格式的字符串 el-input

      EMAIL

      email 符合邮件格式的字符串 el-input

      OBJECT

      object object 类型,配合 fields 和 defaultField 使用 dynamic-form-item

      ARRAY

      array array 类型,配合 defaultField 使用 dynamic-form-item

    • Method Summary

      Modifier and Type Method Description
      final FormValidType valueOf(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 String getValue()
      • Methods inherited from class kotlin.Enum

        getName, getOrdinal
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.