!830 修复: ui树左右添加空间

pull/830/MERGE
肖诗雅 5 years ago committed by ChenX
parent f55ddeec99
commit 8846d92b3a

@ -283,21 +283,21 @@ export class TemplateParamPanel extends React.Component<TemplateParamProps, Temp
text="旋转空间"
onClick={() => { this.RotateSpace(curTemp); }}
/>
{
(curParent && curParent.SplitType !== -1) ?
[["左", "右"], ["前", "后"], ["上", "下"]][curParent.SplitType].map((char, i) =>
{
return (
<MenuItem
text={`${char}边添加空间`}
onClick={async () => { await this.AddSpace(i, curParent, curTemp as TemplateVisualSpace); }}
/>
);
}) : null
}
{
curTemp instanceof TemplateVisualSpace ?
(curParent && curParent.SplitType !== -1) ?
[["左", "右"], ["前", "后"], ["上", "下"]][curParent.SplitType].map((char, i) =>
{
return (
<MenuItem
text={`${char}边添加空间`}
onClick={async () => { await this.AddSpace(i, curParent, curTemp as TemplateVisualSpace); }}
/>
);
})
: null
:
null :
<>
<MenuItem
text="批量修改当前层的柜体名为节点名称"

@ -133,7 +133,7 @@ export class TopToolBar extends React.Component<{}, {}>
store.iconList.template = [
{ svg: IconEnum.TemplateDesign, title: "模板设计", command: "TEMPLATEDESIGN" },
// { svg: IconEnum.TemplateReplace, title: "模板替换", command: "" }, //在模块管理器的右下角
{ svg: IconEnum.TemplateDesign, title: "绘制空间", command: "DRAWVSBOX" },
{ svg: IconEnum.CutSpace, title: "绘制空间", command: "DRAWVSBOX" },
];
store.iconList.module = [
{ svg: IconEnum.ModuleManage, title: "模块管理", command: "TEMPLATE" },

Loading…
Cancel
Save