|
|
|
@ -82,7 +82,8 @@ export class Curve2RecModalStore extends Singleton implements IConfigStore
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@observer
|
|
|
|
|
export class Curve2RecModal extends React.Component<{ store: Curve2RecModalStore; }, {}>{
|
|
|
|
|
export class Curve2RecModal extends React.Component<{ store: Curve2RecModalStore; }, {}>
|
|
|
|
|
{
|
|
|
|
|
private removeFuncs: Function[] = []; //移除注入
|
|
|
|
|
componentDidMount()
|
|
|
|
|
{
|
|
|
|
@ -133,27 +134,29 @@ export class Curve2RecModal extends React.Component<{ store: Curve2RecModalStore
|
|
|
|
|
<div className="checkbox-input-group">
|
|
|
|
|
<Checkbox checked={option.isSaveSmall} onChange={() => { this.props.store.option.isSaveSmall = !this.props.store.option.isSaveSmall; }}>
|
|
|
|
|
</Checkbox>
|
|
|
|
|
<div>
|
|
|
|
|
只保留宽度小于
|
|
|
|
|
<ToasterInput
|
|
|
|
|
inputClassName={Classes.INPUT}
|
|
|
|
|
type={CheckObjectType.OnlyNumber}
|
|
|
|
|
option={option}
|
|
|
|
|
uiOption={store.UIOption}
|
|
|
|
|
optKey={"width"}
|
|
|
|
|
onChange={(e) =>
|
|
|
|
|
{
|
|
|
|
|
if (e.target.value === "")
|
|
|
|
|
<Tooltip content={<span>如果您只想保留板的轮廓,那么可以写20或40,<br />如果您想保留地脚线和收口条,可以写120(建议),<br />如果您的收口条地脚线大于120,也可以适当的修改这个值</span>}>
|
|
|
|
|
<div>
|
|
|
|
|
只保留宽度小于
|
|
|
|
|
<ToasterInput
|
|
|
|
|
inputClassName={Classes.INPUT}
|
|
|
|
|
type={CheckObjectType.OnlyNumber}
|
|
|
|
|
option={option}
|
|
|
|
|
uiOption={store.UIOption}
|
|
|
|
|
optKey={"width"}
|
|
|
|
|
onChange={(e) =>
|
|
|
|
|
{
|
|
|
|
|
this.props.store.option.width = 0;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let num = safeEval(e.target.value.trim());
|
|
|
|
|
this.props.store.option.width = (!isNaN(num)) ? num : undefined;
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
的轮廓
|
|
|
|
|
</div>
|
|
|
|
|
if (e.target.value === "")
|
|
|
|
|
{
|
|
|
|
|
this.props.store.option.width = 0;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let num = safeEval(e.target.value.trim());
|
|
|
|
|
this.props.store.option.width = (!isNaN(num)) ? num : undefined;
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
的轮廓
|
|
|
|
|
</div>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="checkbox-analy">
|
|
|
|
|
<Checkbox
|
|
|
|
|