|
|
|
@ -47,7 +47,7 @@ export class SplitModal extends React.Component<{ store: EntityStore; }, {}>
|
|
|
|
|
let num = parseInt(e.target.value);
|
|
|
|
|
store.displayAccuracy = num;
|
|
|
|
|
// 延迟更新,防止12在输入1时就被判定
|
|
|
|
|
this._timer = setTimeout(() => store.displayAccuracy = this.AdjustValue(num), 500);
|
|
|
|
|
this._timer = setTimeout(() => store.displayAccuracy = this.AdjustValue(num), 1000);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
private handleClick = () =>
|
|
|
|
@ -111,7 +111,7 @@ export class SplitModal extends React.Component<{ store: EntityStore; }, {}>
|
|
|
|
|
render()
|
|
|
|
|
{
|
|
|
|
|
return (
|
|
|
|
|
<div title={`精度在${this._min}-${this._max}之间,或者0表示默认精度`} style={{ display: "flex", alignItems: "center", justifyContent: "center", height: "25px" }}>
|
|
|
|
|
<div title={`精度在${this._min}-${this._max}之间的偶数,或者0表示默认精度`} style={{ display: "flex", alignItems: "center", justifyContent: "center", height: "25px" }}>
|
|
|
|
|
<label style={{ marginRight: "10px" }}>精度</label>
|
|
|
|
|
{this.showValue()}
|
|
|
|
|
</div>
|
|
|
|
|