|
|
|
@ -22,13 +22,12 @@ const SelectStyle: React.CSSProperties = {
|
|
|
|
|
@observer
|
|
|
|
|
export class HingeRules extends React.Component<IHingeRulesProps> {
|
|
|
|
|
|
|
|
|
|
private onOpening(store: DoorStore)
|
|
|
|
|
private onOpening(store: DoorStore | HingeStore)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private onClosing(store: DoorStore)
|
|
|
|
|
private onClosing(store: DoorStore | HingeStore)
|
|
|
|
|
{
|
|
|
|
|
let error = store.CheckRule((store.uiRule));
|
|
|
|
|
if (error)
|
|
|
|
@ -41,6 +40,11 @@ export class HingeRules extends React.Component<IHingeRulesProps> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentWillUnmount()
|
|
|
|
|
{
|
|
|
|
|
this.onClosing(this.props.store);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public render()
|
|
|
|
|
{
|
|
|
|
|
const { store, uiOption } = this.props;
|
|
|
|
@ -65,7 +69,7 @@ export class HingeRules extends React.Component<IHingeRulesProps> {
|
|
|
|
|
/>
|
|
|
|
|
<PopoverContent
|
|
|
|
|
targetTitle="配置"
|
|
|
|
|
onOpening={() => this.onOpening(store)}
|
|
|
|
|
//onOpening={() => this.onOpening(store)}
|
|
|
|
|
onClosing={() => this.onClosing(store)}
|
|
|
|
|
>
|
|
|
|
|
<Card className="hinge-rules">
|
|
|
|
|