|
|
@ -150,17 +150,17 @@ export class DrawConfigPanel extends React.Component<IConfigProps, {}> {
|
|
|
|
<H5>酷家乐导入配置</H5>
|
|
|
|
<H5>酷家乐导入配置</H5>
|
|
|
|
<div className="flex-wrap kjl-config">
|
|
|
|
<div className="flex-wrap kjl-config">
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[["槽加长", "grooveAddLength"], ["槽加宽", "grooveAddWidth"], ["槽加深", "grooveAddDepth"]].map(([t, k]) =>
|
|
|
|
[["槽加长", "grooveAddLength"], ["槽加宽", "grooveAddWidth"], ["槽加深", "grooveAddDepth"], ["刀半径", "knifeRadius"]].map(([t, k], i) =>
|
|
|
|
<Label className={Classes.INLINE} key={k}>
|
|
|
|
<Label className={Classes.INLINE} key={k}>
|
|
|
|
<span>{t}</span>
|
|
|
|
<span>{t}</span>
|
|
|
|
<ToasterInput
|
|
|
|
<ToasterInput
|
|
|
|
type={CheckObjectType.OnlyNumber}
|
|
|
|
type={i === 3 ? CheckObjectType.GT0Num : CheckObjectType.OnlyNumber}
|
|
|
|
option={kjlConfig}
|
|
|
|
option={kjlConfig}
|
|
|
|
optKey={k}
|
|
|
|
optKey={k}
|
|
|
|
onBlur={(e, hasErr) =>
|
|
|
|
onBlur={(e, hasErr) =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (hasErr)
|
|
|
|
if (hasErr)
|
|
|
|
kjlConfig[k] = "0";
|
|
|
|
kjlConfig[k] = i === 3 ? "3" : "0";
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</Label>
|
|
|
|
</Label>
|
|
|
|