import type { ISearchConfig } from "@/components/CURD/types";
import { returnOptions } from './config'
const searchConfig: ISearchConfig = {
  pageName: "sys:user",
  formItems: [
    {
      type: "select",
      options: returnOptions('type'),
      label: "日志类型",
      prop: "type",
      attrs: {
        placeholder: "请选择日志类型",
        clearable: true,
        style: {
          width: "200px",
        },
      },
    },
    {
      type: 'date-picker',
      label: "创建时间",
      prop: "createTime",
      attrs: {
        type: "daterange",
        rangeSeparator: "-",
        startPlaceholder: "开始日期",
        endPlaceholder: "结束日期",
        format: "YYYY-MM-DD",
        clearable: true,
        style: {
          width: "300px",
        },
      },
    }
  ],
};

export default searchConfig;
