!2513 优化: 刀路深度不能为负数

pull/2540/MERGE
张子涵 9 months ago committed by ChenX
parent f6ba152f0e
commit e8842e58e4

@ -32,8 +32,19 @@ export class FeedingCommand implements Command
let distRes = await app.Editor.GetDistance({ Msg: "请点击或输入矩形槽走刀冗余值:", Default: redundancyKnif });
if (distRes.Status === PromptStatus.OK)
{
redundancyKnif = distRes.Distance;
prompt.Msg = `选择板件,矩形槽刀冗余${redundancyKnif}:`;
if (distRes.Distance > 2 || distRes.Distance < 0)
{
AppToaster.show({
message: "矩形槽刀路冗余值要在0-2之间",
timeout: 5000,
intent: Intent.DANGER,
});
}
else
{
redundancyKnif = distRes.Distance;
prompt.Msg = `选择板件,矩形槽刀冗余${redundancyKnif}:`;
}
}
return true;
}

@ -75,7 +75,7 @@ export class ModelingComponent2 extends React.Component<{ store?: Modeling2Store
}
{
!is3D && <ToasterInput
type={CheckObjectType.OnlyNumber}
type={CheckObjectType.SmoothEdge}
optKey="depth"
option={d1items[i]}
uiOption={item}

Loading…
Cancel
Save