import { acc } from '@ibizstudio/api'; import { DesignMaterialPanelBase } from '@ibizstudio/dynamic-design'; import { IPanelDesignContext } from '../../interface'; /** * 设计素材区基类 * * @export * @class PanelMaterialBase * @extends {DesignMaterialPanelBase} */ export class PanelMaterialBase extends DesignMaterialPanelBase { ctx!: IPanelDesignContext; accSubs: string[] = []; offs: (() => void)[] = []; componentDestroyed(): void { this.accSubs.forEach(str => acc.unsubscribeLocal(str)); this.offs.forEach(fn => fn()); } }