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;
}
export const EDIT_FORM_DATA: FormItem[] = [
    {
        prop: "name",
        placeholder: "请输入",
        type: "input",
        label: "下载名称: "
    },

    {
        prop: "category_id1",
        placeholder: "请选择",
        type: "treeSelect",
        label: "下载分类: ",
        options: []
    },
    {
        prop: "sort",
        placeholder: "请输入",
        type: "inputNumber",
        label: "下载排序: "
    },
    {
        prop: "recommend",
        placeholder: "请输入",
        type: "radio",
        label: "首页推荐: ",
        options: [
            {
                label: "是",
                value: 1
            },
            {
                label: "否",
                value: 0
            }
        ]
    },
    // {
    //     prop: "is_show1",
    //     placeholder: "",
    //     type: "radio",
    //     label: "是否启动: ",
    //     options: [
    //         {
    //             label: "是",
    //             value: 1
    //         },
    //         {
    //             label: "否",
    //             value: 0
    //         }
    //     ]
    // },
    {
        prop: "image",
        type: "upImg",
        label: "下载图片: ",
        prompt: "图片尺寸320x320"
    },
    {
        prop: "table",
        type: "table",
        label: "下载文件: "
    },
    {
        prop: "applicable_to",
        placeholder: "请输入",
        type: "input",
        label: "适合型号: "
    },
    {
        prop: "support_platform",
        placeholder: "请输入",
        type: "input",
        label: "支持系统: "
    },

    {
        prop: "seo_title",
        placeholder: "请输入",
        type: "input",
        label: "SEO标题: "
    },
    {
        prop: "seo_keywords",
        placeholder: "请输入",
        type: "input",
        label: "SEO关键词: "
    },
    {
        prop: "seo_desc",
        placeholder: "请输入",
        type: "input",
        label: "SEO描述: "
    }
];

export const EDIT_TABLE_DATA = [
    {
        file_path: "", //文件路径
        btn_name: "", //按钮名字
        file_ext: "" //文件格式
    }
];
export const EDIT_RULE_FORM = {
    sort: 1
};
// editRuleForm: {},
//editFormData: [],
