mirror of https://gitee.com/cf-fz/WebCAD.git
!1901 修复:显示隐藏顶部工具栏命令和按钮功能冲突
parent
c17d8519af
commit
f0aac27d0e
@ -1,11 +1,11 @@
|
||||
import { DownPanelStore } from "../UI/Store/DownPanelStore";
|
||||
|
||||
export class Command_ToggleUI
|
||||
{
|
||||
async exec()
|
||||
{
|
||||
let els = ["#TopPanel", "#TopToolBar"].map(e => document.querySelector(e) as HTMLElement);
|
||||
|
||||
for (let el of els)
|
||||
el.style.display = el.style.display === "none" ? "block" : "none";
|
||||
let store = DownPanelStore.GetInstance() as DownPanelStore;
|
||||
store.isTopToolBarShow = !store.isTopToolBarShow;
|
||||
store.Upload();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue