| | |
| | | resetCardStyle = (card, style) => { |
| | | let _card = fromJS(card).toJS() |
| | | |
| | | if (_card.eleType === 'text' || _card.eleType === 'number') { |
| | | if (['text', 'number', 'formula'].includes(_card.eleType)) { |
| | | _card.style = style |
| | | |
| | | let fontSize = 14 |
| | |
| | | elements: _elements, |
| | | visible: false, |
| | | actvisible: false |
| | | }, () => { |
| | | this.props.updateElement(_elements) |
| | | }) |
| | | } |
| | | |
| | |
| | | if (res.eleType === 'splitline' && cell.eleType !== 'splitline') { |
| | | res.style.paddingTop = '5px' |
| | | res.style.paddingBottom = '5px' |
| | | } else if (res.eleType === 'text' || res.eleType === 'number') { |
| | | } else if (['text', 'number', 'formula'].includes(res.eleType)) { |
| | | let fontSize = 14 |
| | | let lineHeight = 1.5 |
| | | let line = res.height || null |