| | |
| | | { |
| | | title: '名称', |
| | | dataIndex: 'label', |
| | | width: '20%' |
| | | width: '25%' |
| | | }, |
| | | { |
| | | title: '快捷键', |
| | | dataIndex: 'shortcut', |
| | | width: '20%' |
| | | }, |
| | | { |
| | | title: '组合键', |
| | | dataIndex: 'shortcutkey', |
| | | width: '20%', |
| | | render: (text, record) => keycode[text] || '' |
| | | width: '25%', |
| | | render: (text, record) => { |
| | | if (!record.shortcut || typeof(record.shortcut) !== 'object') return '' |
| | | let _text = keycode[record.shortcut[1]] |
| | | |
| | | return record.shortcut[0] + ' + ' + _text |
| | | } |
| | | }, |
| | | { |
| | | title: '打印机', |
| | | dataIndex: 'printer', |
| | | width: '20%' |
| | | width: '30%' |
| | | }, |
| | | { |
| | | title: '操作', |
| | |
| | | |
| | | UNSAFE_componentWillMount() { |
| | | const { config } = this.props |
| | | |
| | | |
| | | this.setState({ |
| | | config: JSON.parse(JSON.stringify(config)) |
| | | }) |
| | |
| | | |
| | | _config.action = _config.action.map(cell => { |
| | | if (item.uuid === cell.uuid) { |
| | | |
| | | cell.printer = cell.printer || data.defaultPrinter |
| | | cell.printers = printers.map(print => { |
| | | return { |