refactor(component-detail): 移除 PropertyPanelManager,统一使用 ComponentDetailManager
- 删除 PropertyPanelManager 文件(移至 .recycle/2026-01-28/) - 修改 Toolbar 按钮调用 componentDetail.show() 而非 propertyPanel.show() - 修复折叠面板 ghost 模式样式:添加背景色和左边距 - 清理 BimEngine 和 ManagerRegistry 中的 PropertyPanelManager 引用 - 构建验证通过
This commit is contained in:
@@ -5,7 +5,7 @@ import { DialogManager } from './managers/dialog-manager';
|
||||
import { EngineManager } from './managers/engine-manager';
|
||||
import { RightKeyManager } from './managers/right-key-manager';
|
||||
import { ConstructTreeManagerBtn } from './managers/construct-tree-manager-btn';
|
||||
import { PropertyPanelManager } from './managers/property-panel-manager';
|
||||
|
||||
import { MeasureDialogManager } from './managers/measure-dialog-manager';
|
||||
import { SectionPlaneDialogManager } from './managers/section-plane-dialog-manager';
|
||||
import { SectionAxisDialogManager } from './managers/section-axis-dialog-manager';
|
||||
@@ -34,7 +34,7 @@ export class BimEngine {
|
||||
public dialog: DialogManager | null = null;
|
||||
public engine: EngineManager | null = null;
|
||||
public rightKey: RightKeyManager | null = null;
|
||||
public propertyPanel: PropertyPanelManager | null = null;
|
||||
|
||||
public measure: MeasureDialogManager | null = null;
|
||||
public sectionPlane: SectionPlaneDialogManager | null = null;
|
||||
public sectionAxis: SectionAxisDialogManager | null = null;
|
||||
@@ -107,7 +107,7 @@ export class BimEngine {
|
||||
this.buttonGroup = new ButtonGroupManager(this.wrapper);
|
||||
this.rightKey = new RightKeyManager(this.wrapper);
|
||||
this.constructTreeBtn = new ConstructTreeManagerBtn(this.wrapper);
|
||||
this.propertyPanel = new PropertyPanelManager();
|
||||
|
||||
this.measure = new MeasureDialogManager();
|
||||
this.sectionPlane = new SectionPlaneDialogManager();
|
||||
this.sectionAxis = new SectionAxisDialogManager();
|
||||
@@ -123,7 +123,7 @@ export class BimEngine {
|
||||
this.registry.buttonGroup = this.buttonGroup;
|
||||
this.registry.rightKey = this.rightKey;
|
||||
this.registry.constructTree = this.constructTreeBtn;
|
||||
this.registry.propertyPanel = this.propertyPanel;
|
||||
|
||||
this.registry.measure = this.measure;
|
||||
this.registry.sectionPlane = this.sectionPlane;
|
||||
this.registry.sectionAxis = this.sectionAxis;
|
||||
@@ -133,6 +133,7 @@ export class BimEngine {
|
||||
|
||||
this.componentDetail = new ComponentDetailManager();
|
||||
this.registry.componentDetail = this.componentDetail;
|
||||
this.componentDetail.init();
|
||||
|
||||
this.updateTheme(themeManager.getTheme());
|
||||
themeManager.subscribe((theme) => {
|
||||
@@ -152,7 +153,7 @@ export class BimEngine {
|
||||
this.engine?.destroy();
|
||||
this.dialog?.destroy();
|
||||
this.rightKey?.destroy();
|
||||
this.propertyPanel?.destroy();
|
||||
|
||||
this.measure?.destroy();
|
||||
this.sectionPlane?.destroy();
|
||||
this.sectionAxis?.destroy();
|
||||
|
||||
@@ -13,7 +13,7 @@ export const createPropertyButton = (): ButtonConfig => {
|
||||
onClick: () => {
|
||||
console.log('构件详情按钮被点击');
|
||||
const registry = ManagerRegistry.getInstance();
|
||||
registry.propertyPanel?.show();
|
||||
registry.componentDetail?.show();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -16,11 +16,15 @@
|
||||
}
|
||||
|
||||
.bim-collapse.is-ghost .bim-collapse-header {
|
||||
background-color: transparent;
|
||||
padding-left: 0;
|
||||
background-color: var(--bim-component-bg);
|
||||
padding-left: 12px;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.bim-collapse.is-ghost .bim-collapse-header:hover {
|
||||
background-color: var(--bim-component-bg-hover);
|
||||
}
|
||||
|
||||
.bim-collapse.is-ghost .bim-collapse-content {
|
||||
background-color: transparent;
|
||||
border-top: none;
|
||||
|
||||
@@ -11,7 +11,7 @@ import type { EngineManager } from '../managers/engine-manager';
|
||||
import type { ButtonGroupManager } from '../managers/button-group-manager';
|
||||
import type { RightKeyManager } from '../managers/right-key-manager';
|
||||
import type { ConstructTreeManagerBtn } from '../managers/construct-tree-manager-btn';
|
||||
import type { PropertyPanelManager } from '../managers/property-panel-manager';
|
||||
|
||||
import type { MeasureDialogManager } from '../managers/measure-dialog-manager';
|
||||
import type { WalkControlManager } from '../managers/walk-control-manager';
|
||||
import type { MapDialogManager } from '../managers/map-dialog-manager';
|
||||
@@ -49,8 +49,7 @@ export class ManagerRegistry {
|
||||
public rightKey: RightKeyManager | null = null;
|
||||
/** 构件树管理器 */
|
||||
public constructTree: ConstructTreeManagerBtn | null = null;
|
||||
/** 属性面板管理器 */
|
||||
public propertyPanel: PropertyPanelManager | null = null;
|
||||
|
||||
/** 测量对话框管理器 */
|
||||
public measure: MeasureDialogManager | null = null;
|
||||
/** 漫游控制管理器 */
|
||||
|
||||
Reference in New Issue
Block a user