wip fix
This commit is contained in:
parent
d9c367b399
commit
77075096e6
|
|
@ -32,6 +32,7 @@ export const FieldNumUnit: FC<{
|
||||||
unit: "",
|
unit: "",
|
||||||
drag: { clientX: 0, old: 0 },
|
drag: { clientX: 0, old: 0 },
|
||||||
dragging: false,
|
dragging: false,
|
||||||
|
timeout: null as any,
|
||||||
});
|
});
|
||||||
|
|
||||||
const parseVal = useCallback(() => {
|
const parseVal = useCallback(() => {
|
||||||
|
|
@ -84,7 +85,10 @@ export const FieldNumUnit: FC<{
|
||||||
|
|
||||||
local.render();
|
local.render();
|
||||||
|
|
||||||
|
clearTimeout(local.timeout);
|
||||||
|
local.timeout = setTimeout(() => {
|
||||||
update(local.val + local.unit);
|
update(local.val + local.unit);
|
||||||
|
}, 300);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue