| | |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'position', |
| | | label: Formdict['header.form.position'], |
| | | initVal: card.position || 'toolbar', |
| | | required: true, |
| | | options: [{ |
| | | value: 'toolbar', |
| | | text: Formdict['header.form.toolbar'] |
| | | }, { |
| | | value: 'grid', |
| | | text: Formdict['header.form.grid'] |
| | | }] |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'Ot', |
| | | label: Formdict['header.form.isRequired'], |
| | | initVal: card.Ot || 'requiredSgl', |
| | |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'show', |
| | | label: "显示为", |
| | | initVal: card.show || 'icon', |
| | | required: true, |
| | | options: [{ |
| | | value: 'icon', |
| | | text: '图标' |
| | | }, { |
| | | value: 'button', |
| | | text: '按钮' |
| | | }, { |
| | | value: 'link', |
| | | text: '链接' |
| | | }] |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'icon', |
| | | label: Formdict['model.icon'], |
| | | initVal: card.icon, |
| | | required: type === 'chart', // 图表必须使用图标 |
| | | required: false, |
| | | options: [] |
| | | }, |
| | | { |
| | |
| | | // } |
| | | ] |
| | | |
| | | if (type === 'chart') { |
| | | // if (type === 'chart') { |
| | | // return forms |
| | | // } |
| | | return forms |
| | | } |
| | | } |