import type { ISearchConfig } from "@/components/CURD/types";
import { statusOptions, payTypeOptions } from "./config";
const searchConfig: ISearchConfig = {
  pageName: "sys:user",
  inline: false,
  isExpandable: false,
  formItems: [
    {
      type: "radio-button",
      label: "订单状态",
      prop: "status",
      attrs: {
        placeholder: "请选择订单状态",
        clearable: true,
      },
      options: statusOptions,
      initialValue: "",
    },
    {
      type: "radio-button",
      label: "支付方式",
      prop: "payType",
      attrs: {
        placeholder: "请选择支付方式",
        clearable: true,
      },
      options: payTypeOptions,
      initialValue: "",
    },
    {
      type: "input",
      label: "订单编号",
      prop: "orderNo",
      attrs: {
        placeholder: "请输入订单编号",
        clearable: true,
        style: {
          width: "200px",
        },
      },
    },
    {
      type: "input",
      label: "商品名称",
      prop: "productName",
      attrs: {
        placeholder: "请输入商品名称",
        clearable: true,
        style: {
          width: "200px",
        },
      },
    },
  ],
};

export default searchConfig;
