king
2021-12-14 0e274944e11094012aa2e1557df8fe438b3b6d20
src/views/printTemplate/index.jsx
@@ -45,7 +45,7 @@
    upMinus: 1,
    leftPlus: 1,
    leftMinus: 1,
    debug: false
    debug: true
  }
  getclickpoint = (e) => {
@@ -891,6 +891,8 @@
  }
  render () {
    const { debug } = this.state
    return (
      <div className="print-template">
        <DndProvider backend={HTML5Backend}>
@@ -907,7 +909,7 @@
              <Input addonBefore={<Icon title="距左" type="arrow-left" />} addonAfter={<Icon onClick={() => this.updatePosition('leftPlus')} type="plus" />} onChange={(e) => this.change(e, 'leftPlus')} value={this.state.leftPlus} />
              <Input addonBefore={<Icon title="距左" type="arrow-left" />} addonAfter={<Icon onClick={() => this.updatePosition('leftMinus')} type="minus" />} onChange={(e) => this.change(e, 'leftMinus')} value={this.state.leftMinus} />
              <div style={{marginTop: '10px'}}>
                <span>调试模式:</span><Switch onChange={this.changeDebug} />
                <span>调试模式:</span><Switch checked={debug} onChange={this.changeDebug} />
              </div>
            </Card>
          </aside>