属性 | 说明 | 类型 | 可选值 | 默认值 |
model | 表单数据对象 | object | -- | -- |
inline | 行内表单模式 | boolean | -- | false |
属性 | 说明 | 类型 | 可选值 | 默认值 |
prop | 表单域model字段 | string | -- | -- |
label | 标签 | string | -- | -- |
label-width | 标签的宽度 | string|number | -- | -- |
label | 标签 | string | -- | -- |
type | 表单类型 | string | input, select, radio, checkbox, input-number, input-range, switch, file, input-password, date-picker, color-picker, value | -- |
span | 排版中占一行的比例 | number | 1-24 | 24 |
value | 初始值 | string|number|array | -- | -- |
options | 选项数组 | array | -- | -- |
asyncOptions | 异步获取选项的函数,需返回promise | function | -- | -- |
props | 绑定在输入组件上的属性 | object | -- | -- |
eventObject | 绑定在组件上的事件 | object | blur,click,change,focus | -- |
属性 | 说明 | 类型 | 可选值 | 默认值 |
action | 上传地址 | string | -- | -- |
url | 初始url | string | -- | -- |
getUrl | 初始url回调,参数为form,返回值为图片url | (form: FormModel)=> string | -- | -- |
headers | 上传请求头 | object | -- | -- |
maxsize | 文件大小最大值 | number | -- | -- |
fileType | 上传的文件类型 | string | image/video | image |
success | 上传成功的回调 | (res: AxiosResponse,file: File,model:FormModel)=>{} | -- | -- |