|
|
|
@ -31,7 +31,6 @@ export enum ModalState
|
|
|
|
|
export class ModalManage
|
|
|
|
|
{
|
|
|
|
|
m_PromisRes: (res: number) => void;//promis回调;
|
|
|
|
|
private m_SelectedObj: Entity;
|
|
|
|
|
private m_ModalContainer: HTMLElement;
|
|
|
|
|
private m_ed: Editor;
|
|
|
|
|
private m_Masking: HTMLElement;
|
|
|
|
@ -146,9 +145,9 @@ export class ModalManage
|
|
|
|
|
|
|
|
|
|
if (en && en.userData instanceof PointLight)
|
|
|
|
|
{
|
|
|
|
|
this.m_SelectedObj = en.userData as PointLight;
|
|
|
|
|
let light = en.userData as PointLight;
|
|
|
|
|
|
|
|
|
|
this.RenderModeless(LightModal, ModalPosition.Right, { selectedObj: this.m_SelectedObj, clear: this.Clear, update: this.UpdateView })
|
|
|
|
|
this.RenderModeless(LightModal, ModalPosition.Right, { selectedObj: light, clear: this.Clear, update: this.UpdateView })
|
|
|
|
|
}
|
|
|
|
|
else if (en && en.userData instanceof Text)
|
|
|
|
|
{
|
|
|
|
@ -223,7 +222,6 @@ export class ModalManage
|
|
|
|
|
}
|
|
|
|
|
Clear()
|
|
|
|
|
{
|
|
|
|
|
this.m_SelectedObj = null;
|
|
|
|
|
ReactDOM.unmountComponentAtNode(this.m_ModalContainer);
|
|
|
|
|
this.m_ModalContainer.blur();
|
|
|
|
|
this.m_Masking.style.display = "none";
|
|
|
|
|