@idealworld/formula-editor v0.6.2 / iwInterface / VarInfo
Interface: VarInfo
Variable information
Example
{
name: 'age',
label: '年龄',
kind: VarKind.NUMBER,
note: '年龄',
minLen: 18,
maxLen: 60,
defaultValue:36,
cates: ['基础','隐私']
}
Extends
Properties
cates?
optional
cates:string
[]
Variable category
One variable can correspond to multiple categories
Source
checkReg?
optional
checkReg:string
Check regularity
Inherited from
Source
defaultValue?
optional
defaultValue:any
Default value
Source
kind
kind:
VarKind
Variable type
Inherited from
Source
label?
optional
label:string
Variable display name
Source
maxLen?
optional
maxLen:number
Maximum length (maximum value)
Inherited from
Source
minLen?
optional
minLen:number
Minimum length (minimum value)
Inherited from
Source
name?
optional
name:string
Variable name
Source
note?
optional
note:string
Variable description
Source
options?
optional
options: [Object
]
Optional