export interface OptionItem {
  label: string;
  value: string | number;

}

export interface QueryFormField {
  label: string;                // 显示的 label
  prop: string;                 // 绑定的字段
  type: 'input' | 'select' | 'date' | 'daterange' | 'datetimerange' | 'monthrange';
  placeholder?: string;
  size?: 'small' | 'default' | 'large';
  defaultValue?: any;
  options?: OptionItem[];
  fetchOptions?: () => Promise<OptionItem[]>;  // 异步加载 options
  valueFormat?:string;
  rules?: any[];                // 校验规则
	staerPlaceholder?: string;
	endPlaceholder?: string;

}
export interface TableColumn {
  label: string;
  prop: string;
  width?: string | number;
  minWidth?: string | number;
  align?: 'left' | 'center' | 'right';
  sortable?: boolean;
  fixed?: 'left' | 'right' | boolean;
  render?: any;
  showOverflowTooltip?: boolean;
  formater?: (row: any, column: any) => any;
  isFormater?: boolean;
}