!3034 优化: 独立精度输入框延长延迟更新的时间

pull/3022/MERGE
张子涵 1 month ago committed by ChenX
parent a954bdd828
commit e52521a7ab

@ -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>

Loading…
Cancel
Save