import { ModelTool } from '@ibizstudio/runtime';
import { MainViewBase } from './mainview-base';
/**
 * 实体面板视图基类
 *
 * @export
 * @class DePanelViewBase
 * @extends {MainViewBase}
 * @implements {DePanelViewInterface}
 */
export class DePanelViewBase extends MainViewBase {
    /**
     * 视图模型初始化
     *
     * @memberof DePanelViewBase
     */
    async viewModelInit() {
        var _a;
        this.viewInstance = (this.staticProps.modeldata);
        await super.viewModelInit();
        this.panelInstance = ModelTool.findPSControlByType('PANEL', ((_a = this.viewInstance) === null || _a === void 0 ? void 0 : _a.getPSControls()) || []);
    }
}
