开发:资源面板在生产环境可用

pull/1706/MERGE
ChenX 3 years ago
parent 21dced1a05
commit f3c23a7278

@ -1,7 +1,6 @@
import { Button } from "@blueprintjs/core"; import { Button } from "@blueprintjs/core";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import React from "react"; import React from "react";
import { IsTest } from "../../../Common/Deving";
import { DownPanelStore, ToolBarType } from "../../Store/DownPanelStore"; import { DownPanelStore, ToolBarType } from "../../Store/DownPanelStore";
import { RightPanelStore } from "../../Store/RightPanelStore/RightPanelStore"; import { RightPanelStore } from "../../Store/RightPanelStore/RightPanelStore";
@observer @observer
@ -38,15 +37,12 @@ export class PropertiesPanelButton extends React.Component<{}, {}>
icon="eject" icon="eject"
/> />
<br /> <br />
{ <Button
IsTest() && className={downStore.showType & ToolBarType.resourceLibrary ? "iconTransBtn" : ""}
<Button small={true}
className={downStore.showType & ToolBarType.resourceLibrary ? "iconTransBtn" : ""} onClick={() => { DownPanelStore.GetInstance().showType ^= ToolBarType.resourceLibrary; }}
small={true} icon="swap-vertical"
onClick={() => { DownPanelStore.GetInstance().showType ^= ToolBarType.resourceLibrary; }} />
icon="swap-vertical"
/>
}
</> </>
); );
} }

Loading…
Cancel
Save