import { RhAppConfigService } from 'rh-base/core'; import { RhBooleanPipe } from './../../../pipes/boolean.pipe'; import { RhSelectItemPipe } from './../../../pipes/select-item.pipe'; import { RhSelectItem, RhSafeAny, RhDisplayMode, RhAppConfigDto, RhPreviewImageDto, RhDynamicTableFieldDto } from 'rh-base/model'; import { EventEmitter, SimpleChanges, OnChanges, ElementRef, AfterViewInit, OnInit } from '@angular/core'; import { RhSelectableDto } from 'rh-base/model'; import { DecimalPipe } from '@angular/common'; import * as i0 from "@angular/core"; export declare class RhTableFieldComponent implements OnChanges, OnInit, AfterViewInit { private selectItemPipe; private decimalPipe; private boolPipe; appconfigSer: RhAppConfigService; /** 悬浮时展示的模板 */ /** hover是否显示触发下拉菜单的三个点图标 */ /** 设置使用数据源管道格式化 */ rhPipeDatas: RhSelectItem[]; /** 对应table行数据 */ rhData: RhSelectableDto & { oldValue: number | string; }; rhFieldSetting: RhDynamicTableFieldDto; rhSelect: boolean; rhPlaceHolder: string; /** 点击确认修改的回调 */ rhValueChange: EventEmitter; /** 图片模块键值 */ rhImageModuleKey: string; rhOpenImage: EventEmitter; imgRef: ElementRef; /** 当前是否处于编辑状态 * @description 仅有字符串、布尔值、数字、日期四种类型,且该字段不是关键字段时才能编辑; */ editable: boolean; private _value; oldValue: string | number; /** 原始值 */ originValue: RhSafeAny; /** 显示值 */ displayValue: string | number; timer: RhSafeAny; imagelist: RhPreviewImageDto[]; maxNumber: number; minNumber: number; get appconfig(): RhAppConfigDto; constructor(selectItemPipe: RhSelectItemPipe, decimalPipe: DecimalPipe, boolPipe: RhBooleanPipe, appconfigSer: RhAppConfigService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): Promise; ngAfterViewInit(): void; openImagePreview(index: number): void; onModalChange(value: RhSafeAny): Promise; /** */ private setDisplayValue; /** `selector`展示模式,默认为`2` * @description * `0`表示展示`Value`和`Text`; * `1`表示只展示`Value`; * `2`表示只展示`Text`; * `3`表示展示`Text`和`Value`; */ getDisplayNameByMode(mode: RhDisplayMode, name: string, value: string): string; /** 设置自定义显示模板 */ private setCustomizeData; private setFnData; /** 请求缩略图,如果获取失败,替换为默认图片 */ private getThumbImage; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }