import { TemplateRef } from '@angular/core'; import { EDateLimitEnum } from './common'; import { ESearchType } from './enum'; export interface ISearchOption { label: string; value: string; } export interface ISearchSchema { label: string; /** * I18N key of the label */ labelI18n?: string; index: string | Array; placeHolder?: string; value?: string | number | Date | Array; type?: ESearchType; dateLimitType?: EDateLimitEnum; /** 当输入是日期选择框,可以限制天数范围 */ allowClear?: boolean; /** 是否允许删除 */ custom?: boolean; options?: ISearchOption[]; component?: TemplateRef; customFunc?: (() => string | Array); }