feat(registry): 注册 ComponentDetailManager 到全局 Registry 和 BimEngine
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user