| | |
| | | dataIndex: 'shortcut', |
| | | width: '25%', |
| | | render: (text, record) => { |
| | | if (!record.shortcut || typeof(record.shortcut) !== 'object') return '' |
| | | if (!record.shortcut || typeof(record.shortcut) !== 'object' || record.shortcut.length === 0) return '' |
| | | let _text = keycode[record.shortcut[1]] |
| | | |
| | | return record.shortcut[0] + ' + ' + _text |
| | |
| | | let node = document.getElementById('verify-card-box-tab').parentNode |
| | | |
| | | if (node && node.scrollTop) { |
| | | node.scrollTop = 0 |
| | | let inter = Math.ceil(node.scrollTop / 10) |
| | | |
| | | let timer = setInterval(() => { |
| | | if (node.scrollTop - inter > 0) { |
| | | node.scrollTop = node.scrollTop - inter |
| | | } else { |
| | | node.scrollTop = 0 |
| | | clearInterval(timer) |
| | | } |
| | | }, 10) |
| | | } |
| | | } |
| | | |