interface FormItem {
    prop: 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;
    disabled?: boolean;
    fileList?: any;
    prompt?: any;
}
//basicInfoFormData
export const BASIC_INFO_FORM_DATA: FormItem[] = [
    {
        prop: "name",
        placeholder: "请输入",
        type: "input",
        label: "产品名称: "
    },
    {
        prop: "short_name",
        placeholder: "请输入",
        type: "input",
        label: "副标题名称: "
    },

    {
        prop: "spu",
        placeholder: "请输入",
        type: "input",
        label: "型号: "
    },
    {
        prop: "category_id",
        placeholder: "请输入",
        type: "input",
        label: "产品分类: "
    },
    {
        prop: "params",
        placeholder: "请输入",
        type: "input",
        label: "产品参数: "
    },

    {
        prop: "sort",
        placeholder: "请输入",
        type: "input",
        label: "产品排序: "
    },

    {
        prop: "is_sale",
        placeholder: "",
        type: "radio",
        label: "是否上架: ",
        options: [
            {
                label: "是",
                value: 1
            },
            {
                label: "否",
                value: 0
            }
        ]
    },

    {
        prop: "is_new",
        placeholder: "",
        type: "radio",
        label: "是否新品: ",
        options: [
            {
                label: "是",
                value: 1
            },
            {
                label: "否",
                value: 0
            }
        ]
    },
    {
        prop: "is_hot",
        placeholder: "",
        type: "radio",
        label: "是否热门: ",
        options: [
            {
                label: "是",
                value: 1
            },
            {
                label: "否",
                value: 0
            }
        ]
    },

    // {
    //     prop: "is_show1",
    //     placeholder: "",
    //     type: "radio",
    //     label: "是否启用: ",
    //     options: [
    //         {
    //             label: "是",
    //             value: 1
    //         },
    //         {
    //             label: "否",
    //             value: -1
    //         }
    //     ]
    // },

    {
        prop: "seo_title",
        placeholder: "请输入",
        type: "input",
        label: "SEO标题: "
    },
    {
        prop: "seo_keyword",
        placeholder: "请输入",
        type: "input",
        label: "SEO关键词: "
    },
    {
        prop: "seo_desc",
        placeholder: "请输入",
        type: "input",
        label: "SEO描述: "
    }
];
export const BASIC_INFO_RULE_FORM = {
    seo_desc: "",
    seo_keyword: "",
    seo_title: "",
    is_hot: "",
    is_new: "",
    is_sale: "",
    is_show: "",
    sort: 1,
    params: "",
    category_id: "",
    spu: "",
    short_name: "",
    name: "",
    detail: "",
    video_url: "",
    video_img: "",
    desc: "",
    cover_image: ""
};
export const BASIC_INFO_RULES = {
    name: [{ required: true, message: "产品名称不能为空 ! ", trigger: "blur" }],
    spu: [{ required: true, message: "型号不能为空 ! ", trigger: "blur" }],
    category_id: [{ required: true, message: "产品分类不能为空 ! ", trigger: "blur" }],
    sort: [{ required: true, message: "产品排序不能为空 ! ", trigger: "blur" }]
};

// editRuleForm: {},
//editFormData: [],
