import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type"; import React from "react"; /** * 针对完成时间、创建时间、修改时间定义了3中类型 */ declare class CommonDataTime implements ComponentInterface { name: string; id: string; sortField: string; type: string; rules: any[]; componentConfig: ComponentInterface["componentConfig"]; isCombinationComponent: boolean; formField: string; canSort: boolean; children: ComponentInterface[]; dataType: ComponentInterface["dataType"]; format: ComponentInterface["format"]; constructor(options: PickOption); getValues: (value: string) => string; renderClient: (record: any) => React.JSX.Element | null; renderPc: (value: any, record: Record) => string; renderLog: (r: Record) => string | null; getComponentValue: (r: Record) => any; renderExport: (value: any, record: Record) => string; editRender: () => null; filterConfig: (item: ColumnConfig) => { searchDefaultConditions: "between"; type: string; id: string; name: string; filterComponentType: "Date"; filterFn: (value: string[]) => (i: Record) => boolean; formatFilterValue: (val: Array) => number[] | undefined; }; } export default CommonDataTime;