import DeptAPI from "@/api/product/specificationsconfig";
import UserAPI from "@/api/onlineShop/goodsGroupconfig";

import type { ISearchConfig } from "@/components/CURD/types";

const searchConfig: ISearchConfig = {
  pageName: "sys:user",
  formItems: [
    {
      type: "input",
      label: "商品名称",
      prop: "name",
      attrs: {
        placeholder: "请输入商品名称",
        clearable: true,
        style: {
          width: "200px",
        },
      },
    },
    {
      type: "select",
      label: "商品分类",
      prop: "categoryId",
      attrs: {
        placeholder: "请选择商品分类",
        clearable: true,
        style: {
          width: "200px",
        },
      },
      options: [],
      async initFn(formItem) {
        formItem.options = await UserAPI.getList();
      },
    },

  ],
};

export default searchConfig;
