| | |
| | | field: item.field || '', |
| | | width: item.span || 12, |
| | | value: '', |
| | | style: {marginBottom: '15px'} |
| | | style: {marginBottom: '15px', color: 'rgba(0, 0, 0, 0.85)'} |
| | | } |
| | | |
| | | if (item.type === 'number') { |
| | | cell.eleType = 'number' |
| | | cell.decimal = typeof(item.decimal) === 'number' ? item.decimal : '' |
| | | } else if (item.type === 'split') { |
| | | cell.width = 24 |
| | | cell.prefix = '' |
| | | cell.value = item.label || '' |
| | | cell.style = { |
| | | color: '#1890ff', |
| | | marginBottom: '15px', |
| | | borderBottomWidth: '1px', |
| | | borderBottomColor: '#e9e9e9' |
| | | } |
| | | } |
| | | |
| | | items.push(cell) |
| | |
| | | |
| | | if (element.copyType === 'action') { |
| | | element.eleType = 'button' |
| | | element.width = typeof(element.width) === 'number' ? element.width : 12 |
| | | element.width = element.width || element.width === 0 ? element.width : 12 |
| | | } |
| | | |
| | | element.uuid = _uuid |