| | |
| | | { subType: 'textarea', text: '多行文本', type: 'form' }, |
| | | { subType: 'multiselect', text: '下拉多选', type: 'form' }, |
| | | { subType: 'link', text: '联动菜单', type: 'form' }, |
| | | { subType: 'popSelect', text: '选择器', type: 'form' }, |
| | | { subType: 'switch', text: '开关', type: 'form' }, |
| | | { subType: 'checkbox', text: '多选框', type: 'form' }, |
| | | { subType: 'radio', text: '单选框', type: 'form' }, |
| | |
| | | dataIndex: col.field, |
| | | title: col.label, |
| | | sorter: col.IsSort === 'true', |
| | | width: 120 |
| | | width: col.Width || 120 |
| | | }) |
| | | }) |
| | | |
| | |
| | | }, |
| | | { |
| | | type: 'form', |
| | | label: '选择器', |
| | | subType: 'popSelect', |
| | | }, |
| | | { |
| | | type: 'form', |
| | | label: '开关', |
| | | subType: 'switch', |
| | | }, |
| | |
| | | return '否' |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | title: '列宽', |
| | | dataIndex: 'Width', |
| | | inputType: 'number', |
| | | editable: true, |
| | | width: '20%', |
| | | initval: 120 |
| | | } |
| | | ] |
| | | }, |