目录代码整合
This commit is contained in:
		@@ -0,0 +1,203 @@
 | 
			
		||||
export const components = [
 | 
			
		||||
	{
 | 
			
		||||
		type: 'info',
 | 
			
		||||
		tips: '(可重复添加)',
 | 
			
		||||
		label: '信息',
 | 
			
		||||
		children: [
 | 
			
		||||
			{
 | 
			
		||||
				type: 'name',
 | 
			
		||||
				fieldName: '姓名',
 | 
			
		||||
				fieldTips: '请输入姓名',
 | 
			
		||||
				fixedLabel: '姓名',
 | 
			
		||||
				disable: '0',
 | 
			
		||||
				grid: 1,
 | 
			
		||||
				fieldDataType: '1',
 | 
			
		||||
				defaultValue: '',
 | 
			
		||||
				icon: 'icontext_box',
 | 
			
		||||
				mustFill: '1',
 | 
			
		||||
				fieldLength: 20
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				type: 'idNumber',
 | 
			
		||||
				fieldName: '身份证号',
 | 
			
		||||
				fixedLabel: '身份证号',
 | 
			
		||||
				fieldTips: '请输入身份证号',
 | 
			
		||||
				defaultValue: '',
 | 
			
		||||
				icon: 'icontext_area',
 | 
			
		||||
				mustFill: '1',
 | 
			
		||||
				fieldLength: 20,
 | 
			
		||||
				disable: '0',
 | 
			
		||||
				grid: 1,
 | 
			
		||||
				fieldDataType: '1',
 | 
			
		||||
				verifyType: 0
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				type: 'phone',
 | 
			
		||||
				fieldName: '联系方式',
 | 
			
		||||
				fixedLabel: '联系方式',
 | 
			
		||||
				fieldTips: '请输入联系方式',
 | 
			
		||||
				defaultValue: '',
 | 
			
		||||
				icon: 'icontext_area',
 | 
			
		||||
				mustFill: '1',
 | 
			
		||||
				fieldLength: 11,
 | 
			
		||||
				disable: '0',
 | 
			
		||||
				grid: 1,
 | 
			
		||||
				fieldDataType: '1',
 | 
			
		||||
				verifyType: 1
 | 
			
		||||
			}
 | 
			
		||||
		]
 | 
			
		||||
	},
 | 
			
		||||
	{
 | 
			
		||||
		type: 'options',
 | 
			
		||||
		tips: '(可重复添加)',
 | 
			
		||||
		label: '选项',
 | 
			
		||||
		children: [
 | 
			
		||||
			{
 | 
			
		||||
				type: 'radio',
 | 
			
		||||
				fieldName: '单选',
 | 
			
		||||
				fixedLabel: '单选',
 | 
			
		||||
				fieldTips: '请选择',
 | 
			
		||||
				grid: 1,
 | 
			
		||||
				icon: 'iconradio',
 | 
			
		||||
				mustFill: '1',
 | 
			
		||||
				disable: '0',
 | 
			
		||||
				fieldDataType: '4',
 | 
			
		||||
				defaultValue: '',
 | 
			
		||||
				options: [
 | 
			
		||||
					{
 | 
			
		||||
						label: '选项1',
 | 
			
		||||
						value: ''
 | 
			
		||||
					},
 | 
			
		||||
					{
 | 
			
		||||
						label: '选项2',
 | 
			
		||||
						value: ''
 | 
			
		||||
					}
 | 
			
		||||
				],
 | 
			
		||||
				title: ''
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				type: 'checkbox',
 | 
			
		||||
				fieldName: '多选',
 | 
			
		||||
				fixedLabel: '多选',
 | 
			
		||||
				fieldTips: '请选择',
 | 
			
		||||
				icon: 'iconcheck_box',
 | 
			
		||||
				fieldDataType: '5',
 | 
			
		||||
				mustFill: '1',
 | 
			
		||||
				grid: 1,
 | 
			
		||||
				disable: '0',
 | 
			
		||||
				defaultValue: [],
 | 
			
		||||
				options: [
 | 
			
		||||
					{
 | 
			
		||||
						label: '选项1',
 | 
			
		||||
						value: ''
 | 
			
		||||
					},
 | 
			
		||||
					{
 | 
			
		||||
						label: '选项2',
 | 
			
		||||
						value: ''
 | 
			
		||||
					}
 | 
			
		||||
				],
 | 
			
		||||
				title: ''
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				type: 'select',
 | 
			
		||||
				fieldName: '单下拉框',
 | 
			
		||||
				fixedLabel: '单下拉框',
 | 
			
		||||
				grid: 1,
 | 
			
		||||
				fieldTips: '请选择',
 | 
			
		||||
				icon: 'iconSelect',
 | 
			
		||||
				mustFill: '1',
 | 
			
		||||
				defaultValue: '',
 | 
			
		||||
				fieldDataType: '9',
 | 
			
		||||
				disable: '0',
 | 
			
		||||
				options: [
 | 
			
		||||
					{
 | 
			
		||||
						label: '选项1',
 | 
			
		||||
						value: ''
 | 
			
		||||
					},
 | 
			
		||||
					{
 | 
			
		||||
						label: '选项2',
 | 
			
		||||
						value: ''
 | 
			
		||||
					}
 | 
			
		||||
				],
 | 
			
		||||
				title: ''
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				type: 'date',
 | 
			
		||||
				fieldName: '日期',
 | 
			
		||||
				fixedLabel: '日期',
 | 
			
		||||
				grid: 1,
 | 
			
		||||
				fieldDataType: '3',
 | 
			
		||||
				datetimePattern: 'yyyy-MM-dd',
 | 
			
		||||
				fieldTips: '请选择日期',
 | 
			
		||||
				icon: 'iconSelect',
 | 
			
		||||
				mustFill: '1',
 | 
			
		||||
				disable: '0',
 | 
			
		||||
				title: ''
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				type: 'datetime',
 | 
			
		||||
				fieldName: '日期时间',
 | 
			
		||||
				fixedLabel: '日期时间',
 | 
			
		||||
				grid: 1,
 | 
			
		||||
				fieldDataType: '8',
 | 
			
		||||
				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: 1,
 | 
			
		||||
				fieldDataType: '1',
 | 
			
		||||
				defaultValue: '',
 | 
			
		||||
				icon: 'icontext_box',
 | 
			
		||||
				mustFill: '1',
 | 
			
		||||
				fieldLength: 50
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				type: 'number',
 | 
			
		||||
				fieldName: '数字输入',
 | 
			
		||||
				fixedLabel: '数字输入',
 | 
			
		||||
				fieldTips: '请输入数字',
 | 
			
		||||
				defaultValue: '',
 | 
			
		||||
				icon: 'icontext_area',
 | 
			
		||||
				mustFill: '1',
 | 
			
		||||
				maxValue: 10000,
 | 
			
		||||
				decimalPlaces: 0,
 | 
			
		||||
				fieldDataType: '0',
 | 
			
		||||
				minValue: 0,
 | 
			
		||||
				fieldLength: 50,
 | 
			
		||||
				disable: '0',
 | 
			
		||||
				grid: 1,
 | 
			
		||||
			}
 | 
			
		||||
		]
 | 
			
		||||
	},
 | 
			
		||||
	{
 | 
			
		||||
		type: 'layout',
 | 
			
		||||
		tips: '(可重复添加)',
 | 
			
		||||
		label: '分组',
 | 
			
		||||
		children: [
 | 
			
		||||
			{
 | 
			
		||||
				type: 'group',
 | 
			
		||||
				fieldName: '卡片',
 | 
			
		||||
				fixedLabel: '卡片',
 | 
			
		||||
				icon: 'iconpic',
 | 
			
		||||
				groupName: '分组标题',
 | 
			
		||||
				column: []
 | 
			
		||||
			}
 | 
			
		||||
		]
 | 
			
		||||
	}
 | 
			
		||||
];
 | 
			
		||||
		Reference in New Issue
	
	Block a user