-
-
- updateOverlayProps({
- id: overlay.id,
- name: value,
- })
- }
- />
-
- {overlay.type === OverlayTypes.Point ? positionPane : categoryPane}
- {overlay.category === OverlayCategory.Building ? (
-
+ <>
+ 覆盖物
+
+
updateOverlayProps({
id: overlay.id,
- height: +value,
+ name: value,
})
}
/>
- ) : null}
- {overlay.type === OverlayTypes.Rectangle ? (
-
-
-
- ) : null}
-
-
+ {overlay.type === OverlayTypes.Point ? positionPane : categoryPane}
+ {overlay.category === OverlayCategory.Building ? (
+
+
+ updateOverlayProps({
+ id: overlay.id,
+ height: +value,
+ })
+ }
+ />
+
+ ) : null}
+ {overlay.type === OverlayTypes.Rectangle ? (
+
+
+
+ ) : null}
+
+
+ >
);
};
diff --git a/src/editor/index.less b/src/editor/index.less
index db53325..ff196fd 100644
--- a/src/editor/index.less
+++ b/src/editor/index.less
@@ -66,6 +66,12 @@ body ::-webkit-scrollbar-thumb {
body ::-webkit-scrollbar-corner {
background-color: #eee;
}
+.pane-title{
+ line-height: 24px;
+ padding:6px 12px;
+ background-color: #dbd8d8;
+ // color: #fff;
+}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
diff --git a/src/store/actions/index.ts b/src/store/actions/index.ts
index b5a66a1..b9fdbdd 100644
--- a/src/store/actions/index.ts
+++ b/src/store/actions/index.ts
@@ -115,11 +115,16 @@ export class EditorAction {
selectOverlay(id: string, reset = true) {
const { selectedIds } = this.store.getState();
if (selectedIds.indexOf(id) >= 0 && reset) {
- this.mapEditor?.selectOverlays();
+ if (reset) {
+ this.mapEditor?.selectOverlays();
+ this.dispatch(StoreAction.selectOverlay());
+ } else {
+ this.dispatch(StoreAction.selectOverlay(id));
+ }
} else {
this.mapEditor?.selectOverlays([id]);
+ this.dispatch(StoreAction.selectOverlay(id));
}
- this.dispatch(StoreAction.selectOverlay(id));
}
updateOverlay(props: Partial