interface FormItem {
    prop: string;
    prop1?: string;
    label?: string;
    placeholder?: string;
    type: string;
    isCopy?: boolean;
    optionProps?: any;
    startPlaceholder?: string;
    endPlaceholder?: string;
    options?: any;
    isArray?: boolean;
    startDate?: string; //开始时间(传入后台需要的参数)
    endDate?: string; //结束时间(传入后台需要的参数)
    startProp?: string;
    endProp?: string;
    isInteger?: boolean;
}
export const FORM_DATA: FormItem[] = [
    {
        prop: "name",
        placeholder: "请输入",
        type: "input",
        isArray: true,
        label: "产品名称: "
    },
    {
        prop: "spu",
        placeholder: "请输入",
        type: "input",
        isArray: true,
        label: "型号: "
    },
    {
        prop: "treeIds",
        prop1: "category_id",
        placeholder: "请选择",
        type: "treeSelect", //treeSelect
        isArray: true,
        label: "产品分类: ",
        options: []
    },
    {
        prop: "Time",
        type: "daterange",
        options: [],
        startPlaceholder: "开始日期",
        endPlaceholder: "结束日期",
        startDate: "created_at",
        // endDate: "createEndDate",
        label: "添加时间: "
    },

    {
        prop: "is_show",
        placeholder: "请选择",
        type: "select",
        options: [
            {
                value: 0,
                label: "未上架"
            },
            {
                value: 1,
                label: "已上架"
            }
        ],
        label: "上架状态: "
    }
];

export const RULE_FORM = {
    page: 1,
    size: 50
};
