| | |
| | | MKEmitter.emit('cardAddElement', card.uuid, res) |
| | | } else { |
| | | res.eleType = 'button' |
| | | res.width = typeof(res.width) === 'number' ? res.width : 12 |
| | | res.width = res.width || res.width === 0 ? res.width : 12 |
| | | MKEmitter.emit('cardAddElement', card.uuid, res) |
| | | } |
| | | resolve({status: true}) |
| | |
| | | |
| | | 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 |
| | |
| | | |
| | | 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 |
| | |
| | | if (!cell.eleType) { |
| | | if (cell.copyType === 'action') { |
| | | cell.eleType = 'button' |
| | | cell.width = typeof(cell.width) === 'number' ? cell.width : 12 |
| | | cell.width = cell.width || cell.width === 0 ? cell.width : 12 |
| | | } else { |
| | | cell.eleType = 'text' |
| | | } |
| | |
| | | if (!cell.eleType) { |
| | | if (cell.copyType === 'action') { |
| | | cell.eleType = 'button' |
| | | cell.width = typeof(cell.width) === 'number' ? cell.width : 12 |
| | | cell.width = cell.width || cell.width === 0 ? cell.width : 12 |
| | | } else { |
| | | cell.eleType = 'text' |
| | | } |
| | |
| | | if (!cell.eleType) { |
| | | if (cell.copyType === 'action') { |
| | | cell.eleType = 'button' |
| | | cell.width = typeof(cell.width) === 'number' ? cell.width : 12 |
| | | cell.width = cell.width || cell.width === 0 ? cell.width : 12 |
| | | } else { |
| | | cell.eleType = 'text' |
| | | } |