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