import { PSSysViewPanelItem } from '@ibizstudio/api'; import { VueLifeCycleProcessing } from '@ibizstudio/dynamic-design'; import { Component, Prop } from 'vue-property-decorator'; import { IPanelAbsoluteLayoutContext } from '../../../../interface/i-panel-absolute-layout-context'; import { AbsoluteLayoutMaterialPanelBase } from '../absolute-layout-material-panel-base'; import './absolute-layout-panel-layout.less'; @Component @VueLifeCycleProcessing() export class AbsoluteLayoutPanelLayout extends AbsoluteLayoutMaterialPanelBase { @Prop() ctx!: IPanelAbsoluteLayoutContext; /** * 获取可创建的项 * * @memberof AbsoluteLayoutPanelLayout */ componentCreated(): void { this.list.push({ text: '分页部件', tooltip: '分页部件', iconcls: 'iconfont icon-tab', data: new PSSysViewPanelItem({ itemtype: 'TABPANEL' }), }); this.list.push({ text: '布局容器', tooltip: '布局容器', iconcls: 'iconfont icon-tab', data: new PSSysViewPanelItem({ itemtype: 'CONTAINER' }), }); } }