275 lines
6.8 KiB
JSON
275 lines
6.8 KiB
JSON
{
|
|
"config": [
|
|
{
|
|
"type": "info",
|
|
"tips": "(不能重复添加同一元素)",
|
|
"label": "信息",
|
|
"children": [
|
|
{
|
|
"type": "name",
|
|
"fieldName": "姓名",
|
|
"fieldTips": "请输入姓名",
|
|
"fixedLabel": "姓名",
|
|
"disable": "0",
|
|
"grid": 0.5,
|
|
"defaultValue": "",
|
|
"icon": "icontext_box",
|
|
"mustFill": "1",
|
|
"maxLength": 20
|
|
},
|
|
{
|
|
"type": "idNumber",
|
|
"fieldName": "身份证号",
|
|
"fixedLabel": "身份证号",
|
|
"fieldTips": "请输入身份证号",
|
|
"defaultValue": "",
|
|
"icon": "icontext_area",
|
|
"mustFill": "1",
|
|
"maxLength": 20,
|
|
"disable": "0",
|
|
"grid": 0.5
|
|
},
|
|
{
|
|
"type": "phone",
|
|
"fieldName": "联系方式",
|
|
"fixedLabel": "联系方式",
|
|
"fieldTips": "请输入联系方式",
|
|
"defaultValue": "",
|
|
"icon": "icontext_area",
|
|
"mustFill": "1",
|
|
"maxLength": 20,
|
|
"disable": "0",
|
|
"grid": 0.5
|
|
},
|
|
{
|
|
"type": "area",
|
|
"fieldName": "地区",
|
|
"fixedLabel": "地区",
|
|
"fieldTips": "请选择地区",
|
|
"defaultValue": "",
|
|
"icon": "icontext_area",
|
|
"mustFill": "1",
|
|
"areaPattern": "",
|
|
"disable": "0",
|
|
"grid": 0.5
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "options",
|
|
"tips": "(可重复添加)",
|
|
"label": "选项",
|
|
"children": [
|
|
{
|
|
"type": "radio",
|
|
"fieldName": "单选",
|
|
"fixedLabel": "单选",
|
|
"fieldTips": "请选择",
|
|
"grid": 0.5,
|
|
"icon": "iconradio",
|
|
"mustFill": "1",
|
|
"disable": "0",
|
|
"defaultValue": "",
|
|
"options": [
|
|
{
|
|
"label": "选项1",
|
|
"value": ""
|
|
},
|
|
{
|
|
"label": "选项2",
|
|
"value": ""
|
|
}
|
|
],
|
|
"title": ""
|
|
},
|
|
{
|
|
"type": "checkbox",
|
|
"fieldName": "多选",
|
|
"fixedLabel": "多选",
|
|
"fieldTips": "请选择",
|
|
"icon": "iconcheck_box",
|
|
"mustFill": "1",
|
|
"grid": 0.5,
|
|
"disable": "0",
|
|
"defaultValue": [],
|
|
"options": [
|
|
{
|
|
"label": "选项1",
|
|
"value": ""
|
|
},
|
|
{
|
|
"label": "选项2",
|
|
"value": ""
|
|
}
|
|
],
|
|
"title": ""
|
|
},
|
|
{
|
|
"type": "select",
|
|
"fieldName": "单下拉框",
|
|
"fixedLabel": "单下拉框",
|
|
"grid": 0.5,
|
|
"fieldTips": "请选择",
|
|
"icon": "iconSelect",
|
|
"mustFill": "1",
|
|
"defaultValue": "",
|
|
"disable": "0",
|
|
"options": [
|
|
{
|
|
"label": "选项1",
|
|
"value": ""
|
|
},
|
|
{
|
|
"label": "选项2",
|
|
"value": ""
|
|
}
|
|
],
|
|
"title": ""
|
|
},
|
|
{
|
|
"type": "onOff",
|
|
"fieldName": "开关",
|
|
"fixedLabel": "开关",
|
|
"grid": 0.5,
|
|
"fieldTips": "请选择开关",
|
|
"icon": "iconSelect",
|
|
"mustFill": "1",
|
|
"defaultValue": "0",
|
|
"disable": "0",
|
|
"title": ""
|
|
},
|
|
{
|
|
"type": "date",
|
|
"fieldName": "日期",
|
|
"fixedLabel": "日期",
|
|
"grid": 0.5,
|
|
"datetimePattern": "yyyy-MM-dd",
|
|
"fieldTips": "请选择日期",
|
|
"icon": "iconSelect",
|
|
"mustFill": "1",
|
|
"disable": "0",
|
|
"title": ""
|
|
},
|
|
{
|
|
"type": "time",
|
|
"fieldName": "时间",
|
|
"fixedLabel": "时间",
|
|
"grid": 0.5,
|
|
"datetimePattern": "HH:mm:ss",
|
|
"fieldTips": "请选择时间",
|
|
"icon": "iconSelect",
|
|
"mustFill": "1",
|
|
"disable": "0",
|
|
"title": ""
|
|
},
|
|
{
|
|
"type": "datetime",
|
|
"fieldName": "日期时间",
|
|
"fixedLabel": "日期时间",
|
|
"grid": 0.5,
|
|
"datetimePattern": "yyyy-MM-dd HH:mm:ss",
|
|
"fieldTips": "请选择日期时间",
|
|
"icon": "iconSelect",
|
|
"mustFill": "1",
|
|
"disable": "0",
|
|
"title": ""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "input",
|
|
"tips": "(可重复添加)",
|
|
"label": "填空",
|
|
"children": [
|
|
{
|
|
"type": "input",
|
|
"fieldName": "单行填空",
|
|
"fieldTips": "请输入",
|
|
"fixedLabel": "单行填空",
|
|
"disable": "0",
|
|
"grid": 0.5,
|
|
"defaultValue": "",
|
|
"icon": "icontext_box",
|
|
"mustFill": "1",
|
|
"maxLength": 50
|
|
},
|
|
{
|
|
"type": "textarea",
|
|
"fieldName": "多行填空",
|
|
"fixedLabel": "多行填空",
|
|
"fieldTips": "请输入",
|
|
"lineNumber": 4,
|
|
"defaultValue": "",
|
|
"icon": "icontext_area",
|
|
"mustFill": "1",
|
|
"maxLength": 500,
|
|
"disable": "0",
|
|
"grid": 1
|
|
},
|
|
{
|
|
"type": "number",
|
|
"fieldName": "数字输入",
|
|
"fixedLabel": "数字输入",
|
|
"fieldTips": "请输入数字",
|
|
"defaultValue": "",
|
|
"icon": "icontext_area",
|
|
"mustFill": "1",
|
|
"maxValue": 10000,
|
|
"decimalPlaces": 0,
|
|
"minValue": 0,
|
|
"maxLength": 500,
|
|
"disable": "0",
|
|
"grid": 0.5
|
|
},
|
|
{
|
|
"type": "rtf",
|
|
"fieldName": "富文本",
|
|
"fixedLabel": "富文本",
|
|
"fieldTips": "请输入",
|
|
"defaultValue": "",
|
|
"icon": "icontext_area",
|
|
"mustFill": "1",
|
|
"maxLength": 5000,
|
|
"disable": "0",
|
|
"grid": 1
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "annex",
|
|
"tips": "(可重复添加)",
|
|
"label": "附件",
|
|
"children": [
|
|
{
|
|
"type": "upload",
|
|
"fieldTips": "请上传",
|
|
"fieldName": "上传附件",
|
|
"fixedLabel": "上传附件",
|
|
"disable": "0",
|
|
"fileChoseSize": 10,
|
|
"fileMaxCount": 9,
|
|
"defaultValue": "",
|
|
"icon": "iconpic",
|
|
"mustFill": "1",
|
|
"grid": 1
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "layout",
|
|
"tips": "(可重复添加)",
|
|
"label": "分组",
|
|
"children": [
|
|
{
|
|
"type": "group",
|
|
"fieldName": "卡片",
|
|
"fixedLabel": "卡片",
|
|
"icon": "iconpic",
|
|
"groupName": "分组标题",
|
|
"column": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|