优化:显示命令名称

pull/1653/MERGE
ChenX 3 years ago
parent cf913a879f
commit 4e5cbe6d86

@ -54,7 +54,7 @@ export class RotateLayerBoard implements Command
return; return;
let brs = enRes.SelectSet.SelectEntityList as Board[]; let brs = enRes.SelectSet.SelectEntityList as Board[];
this.data = res.Data; this.data = res.Data as any;
for (let br of brs) for (let br of brs)
{ {
this.currentBoard = br; this.currentBoard = br;

@ -14,6 +14,7 @@ import { BoardModalType } from "../../../UI/Components/Board/BoardModal";
import { IConfigOption, UserConfig } from "../../../UI/Components/Board/UserConfig"; import { IConfigOption, UserConfig } from "../../../UI/Components/Board/UserConfig";
import { GetCompoentObjectIdString } from "../../../UI/Components/ComponentObjectId"; import { GetCompoentObjectIdString } from "../../../UI/Components/ComponentObjectId";
import { ModalFooter, ModalHeader } from "../../../UI/Components/Modal/ModalContainer"; import { ModalFooter, ModalHeader } from "../../../UI/Components/Modal/ModalContainer";
import { ModalState } from "../../../UI/Components/Modal/ModalInterface";
import { ToasterInput, ToasterValueError } from "../../../UI/Components/Toaster"; import { ToasterInput, ToasterValueError } from "../../../UI/Components/Toaster";
import { IBaseOption, IUiOption } from "../../../UI/Store/BoardInterface"; import { IBaseOption, IUiOption } from "../../../UI/Store/BoardInterface";
import { IConfigStore } from "../../../UI/Store/BoardStore"; import { IConfigStore } from "../../../UI/Store/BoardStore";
@ -83,7 +84,7 @@ export class Curve2RecModalStore extends Singleton implements IConfigStore
{ {
let invail = this.HasInvailValue(); let invail = this.HasInvailValue();
if (!invail) if (!invail)
app.Editor.ModalManage.DestoryAndExec(); app.Editor.ModalManage.DestoryAndExec({ Status: ModalState.Ok, Data: { cname: "c2r" } });
} }
} }
@observer @observer

@ -13,10 +13,13 @@ import { CADModal, DATA_KEY } from './CadModal';
import { ModalPosition, ModalState } from './ModalInterface'; import { ModalPosition, ModalState } from './ModalInterface';
import './ModalStyle/Modal.less'; import './ModalStyle/Modal.less';
export interface IModalResult<T = any> export interface IModalResult
{ {
Status: ModalState | Pick; Status: ModalState | Pick;
Data?: T; Data?: {
cname?: string;
[key: string]: any;
};
} }
export interface IModalProps export interface IModalProps
@ -229,7 +232,10 @@ export class ModalManage
{ {
this.CurrentModal.Callback = callback; this.CurrentModal.Callback = callback;
} }
async ExecCmd(data?: { cname?: string;[key: string]: any; }) async ExecCmd(data?: {
cname?: string;
[key: string]: any;
})
{ {
await this.EndExecingCmd(); await this.EndExecingCmd();
//开始执行命令最小化其他非模态框 //开始执行命令最小化其他非模态框

Loading…
Cancel
Save