Files
orico-officialWebsite-ts-admin/src/views/downloadManagement/class/constant/edit.ts
2025-04-16 16:18:24 +08:00

63 lines
1.3 KiB
TypeScript

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;
}
export const EDIT_FORM_DATA: FormItem[] = [
{
prop: "name",
placeholder: "请输入",
type: "input",
label: "下载分类名称: "
},
{
prop: "sort",
placeholder: "请输入",
type: "inputNumber",
label: "下载分类排序: "
},
{
prop: "is_show",
placeholder: "请输入",
type: "radio",
label: "是否显示: ",
options: [
{
label: "是",
value: 1
},
{
label: "否",
value: 0
}
]
},
{
prop: "pid",
placeholder: "请选择",
type: "treeSelect",
label: "所属分类: ",
options: []
}
];
export const EDIT_RULE_FORM = {
sort: 1
};
// editRuleForm: {},
//editFormData: [],