| | |
| | | { |
| | | type: 'text', |
| | | key: 'label', |
| | | label: Formdict['header.form.name'], |
| | | label: Formdict['model.form.name'], |
| | | initVal: card.label || '', |
| | | required: true, |
| | | readonly: false |
| | |
| | | { |
| | | type: 'text', |
| | | key: 'field', |
| | | label: Formdict['header.form.field'], |
| | | label: Formdict['model.form.field'], |
| | | initVal: card.field || '', |
| | | tooltipClass: 'middle', |
| | | required: true, |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'required', |
| | | label: Formdict['header.form.field.required'], |
| | | label: Formdict['model.required'], |
| | | initVal: card.required || 'false', |
| | | options: [{ |
| | | value: 'true', |
| | |
| | | { |
| | | type: 'select', |
| | | key: 'icon', |
| | | label: Formdict['header.form.icon'], |
| | | label: Formdict['model.form.icon'], |
| | | initVal: card.icon, |
| | | required: false, |
| | | options: [] |
| | |
| | | { |
| | | type: 'select', |
| | | key: 'class', |
| | | label: Formdict['header.form.class'], |
| | | label: Formdict['model.form.color'], |
| | | initVal: card.class, |
| | | required: false, |
| | | options: [] |
| | |
| | | { |
| | | type: 'text', |
| | | key: 'label', |
| | | label: Formdict['header.form.name'], |
| | | label: Formdict['model.form.name'], |
| | | initVal: card.label, |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'field', |
| | | label: Formdict['header.form.field'], |
| | | label: Formdict['model.form.field'], |
| | | initVal: card.field, |
| | | required: true, |
| | | readonly: false |
| | |
| | | value: 'picture', |
| | | text: Formdict['model.form.picture'] |
| | | }, { |
| | | value: 'link', |
| | | text: Formdict['model.form.href'] |
| | | }, { |
| | | value: 'textarea', |
| | | text: Formdict['model.form.textarea'] |
| | | }] |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'nameField', |
| | | label: Formdict['model.form.name'] + Formdict['model.form.field'], |
| | | initVal: card.nameField, |
| | | required: false, |
| | | readonly: false |
| | | }, |
| | | { |
| | | type: 'number', |
| | |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'joint', |
| | | label: Formdict['model.form.paramJoint'], |
| | | initVal: card.joint || 'true', |
| | | required: true, |
| | | options: [{ |
| | | value: 'true', |
| | | text: Formdict['header.form.true'] |
| | | }, { |
| | | value: 'false', |
| | | text: Formdict['header.form.false'] |
| | | }] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'Hide', |
| | | label: Formdict['header.form.Hide'], |
| | | label: Formdict['model.hidden'], |
| | | initVal: card.Hide || 'false', |
| | | required: true, |
| | | options: [{ |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'IsSort', |
| | | label: Formdict['header.form.IsSort'], |
| | | label: Formdict['model.sort'], |
| | | initVal: card.IsSort || 'true', |
| | | required: true, |
| | | options: [{ |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'Align', |
| | | label: Formdict['header.form.align'], |
| | | label: Formdict['model.form.align'], |
| | | initVal: card.Align || 'left', |
| | | required: true, |
| | | options: [{ |
| | | value: 'left', |
| | | text: Formdict['header.form.alignLeft'] |
| | | text: Formdict['model.form.alignLeft'] |
| | | }, { |
| | | value: 'center', |
| | | text: Formdict['header.form.alignCenter'] |
| | | text: Formdict['model.form.alignCenter'] |
| | | }, { |
| | | value: 'right', |
| | | text: Formdict['header.form.alignRight'] |
| | | text: Formdict['model.form.alignRight'] |
| | | }] |
| | | }, |
| | | { |
| | |
| | | { |
| | | type: 'number', |
| | | key: 'fieldlength', |
| | | label: Formdict['header.form.field.length'], |
| | | label: Formdict['model.form.field'] + Formdict['model.length'], |
| | | initVal: card.fieldlength || (card.type === 'text' ? 50 : 512), |
| | | required: true |
| | | }, |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'Hide', |
| | | label: Formdict['header.form.Hide'], |
| | | label: Formdict['model.hidden'], |
| | | initVal: card.Hide, |
| | | required: true, |
| | | options: [{ |
| | |
| | | { |
| | | type: 'text', |
| | | key: 'label', |
| | | label: Formdict['header.form.name'], |
| | | label: Formdict['model.form.name'], |
| | | initVal: card.label, |
| | | required: true, |
| | | readonly: false |
| | |
| | | { |
| | | type: 'text', |
| | | key: 'field', |
| | | label: Formdict['header.form.field'], |
| | | label: Formdict['model.form.field'], |
| | | initVal: card.field || '', |
| | | required: true, |
| | | readonly: false |
| | |
| | | { |
| | | type: 'number', |
| | | key: 'fieldlength', |
| | | label: Formdict['header.form.field.length'], |
| | | label: Formdict['model.form.field'] + Formdict['model.length'], |
| | | tooltip: '文本、下拉框、日期等字段默认长度为50,多行文本与文件上传字段默认长度为512', |
| | | initVal: card.fieldlength || _fieldlength, |
| | | required: false |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'required', |
| | | label: Formdict['header.form.field.required'], |
| | | label: Formdict['model.required'], |
| | | initVal: card.required || 'true', |
| | | options: [{ |
| | | value: 'true', |
| | |
| | | { |
| | | type: 'radio', |
| | | key: 'hidden', |
| | | label: Formdict['header.form.field.ishidden'], |
| | | label: Formdict['model.required'], |
| | | initVal: card.hidden || 'false', |
| | | options: [{ |
| | | value: 'true', |