73 lines
1.5 KiB
TypeScript
73 lines
1.5 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: "link",
|
|
placeholder: "请输入",
|
|
type: "input",
|
|
label: "链接地址: "
|
|
},
|
|
{
|
|
prop: "sort",
|
|
placeholder: "请输入",
|
|
type: "inputNumber",
|
|
label: "排序: "
|
|
},
|
|
{
|
|
prop: "disabled",
|
|
placeholder: "",
|
|
type: "radio",
|
|
label: "是否启用: ",
|
|
options: [
|
|
{
|
|
label: "是",
|
|
value: 0
|
|
},
|
|
{
|
|
label: "否",
|
|
value: 1
|
|
}
|
|
]
|
|
},
|
|
{
|
|
prop: "image",
|
|
type: "upImg",
|
|
label: "图片: "
|
|
},
|
|
{
|
|
prop: "hover_image",
|
|
type: "upImg",
|
|
label: "悬浮图: "
|
|
}
|
|
];
|
|
export const EDIT_RULE_FORM = {
|
|
disabled: 0,
|
|
sort: 1
|
|
};
|
|
// editRuleForm: {},
|
|
//editFormData: [],
|