import { Component, Prop } from 'vue-property-decorator'; import { DesignViewBase, VueLifeCycleProcessing } from '@ibizstudio/dynamic-design'; import { PanelDesignContext } from '../../entities'; import './panel-design.less'; @Component({}) @VueLifeCycleProcessing() export class PanelDesign extends DesignViewBase { /** * 应用上下文 * * @type {IFromDesignContext} * @memberof FormDesign */ @Prop({ default: () => new PanelDesignContext() }) ctx!: PanelDesignContext; split = 0.8; /** * Vue生命周期,dom挂载完毕 * * @memberof FormDesign */ mounted() { this.ctx.ctrl.setViewModel(this.viewModel); this.$forceUpdate(); } save() { return this.ctx.ctrl.save(); } renderMaterial() { return [ this.renderMaterialSearch(), , , // , // , ]; } /** * 绘制结构树 * * @author chitanda * @date 2021-04-14 11:04:31 * @return {*} {*} */ renderStructureTree(): any { return (
{this.renderStructureSearch()}
); } activePanel(): void { this.ctx.ctrl.select.set(this.ctx.ctrl.masterData); } renderActions() { return (
e.stopPropagation()}>
this.activePanel()} />
); } /** * 绘制内容区 * * @author chitanda * @date 2021-04-14 11:04:37 * @return {*} {*} */ renderContent(): any { return (
{this.renderActions()} {/* */}
); } }