diff --git a/src/app/pages/plan/plan.component.html b/src/app/pages/plan/plan.component.html index 8e8bb7c..146f8eb 100644 --- a/src/app/pages/plan/plan.component.html +++ b/src/app/pages/plan/plan.component.html @@ -21,6 +21,12 @@ + +
+
+
+ +
diff --git a/src/app/pages/plan/plan.component.scss b/src/app/pages/plan/plan.component.scss index 7457f99..dedd8ca 100644 --- a/src/app/pages/plan/plan.component.scss +++ b/src/app/pages/plan/plan.component.scss @@ -71,4 +71,26 @@ .isShowLeftBuilding{ //隐藏 动态效果 margin-left: -300px; transition: margin-left 0.5s; +} + +//右上角快捷栏 +.rightTopFast{ + width: 60px; + height: 38px; + position: absolute; + right: 1px; + top: 1%; + overflow: hidden; + box-sizing: border-box; + display: flex; + >div { height: 38px; border-radius: 5px; } + button { + width: 36px; + height: 36px; + border: none; + outline: none; + background-color: transparent; + color: #fff; + cursor: pointer; + } } \ No newline at end of file diff --git a/src/app/pages/plan/plan.component.ts b/src/app/pages/plan/plan.component.ts index 3cb243d..9ee9141 100644 --- a/src/app/pages/plan/plan.component.ts +++ b/src/app/pages/plan/plan.component.ts @@ -7,6 +7,7 @@ import { ModeManager } from 'src/app/babylon/controller/mode-manager'; import { ServeManager } from 'src/app/babylon/controller/serve-manager'; import { BuildingBasicInfosService } from 'src/app/service/babylon/building-basic-infos.service'; import { ObjectsService } from 'src/app/service/objects.service'; +import { ToolbarWindow } from 'src/app/babylon/view/toolbar-window/toobar-window'; @@ -109,6 +110,11 @@ export class PlanComponent implements OnInit { } } + //保存 + preserve() { + ToolbarWindow.instance.onBtnSave(); + } + }