import { __decorate } from "tslib";
import { PSSysViewPanelLogic } from '@ibizstudio/api';
import { VueLifeCycleProcessing } from '@ibizstudio/dynamic-design';
import { Component } from 'vue-property-decorator';
import { PanelMaterialBase } from '../panel-material-base';
/**
 * 面板引擎素材项
 *
 * @export
 * @class PanelLogic
 * @extends {Vue}
 */
let PanelLogic = class PanelLogic extends PanelMaterialBase {
    generateOption() {
        return {
            group: {
                name: this.ctx.tag + '-logic',
            },
        };
    }
    componentCreated() {
        this.list.push({
            text: '实体界面逻辑',
            tooltip: '实体界面逻辑',
            iconcls: 'iconfont icon-code',
            data: new PSSysViewPanelLogic({ dstlogictype: 'DEUILOGIC', logictype: 'TIMER' }),
        });
        this.list.push({
            text: '系统预置界面逻辑',
            tooltip: '系统预置界面逻辑',
            iconcls: 'iconfont icon-code',
            data: new PSSysViewPanelLogic({ dstlogictype: 'SYSVIEWLOGIC', logictype: 'TIMER' }),
        });
        this.list.push({
            text: '前端扩展框架',
            tooltip: '前端扩展框架',
            iconcls: 'iconfont icon-code',
            data: new PSSysViewPanelLogic({ dstlogictype: 'PFPLUGIN', logictype: 'CUSTOM' }),
        });
    }
};
PanelLogic = __decorate([
    Component({}),
    VueLifeCycleProcessing()
], PanelLogic);
export { PanelLogic };
