|
@@ -67,28 +67,28 @@ class NumberPan extends Component{
|
|
|
onDoubleClick={(e)=>e.stopPropagation()}>
|
|
|
<table className={style['pan']} >
|
|
|
<tr>
|
|
|
- <td><button onClick={select}>1</button></td>
|
|
|
- <td><button onClick={select}>2</button></td>
|
|
|
- <td><button onClick={select}>3</button></td>
|
|
|
- <td><button onClick={select}>/</button></td>
|
|
|
+ <td><button onMouseUp={select}>1</button></td>
|
|
|
+ <td><button onMouseUp={select}>2</button></td>
|
|
|
+ <td><button onMouseUp={select}>3</button></td>
|
|
|
+ <td><button onMouseUp={select}>/</button></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td><button onClick={select}>4</button></td>
|
|
|
- <td><button onClick={select}>5</button></td>
|
|
|
- <td><button onClick={select}>6</button></td>
|
|
|
- <td><button onClick={this.handleBack.bind(this)}><img src={backspace} onClick={this.handleBack.bind(this)} /></button></td>
|
|
|
+ <td><button onMouseUp={select}>4</button></td>
|
|
|
+ <td><button onMouseUp={select}>5</button></td>
|
|
|
+ <td><button onMouseUp={select}>6</button></td>
|
|
|
+ <td><button onMouseUp={this.handleBack.bind(this)}><img src={backspace} onClick={this.handleBack.bind(this)} /></button></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td><button onClick={select}>7</button></td>
|
|
|
- <td><button onClick={select}>8</button></td>
|
|
|
- <td><button onClick={select}>9</button></td>
|
|
|
- <td><button onClick={this.handleClear.bind(this)} className={style['clearN']}>清空</button></td>
|
|
|
+ <td><button onMouseUp={select}>7</button></td>
|
|
|
+ <td><button onMouseUp={select}>8</button></td>
|
|
|
+ <td><button onMouseUp={select}>9</button></td>
|
|
|
+ <td><button onMouseUp={this.handleClear.bind(this)} className={style['clearN']}>清空</button></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td><button onClick={select}>.</button></td>
|
|
|
- <td><button onClick={select}>0</button></td>
|
|
|
- <td><button onClick={select}>~</button></td>
|
|
|
- <td><button onClick={this.handleClose.bind(this)} className={style['confirm']}>确定</button></td>
|
|
|
+ <td><button onMouseUp={select}>.</button></td>
|
|
|
+ <td><button onMouseUp={select}>0</button></td>
|
|
|
+ <td><button onMouseUp={select}>~</button></td>
|
|
|
+ <td><button onMouseUp={this.handleClose.bind(this)} className={style['confirm']}>确定</button></td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</div>
|