import { Component } from 'vue-property-decorator'; import { IPSLanguageRes } from '@ibizstudio/runtime'; import { AppDefaultSearchFormDetail } from '../app-default-searchform-detail/app-default-searchform-detail'; import { VueLifeCycleProcessing } from '../../../../decorators'; /** * 表单UI组件 * * @export * @class AppDefaultSearchFormPage * @extends {Vue} */ @Component({}) @VueLifeCycleProcessing() export class AppDefaultSearchFormPage extends AppDefaultSearchFormDetail { /** * 绘制表单分页标题 * * @param {*} viewPanel * @returns * @memberof AppDefaultSearchFormPage */ renderLabel() { const { caption } = this.detailsInstance; const sysCss = this.detailsInstance.getLabelPSSysCss(); const sysImg = this.detailsInstance.getPSSysImage(); let labelClass = sysCss?.cssName ? 'caption ' + sysCss.cssName : 'caption'; let labelCaption: any = this.$tl((this.detailsInstance.getCapPSLanguageRes() as IPSLanguageRes)?.lanResTag, caption); let labelIcon: any; if(sysImg){ if(sysImg?.imagePath){ labelIcon = }else{ labelIcon = } } return {labelIcon}{labelCaption} } /** * 绘制内容 * * @returns {*} * @memberof AppDefaultSearchFormPage */ render(): any { const { detailClassNames } = this.renderOptions; const { codeName } = this.detailsInstance; const { appDataEntity, codeName: formCodeName, controlType } = this.controlInstance; const tabsName = `${appDataEntity?.codeName?.toLowerCase()}_${controlType?.toLowerCase()}_${formCodeName?.toLowerCase()}`; return {this.$slots.default} } }