Form属性

属性说明类型可选值默认值
model表单数据对象object----
inline行内表单模式boolean--false

FormItem 属性

属性说明类型可选值默认值
prop表单域model字段string----
label标签string----
label-width标签的宽度string|number----
label标签string----
type表单类型stringinput, select, radio, checkbox, input-number, input-range, switch, file, input-password, date-picker, color-picker, value--
span排版中占一行的比例number1-2424
value初始值string|number|array----
options选项数组array----
asyncOptions异步获取选项的函数,需返回promisefunction----
props绑定在输入组件上的属性object----
eventObject绑定在组件上的事件objectblur,click,change,focus--

type为file的FormItem 属性

属性说明类型可选值默认值
action上传地址string----
url初始urlstring----
getUrl初始url回调,参数为form,返回值为图片url(form: FormModel)=> string----
headers上传请求头object----
maxsize文件大小最大值number----
fileType上传的文件类型stringimage/videoimage
success上传成功的回调(res: AxiosResponse,file: File,model:FormModel)=>{}----