+ {/* 头部 */}
+
+
-
- 类型:
- {type}
-
- {properties.map((property, index) => (
-
- {property.label}:
- {formatValue(property)}
+
+
+ {/* 内容区域 */}
+
+ {!id ? (
+
+
+
暂无属性信息
+
请选择一个要素以查看其属性
- ))}
+ ) : (
+
+ {/* ID 属性 */}
+
+
+
+ ID
+
+
+ {id}
+
+
+
+
+ {/* 类型属性 */}
+
+
+
+ 类型
+
+
+ {type}
+
+
+
+
+ {/* 其他属性 */}
+ {properties.map((property, index) => {
+ const isImportant = isImportantKeys.includes(property.label);
+ return (
+
+
+
+ {property.label}
+
+
+ {formatValue(property)}
+
+
+
+ );
+ })}
+
+ )}
+
+
+ {/* 底部统计区域 */}
+
+
+
+
+ 共 {id ? properties.length + 2 : 0} 个属性
+
+ {id && (
+
+
+ 已选中
+
+ )}
+
);
diff --git a/src/components/olmap/ZonePropsPanel.tsx b/src/components/olmap/ZonePropsPanel.tsx
index 86e0c9e..7da1cc1 100644
--- a/src/components/olmap/ZonePropsPanel.tsx
+++ b/src/components/olmap/ZonePropsPanel.tsx
@@ -282,7 +282,7 @@ const ZonePropsPanel: React.FC
= ({
return (