|
|
|
@ -98,6 +98,11 @@ export class WineRackModal extends React.Component<{ store?: WineRackStore; }, {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
private handleCancle = () =>
|
|
|
|
|
{
|
|
|
|
|
this.props.store.EditorTemplate = undefined;
|
|
|
|
|
app.Editor.ModalManage.Destory();
|
|
|
|
|
};
|
|
|
|
|
componentDidMount()
|
|
|
|
|
{
|
|
|
|
|
this.event =
|
|
|
|
@ -110,6 +115,9 @@ export class WineRackModal extends React.Component<{ store?: WineRackStore; }, {
|
|
|
|
|
this.handleExec();
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
}
|
|
|
|
|
else if (e.keyCode === KeyBoard.Escape)
|
|
|
|
|
this.props.store.EditorTemplate = undefined;
|
|
|
|
|
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
return true;
|
|
|
|
|
});
|
|
|
|
@ -118,7 +126,6 @@ export class WineRackModal extends React.Component<{ store?: WineRackStore; }, {
|
|
|
|
|
{
|
|
|
|
|
this.event();
|
|
|
|
|
this.event = null;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
render()
|
|
|
|
|
{
|
|
|
|
@ -129,11 +136,7 @@ export class WineRackModal extends React.Component<{ store?: WineRackStore; }, {
|
|
|
|
|
className="winerack"
|
|
|
|
|
title="酒格"
|
|
|
|
|
icon={IconNames.REGRESSION_CHART}
|
|
|
|
|
close={() =>
|
|
|
|
|
{
|
|
|
|
|
this.props.store.EditorTemplate = undefined;
|
|
|
|
|
app.Editor.ModalManage.Destory();
|
|
|
|
|
}}
|
|
|
|
|
close={this.handleCancle}
|
|
|
|
|
bodyClass="door"
|
|
|
|
|
store={store}
|
|
|
|
|
type={BoardModalType.JG}
|
|
|
|
@ -147,11 +150,7 @@ export class WineRackModal extends React.Component<{ store?: WineRackStore; }, {
|
|
|
|
|
<Button
|
|
|
|
|
text="取消"
|
|
|
|
|
intent={Intent.DANGER}
|
|
|
|
|
onClick={() =>
|
|
|
|
|
{
|
|
|
|
|
this.props.store.EditorTemplate = undefined;
|
|
|
|
|
app.Editor.ModalManage.Destory();
|
|
|
|
|
}}
|
|
|
|
|
onClick={this.handleCancle}
|
|
|
|
|
/>
|
|
|
|
|
</>
|
|
|
|
|
}
|
|
|
|
|