UNPKG

kre-form

Version:

本项目由 Angular8+ 编写的表单设计器和表单应用,所有的配置都是 JSON 结构体组成,PC 端是基于 ANT 组件库封装

469 lines 13.9 kB
[ { "type": "text", "tablecode": "table1", "key": "table1;code", "origin": { "refdatasourcetype": "directinput", "datatype": "nvarchar" }, "templateOptions": { "label": "工号", "required": false, "placeholder": "", "isbutintin": true }, "hooks": {} }, { "type": "text", "tablecode": "table1", "key": "table1;name", "origin": {}, "templateOptions": { "label": "姓名", "placeholder": "" }, "hooks": {} }, { "type": "number", "tablecode": "table1", "key": "table1;number", "origin": {}, "templateOptions": { "label": "年龄" } }, { "type": "number", "tablecode": "table1", "key": "table1;xz", "origin": {}, "templateOptions": { "label": "工资", "max": 100, "min": 0, "placeholder": "请输入工资", "accuracy": 2 } }, { "type": "password", "tablecode": "table1", "key": "table1;password", "origin": {}, "templateOptions": { "label": "密码" } }, { "type": "radio", "tablecode": "table1", "key": "table1;radio", "origin": {}, "templateOptions": { "label": "单选", "parameterid": "para001", "options": [ { "label": "男", "value": "male" }, { "label": "女", "value": "female" } ] } }, { "type": "checkbox", "tablecode": "table1", "key": "table1;checkbox", "origin": {}, "templateOptions": { "label": "多选", "parameterid": "para002", "options": [ { "label": "男", "value": "male" }, { "label": "女", "value": "female" } ] } }, { "type": "select", "tablecode": "table1", "key": "table1;select", "origin": {}, "templateOptions": { "label": "单选", "selecttype": "single", "parameterid": "para003", "options": [ { "label": "男", "value": "male" }, { "label": "女", "value": "female" } ] } }, { "type": "datetime", "tablecode": "table1", "key": "table1;datetime", "origin": {}, "templateOptions": { "type": "datetime", "label": "日期", "formart": "YYYY-MM-DD" } }, { "type": "image", "tablecode": "table1", "key": "table1;tp", "origin": {}, "templateOptions": { "label": "图片" } }, { "type": "lookup", "tablecode": "table1", "key": "table1;employee", "origin": {}, "templateOptions": { "type": "employee", "label": "汇报人", "controlid": "employee" } }, { "type": "lookup", "tablecode": "table1", "key": "table1;organizational", "origin": {}, "templateOptions": { "type": "organizational", "label": "组织", "controlid": "organizational" } }, { "type": "lookup", "tablecode": "table1", "key": "table1;position", "origin": {}, "templateOptions": { "type": "position", "label": "职位", "controlid": "position" } }, { "type": "lookup", "tablecode": "table1", "key": "table1;area", "origin": {}, "templateOptions": { "type": "area", "label": "地区", "controlid": "area" } }, { "type": "upload", "tablecode": "table1", "key": "table1;upload", "origin": {}, "templateOptions": { "label": "上传", "attachment": {} } }, { "type": "textarea", "tablecode": "table1", "key": "table1;remark", "origin": {}, "templateOptions": { "label": "备注", "placeholder": "" }, "hooks": {} }, { "key": "346f0f96-28d2-39b8-43b8-0445bd7eef9a", "type": "repeat", "fieldArray": { "fieldGroup": [ { "type": "text", "tablecode": "table3-gz", "key": "table3-gz;name", "origin": { "refdatasourcetype": "directinput", "datatype": "nvarchar" }, "templateOptions": { "label": "公司名称" } }, { "type": "datetime", "tablecode": "table3-gz", "key": "table3-gz;begin", "origin": {}, "templateOptions": { "type": "datetime", "label": "开始时间" } }, { "type": "datetime", "tablecode": "table3-gz", "key": "table3-gz;end", "origin": {}, "templateOptions": { "type": "datetime", "label": "结束时间" } } ] }, "tablecode": "table3-gz", "hooks": {}, "templateOptions": { "label": "", "placeholder": "" }, "defaultValue": [] }, { "key": "afbeb5b0-1d26-18d7-ee00-6bfb4ecb71e5", "type": "repeat", "fieldArray": { "fieldGroup": [ { "type": "text", "tablecode": "table-jy", "key": "table-jy;code", "origin": { "refdatasourcetype": "directinput", "datatype": "nvarchar" }, "templateOptions": { "label": "工号", "required": false } }, { "type": "text", "tablecode": "table-jy", "key": "table-jy;name", "origin": {}, "templateOptions": { "label": "姓名" } }, { "type": "number", "tablecode": "table-jy", "key": "table-jy;number", "origin": {}, "templateOptions": { "label": "年龄" } }, { "type": "number", "tablecode": "table-jy", "key": "table-jy;xz", "origin": {}, "templateOptions": { "label": "工资", "max": 100, "min": 0, "placeholder": "请输入工资", "accuracy": 2 } }, { "type": "password", "tablecode": "table-jy", "key": "table-jy;password", "origin": {}, "templateOptions": { "label": "密码" } }, { "type": "radio", "tablecode": "table-jy", "key": "table-jy;radio", "origin": {}, "templateOptions": { "label": "单选", "parameterid": "para001", "options": [ { "label": "男", "value": "male" }, { "label": "女", "value": "female" } ] } }, { "type": "checkbox", "tablecode": "table-jy", "key": "table-jy;checkbox", "origin": {}, "templateOptions": { "label": "多选", "parameterid": "para002", "options": [ { "label": "男", "value": "male" }, { "label": "女", "value": "female" } ] } }, { "type": "select", "tablecode": "table-jy", "key": "table-jy;select", "origin": {}, "templateOptions": { "label": "单选", "selecttype": "single", "parameterid": "para003", "options": [ { "label": "男", "value": "male" }, { "label": "女", "value": "female" } ] } }, { "type": "datetime", "tablecode": "table-jy", "key": "table-jy;datetime", "origin": {}, "templateOptions": { "type": "datetime", "label": "日期", "formart": "YYYY-MM-DD" } }, { "type": "image", "tablecode": "table-jy", "key": "table-jy;tp", "origin": {}, "templateOptions": { "label": "图片" } }, { "type": "lookup", "tablecode": "table-jy", "key": "table-jy;employee", "origin": {}, "templateOptions": { "type": "employee", "label": "汇报人", "controlid": "employee" } }, { "type": "lookup", "tablecode": "table-jy", "key": "table-jy;organizational", "origin": {}, "templateOptions": { "type": "organizational", "label": "组织", "controlid": "organizational" } }, { "type": "lookup", "tablecode": "table-jy", "key": "table-jy;position", "origin": {}, "templateOptions": { "type": "position", "label": "职位", "controlid": "position" } }, { "type": "lookup", "tablecode": "table-jy", "key": "table-jy;area", "origin": {}, "templateOptions": { "type": "area", "label": "地区", "controlid": "area" } }, { "type": "textarea", "tablecode": "table-jy", "key": "table-jy;remark", "origin": {}, "templateOptions": { "label": "备注", "placeholder": "" }, "hooks": {} }, { "type": "upload", "tablecode": "table-jy", "key": "table-jy;upload", "origin": {}, "templateOptions": { "label": "上传", "attachment": {}, "placeholder": "" }, "hooks": {} } ] }, "tablecode": "table-jy", "hooks": {}, "templateOptions": { "label": "", "placeholder": "" }, "defaultValue": [] } ]