|
|
|
@ -566,6 +566,14 @@ export class TemplateParamDetail extends React.Component<{}>
|
|
|
|
|
return p?.Objects?.length ?? 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ShowAssocBrs(tr: TemplateRecord)
|
|
|
|
|
{
|
|
|
|
|
let p = tr?.Positioning as PositioningClampSpace;
|
|
|
|
|
let brs = p?.Objects?.filter(id => !id.IsErase)?.map(id => id.Object as Board);
|
|
|
|
|
if (brs?.length)
|
|
|
|
|
app.Editor.SetSelection(brs);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取板件切割方式
|
|
|
|
|
ShowSplitType = (tr: TemplateRecord) =>
|
|
|
|
|
{
|
|
|
|
@ -873,7 +881,7 @@ export class TemplateParamDetail extends React.Component<{}>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
<div className="template-detail-float02" style={{ height: this.store.isVisualTemplate ? 140 : 120 }}>
|
|
|
|
|
<div className="attach-info"><span>关联板件个数:{`${this.GetAssociateBrNums(this.store.GetCurrentTemplate())}`}</span></div>
|
|
|
|
|
<div className="attach-info"><span onClick={() => { this.ShowAssocBrs(this.store.GetCurrentTemplate()); }}>关联板件个数:{`${this.GetAssociateBrNums(this.store.GetCurrentTemplate())}`}</span></div>
|
|
|
|
|
<div className="attach-info"><span>板件切割方式:{`${this.ShowSplitType(this.store.GetCurrentTemplate())}`}</span></div>
|
|
|
|
|
<div style={{ display: this.store.isVisualTemplate ? "unset" : "inline-flex" }}>
|
|
|
|
|
{this.store.isVisualTemplate && <Checkbox
|
|
|
|
|