import { CreateElement } from 'vue'; import { throttle } from '@ibizstudio/runtime'; import { WFDynaStartViewBase } from '../../../view'; import { AppLayoutService } from '../../../app-service'; /** * 应用实体工作流动态启动视图基类 * * @export * @class AppWFDynaStartViewBase * @extends {WFDynaStartViewBase} */ export class AppWFDynaStartViewBase extends WFDynaStartViewBase { /** * 编辑视图渲染 * * @memberof AppWFDynaStartViewBase */ render(h: CreateElement) { if (!this.viewIsLoaded) { return null; } const targetViewLayoutComponent: any = AppLayoutService.getLayoutComponent(`${this.viewInstance.viewType}-${this.viewInstance.viewStyle}`); return h( targetViewLayoutComponent, { props: { viewInstance: this.viewInstance, model: this.model, modelService: this.modelService, viewparams: this.viewparams, context: this.context }, }, [ this.renderToolBar(), this.renderMainContent(), throttle(this.onClickOk, params, this)} loading={this.viewLoadingService.isLoading}> {this.$t('app.commonwords.ok')}    throttle(this.onClickCancel, params, this)} loading={this.viewLoadingService.isLoading}> {this.$t('app.commonwords.cancel')} , ], ); } }