自定义表单设计
var formDefine = { optionDefine: { radioGroupSex: [{value: 1, text: '男'}, {value: 0, text: '女'}], languageList:[{value:'en',text:'英语'}] }, popSelectDialog:{ selectPos:null }, formDefine: [ [ {label: '姓名', name:'name', type: 'inputText', validate: 'required'}, {label: '地址', name:'address', type: 'inputText', validate: 'required'} ], [ {label: '性别', name:'sex',type: 'radioGroup:radioGroupSex', defaultValue: '1'}, {label: '年龄', name:'age',type: 'inputNumber', defaultValue: 20, validate: 'required,numberRange[1,100]'} ], [ {label: '备注', name:'note', type: 'textArea', validate:'required,textRange[1,1000]', colSpan:2 } ], [ {label:'语言', name:'language' ,type:'select:languageList',defaultValue:'en'}, {label:'担任岗位', name:'pos' ,type:'popSelectDialog:selectPos',defaultValue:'en'}, {label:'出生日期', name:'birthday' ,type:'inputDate',defaultValue:'2017-04-27',inputDateLimit:'~now'} ] ] };