feat(registry): 注册 ComponentDetailManager 到全局 Registry 和 BimEngine

This commit is contained in:
yuding
2026-01-28 12:00:55 +08:00
parent 33f1c72791
commit 89789e003b
87 changed files with 37063 additions and 24064 deletions

View File

@@ -786,6 +786,21 @@ export class BimButtonGroup implements IBimComponent {
public setBackgroundColor(color: string): void { this.setColors({ backgroundColor: color }); }
private isVisible(id: string): boolean { return this.options.visibility?.[id] !== false; }
public setType(type: 'default' | 'glass-pill'): void {
this.container.classList.remove('type-default', 'type-glass-pill');
this.options.type = type;
if (type && type !== 'default') {
this.container.classList.add(`type-${type}`);
}
this.render();
}
public getType(): 'default' | 'glass-pill' {
return this.options.type || 'default';
}
public destroy(): void {
if (this.unsubscribeLocale) {
this.unsubscribeLocale();