diff --git a/scripts/AlertFieldBuilder-output.json b/scripts/AlertFieldBuilder-output.json new file mode 100644 index 0000000..fe61e65 --- /dev/null +++ b/scripts/AlertFieldBuilder-output.json @@ -0,0 +1 @@ +{"__config__":{"formId":"formItem1781226193373","visibility":["pc","app"],"jnpfKey":"alert","noShow":false,"label":"","showLabel":false,"className":[],"required":false,"layout":"colFormItem","span":24,"dragDisabled":false,"tagIcon":"icon-ym icon-ym-generator-alert","tag":"JnpfAlert","tableAlign":"left","tableFixed":"none","defaultValue":null},"__vModel__":"f_alert","title":"这是一个提示","type":"success","showIcon":false,"closable":true,"description":"","closeText":""} \ No newline at end of file diff --git a/scripts/AreaSelectFieldBuilder-output.json b/scripts/AreaSelectFieldBuilder-output.json index 9b830e1..4d84be1 100644 --- a/scripts/AreaSelectFieldBuilder-output.json +++ b/scripts/AreaSelectFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353060","jnpfKey":"areaSelect","label":"地区","tipLabel":"","showLabel":true,"tag":"JnpfAreaSelect","tagIcon":"icon-ym icon-ym-generator-area","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","defaultCurrent":false,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781225353060},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请选择","level":2,"startPlaceholder":"请选择省","endPlaceholder":"请选择市","separator":"/","multiple":false,"__vModel__":"f_area"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193051","jnpfKey":"areaSelect","label":"地区","tipLabel":"","showLabel":true,"tag":"JnpfAreaSelect","tagIcon":"icon-ym icon-ym-generator-area","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","defaultCurrent":false,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781226193051},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请选择","level":2,"startPlaceholder":"请选择省","endPlaceholder":"请选择市","separator":"/","multiple":false,"__vModel__":"f_area"} \ No newline at end of file diff --git a/scripts/AutoCompleteFieldBuilder-output.json b/scripts/AutoCompleteFieldBuilder-output.json index e045307..4bc426a 100644 --- a/scripts/AutoCompleteFieldBuilder-output.json +++ b/scripts/AutoCompleteFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353092","jnpfKey":"autoComplete","label":"关键词","tipLabel":"","labelWidth":null,"showLabel":true,"required":true,"tag":"JnpfAutoComplete","tagIcon":"icon-ym icon-ym-generator-autoComplete","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change"},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请输入","interfaceId":"","interfaceName":"","templateJson":[],"total":10,"relationField":"fullName","disabled":false,"clearable":true} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193069","jnpfKey":"autoComplete","label":"关键词","tipLabel":"","labelWidth":null,"showLabel":true,"required":true,"tag":"JnpfAutoComplete","tagIcon":"icon-ym icon-ym-generator-autoComplete","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change"},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请输入","interfaceId":"","interfaceName":"","templateJson":[],"total":10,"relationField":"fullName","disabled":false,"clearable":true} \ No newline at end of file diff --git a/scripts/BarcodeFieldBuilder-output.json b/scripts/BarcodeFieldBuilder-output.json new file mode 100644 index 0000000..fe8c8f3 --- /dev/null +++ b/scripts/BarcodeFieldBuilder-output.json @@ -0,0 +1 @@ +{"__config__":{"formId":"formItem1781226193239","visibility":["pc","app"],"jnpfKey":"barcode","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"defaultValue":"","layout":"colFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-barcode","tag":"JnpfBarcode","showLabel":true,"label":"条形码","regList":[],"tableName":"","required":false},"__vModel__":"f_barcode","field":"f_barcode","format":"code128","lineColor":"#000","background":"#fff","width":4,"height":40,"dataType":"static","staticText":"10241024","relationField":""} \ No newline at end of file diff --git a/scripts/BillRuleFieldBuilder-output.json b/scripts/BillRuleFieldBuilder-output.json new file mode 100644 index 0000000..601a7ee --- /dev/null +++ b/scripts/BillRuleFieldBuilder-output.json @@ -0,0 +1 @@ +{"__config__":{"formId":"formItem1781226193203","visibility":["pc","app"],"jnpfKey":"billRule","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"defaultValue":null,"layout":"colFormItem","required":false,"span":24,"tagIcon":"icon-ym icon-ym-generator-documents","tag":"JnpfInput","showLabel":true,"label":"单据编号","tableAlign":"left","tableFixed":"none","tableName":"","trigger":"change","rule":"","ruleName":"","ruleType":1,"ruleConfig":{}},"__vModel__":"f_bill_no","field":"f_bill_no","style":{"width":"100%"},"readonly":true,"placeholder":"系统自动生成"} \ No newline at end of file diff --git a/scripts/ButtonFieldBuilder-output.json b/scripts/ButtonFieldBuilder-output.json new file mode 100644 index 0000000..87c8b10 --- /dev/null +++ b/scripts/ButtonFieldBuilder-output.json @@ -0,0 +1 @@ +{"__config__":{"formId":"formItem1781226192879","visibility":["pc","app"],"jnpfKey":"button","noShow":false,"label":"","showLabel":false,"tag":"JnpfButton","tagIcon":"icon-ym icon-ym-generator-button","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":null,"required":false,"layout":"colFormItem","span":24,"dragDisabled":false,"regList":[],"trigger":"click"},"__vModel__":"f_button","field":"f_button","on":{"click":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"align":"left","buttonText":"按钮","type":"","disabled":false} \ No newline at end of file diff --git a/scripts/CalculateFieldBuilder-output.json b/scripts/CalculateFieldBuilder-output.json index 6566b8f..36670b9 100644 --- a/scripts/CalculateFieldBuilder-output.json +++ b/scripts/CalculateFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353494","jnpfKey":"calculate","label":"合计","tipLabel":"","showLabel":true,"required":true,"tag":"JnpfCalculate","tagIcon":"icon-ym icon-ym-generator-calculate","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"renderKey":1781225353494},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请输入","formula":[],"trigger":"change","precision":0,"roundType":1,"dataSource":0,"addonAfter":"","isAmountChinese":false,"isStorage":0} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193363","jnpfKey":"calculate","label":"合计","tipLabel":"","showLabel":true,"required":true,"tag":"JnpfCalculate","tagIcon":"icon-ym icon-ym-generator-calculate","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"renderKey":1781226193363},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请输入","formula":[],"trigger":"change","precision":0,"roundType":1,"dataSource":0,"addonAfter":"","isAmountChinese":false,"isStorage":0} \ No newline at end of file diff --git a/scripts/CardFieldBuilder-output.json b/scripts/CardFieldBuilder-output.json new file mode 100644 index 0000000..552c76b --- /dev/null +++ b/scripts/CardFieldBuilder-output.json @@ -0,0 +1 @@ +{"__config__":{"formId":"formItem1781226192996","visibility":["pc","app"],"jnpfKey":"card","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"defaultValue":[],"layout":"rowFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-card","tag":"ACard","showLabel":false,"label":"","children":[]},"__vModel__":"f_card","header":"卡片容器","shadow":"never"} \ No newline at end of file diff --git a/scripts/CarouselFieldBuilder-output.json b/scripts/CarouselFieldBuilder-output.json index 1a18635..0dfa63e 100644 --- a/scripts/CarouselFieldBuilder-output.json +++ b/scripts/CarouselFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225352811","jnpfKey":"carousel","label":"轮播图","labelWidth":null,"showLabel":false,"tag":"JnpfCarousel","tagIcon":"icon-ym icon-ym-portal-carousel","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":null,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"noShow":false,"regList":[],"trigger":"click","renderKey":1781225352811},"__vModel__":"f_carousel","id":"f_carousel","imgList":[{"imageUrl":"https://app.cdn.jnpfsoft.com/image/3.2/banner1.png","dataType":2,"propsApi":"","moduleId":"","linkType":"","urlAddress":"","linkTarget":"_self","text":"","id":"1"},{"imageUrl":"https://app.cdn.jnpfsoft.com/image/3.2/banner2.png","dataType":2,"propsApi":"","moduleId":"","linkType":"","urlAddress":"","linkTarget":"_self","text":"","id":"2"},{"imageUrl":"https://app.cdn.jnpfsoft.com/image/3.2/banner4.png","dataType":2,"propsApi":"","moduleId":"","linkType":"","urlAddress":"","linkTarget":"_self","text":"","id":"3"}],"height":200,"autoplay":true,"direction":"horizontal","interval":3000,"indicatorPosition":"bottomRight","arrow":"never","imageFillStyle":"cover"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226192867","jnpfKey":"carousel","label":"轮播图","labelWidth":null,"showLabel":false,"tag":"JnpfCarousel","tagIcon":"icon-ym icon-ym-portal-carousel","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":null,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"noShow":false,"regList":[],"trigger":"click","renderKey":1781226192867},"__vModel__":"f_carousel","id":"f_carousel","imgList":[{"imageUrl":"https://app.cdn.jnpfsoft.com/image/3.2/banner1.png","dataType":2,"propsApi":"","moduleId":"","linkType":"","urlAddress":"","linkTarget":"_self","text":"","id":"1"},{"imageUrl":"https://app.cdn.jnpfsoft.com/image/3.2/banner2.png","dataType":2,"propsApi":"","moduleId":"","linkType":"","urlAddress":"","linkTarget":"_self","text":"","id":"2"},{"imageUrl":"https://app.cdn.jnpfsoft.com/image/3.2/banner4.png","dataType":2,"propsApi":"","moduleId":"","linkType":"","urlAddress":"","linkTarget":"_self","text":"","id":"3"}],"height":200,"autoplay":true,"direction":"horizontal","interval":3000,"indicatorPosition":"bottomRight","arrow":"never","imageFillStyle":"cover"} \ No newline at end of file diff --git a/scripts/CascaderFieldBuilder-output.json b/scripts/CascaderFieldBuilder-output.json index 769d6b4..efd810a 100644 --- a/scripts/CascaderFieldBuilder-output.json +++ b/scripts/CascaderFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353439","visibility":["pc","app"],"jnpfKey":"cascader","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"地区","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781225353439,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-cascader","tag":"JnpfCascader","regList":[],"tableAlign":"left","span":24,"defaultValue":[],"dataType":"static","dictionaryType":"","propsUrl":"","propsName":"","useCache":true,"templateJson":[]},"__vModel__":"f_region","field":"f_region","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"options":[{"id":"1","fullName":"选项1","children":[{"id":"2","fullName":"选项1-1"}]}],"props":{"value":"id","label":"fullName","children":"children"},"placeholder":"请选择","disabled":false,"clearable":true,"filterable":false,"multiple":false,"id":"f_region","fullName":"地区","fullNameI18nCode":[""],"dropdownClassName":"","maxTagCount":null} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193331","visibility":["pc","app"],"jnpfKey":"cascader","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"地区","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781226193331,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-cascader","tag":"JnpfCascader","regList":[],"tableAlign":"left","span":24,"defaultValue":[],"dataType":"static","dictionaryType":"","propsUrl":"","propsName":"","useCache":true,"templateJson":[]},"__vModel__":"f_region","field":"f_region","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"options":[{"id":"1","fullName":"选项1","children":[{"id":"2","fullName":"选项1-1"}]}],"props":{"value":"id","label":"fullName","children":"children"},"placeholder":"请选择","disabled":false,"clearable":true,"filterable":false,"multiple":false,"id":"f_region","fullName":"地区","fullNameI18nCode":[""],"dropdownClassName":"","maxTagCount":null} \ No newline at end of file diff --git a/scripts/CheckboxFieldBuilder-output.json b/scripts/CheckboxFieldBuilder-output.json index 39d01b5..0028039 100644 --- a/scripts/CheckboxFieldBuilder-output.json +++ b/scripts/CheckboxFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353336","visibility":["pc","app"],"jnpfKey":"checkbox","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"标签","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781225353336,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-checkbox","tag":"JnpfCheckbox","regList":[],"tableAlign":"left","span":24,"defaultValue":[],"dataType":"static","dictionaryType":"","propsUrl":"","propsName":"","useCache":true,"templateJson":[]},"__vModel__":"f_tags","field":"f_tags","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"options":[{"fullName":"选项一","id":"1"},{"fullName":"选项二","id":"2"}],"props":{"label":"fullName","value":"id"},"direction":"horizontal","disabled":false,"id":"f_tags","fullName":"标签","fullNameI18nCode":[""],"selectAll":false,"min":null,"max":null} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193273","visibility":["pc","app"],"jnpfKey":"checkbox","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"标签","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781226193273,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-checkbox","tag":"JnpfCheckbox","regList":[],"tableAlign":"left","span":24,"defaultValue":[],"dataType":"static","dictionaryType":"","propsUrl":"","propsName":"","useCache":true,"templateJson":[]},"__vModel__":"f_tags","field":"f_tags","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"options":[{"fullName":"选项一","id":"1"},{"fullName":"选项二","id":"2"}],"props":{"label":"fullName","value":"id"},"direction":"horizontal","disabled":false,"id":"f_tags","fullName":"标签","fullNameI18nCode":[""],"selectAll":false,"min":null,"max":null} \ No newline at end of file diff --git a/scripts/CollapseFieldBuilder-output.json b/scripts/CollapseFieldBuilder-output.json new file mode 100644 index 0000000..e6ae234 --- /dev/null +++ b/scripts/CollapseFieldBuilder-output.json @@ -0,0 +1 @@ +{"__config__":{"formId":"formItem1781226193258","visibility":["pc","app"],"jnpfKey":"collapse","noShow":false,"label":"","showLabel":false,"className":[],"layout":"rowFormItem","span":24,"dragDisabled":false,"tagIcon":"icon-ym icon-ym-generator-fold","tag":"ACollapse","children":[{"title":"面板1","name":"1","__config__":{"jnpfKey":"collapseItem","children":[]}},{"title":"面板2","name":"2","__config__":{"jnpfKey":"collapseItem","children":[]}}],"active":["1"]},"__vModel__":"f_collapse","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"accordion":false,"ghost":true,"expandIconPosition":"end"} \ No newline at end of file diff --git a/scripts/ColorPickerFieldBuilder-output.json b/scripts/ColorPickerFieldBuilder-output.json index 0f7fc60..8060780 100644 --- a/scripts/ColorPickerFieldBuilder-output.json +++ b/scripts/ColorPickerFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353320","jnpfKey":"colorPicker","label":"颜色","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfColorPicker","tagIcon":"icon-ym icon-ym-generator-color","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":null,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781225353320},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"showAlpha":false,"colorFormat":"","disabled":false,"__vModel__":"f_color","id":"f_color"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193245","jnpfKey":"colorPicker","label":"颜色","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfColorPicker","tagIcon":"icon-ym icon-ym-generator-color","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":null,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781226193245},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"showAlpha":false,"colorFormat":"","disabled":false,"__vModel__":"f_color","id":"f_color"} \ No newline at end of file diff --git a/scripts/ColumnDataBuilder-output.json b/scripts/ColumnDataBuilder-output.json index 934b162..0a208ac 100644 --- a/scripts/ColumnDataBuilder-output.json +++ b/scripts/ColumnDataBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225354093","visibility":["pc","app"],"jnpfKey":"relationForm","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"客户","trigger":"blur","showLabel":true,"required":true,"tableName":"","renderKey":1781225354093,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-menu","tag":"JnpfRelationForm","regList":[],"tableAlign":"left","span":24,"dictionaryType":"","defaultValue":""},"__vModel__":"f_customer","field":"f_customer","id":"f_customer","sortable":false,"searchable":true,"width":250,"fixed":"none","align":"left","columnBtnsList":[],"buttons":[],"required":true,"preview":false,"fmt":{"type":"","format":""},"jt":"","showText":"","display":true,"datatype":"string","isStorage":0,"totalSummary":false,"freeSign":"","showTooltip":false,"linkInfo":[],"appLinkInfo":[],"copy":false,"rules":[],"hideColumn":false,"level":0,"options":[],"props":{"label":"fullName","value":"id"},"hideInTable":false,"subTableKey":""} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193692","visibility":["pc","app"],"jnpfKey":"relationForm","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"客户","trigger":"blur","showLabel":true,"required":true,"tableName":"","renderKey":1781226193692,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-menu","tag":"JnpfRelationForm","regList":[],"tableAlign":"left","span":24,"dictionaryType":"","defaultValue":""},"__vModel__":"f_customer","field":"f_customer","id":"f_customer","sortable":false,"searchable":true,"width":250,"fixed":"none","align":"left","columnBtnsList":[],"buttons":[],"required":true,"preview":false,"fmt":{"type":"","format":""},"jt":"","showText":"","display":true,"datatype":"string","isStorage":0,"totalSummary":false,"freeSign":"","showTooltip":false,"linkInfo":[],"appLinkInfo":[],"copy":false,"rules":[],"hideColumn":false,"level":0,"options":[],"props":{"label":"fullName","value":"id"},"hideInTable":false,"subTableKey":""} \ No newline at end of file diff --git a/scripts/DateCalculateFieldBuilder-output.json b/scripts/DateCalculateFieldBuilder-output.json index eb119d1..818474a 100644 --- a/scripts/DateCalculateFieldBuilder-output.json +++ b/scripts/DateCalculateFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225352818","jnpfKey":"dateCalculate","label":"截止日期","tipLabel":"","showLabel":true,"required":true,"tag":"JnpfDateCalculate","tagIcon":"icon-ym icon-ym-generator-date-calculate","tableAlign":"left","tableFixed":"none","className":[],"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"renderKey":1781225352819},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请输入","format":"yyyy-MM-dd","defaultValue":"","startTime":"","endTime":"","formula":[],"isStorage":0} \ No newline at end of file +{"__config__":{"formId":"formItem1781226192895","jnpfKey":"dateCalculate","label":"截止日期","tipLabel":"","showLabel":true,"required":true,"tag":"JnpfDateCalculate","tagIcon":"icon-ym icon-ym-generator-date-calculate","tableAlign":"left","tableFixed":"none","className":[],"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"renderKey":1781226192895},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请输入","format":"yyyy-MM-dd","defaultValue":"","startTime":"","endTime":"","formula":[],"isStorage":0} \ No newline at end of file diff --git a/scripts/DatePickerFieldBuilder-output.json b/scripts/DatePickerFieldBuilder-output.json index 3ab0d64..1d7da5e 100644 --- a/scripts/DatePickerFieldBuilder-output.json +++ b/scripts/DatePickerFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353004","visibility":["pc","app"],"jnpfKey":"datePicker","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"入职时间","trigger":"change","showLabel":true,"required":false,"tableName":"","renderKey":1781225353004,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-date","tag":"JnpfDatePicker","regList":[],"tableAlign":"left","span":24,"endRelationField":"","endTimeRule":false,"endTimeTarget":1,"endTimeType":1,"startRelationField":"","startTimeRule":false,"startTimeTarget":1,"startTimeType":1,"defaultCurrent":false},"__vModel__":"f_joinDate","clearable":true,"format":"yyyy-MM-dd","style":{"width":"100%"},"disabled":false,"placeholder":"请选择","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193010","visibility":["pc","app"],"jnpfKey":"datePicker","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"入职时间","trigger":"change","showLabel":true,"required":false,"tableName":"","renderKey":1781226193010,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-date","tag":"JnpfDatePicker","regList":[],"tableAlign":"left","span":24,"endRelationField":"","endTimeRule":false,"endTimeTarget":1,"endTimeType":1,"startRelationField":"","startTimeRule":false,"startTimeTarget":1,"startTimeType":1,"defaultCurrent":false},"__vModel__":"f_joinDate","clearable":true,"format":"yyyy-MM-dd","style":{"width":"100%"},"disabled":false,"placeholder":"请选择","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}} \ No newline at end of file diff --git a/scripts/DividerFieldBuilder-output.json b/scripts/DividerFieldBuilder-output.json index 63153dd..59b287d 100644 --- a/scripts/DividerFieldBuilder-output.json +++ b/scripts/DividerFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353203","visibility":["pc","app"],"jnpfKey":"divider","noShow":false,"label":"","showLabel":false,"className":[],"required":false,"layout":"colFormItem","span":24,"dragDisabled":false,"tagIcon":"icon-ym icon-ym-generator-divider","tag":"JnpfDivider","defaultValue":null},"__vModel__":"f_divider","content":"我是分割线","contentPosition":"center"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193117","visibility":["pc","app"],"jnpfKey":"divider","noShow":false,"label":"","showLabel":false,"className":[],"required":false,"layout":"colFormItem","span":24,"dragDisabled":false,"tagIcon":"icon-ym icon-ym-generator-divider","tag":"JnpfDivider","defaultValue":null},"__vModel__":"f_divider","content":"我是分割线","contentPosition":"center"} \ No newline at end of file diff --git a/scripts/EditorFieldBuilder-output.json b/scripts/EditorFieldBuilder-output.json index 22c11e1..b410161 100644 --- a/scripts/EditorFieldBuilder-output.json +++ b/scripts/EditorFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353079","visibility":["pc","app"],"jnpfKey":"editor","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"内容","trigger":"blur","showLabel":true,"required":true,"tableName":"","renderKey":1781225353079,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-rich-text","tag":"JnpfEditor","regList":[],"tableAlign":"left","span":24,"defaultValue":null},"__vModel__":"f_content","field":"f_content","style":{"width":"100%"},"placeholder":"请输入","disabled":false,"toolbar":["bold","italic","underline","fontSize","color","background","ul","ol","link","image","code","table"],"config":{"autoFocus":false,"readOnly":false},"height":300,"minHeight":200} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193059","visibility":["pc","app"],"jnpfKey":"editor","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"内容","trigger":"blur","showLabel":true,"required":true,"tableName":"","renderKey":1781226193059,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-rich-text","tag":"JnpfEditor","regList":[],"tableAlign":"left","span":24,"defaultValue":null},"__vModel__":"f_content","field":"f_content","style":{"width":"100%"},"placeholder":"请输入","disabled":false,"toolbar":["bold","italic","underline","fontSize","color","background","ul","ol","link","image","code","table"],"config":{"autoFocus":false,"readOnly":false},"height":300,"minHeight":200} \ No newline at end of file diff --git a/scripts/GroupTitleFieldBuilder-output.json b/scripts/GroupTitleFieldBuilder-output.json index 3f7ed04..46e51b0 100644 --- a/scripts/GroupTitleFieldBuilder-output.json +++ b/scripts/GroupTitleFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353194","visibility":["pc","app"],"jnpfKey":"groupTitle","noShow":false,"label":"","showLabel":false,"className":[],"required":false,"layout":"colFormItem","span":24,"dragDisabled":false,"tagIcon":"icon-ym icon-ym-generator-group","tag":"JnpfGroupTitle","defaultValue":null},"__vModel__":"f_title","helpMessage":"","content":"基本信息","contentPosition":"left"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193111","visibility":["pc","app"],"jnpfKey":"groupTitle","noShow":false,"label":"","showLabel":false,"className":[],"required":false,"layout":"colFormItem","span":24,"dragDisabled":false,"tagIcon":"icon-ym icon-ym-generator-group","tag":"JnpfGroupTitle","defaultValue":null},"__vModel__":"f_title","helpMessage":"","content":"基本信息","contentPosition":"left"} \ No newline at end of file diff --git a/scripts/I18nInputFieldBuilder-output.json b/scripts/I18nInputFieldBuilder-output.json index 668a42a..2563202 100644 --- a/scripts/I18nInputFieldBuilder-output.json +++ b/scripts/I18nInputFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353039","jnpfKey":"i18nInput","label":"多语言标题","tipLabel":"","showLabel":true,"required":true,"tag":"JnpfI18nInput","tagIcon":"icon-ym icon-ym-generator-i18nInput","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"renderKey":1781225353039},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请输入","prefixIcon":"","suffixIcon":"","addonBefore":"","addonAfter":"","i18n":"","maxlength":null} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193044","jnpfKey":"i18nInput","label":"多语言标题","tipLabel":"","showLabel":true,"required":true,"tag":"JnpfI18nInput","tagIcon":"icon-ym icon-ym-generator-i18nInput","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"renderKey":1781226193044},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请输入","prefixIcon":"","suffixIcon":"","addonBefore":"","addonAfter":"","i18n":"","maxlength":null} \ No newline at end of file diff --git a/scripts/IframeFieldBuilder-output.json b/scripts/IframeFieldBuilder-output.json index 5601634..50dc87e 100644 --- a/scripts/IframeFieldBuilder-output.json +++ b/scripts/IframeFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353235","visibility":["pc"],"jnpfKey":"iframe","noShow":false,"tableFixed":"none","dragDisabled":false,"className":[],"defaultValue":null,"required":false,"layout":"colFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-iframe","tag":"JnpfIframe","tableAlign":"left","showLabel":true,"label":"外链"},"__vModel__":"f_iframe","field":"f_iframe","href":"","height":300,"borderType":"solid","borderColor":"#E2E0E0","borderWidth":1} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193142","visibility":["pc"],"jnpfKey":"iframe","noShow":false,"tableFixed":"none","dragDisabled":false,"className":[],"defaultValue":null,"required":false,"layout":"colFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-iframe","tag":"JnpfIframe","tableAlign":"left","showLabel":true,"label":"外链"},"__vModel__":"f_iframe","field":"f_iframe","href":"","height":300,"borderType":"solid","borderColor":"#E2E0E0","borderWidth":1} \ No newline at end of file diff --git a/scripts/InputFieldBuilder-output.json b/scripts/InputFieldBuilder-output.json index 7a27d19..1b507d6 100644 --- a/scripts/InputFieldBuilder-output.json +++ b/scripts/InputFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225352858","visibility":["pc","app"],"jnpfKey":"input","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"姓名","trigger":"blur","showLabel":true,"required":true,"tableName":"","renderKey":1781225352858,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-input","tag":"JnpfInput","regList":[],"tableAlign":"left","span":24,"dictionaryType":"","defaultValue":""},"__vModel__":"f_name","field":"f_name","clearable":true,"useScan":false,"suffixIcon":"","addonAfter":"","showCount":false,"readonly":false,"maskConfig":{"prefixType":1,"useUnrealMask":false,"maskType":1,"unrealMaskLength":1,"prefixLimit":0,"suffixLimit":0,"filler":"*","prefixSpecifyChar":"","suffixType":1,"ignoreChar":"","suffixSpecifyChar":""},"useMask":false,"showPassword":false,"style":{"width":"100%"},"disabled":false,"placeholder":"请输入姓名","prefixIcon":"","addonBefore":"","on":{"change":"","blur":""},"id":"f_name","fullName":"姓名","fullNameI18nCode":[""]} \ No newline at end of file +{"__config__":{"formId":"formItem1781226192922","visibility":["pc","app"],"jnpfKey":"input","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"姓名","trigger":"blur","showLabel":true,"required":true,"tableName":"","renderKey":1781226192922,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-input","tag":"JnpfInput","regList":[],"tableAlign":"left","span":24,"dictionaryType":"","defaultValue":""},"__vModel__":"f_name","field":"f_name","clearable":true,"useScan":false,"suffixIcon":"","addonAfter":"","showCount":false,"readonly":false,"maskConfig":{"prefixType":1,"useUnrealMask":false,"maskType":1,"unrealMaskLength":1,"prefixLimit":0,"suffixLimit":0,"filler":"*","prefixSpecifyChar":"","suffixType":1,"ignoreChar":"","suffixSpecifyChar":""},"useMask":false,"showPassword":false,"style":{"width":"100%"},"disabled":false,"placeholder":"请输入姓名","prefixIcon":"","addonBefore":"","on":{"change":"","blur":""},"id":"f_name","fullName":"姓名","fullNameI18nCode":[""]} \ No newline at end of file diff --git a/scripts/InputNumberFieldBuilder-output.json b/scripts/InputNumberFieldBuilder-output.json index 5b596f1..7b50a63 100644 --- a/scripts/InputNumberFieldBuilder-output.json +++ b/scripts/InputNumberFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":1781225353160,"visibility":["pc","app"],"jnpfKey":"inputNumber","noShow":false,"parentVModel":"","tipLabel":"","dragDisabled":false,"className":[],"label":"年龄","trigger":["blur","change"],"showLabel":true,"required":true,"tableName":"","renderKey":1781225353160,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-number","isSubTable":false,"tag":"JnpfInputNumber","regList":[],"span":24},"controls":true,"__vModel__":"f_age","style":{"width":"100%"},"step":1,"disabled":false,"placeholder":"请输入","thousands":false,"isAmountChinese":false,"addonBefore":"","addonAfter":"","on":{"change":"","blur":""}} \ No newline at end of file +{"__config__":{"formId":1781226193095,"visibility":["pc","app"],"jnpfKey":"inputNumber","noShow":false,"parentVModel":"","tipLabel":"","dragDisabled":false,"className":[],"label":"年龄","trigger":["blur","change"],"showLabel":true,"required":true,"tableName":"","renderKey":1781226193095,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-number","isSubTable":false,"tag":"JnpfInputNumber","regList":[],"span":24},"controls":true,"__vModel__":"f_age","style":{"width":"100%"},"step":1,"disabled":false,"placeholder":"请输入","thousands":false,"isAmountChinese":false,"addonBefore":"","addonAfter":"","on":{"change":"","blur":""}} \ No newline at end of file diff --git a/scripts/InputTableFieldBuilder-output.json b/scripts/InputTableFieldBuilder-output.json index 1c9a096..0ccc711 100644 --- a/scripts/InputTableFieldBuilder-output.json +++ b/scripts/InputTableFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225352753","jnpfKey":"inputTable","label":"明细","tipLabel":"","labelWidth":null,"showLabel":true,"required":true,"tag":"JnpfInputTable","tagIcon":"icon-ym icon-ym-generator-table","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":[],"layout":"rowFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"noShow":false,"showTitle":true,"children":[],"tableName":"","complexHeaderList":[]},"disabled":false,"showSummary":false,"summaryField":[],"isNumLimit":false,"numLimit":1000,"defaultValue":[],"columnBtnsList":[{"value":"copy","label":"复制","labelI18nCode":"common.copyText","show":true,"btnType":"primary","btnIcon":"icon-ym icon-ym-btn-edit"},{"value":"remove","label":"删除","labelI18nCode":"common.delText","show":true,"btnType":"danger","btnIcon":"icon-ym icon-ym-btn-clearn","showConfirm":true}],"footerBtnsList":[{"value":"add","label":"添加","labelI18nCode":"common.add1Text","show":true,"btnType":"primary","btnIcon":"icon-ym icon-ym-btn-add"},{"value":"batchRemove","label":"批量删除","labelI18nCode":"common.batchDelText","show":true,"btnType":"danger","btnIcon":"icon-ym icon-ym-btn-clearn","showConfirm":true}],"layoutType":"table","defaultExpandAll":true,"hasPage":false,"pageSize":10} \ No newline at end of file +{"__config__":{"formId":"formItem1781226192824","jnpfKey":"inputTable","label":"明细","tipLabel":"","labelWidth":null,"showLabel":true,"required":true,"tag":"JnpfInputTable","tagIcon":"icon-ym icon-ym-generator-table","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":[],"layout":"rowFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"noShow":false,"showTitle":true,"children":[],"tableName":"","complexHeaderList":[]},"disabled":false,"showSummary":false,"summaryField":[],"isNumLimit":false,"numLimit":1000,"defaultValue":[],"columnBtnsList":[{"value":"copy","label":"复制","labelI18nCode":"common.copyText","show":true,"btnType":"primary","btnIcon":"icon-ym icon-ym-btn-edit"},{"value":"remove","label":"删除","labelI18nCode":"common.delText","show":true,"btnType":"danger","btnIcon":"icon-ym icon-ym-btn-clearn","showConfirm":true}],"footerBtnsList":[{"value":"add","label":"添加","labelI18nCode":"common.add1Text","show":true,"btnType":"primary","btnIcon":"icon-ym icon-ym-btn-add"},{"value":"batchRemove","label":"批量删除","labelI18nCode":"common.batchDelText","show":true,"btnType":"danger","btnIcon":"icon-ym icon-ym-btn-clearn","showConfirm":true}],"layoutType":"table","defaultExpandAll":true,"hasPage":false,"pageSize":10} \ No newline at end of file diff --git a/scripts/LinkFieldBuilder-output.json b/scripts/LinkFieldBuilder-output.json index 1a6773a..942e946 100644 --- a/scripts/LinkFieldBuilder-output.json +++ b/scripts/LinkFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353218","visibility":["pc","app"],"jnpfKey":"link","noShow":false,"tableFixed":"none","dragDisabled":false,"className":[],"required":false,"layout":"colFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-link","tag":"JnpfLink","tableAlign":"left","showLabel":false,"label":""},"__vModel__":"f_link","field":"f_link","on":{"click":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"content":"文本链接","href":"","target":"_self","textStyle":{"text-align":"left"}} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193127","visibility":["pc","app"],"jnpfKey":"link","noShow":false,"tableFixed":"none","dragDisabled":false,"className":[],"required":false,"layout":"colFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-link","tag":"JnpfLink","tableAlign":"left","showLabel":false,"label":""},"__vModel__":"f_link","field":"f_link","on":{"click":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"content":"文本链接","href":"","target":"_self","textStyle":{"text-align":"left"}} \ No newline at end of file diff --git a/scripts/LocationFieldBuilder-output.json b/scripts/LocationFieldBuilder-output.json index d9bcbe1..a9ce635 100644 --- a/scripts/LocationFieldBuilder-output.json +++ b/scripts/LocationFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353481","jnpfKey":"location","label":"位置","tipLabel":"","showLabel":true,"tag":"JnpfLocation","tagIcon":"icon-ym icon-ym-generator-location","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","defaultCurrent":false,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781225353481},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请选择位置","selectType":"point","apiKey":"","autoLocation":false,"level":"point","__vModel__":"f_location"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193357","jnpfKey":"location","label":"位置","tipLabel":"","showLabel":true,"tag":"JnpfLocation","tagIcon":"icon-ym icon-ym-generator-location","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","defaultCurrent":false,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781226193357},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请选择位置","selectType":"point","apiKey":"","autoLocation":false,"level":"point","__vModel__":"f_location"} \ No newline at end of file diff --git a/scripts/OcrFieldBuilder-output.json b/scripts/OcrFieldBuilder-output.json index 0ed9e02..d2dd68c 100644 --- a/scripts/OcrFieldBuilder-output.json +++ b/scripts/OcrFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353278","jnpfKey":"textOcr","label":"文本识别","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfOcr","tagIcon":"icon-ym icon-ym-ocr-text","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":null,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","renderKey":1781225353278,"noShow":false,"regList":[],"trigger":"blur","storageType":1,"transferList":[]},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"ocrType":"textOcr","disabled":false,"transferList":[],"__vModel__":"f_ocr","id":"f_ocr"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193200","jnpfKey":"textOcr","label":"文本识别","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfOcr","tagIcon":"icon-ym icon-ym-ocr-text","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":null,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","renderKey":1781226193200,"noShow":false,"regList":[],"trigger":"blur","storageType":1,"transferList":[]},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"ocrType":"textOcr","disabled":false,"transferList":[],"__vModel__":"f_ocr","id":"f_ocr"} \ No newline at end of file diff --git a/scripts/OrgRightFieldBuilder-output.json b/scripts/OrgRightFieldBuilder-output.json index 36d91e0..2627a2c 100644 --- a/scripts/OrgRightFieldBuilder-output.json +++ b/scripts/OrgRightFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353249","visibility":["pc","app"],"jnpfKey":"orgRight","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"所属组织","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781225353250,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-company","tag":"JnpfOrganizeSelect","regList":[],"tableAlign":"left","span":24,"defaultValue":"","defaultCurrent":false},"__vModel__":"f_org","field":"f_org","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"placeholder":"请选择","selectType":"all","ableIds":[],"multiple":false,"clearable":true,"disabled":false,"id":"f_org","fullName":"所属组织","fullNameI18nCode":[""],"relationField":"","orgRelationField":"","roleRelationField":""} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193166","visibility":["pc","app"],"jnpfKey":"orgRight","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"所属组织","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781226193166,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-company","tag":"JnpfOrganizeSelect","regList":[],"tableAlign":"left","span":24,"defaultValue":"","defaultCurrent":false},"__vModel__":"f_org","field":"f_org","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"placeholder":"请选择","selectType":"all","ableIds":[],"multiple":false,"clearable":true,"disabled":false,"id":"f_org","fullName":"所属组织","fullNameI18nCode":[""],"relationField":"","orgRelationField":"","roleRelationField":""} \ No newline at end of file diff --git a/scripts/OrganizeFieldBuilder-output.json b/scripts/OrganizeFieldBuilder-output.json index ca07355..fc690c3 100644 --- a/scripts/OrganizeFieldBuilder-output.json +++ b/scripts/OrganizeFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225352937","jnpfKey":"organizeSelect","label":"部门","tipLabel":"","showLabel":true,"tag":"JnpfOrganizeSelect","tagIcon":"icon-ym icon-ym-generator-company","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","defaultCurrent":false,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781225352937},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请选择","selectType":"all","ableIds":[],"multiple":false,"clearable":true,"filterable":false,"disabled":false,"__vModel__":"f_dep_select"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226192965","jnpfKey":"organizeSelect","label":"部门","tipLabel":"","showLabel":true,"tag":"JnpfOrganizeSelect","tagIcon":"icon-ym icon-ym-generator-company","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","defaultCurrent":false,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781226192965},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请选择","selectType":"all","ableIds":[],"multiple":false,"clearable":true,"filterable":false,"disabled":false,"__vModel__":"f_dep_select"} \ No newline at end of file diff --git a/scripts/PopupAttrFieldBuilder-output.json b/scripts/PopupAttrFieldBuilder-output.json index 2e57ef7..46089e2 100644 --- a/scripts/PopupAttrFieldBuilder-output.json +++ b/scripts/PopupAttrFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353245","jnpfKey":"popupAttr","label":"弹窗选择属性","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfPopupAttr","tagIcon":"icon-ym icon-ym-generator-popup-attr","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","required":false,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"noShow":false},"style":{"width":"100%"},"showField":"f_name","relationField":"f_id","isStorage":1,"__vModel__":"f_popup_attr","id":"f_popup_attr"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193158","jnpfKey":"popupAttr","label":"弹窗选择属性","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfPopupAttr","tagIcon":"icon-ym icon-ym-generator-popup-attr","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","required":false,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"noShow":false},"style":{"width":"100%"},"showField":"f_name","relationField":"f_id","isStorage":1,"__vModel__":"f_popup_attr","id":"f_popup_attr"} \ No newline at end of file diff --git a/scripts/PopupSelectFieldBuilder-output.json b/scripts/PopupSelectFieldBuilder-output.json index 09c841c..75b3eb4 100644 --- a/scripts/PopupSelectFieldBuilder-output.json +++ b/scripts/PopupSelectFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353456","jnpfKey":"popupSelect","label":"弹窗选择","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfPopupSelect","tagIcon":"icon-ym icon-ym-generator-popup","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","transferList":[],"useCache":true},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请选择","interfaceId":"iface002","interfaceName":"部门数据接口","templateJson":[],"hasPage":false,"pageSize":20,"extraOptions":[],"columnOptions":[{"value":"f_id","label":"ID"},{"value":"f_name","label":"部门名"}],"propsValue":"f_id","relationField":"f_name","popupType":"dialog","popupTitle":"选择数据","popupWidth":"800px","disabled":false,"clearable":true,"__vModel__":"f_popup_sel","id":"f_popup_sel","multiple":false,"filterable":false} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193343","jnpfKey":"popupSelect","label":"弹窗选择","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfPopupSelect","tagIcon":"icon-ym icon-ym-generator-popup","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","transferList":[],"useCache":true},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请选择","interfaceId":"iface002","interfaceName":"部门数据接口","templateJson":[],"hasPage":false,"pageSize":20,"extraOptions":[],"columnOptions":[{"value":"f_id","label":"ID"},{"value":"f_name","label":"部门名"}],"propsValue":"f_id","relationField":"f_name","popupType":"dialog","popupTitle":"选择数据","popupWidth":"800px","disabled":false,"clearable":true,"__vModel__":"f_popup_sel","id":"f_popup_sel","multiple":false,"filterable":false} \ No newline at end of file diff --git a/scripts/PopupTableFieldBuilder-output.json b/scripts/PopupTableFieldBuilder-output.json index 4bebbec..ffee185 100644 --- a/scripts/PopupTableFieldBuilder-output.json +++ b/scripts/PopupTableFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225352662","jnpfKey":"popupTableSelect","label":"下拉表格","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfPopupTableSelect","tagIcon":"icon-ym icon-ym-generator-popupTableSelect","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","useCache":true},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请选择","interfaceId":"iface001","interfaceName":"用户数据接口","templateJson":[],"hasPage":false,"pageSize":20,"extraOptions":[],"columnOptions":[{"value":"f_id","label":"ID"},{"value":"f_name","label":"姓名"}],"propsValue":"f_id","relationField":"f_name","popupType":"popover","popupTitle":"选择数据","popupWidth":"800px","disabled":false,"clearable":true,"__vModel__":"f_popup_tbl","id":"f_popup_tbl","multiple":false,"filterable":true} \ No newline at end of file +{"__config__":{"formId":"formItem1781226192746","jnpfKey":"popupTableSelect","label":"下拉表格","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfPopupTableSelect","tagIcon":"icon-ym icon-ym-generator-popupTableSelect","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","useCache":true},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请选择","interfaceId":"iface001","interfaceName":"用户数据接口","templateJson":[],"hasPage":false,"pageSize":20,"extraOptions":[],"columnOptions":[{"value":"f_id","label":"ID"},{"value":"f_name","label":"姓名"}],"propsValue":"f_id","relationField":"f_name","popupType":"popover","popupTitle":"选择数据","popupWidth":"800px","disabled":false,"clearable":true,"__vModel__":"f_popup_tbl","id":"f_popup_tbl","multiple":false,"filterable":true} \ No newline at end of file diff --git a/scripts/QrcodeFieldBuilder-output.json b/scripts/QrcodeFieldBuilder-output.json index af28ced..b0b0a73 100644 --- a/scripts/QrcodeFieldBuilder-output.json +++ b/scripts/QrcodeFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225352702","visibility":["pc","app"],"jnpfKey":"qrcode","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"defaultValue":"","layout":"colFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-qrcode","tag":"JnpfQrcode","showLabel":true,"label":"二维码","regList":[],"tableName":""},"__vModel__":"f_qrcode","field":"f_qrcode","colorDark":"#000","colorLight":"#fff","width":100,"dataType":"static","staticText":"二维码","joint":"","relationField":""} \ No newline at end of file +{"__config__":{"formId":"formItem1781226192794","visibility":["pc","app"],"jnpfKey":"qrcode","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"defaultValue":"","layout":"colFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-qrcode","tag":"JnpfQrcode","showLabel":true,"label":"二维码","regList":[],"tableName":""},"__vModel__":"f_qrcode","field":"f_qrcode","colorDark":"#000","colorLight":"#fff","width":100,"dataType":"static","staticText":"二维码","joint":"","relationField":""} \ No newline at end of file diff --git a/scripts/RadioFieldBuilder-output.json b/scripts/RadioFieldBuilder-output.json index f0fe2cc..83d4b69 100644 --- a/scripts/RadioFieldBuilder-output.json +++ b/scripts/RadioFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225352890","visibility":["pc","app"],"jnpfKey":"radio","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"性别","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781225352890,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-radio","tag":"JnpfRadio","regList":[],"tableAlign":"left","span":24,"defaultValue":null,"dataType":"static","dictionaryType":"","propsUrl":"","propsName":"","useCache":true,"templateJson":[]},"__vModel__":"f_gender","field":"f_gender","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"options":[{"fullName":"选项一","id":"1"},{"fullName":"选项二","id":"2"}],"props":{"label":"fullName","value":"id"},"direction":"horizontal","optionType":"default","buttonStyle":"solid","size":"default","disabled":false,"id":"f_gender","fullName":"性别","fullNameI18nCode":[""],"dropdownClassName":"","maxTagCount":null} \ No newline at end of file +{"__config__":{"formId":"formItem1781226192940","visibility":["pc","app"],"jnpfKey":"radio","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"性别","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781226192940,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-radio","tag":"JnpfRadio","regList":[],"tableAlign":"left","span":24,"defaultValue":null,"dataType":"static","dictionaryType":"","propsUrl":"","propsName":"","useCache":true,"templateJson":[]},"__vModel__":"f_gender","field":"f_gender","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"options":[{"fullName":"选项一","id":"1"},{"fullName":"选项二","id":"2"}],"props":{"label":"fullName","value":"id"},"direction":"horizontal","optionType":"default","buttonStyle":"solid","size":"default","disabled":false,"id":"f_gender","fullName":"性别","fullNameI18nCode":[""],"dropdownClassName":"","maxTagCount":null} \ No newline at end of file diff --git a/scripts/RateFieldBuilder-output.json b/scripts/RateFieldBuilder-output.json index 4b9bd38..7e3caa8 100644 --- a/scripts/RateFieldBuilder-output.json +++ b/scripts/RateFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353267","jnpfKey":"rate","label":"评分","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfRate","tagIcon":"icon-ym icon-ym-generator-rate","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":0,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781225353267},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"count":5,"allowHalf":false,"disabled":false,"__vModel__":"f_rate","id":"f_rate"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193192","jnpfKey":"rate","label":"评分","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfRate","tagIcon":"icon-ym icon-ym-generator-rate","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":0,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781226193192},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"count":5,"allowHalf":false,"disabled":false,"__vModel__":"f_rate","id":"f_rate"} \ No newline at end of file diff --git a/scripts/RelationFormAttrFieldBuilder-output.json b/scripts/RelationFormAttrFieldBuilder-output.json index a394dc8..d935932 100644 --- a/scripts/RelationFormAttrFieldBuilder-output.json +++ b/scripts/RelationFormAttrFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353387","jnpfKey":"relationFormAttr","label":"关联表单属性","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfRelationFormAttr","tagIcon":"icon-ym icon-ym-generator-nature","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","required":false,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"noShow":false},"style":{"width":"100%"},"showField":"f_full_name","relationField":"f_id","isStorage":1,"__vModel__":"f_relation_attr","id":"f_relation_attr"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193305","jnpfKey":"relationFormAttr","label":"关联表单属性","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfRelationFormAttr","tagIcon":"icon-ym icon-ym-generator-nature","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","required":false,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"noShow":false},"style":{"width":"100%"},"showField":"f_full_name","relationField":"f_id","isStorage":1,"__vModel__":"f_relation_attr","id":"f_relation_attr"} \ No newline at end of file diff --git a/scripts/RelationFormFieldBuilder-output.json b/scripts/RelationFormFieldBuilder-output.json index b283b7a..3763039 100644 --- a/scripts/RelationFormFieldBuilder-output.json +++ b/scripts/RelationFormFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353417","jnpfKey":"relationForm","label":"关联表单","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfRelationForm","tagIcon":"icon-ym icon-ym-generator-menu","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781225353417,"transferList":[]},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请选择","modelId":"form123","relationField":"f_name","hasPage":false,"pageSize":20,"queryType":0,"propsValue":"f_id","extraOptions":[],"columnOptions":[{"value":"f_id","label":"ID"},{"value":"f_name","label":"名称"}],"clearable":true,"popupType":"dialog","popupTitle":"选择数据","popupWidth":"800px","filterable":false,"disabled":false,"__vModel__":"f_relate","id":"f_relate","multiple":false,"actionType":"table"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193316","jnpfKey":"relationForm","label":"关联表单","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfRelationForm","tagIcon":"icon-ym icon-ym-generator-menu","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781226193316,"transferList":[]},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"placeholder":"请选择","modelId":"form123","relationField":"f_name","hasPage":false,"pageSize":20,"queryType":0,"propsValue":"f_id","extraOptions":[],"columnOptions":[{"value":"f_id","label":"ID"},{"value":"f_name","label":"名称"}],"clearable":true,"popupType":"dialog","popupTitle":"选择数据","popupWidth":"800px","filterable":false,"disabled":false,"__vModel__":"f_relate","id":"f_relate","multiple":false,"actionType":"table"} \ No newline at end of file diff --git a/scripts/RelationQueryFieldBuilder-output.json b/scripts/RelationQueryFieldBuilder-output.json index 884c2d8..bfdda08 100644 --- a/scripts/RelationQueryFieldBuilder-output.json +++ b/scripts/RelationQueryFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353375","jnpfKey":"relationQuery","label":"关联查询","tipLabel":"","labelWidth":null,"showLabel":false,"tag":"JnpfRelationQuery","tagIcon":"icon-ym icon-ym-generator-relationQuery","className":[],"defaultValue":null,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc"],"noShow":false},"style":{"width":"100%"},"title":"关联查询","showTitle":true,"modelId":"model001","columnOptions":[{"value":"f_id","label":"ID"},{"value":"f_name","label":"名称"}],"defaultEmpty":true,"sortRule":[],"queryRule":{"conditionList":[],"matchLogic":"and"},"hasPage":false,"pageSize":20,"__vModel__":"f_rel_query","id":"f_rel_query"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193299","jnpfKey":"relationQuery","label":"关联查询","tipLabel":"","labelWidth":null,"showLabel":false,"tag":"JnpfRelationQuery","tagIcon":"icon-ym icon-ym-generator-relationQuery","className":[],"defaultValue":null,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc"],"noShow":false},"style":{"width":"100%"},"title":"关联查询","showTitle":true,"modelId":"model001","columnOptions":[{"value":"f_id","label":"ID"},{"value":"f_name","label":"名称"}],"defaultEmpty":true,"sortRule":[],"queryRule":{"conditionList":[],"matchLogic":"and"},"hasPage":false,"pageSize":20,"__vModel__":"f_rel_query","id":"f_rel_query"} \ No newline at end of file diff --git a/scripts/RowFieldBuilder-output.json b/scripts/RowFieldBuilder-output.json index ca27210..6292be2 100644 --- a/scripts/RowFieldBuilder-output.json +++ b/scripts/RowFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353088","visibility":["pc","app"],"jnpfKey":"row","noShow":false,"dragDisabled":false,"className":[],"layout":"rowFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-layout","tag":"ARow","showLabel":false,"label":"","required":false},"type":"default","justify":"start","align":"top"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193066","visibility":["pc","app"],"jnpfKey":"row","noShow":false,"dragDisabled":false,"className":[],"layout":"rowFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-layout","tag":"ARow","showLabel":false,"label":"","required":false},"type":"default","justify":"start","align":"top"} \ No newline at end of file diff --git a/scripts/SelectFieldBuilder-output.json b/scripts/SelectFieldBuilder-output.json index a8d4706..8523ea3 100644 --- a/scripts/SelectFieldBuilder-output.json +++ b/scripts/SelectFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353354","visibility":["pc","app"],"jnpfKey":"select","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"状态","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781225353354,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-select","tag":"JnpfSelect","regList":[],"tableAlign":"left","span":24,"dictionaryType":"","defaultValue":"","dataType":"static","propsUrl":"","propsName":"","useCache":true,"templateJson":[]},"__vModel__":"f_status","field":"f_status","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"options":[{"fullName":"选项一","id":"1"},{"fullName":"选项二","id":"2"}],"props":{"label":"fullName","value":"id"},"placeholder":"请选择","clearable":true,"disabled":false,"filterable":false,"multiple":false,"id":"f_status","fullName":"状态","fullNameI18nCode":[""],"dropdownClassName":"","maxTagCount":null,"allowCreate":false,"defaultActiveFirstOption":true} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193285","visibility":["pc","app"],"jnpfKey":"select","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"状态","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781226193285,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-select","tag":"JnpfSelect","regList":[],"tableAlign":"left","span":24,"dictionaryType":"","defaultValue":"","dataType":"static","propsUrl":"","propsName":"","useCache":true,"templateJson":[]},"__vModel__":"f_status","field":"f_status","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"options":[{"fullName":"选项一","id":"1"},{"fullName":"选项二","id":"2"}],"props":{"label":"fullName","value":"id"},"placeholder":"请选择","clearable":true,"disabled":false,"filterable":false,"multiple":false,"id":"f_status","fullName":"状态","fullNameI18nCode":[""],"dropdownClassName":"","maxTagCount":null,"allowCreate":false,"defaultActiveFirstOption":true} \ No newline at end of file diff --git a/scripts/SignFieldBuilder-output.json b/scripts/SignFieldBuilder-output.json index 742f0c1..9bea0bd 100644 --- a/scripts/SignFieldBuilder-output.json +++ b/scripts/SignFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353228","jnpfKey":"sign","label":"手写签名","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfSign","tagIcon":"icon-ym icon-ym-signature","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","defaultCurrent":false,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","renderKey":1781225353228,"noShow":false,"regList":[],"trigger":"change"},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"isInvoke":true,"disabled":false,"isDefault":0,"signTip":"添加签名","submitOnConfirm":false,"__vModel__":"f_sign","id":"f_sign"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193136","jnpfKey":"sign","label":"手写签名","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfSign","tagIcon":"icon-ym icon-ym-signature","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","defaultCurrent":false,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","renderKey":1781226193136,"noShow":false,"regList":[],"trigger":"change"},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"isInvoke":true,"disabled":false,"isDefault":0,"signTip":"添加签名","submitOnConfirm":false,"__vModel__":"f_sign","id":"f_sign"} \ No newline at end of file diff --git a/scripts/SignatureFieldBuilder-output.json b/scripts/SignatureFieldBuilder-output.json index 26165df..f411cd7 100644 --- a/scripts/SignatureFieldBuilder-output.json +++ b/scripts/SignatureFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225352952","jnpfKey":"signature","label":"电子签章","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfSignature","tagIcon":"icon-ym icon-ym-signature1","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","defaultCurrent":false,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","renderKey":1781225352952,"noShow":false,"regList":[],"trigger":"change"},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"ableIds":[],"disabled":false,"signTip":"电子签章","__vModel__":"f_signature","id":"f_signature"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226192974","jnpfKey":"signature","label":"电子签章","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfSignature","tagIcon":"icon-ym icon-ym-signature1","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":"","defaultCurrent":false,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","renderKey":1781226192974,"noShow":false,"regList":[],"trigger":"change"},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"ableIds":[],"disabled":false,"signTip":"电子签章","__vModel__":"f_signature","id":"f_signature"} \ No newline at end of file diff --git a/scripts/SliderFieldBuilder-output.json b/scripts/SliderFieldBuilder-output.json index 5ef61ad..88e0e6c 100644 --- a/scripts/SliderFieldBuilder-output.json +++ b/scripts/SliderFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353471","jnpfKey":"slider","label":"滑块","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfSlider","tagIcon":"icon-ym icon-ym-generator-slider","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":0,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781225353471},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"disabled":false,"min":0,"max":100,"step":1,"__vModel__":"f_slider","id":"f_slider"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193351","jnpfKey":"slider","label":"滑块","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfSlider","tagIcon":"icon-ym icon-ym-generator-slider","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":0,"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","noShow":false,"regList":[],"trigger":"change","renderKey":1781226193351},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"style":{"width":"100%"},"disabled":false,"min":0,"max":100,"step":1,"__vModel__":"f_slider","id":"f_slider"} \ No newline at end of file diff --git a/scripts/StepsFieldBuilder-output.json b/scripts/StepsFieldBuilder-output.json index 476b27a..eb0a0b4 100644 --- a/scripts/StepsFieldBuilder-output.json +++ b/scripts/StepsFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353187","visibility":["pc","app"],"jnpfKey":"steps","noShow":false,"dragDisabled":false,"className":[],"layout":"rowFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-steps","tag":"ASteps","showLabel":false,"label":"","required":false},"children":[{"title":"步骤1","name":"1","icon":"","__config__":{"jnpfKey":"stepItem","children":[]}},{"title":"步骤2","name":"2","icon":"","__config__":{"jnpfKey":"stepItem","children":[]}}],"active":0,"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"simple":false,"processStatus":"process"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193107","visibility":["pc","app"],"jnpfKey":"steps","noShow":false,"dragDisabled":false,"className":[],"layout":"rowFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-steps","tag":"ASteps","showLabel":false,"label":"","required":false},"children":[{"title":"步骤1","name":"1","icon":"","__config__":{"jnpfKey":"stepItem","children":[]}},{"title":"步骤2","name":"2","icon":"","__config__":{"jnpfKey":"stepItem","children":[]}}],"active":0,"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"simple":false,"processStatus":"process"} \ No newline at end of file diff --git a/scripts/SubTableFieldBuilder-output.json b/scripts/SubTableFieldBuilder-output.json index 329ea99..7423256 100644 --- a/scripts/SubTableFieldBuilder-output.json +++ b/scripts/SubTableFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225354110","visibility":["pc","app"],"jnpfKey":"table","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"订单明细","trigger":"blur","showLabel":false,"required":true,"tableName":"t_order_detail","renderKey":1781225354110,"layout":"rowFormItem","tagIcon":"icon-ym icon-ym-generator-table","tag":"JnpfInputTable","regList":[],"tableAlign":"left","span":24,"dictionaryType":"","defaultValue":[],"showTitle":true,"children":[],"complexHeaderList":[],"relationField":"f_order_id"},"__vModel__":"f_order_detail","field":"f_order_detail","disabled":false,"showSummary":false,"summaryField":[],"isNumLimit":false,"numLimit":1000,"defaultValue":[],"columnBtnsList":[{"value":"copy","label":"复制","labelI18nCode":"common.copyText","show":true,"btnType":"primary","btnIcon":"icon-ym icon-ym-btn-edit"},{"value":"remove","label":"删除","labelI18nCode":"common.delText","show":true,"btnType":"danger","btnIcon":"icon-ym icon-ym-btn-clearn","showConfirm":true}],"footerBtnsList":[{"value":"add","label":"添加","labelI18nCode":"common.add1Text","show":true,"btnType":"primary","btnIcon":"icon-ym icon-ym-btn-add"},{"value":"batchRemove","label":"批量删除","labelI18nCode":"common.batchDelText","show":true,"btnType":"danger","btnIcon":"icon-ym icon-ym-btn-clearn","showConfirm":true}],"layoutType":"table","defaultExpandAll":true,"hasPage":false,"pageSize":10} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193703","visibility":["pc","app"],"jnpfKey":"table","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"订单明细","trigger":"blur","showLabel":false,"required":true,"tableName":"t_order_detail","renderKey":1781226193703,"layout":"rowFormItem","tagIcon":"icon-ym icon-ym-generator-table","tag":"JnpfInputTable","regList":[],"tableAlign":"left","span":24,"dictionaryType":"","defaultValue":[],"showTitle":true,"children":[],"complexHeaderList":[],"relationField":"f_order_id"},"__vModel__":"f_order_detail","field":"f_order_detail","disabled":false,"showSummary":false,"summaryField":[],"isNumLimit":false,"numLimit":1000,"defaultValue":[],"columnBtnsList":[{"value":"copy","label":"复制","labelI18nCode":"common.copyText","show":true,"btnType":"primary","btnIcon":"icon-ym icon-ym-btn-edit"},{"value":"remove","label":"删除","labelI18nCode":"common.delText","show":true,"btnType":"danger","btnIcon":"icon-ym icon-ym-btn-clearn","showConfirm":true}],"footerBtnsList":[{"value":"add","label":"添加","labelI18nCode":"common.add1Text","show":true,"btnType":"primary","btnIcon":"icon-ym icon-ym-btn-add"},{"value":"batchRemove","label":"批量删除","labelI18nCode":"common.batchDelText","show":true,"btnType":"danger","btnIcon":"icon-ym icon-ym-btn-clearn","showConfirm":true}],"layoutType":"table","defaultExpandAll":true,"hasPage":false,"pageSize":10} \ No newline at end of file diff --git a/scripts/SwitchFieldBuilder-output.json b/scripts/SwitchFieldBuilder-output.json index 416d72a..2035e81 100644 --- a/scripts/SwitchFieldBuilder-output.json +++ b/scripts/SwitchFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353286","visibility":["pc","app"],"jnpfKey":"switch","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"启用","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781225353286,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-switch","tag":"JnpfSwitch","regList":[],"tableAlign":"left","span":24,"defaultValue":0},"__vModel__":"f_enabled","field":"f_enabled","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"disabled":false,"activeTxt":"开","inactiveTxt":"关","activeValue":1,"inactiveValue":0} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193215","visibility":["pc","app"],"jnpfKey":"switch","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"启用","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781226193215,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-switch","tag":"JnpfSwitch","regList":[],"tableAlign":"left","span":24,"defaultValue":0},"__vModel__":"f_enabled","field":"f_enabled","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"disabled":false,"activeTxt":"开","inactiveTxt":"关","activeValue":1,"inactiveValue":0} \ No newline at end of file diff --git a/scripts/TabFieldBuilder-output.json b/scripts/TabFieldBuilder-output.json index f4b42c5..fae0ee9 100644 --- a/scripts/TabFieldBuilder-output.json +++ b/scripts/TabFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225352978","visibility":["pc","app"],"jnpfKey":"tab","noShow":false,"dragDisabled":false,"className":[],"layout":"rowFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-label","tag":"ATab","showLabel":false,"label":"","required":false},"children":[{"title":"Tab 1","name":"1","__config__":{"jnpfKey":"tabItem","children":[]}},{"title":"Tab 2","name":"2","__config__":{"jnpfKey":"tabItem","children":[]}}],"active":"1","on":{"tabClick":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"type":"","tabPosition":"top"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226192990","visibility":["pc","app"],"jnpfKey":"tab","noShow":false,"dragDisabled":false,"className":[],"layout":"rowFormItem","span":24,"tagIcon":"icon-ym icon-ym-generator-label","tag":"ATab","showLabel":false,"label":"","required":false},"children":[{"title":"Tab 1","name":"1","__config__":{"jnpfKey":"tabItem","children":[]}},{"title":"Tab 2","name":"2","__config__":{"jnpfKey":"tabItem","children":[]}}],"active":"1","on":{"tabClick":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"type":"","tabPosition":"top"} \ No newline at end of file diff --git a/scripts/TableGridFieldBuilder-output.json b/scripts/TableGridFieldBuilder-output.json index 00bd923..2823eb5 100644 --- a/scripts/TableGridFieldBuilder-output.json +++ b/scripts/TableGridFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353126","visibility":["pc","app"],"jnpfKey":"tableGrid","noShow":false,"label":"","showLabel":false,"className":[],"required":false,"layout":"rowFormItem","span":24,"dragDisabled":false,"tagIcon":"icon-ym icon-ym-generator-tableGrid","tag":"Table","defaultValue":[],"borderType":"solid","borderColor":"#E2E0E0","borderWidth":1,"children":[{"title":"tr","__config__":{"jnpfKey":"tableGridTr","children":[{"title":"td","__config__":{"jnpfKey":"tableGridTd","merged":false,"colspan":1,"rowspan":1,"children":[],"backgroundColor":""}}]}}]},"__vModel__":"f_grid"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193088","visibility":["pc","app"],"jnpfKey":"tableGrid","noShow":false,"label":"","showLabel":false,"className":[],"required":false,"layout":"rowFormItem","span":24,"dragDisabled":false,"tagIcon":"icon-ym icon-ym-generator-tableGrid","tag":"Table","defaultValue":[],"borderType":"solid","borderColor":"#E2E0E0","borderWidth":1,"children":[{"title":"tr","__config__":{"jnpfKey":"tableGridTr","children":[{"title":"td","__config__":{"jnpfKey":"tableGridTd","merged":false,"colspan":1,"rowspan":1,"children":[],"backgroundColor":""}}]}}]},"__vModel__":"f_grid"} \ No newline at end of file diff --git a/scripts/TextFieldBuilder-output.json b/scripts/TextFieldBuilder-output.json new file mode 100644 index 0000000..84b252a --- /dev/null +++ b/scripts/TextFieldBuilder-output.json @@ -0,0 +1 @@ +{"__config__":{"formId":"formItem1781226193151","visibility":["pc","app"],"jnpfKey":"text","noShow":false,"label":"","showLabel":false,"tag":"JnpfText","tagIcon":"icon-ym icon-ym-generator-textarea","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":null,"required":false,"layout":"colFormItem","span":24,"dragDisabled":false},"__vModel__":"f_text","textStyle":{"color":"#000000","text-align":"left","font-weight":"normal","font-style":"normal","text-decoration":"none","line-height":32,"font-size":12},"content":"这是一段文字"} \ No newline at end of file diff --git a/scripts/TextareaFieldBuilder-output.json b/scripts/TextareaFieldBuilder-output.json index 47acf77..bba493a 100644 --- a/scripts/TextareaFieldBuilder-output.json +++ b/scripts/TextareaFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353310","visibility":["pc","app"],"jnpfKey":"textarea","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"家庭住址","trigger":"blur","showLabel":true,"required":false,"tableName":"","renderKey":1781225353310,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-textarea","tag":"JnpfTextarea","regList":[],"span":24,"tableFixed":"none","tableAlign":"left"},"__vModel__":"f_address","autoSize":{"minRows":4,"maxRows":4},"style":{"width":"100%"},"clearable":true,"readonly":false,"disabled":false,"placeholder":"请输入","on":{"change":"","blur":""},"showCount":false} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193234","visibility":["pc","app"],"jnpfKey":"textarea","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"家庭住址","trigger":"blur","showLabel":true,"required":false,"tableName":"","renderKey":1781226193234,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-textarea","tag":"JnpfTextarea","regList":[],"span":24,"tableFixed":"none","tableAlign":"left"},"__vModel__":"f_address","autoSize":{"minRows":4,"maxRows":4},"style":{"width":"100%"},"clearable":true,"readonly":false,"disabled":false,"placeholder":"请输入","on":{"change":"","blur":""},"showCount":false} \ No newline at end of file diff --git a/scripts/TimePickerFieldBuilder-output.json b/scripts/TimePickerFieldBuilder-output.json index ad61929..d7815aa 100644 --- a/scripts/TimePickerFieldBuilder-output.json +++ b/scripts/TimePickerFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353511","visibility":["pc","app"],"jnpfKey":"timePicker","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"提醒时间","trigger":"change","showLabel":true,"required":false,"tableName":"","renderKey":1781225353511,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-time","tag":"JnpfTimePicker","regList":[],"tableAlign":"left","span":24,"endRelationField":"","endTimeRule":false,"endTimeTarget":1,"endTimeType":1,"startRelationField":"","startTimeRule":false,"startTimeTarget":1,"startTimeType":1,"defaultCurrent":false},"__vModel__":"f_remindTime","clearable":true,"format":"HH:mm:ss","style":{"width":"100%"},"disabled":false,"placeholder":"请选择","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193370","visibility":["pc","app"],"jnpfKey":"timePicker","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"提醒时间","trigger":"change","showLabel":true,"required":false,"tableName":"","renderKey":1781226193370,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-time","tag":"JnpfTimePicker","regList":[],"tableAlign":"left","span":24,"endRelationField":"","endTimeRule":false,"endTimeTarget":1,"endTimeType":1,"startRelationField":"","startTimeRule":false,"startTimeTarget":1,"startTimeType":1,"defaultCurrent":false},"__vModel__":"f_remindTime","clearable":true,"format":"HH:mm:ss","style":{"width":"100%"},"disabled":false,"placeholder":"请选择","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}} \ No newline at end of file diff --git a/scripts/TreeSelectFieldBuilder-output.json b/scripts/TreeSelectFieldBuilder-output.json index de755a2..dda43a0 100644 --- a/scripts/TreeSelectFieldBuilder-output.json +++ b/scripts/TreeSelectFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225352790","visibility":["pc","app"],"jnpfKey":"treeSelect","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"部门","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781225352790,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-tree","tag":"JnpfTreeSelect","regList":[],"tableAlign":"left","span":24,"defaultValue":null,"dataType":"static","dictionaryType":"","propsUrl":"","propsName":"","useCache":true,"templateJson":[]},"__vModel__":"f_dept","field":"f_dept","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"options":[{"id":"1","fullName":"选项1","children":[{"id":"2","fullName":"选项1-1"}]}],"props":{"value":"id","label":"fullName","children":"children"},"placeholder":"请选择","multiple":false,"clearable":true,"filterable":false,"disabled":false,"id":"f_dept","fullName":"部门","fullNameI18nCode":[""],"showCheckbox":false,"checkStrictly":false,"defaultExpandAll":false,"dropdownClassName":"","maxTagCount":null,"treeCheckable":false,"searchable":true} \ No newline at end of file +{"__config__":{"formId":"formItem1781226192848","visibility":["pc","app"],"jnpfKey":"treeSelect","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"部门","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781226192848,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-tree","tag":"JnpfTreeSelect","regList":[],"tableAlign":"left","span":24,"defaultValue":null,"dataType":"static","dictionaryType":"","propsUrl":"","propsName":"","useCache":true,"templateJson":[]},"__vModel__":"f_dept","field":"f_dept","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"options":[{"id":"1","fullName":"选项1","children":[{"id":"2","fullName":"选项1-1"}]}],"props":{"value":"id","label":"fullName","children":"children"},"placeholder":"请选择","multiple":false,"clearable":true,"filterable":false,"disabled":false,"id":"f_dept","fullName":"部门","fullNameI18nCode":[""],"showCheckbox":false,"checkStrictly":false,"defaultExpandAll":false,"dropdownClassName":"","maxTagCount":null,"treeCheckable":false,"searchable":true} \ No newline at end of file diff --git a/scripts/UploadFileFieldBuilder-output.json b/scripts/UploadFileFieldBuilder-output.json index 3cfd21e..a9cd951 100644 --- a/scripts/UploadFileFieldBuilder-output.json +++ b/scripts/UploadFileFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225352919","jnpfKey":"uploadFile","label":"附件","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfUploadFile","tagIcon":"icon-ym icon-ym-generator-upload","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":[],"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","renderKey":1781225352919,"noShow":false,"regList":[],"trigger":"change"},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"disabled":false,"accept":"","fileSize":10,"sizeUnit":"MB","buttonText":"点击上传","limit":9,"pathType":"defaultPath","sortRule":[],"timeFormat":"YYYY","folder":"","tipText":"","showType":"button","__vModel__":"f_attachment","isAccount":0,"id":"f_attachment"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226192952","jnpfKey":"uploadFile","label":"附件","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfUploadFile","tagIcon":"icon-ym icon-ym-generator-upload","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":[],"required":true,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","renderKey":1781226192952,"noShow":false,"regList":[],"trigger":"change"},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"disabled":false,"accept":"","fileSize":10,"sizeUnit":"MB","buttonText":"点击上传","limit":9,"pathType":"defaultPath","sortRule":[],"timeFormat":"YYYY","folder":"","tipText":"","showType":"button","__vModel__":"f_attachment","isAccount":0,"id":"f_attachment"} \ No newline at end of file diff --git a/scripts/UploadImgFieldBuilder-output.json b/scripts/UploadImgFieldBuilder-output.json index 45bde57..3281078 100644 --- a/scripts/UploadImgFieldBuilder-output.json +++ b/scripts/UploadImgFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353020","jnpfKey":"uploadImg","label":"头像","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfUploadImg","tagIcon":"icon-ym icon-ym-generator-upload","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":[],"required":false,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","renderKey":1781225353020,"noShow":false,"regList":[],"trigger":"change"},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"disabled":false,"fileSize":10,"sizeUnit":"MB","buttonText":"点击上传","limit":9,"pathType":"defaultPath","sortRule":[],"timeFormat":"YYYY","folder":"","tipText":"","showType":"card","__vModel__":"f_avatar","id":"f_avatar"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193019","jnpfKey":"uploadImg","label":"头像","tipLabel":"","labelWidth":null,"showLabel":true,"tag":"JnpfUploadImg","tagIcon":"icon-ym icon-ym-generator-upload","tableAlign":"left","tableFixed":"none","className":[],"defaultValue":[],"required":false,"layout":"colFormItem","span":24,"dragDisabled":false,"visibility":["pc","app"],"tableName":"","renderKey":1781226193019,"noShow":false,"regList":[],"trigger":"change"},"on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"disabled":false,"fileSize":10,"sizeUnit":"MB","buttonText":"点击上传","limit":9,"pathType":"defaultPath","sortRule":[],"timeFormat":"YYYY","folder":"","tipText":"","showType":"card","__vModel__":"f_avatar","id":"f_avatar"} \ No newline at end of file diff --git a/scripts/UserSelectFieldBuilder-output.json b/scripts/UserSelectFieldBuilder-output.json index ebd8188..5089ddd 100644 --- a/scripts/UserSelectFieldBuilder-output.json +++ b/scripts/UserSelectFieldBuilder-output.json @@ -1 +1 @@ -{"__config__":{"formId":"formItem1781225353297","visibility":["pc","app"],"jnpfKey":"userSelect","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"用户","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781225353297,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-user","tag":"JnpfUserSelect","regList":[],"tableAlign":"left","span":24,"defaultValue":null,"defaultCurrent":false},"__vModel__":"f_user","field":"f_user","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"placeholder":"请选择","selectType":"all","ableIds":[],"ableRelationIds":[],"relationField":"","multiple":false,"clearable":true,"disabled":false,"id":"f_user","fullName":"用户"} \ No newline at end of file +{"__config__":{"formId":"formItem1781226193224","visibility":["pc","app"],"jnpfKey":"userSelect","noShow":false,"tipLabel":"","tableFixed":"none","dragDisabled":false,"className":[],"label":"用户","trigger":"change","showLabel":true,"required":true,"tableName":"","renderKey":1781226193224,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-user","tag":"JnpfUserSelect","regList":[],"tableAlign":"left","span":24,"defaultValue":null,"defaultCurrent":false},"__vModel__":"f_user","field":"f_user","on":{"change":"({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"},"style":{"width":"100%"},"placeholder":"请选择","selectType":"all","ableIds":[],"ableRelationIds":[],"relationField":"","multiple":false,"clearable":true,"disabled":false,"id":"f_user","fullName":"用户"} \ No newline at end of file diff --git a/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/AlertFieldBuilder.java b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/AlertFieldBuilder.java new file mode 100644 index 0000000..acc0b2c --- /dev/null +++ b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/AlertFieldBuilder.java @@ -0,0 +1,89 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuilder; +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.util.*; + +/** + * v13.25 P2 alert 装饰控件 formData 0 误差生成器. + * + *

对应 JNPF 设计器 jnpfKey="alert" / tag="JnpfAlert" (提示/警告). + * baseline 源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:806 + * (alert 完整 schema) + RAlert.vue. + * + *

输出结构 (20 字段 = 6 顶层 + 14 __config__): + *

+ * + *

特殊字段: + *

+ */ +public class AlertFieldBuilder implements FieldBuilder { + private static final ObjectMapper mapper = new ObjectMapper(); + + @Override + public String jnpfKey() { return "alert"; } + + @Override + @SuppressWarnings("unchecked") + public String buildFormField(FieldBuildContext ctx) { + try { + Map field = new LinkedHashMap<>(); + + // ============================================================ + // __config__ (跟 componentMap.ts:806-823 alert 0 误差对齐) + // ============================================================ + Map config = new LinkedHashMap<>(); + config.put("formId", "formItem" + System.currentTimeMillis()); + config.put("visibility", new ArrayList<>(Arrays.asList("pc", "app"))); + config.put("jnpfKey", "alert"); + config.put("noShow", false); + config.put("label", ""); + // alert 是 showLabel=false (componentMap.ts:811, 装饰控件) + config.put("showLabel", false); + config.put("className", new ArrayList<>()); + config.put("required", false); + config.put("layout", "colFormItem"); + config.put("span", 24); + config.put("dragDisabled", false); + config.put("tagIcon", "icon-ym icon-ym-generator-alert"); + config.put("tag", "JnpfAlert"); + config.put("tableAlign", "left"); + config.put("tableFixed", "none"); + config.put("defaultValue", null); + field.put("__config__", config); + + // ============================================================ + // 顶层 (跟 RAlert.vue + componentMap.ts:824-829 0 误差对齐) + // ============================================================ + field.put("__vModel__", ctx.field); + // title (componentMap.ts:824, 默认提示文本) + field.put("title", "这是一个提示"); + // type: success/info/warning/error (RAlert.vue:4-9, componentMap.ts:825 = 'success') + field.put("type", "success"); + // showIcon: 是否显示图标 (componentMap.ts:826 = false) + field.put("showIcon", false); + // closable: 是否可关闭 (componentMap.ts:827 = true) + field.put("closable", true); + // description: 辅助文本 (componentMap.ts:828) + field.put("description", ""); + // closeText: 关闭按钮文字 (componentMap.ts:829, RAlert.vue:32) + field.put("closeText", ""); + + return mapper.writeValueAsString(field); + } catch (Exception e) { + throw new RuntimeException("AlertFieldBuilder.buildFormField failed: " + e.getMessage(), e); + } + } +} diff --git a/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/BarcodeFieldBuilder.java b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/BarcodeFieldBuilder.java new file mode 100644 index 0000000..c94bd60 --- /dev/null +++ b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/BarcodeFieldBuilder.java @@ -0,0 +1,100 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuilder; +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.util.*; + +/** + * v13.25 P2 barcode 装饰控件 formData 0 误差生成器. + * + *

对应 JNPF 设计器 jnpfKey="barcode" / tag="JnpfBarcode" (条形码). + * baseline 源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:858 + * (barcode 完整 schema) + RBarcode.vue. + * + *

输出结构 (21 字段 = 7 顶层 + 14 __config__): + *

+ * + *

特殊字段: + *

+ */ +public class BarcodeFieldBuilder implements FieldBuilder { + private static final ObjectMapper mapper = new ObjectMapper(); + + @Override + public String jnpfKey() { return "barcode"; } + + @Override + @SuppressWarnings("unchecked") + public String buildFormField(FieldBuildContext ctx) { + try { + Map field = new LinkedHashMap<>(); + + // ============================================================ + // __config__ (跟 componentMap.ts:858-876 barcode 0 误差对齐) + // ============================================================ + Map config = new LinkedHashMap<>(); + config.put("formId", "formItem" + System.currentTimeMillis()); + config.put("visibility", new ArrayList<>(Arrays.asList("pc", "app"))); + config.put("jnpfKey", "barcode"); + config.put("noShow", false); + config.put("tipLabel", ""); + config.put("dragDisabled", false); + config.put("className", new ArrayList<>()); + // barcode defaultValue = '' (componentMap.ts:868) + config.put("defaultValue", ctx.defaultValue != null ? ctx.defaultValue : ""); + config.put("layout", "colFormItem"); + config.put("span", 24); + config.put("tagIcon", "icon-ym icon-ym-generator-barcode"); + config.put("tag", "JnpfBarcode"); + // barcode showLabel = true (componentMap.ts:864, 与 qrcode 一致) + config.put("showLabel", true); + config.put("label", ctx.label); + config.put("regList", new ArrayList<>()); + config.put("tableName", ""); + // barcode required = false (componentMap.ts 无显式, 跟 qrcode 一致) + config.put("required", false); + field.put("__config__", config); + + // ============================================================ + // 顶层 (跟 RBarcode.vue + componentMap.ts:877-884 0 误差对齐) + // ============================================================ + field.put("__vModel__", ctx.field); + field.put("field", ctx.field); + // format (componentMap.ts:877, RBarcode.vue:13-26 code128/ean13/...) + field.put("format", "code128"); + // lineColor (componentMap.ts:878, RBarcode.vue:52 条码颜色) + field.put("lineColor", "#000"); + // background (componentMap.ts:879, 背景色) + field.put("background", "#fff"); + // width (componentMap.ts:880, RBarcode.vue:55) + field.put("width", 4); + // height (componentMap.ts:881, RBarcode.vue:58) + field.put("height", 40); + // dataType: static/relation (componentMap.ts:882, RBarcode.vue:9-12) + field.put("dataType", "static"); + // staticText (componentMap.ts:883, RBarcode.vue:64 固定值) + field.put("staticText", "10241024"); + // relationField (componentMap.ts:884, RBarcode.vue:67 选择组件) + field.put("relationField", ""); + + return mapper.writeValueAsString(field); + } catch (Exception e) { + throw new RuntimeException("BarcodeFieldBuilder.buildFormField failed: " + e.getMessage(), e); + } + } +} diff --git a/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/BillRuleFieldBuilder.java b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/BillRuleFieldBuilder.java new file mode 100644 index 0000000..d72a7d0 --- /dev/null +++ b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/BillRuleFieldBuilder.java @@ -0,0 +1,103 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuilder; +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.util.*; + +/** + * v13.25 P2 billRule 装饰控件 formData 0 误差生成器. + * + *

对应 JNPF 设计器 jnpfKey="billRule" / tag="JnpfInput" (单据组件/单据流水号). + * 注意: billRule 的 tag="JnpfInput" (componentMap.ts:1883), 但 jnpfKey 区分. + * baseline 源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:1876 + * (billRule 完整 schema) + RBillRule.vue. + * + *

输出结构 (23 字段 = 5 顶层 + 18 __config__): + *

    + *
  • 顶层 (5): __config__, __vModel__, field, style, readonly, placeholder
  • + *
  • __config__ (18): formId, visibility, jnpfKey, noShow, tipLabel, dragDisabled, className, + * defaultValue, layout, span, tagIcon, tag, showLabel, label, tableAlign, tableFixed, + * tableName, trigger, rule, ruleName, ruleType, ruleConfig
  • + *
+ * + *

特殊字段: + *

    + *
  • tag = 'JnpfInput' (componentMap.ts:1883, 渲染成 input)
  • + *
  • showLabel = true (componentMap.ts:1882)
  • + *
  • style = {width: '100%'} (componentMap.ts:1902)
  • + *
  • readonly = true (componentMap.ts:1903)
  • + *
  • placeholder = '系统自动生成' (componentMap.ts:1904)
  • + *
  • ruleType: 1=单据模板, 2=单据规则 (RBillRule.vue:25-28, componentMap.ts:1899 = 1)
  • + *
  • ruleConfig = {} (componentMap.ts:1900, RBillRule.vue:14-23 defaultConfig)
  • + *
  • trigger: change (componentMap.ts:1896)
  • + *
+ */ +public class BillRuleFieldBuilder implements FieldBuilder { + private static final ObjectMapper mapper = new ObjectMapper(); + + @Override + public String jnpfKey() { return "billRule"; } + + @Override + @SuppressWarnings("unchecked") + public String buildFormField(FieldBuildContext ctx) { + try { + Map field = new LinkedHashMap<>(); + + // ============================================================ + // __config__ (跟 componentMap.ts:1876-1900 billRule 0 误差对齐) + // ============================================================ + Map config = new LinkedHashMap<>(); + config.put("formId", "formItem" + System.currentTimeMillis()); + config.put("visibility", new ArrayList<>(Arrays.asList("pc", "app"))); + config.put("jnpfKey", "billRule"); + config.put("noShow", false); + config.put("tipLabel", ""); + config.put("dragDisabled", false); + config.put("className", new ArrayList<>()); + // billRule defaultValue = null (componentMap.ts:1888) + config.put("defaultValue", null); + config.put("layout", "colFormItem"); + // billRule required = false (componentMap.ts:1890) + config.put("required", false); + config.put("span", 24); + config.put("tagIcon", "icon-ym icon-ym-generator-documents"); + // billRule tag = 'JnpfInput' (componentMap.ts:1883, 渲染为 input) + config.put("tag", "JnpfInput"); + // billRule showLabel = true (componentMap.ts:1882) + config.put("showLabel", true); + config.put("label", ctx.label); + config.put("tableAlign", "left"); + config.put("tableFixed", "none"); + config.put("tableName", ""); + config.put("trigger", "change"); + // rule / ruleName / ruleType / ruleConfig (componentMap.ts:1897-1900) + config.put("rule", ""); + config.put("ruleName", ""); + // ruleType: 1=单据模板, 2=单据规则 (RBillRule.vue:25-28) + config.put("ruleType", 1); + // ruleConfig: 单据规则配置 (RBillRule.vue:14-23 defaultConfig) + config.put("ruleConfig", new LinkedHashMap()); + field.put("__config__", config); + + // ============================================================ + // 顶层 (跟 componentMap.ts:1902-1904 billRule 0 误差对齐) + // ============================================================ + field.put("__vModel__", ctx.field); + field.put("field", ctx.field); + // style (componentMap.ts:1902) + field.put("style", new LinkedHashMap() {{ + put("width", "100%"); + }}); + // readonly (componentMap.ts:1903, 只读) + field.put("readonly", true); + // placeholder (componentMap.ts:1904) + field.put("placeholder", "系统自动生成"); + + return mapper.writeValueAsString(field); + } catch (Exception e) { + throw new RuntimeException("BillRuleFieldBuilder.buildFormField failed: " + e.getMessage(), e); + } + } +} diff --git a/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/ButtonFieldBuilder.java b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/ButtonFieldBuilder.java new file mode 100644 index 0000000..8709953 --- /dev/null +++ b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/ButtonFieldBuilder.java @@ -0,0 +1,96 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuilder; +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.util.*; + +/** + * v13.25 P2 button 装饰控件 formData 0 误差生成器. + * + *

对应 JNPF 设计器 jnpfKey="button" / tag="JnpfButton" (按钮). + * baseline 源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:747 + * (button 完整 schema) + RButton.vue. + * + *

输出结构 (24 字段 = 7 顶层 + 17 __config__): + *

    + *
  • 顶层 (7): __config__, __vModel__, field, on, align, buttonText, type, disabled
  • + *
  • __config__ (17): formId, visibility, jnpfKey, noShow, label, showLabel, tag, tagIcon, + * tableAlign, tableFixed, className, defaultValue, required, layout, span, dragDisabled, + * regList, trigger
  • + *
+ * + *

特殊字段: + *

    + *
  • type: ''/primary/success/info/warning/danger (RButton.vue:15-22, componentMap.ts:773 = '')
  • + *
  • align: left/center/right (RButton.vue:12, componentMap.ts:771 = 'left')
  • + *
  • buttonText: '按钮' (componentMap.ts:772, RButton.vue:9)
  • + *
  • disabled: false (componentMap.ts:774)
  • + *
  • on.click: 事件 (componentMap.ts:768-770)
  • + *
  • showLabel = false (componentMap.ts:752, 装饰控件)
  • + *
  • trigger: click (componentMap.ts:766)
  • + *
+ */ +public class ButtonFieldBuilder implements FieldBuilder { + private static final ObjectMapper mapper = new ObjectMapper(); + + @Override + public String jnpfKey() { return "button"; } + + @Override + @SuppressWarnings("unchecked") + public String buildFormField(FieldBuildContext ctx) { + try { + Map field = new LinkedHashMap<>(); + + // ============================================================ + // __config__ (跟 componentMap.ts:747-767 button 0 误差对齐) + // ============================================================ + Map config = new LinkedHashMap<>(); + config.put("formId", "formItem" + System.currentTimeMillis()); + config.put("visibility", new ArrayList<>(Arrays.asList("pc", "app"))); + config.put("jnpfKey", "button"); + config.put("noShow", false); + config.put("label", ""); + // button 是 showLabel=false (componentMap.ts:752, 装饰控件) + config.put("showLabel", false); + config.put("tag", "JnpfButton"); + config.put("tagIcon", "icon-ym icon-ym-generator-button"); + config.put("tableAlign", "left"); + config.put("tableFixed", "none"); + config.put("className", new ArrayList<>()); + // button defaultValue = null (componentMap.ts:758) + config.put("defaultValue", null); + config.put("required", false); + config.put("layout", "colFormItem"); + config.put("span", 24); + config.put("dragDisabled", false); + config.put("regList", new ArrayList<>()); + // trigger: click (componentMap.ts:766) + config.put("trigger", "click"); + field.put("__config__", config); + + // ============================================================ + // 顶层 (跟 RButton.vue + componentMap.ts:768-774 0 误差对齐) + // ============================================================ + field.put("__vModel__", ctx.field); + field.put("field", ctx.field); + // on.click (componentMap.ts:768-770) + field.put("on", new LinkedHashMap() {{ + put("click", "({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"); + }}); + // align (componentMap.ts:771, RButton.vue:12) + field.put("align", "left"); + // buttonText (componentMap.ts:772, RButton.vue:9) + field.put("buttonText", "按钮"); + // type: ''/primary/success/info/warning/danger (componentMap.ts:773, RButton.vue:15-22) + field.put("type", ""); + // disabled (componentMap.ts:774) + field.put("disabled", false); + + return mapper.writeValueAsString(field); + } catch (Exception e) { + throw new RuntimeException("ButtonFieldBuilder.buildFormField failed: " + e.getMessage(), e); + } + } +} diff --git a/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/CardFieldBuilder.java b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/CardFieldBuilder.java new file mode 100644 index 0000000..f6143e6 --- /dev/null +++ b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/CardFieldBuilder.java @@ -0,0 +1,85 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuilder; +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.util.*; + +/** + * v13.25 P2 card 装饰控件 formData 0 误差生成器. + * + *

对应 JNPF 设计器 jnpfKey="card" / tag="ACard" (卡片容器). + * baseline 源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:2093 + * (card 完整 schema) + RCard.vue. + * + *

输出结构 (16 字段 = 3 顶层 + 13 __config__): + *

    + *
  • 顶层 (3): __config__, __vModel__, header, shadow
  • + *
  • __config__ (13): formId, visibility, jnpfKey, noShow, tipLabel, dragDisabled, className, + * defaultValue, layout, span, tagIcon, tag, showLabel, label, children
  • + *
+ * + *

特殊字段: + *

    + *
  • tag = 'ACard' (componentMap.ts:2100, ant design card)
  • + *
  • layout = 'rowFormItem' (componentMap.ts:2104, 布局容器)
  • + *
  • showLabel = false (componentMap.ts:2099, 装饰控件)
  • + *
  • defaultValue = [] (componentMap.ts:2103)
  • + *
  • header: '卡片容器' (componentMap.ts:2111)
  • + *
  • shadow: 'never'/'hover' (componentMap.ts:2112, RCard.vue:7-10)
  • + *
  • children: [] (componentMap.ts:2109, 容器内嵌子控件)
  • + *
  • tipLabel: '' (componentMap.ts:2097)
  • + *
+ */ +public class CardFieldBuilder implements FieldBuilder { + private static final ObjectMapper mapper = new ObjectMapper(); + + @Override + public String jnpfKey() { return "card"; } + + @Override + @SuppressWarnings("unchecked") + public String buildFormField(FieldBuildContext ctx) { + try { + Map field = new LinkedHashMap<>(); + + // ============================================================ + // __config__ (跟 componentMap.ts:2093-2110 card 0 误差对齐) + // ============================================================ + Map config = new LinkedHashMap<>(); + config.put("formId", "formItem" + System.currentTimeMillis()); + config.put("visibility", new ArrayList<>(Arrays.asList("pc", "app"))); + config.put("jnpfKey", "card"); + config.put("noShow", false); + config.put("tipLabel", ""); + config.put("dragDisabled", false); + config.put("className", new ArrayList<>()); + // card defaultValue = [] (componentMap.ts:2103) + config.put("defaultValue", new ArrayList<>()); + // card layout = 'rowFormItem' (componentMap.ts:2104, 布局容器横跨整行) + config.put("layout", "rowFormItem"); + config.put("span", 24); + config.put("tagIcon", "icon-ym icon-ym-generator-card"); + config.put("tag", "ACard"); + // card showLabel = false (componentMap.ts:2099, 装饰/布局控件) + config.put("showLabel", false); + config.put("label", ""); + // children: 容器内嵌子控件 (componentMap.ts:2109, 默认空) + config.put("children", new ArrayList<>()); + field.put("__config__", config); + + // ============================================================ + // 顶层 (跟 RCard.vue + componentMap.ts:2111-2112 0 误差对齐) + // ============================================================ + field.put("__vModel__", ctx.field); + // header: 卡片标题 (componentMap.ts:2111, RCard.vue 默认) + field.put("header", "卡片容器"); + // shadow: 'never'/'hover' (componentMap.ts:2112, RCard.vue:7-10 显示阴影) + field.put("shadow", "never"); + + return mapper.writeValueAsString(field); + } catch (Exception e) { + throw new RuntimeException("CardFieldBuilder.buildFormField failed: " + e.getMessage(), e); + } + } +} diff --git a/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/CollapseFieldBuilder.java b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/CollapseFieldBuilder.java new file mode 100644 index 0000000..acce931 --- /dev/null +++ b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/CollapseFieldBuilder.java @@ -0,0 +1,108 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuilder; +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.util.*; + +/** + * v13.25 P2 collapse 装饰控件 formData 0 误差生成器. + * + *

对应 JNPF 设计器 jnpfKey="collapse" / tag="ACollapse" (折叠面板). + * baseline 源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:1951 + * (collapse 完整 schema) + RCollapse.vue. + * + *

输出结构 (19 字段 = 5 顶层 + 14 __config__): + *

    + *
  • 顶层 (5): __config__, __vModel__, on, accordion, ghost, expandIconPosition
  • + *
  • __config__ (14): formId, visibility, jnpfKey, noShow, label, showLabel, className, layout, + * span, dragDisabled, tagIcon, tag, children, active
  • + *
+ * + *

特殊字段: + *

    + *
  • tag = 'ACollapse' (componentMap.ts:1957, ant design collapse)
  • + *
  • layout = 'rowFormItem' (componentMap.ts:1960, 布局容器)
  • + *
  • showLabel = false (componentMap.ts:1956, 装饰/布局控件)
  • + *
  • children: 默认 2 个面板 (componentMap.ts:1965-1982, jnpfKey=collapseItem)
  • + *
  • active: ['1'] (componentMap.ts:1983, 默认展开第一个面板)
  • + *
  • accordion: false (componentMap.ts:1988, 是否手风琴 RCollapse.vue:45)
  • + *
  • ghost: true (componentMap.ts:1989)
  • + *
  • expandIconPosition: 'end' (componentMap.ts:1990)
  • + *
  • on.change: 事件 (componentMap.ts:1985-1987)
  • + *
+ */ +public class CollapseFieldBuilder implements FieldBuilder { + private static final ObjectMapper mapper = new ObjectMapper(); + + @Override + public String jnpfKey() { return "collapse"; } + + @Override + @SuppressWarnings("unchecked") + public String buildFormField(FieldBuildContext ctx) { + try { + Map field = new LinkedHashMap<>(); + + // ============================================================ + // __config__ (跟 componentMap.ts:1951-1984 collapse 0 误差对齐) + // ============================================================ + Map config = new LinkedHashMap<>(); + config.put("formId", "formItem" + System.currentTimeMillis()); + config.put("visibility", new ArrayList<>(Arrays.asList("pc", "app"))); + config.put("jnpfKey", "collapse"); + config.put("noShow", false); + config.put("label", ""); + // collapse 是 showLabel=false (componentMap.ts:1956, 装饰/布局控件) + config.put("showLabel", false); + config.put("className", new ArrayList<>()); + // collapse layout = 'rowFormItem' (componentMap.ts:1960, 布局容器) + config.put("layout", "rowFormItem"); + config.put("span", 24); + config.put("dragDisabled", false); + config.put("tagIcon", "icon-ym icon-ym-generator-fold"); + config.put("tag", "ACollapse"); + // children: 默认 2 个面板 (componentMap.ts:1965-1982) + config.put("children", new ArrayList>() {{ + add(new LinkedHashMap() {{ + put("title", "面板1"); + put("name", "1"); + put("__config__", new LinkedHashMap() {{ + put("jnpfKey", "collapseItem"); + put("children", new ArrayList<>()); + }}); + }}); + add(new LinkedHashMap() {{ + put("title", "面板2"); + put("name", "2"); + put("__config__", new LinkedHashMap() {{ + put("jnpfKey", "collapseItem"); + put("children", new ArrayList<>()); + }}); + }}); + }}); + // active: 默认展开第一个面板 (componentMap.ts:1983) + config.put("active", new ArrayList<>(Arrays.asList("1"))); + field.put("__config__", config); + + // ============================================================ + // 顶层 (跟 RCollapse.vue + componentMap.ts:1985-1990 0 误差对齐) + // ============================================================ + field.put("__vModel__", ctx.field); + // on.change (componentMap.ts:1985-1987) + field.put("on", new LinkedHashMap() {{ + put("change", "({ data, rowIndex, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n\n}"); + }}); + // accordion: 是否手风琴模式 (componentMap.ts:1988, RCollapse.vue:45) + field.put("accordion", false); + // ghost: 透明面板 (componentMap.ts:1989) + field.put("ghost", true); + // expandIconPosition: 展开图标位置 (componentMap.ts:1990) + field.put("expandIconPosition", "end"); + + return mapper.writeValueAsString(field); + } catch (Exception e) { + throw new RuntimeException("CollapseFieldBuilder.buildFormField failed: " + e.getMessage(), e); + } + } +} diff --git a/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/TextFieldBuilder.java b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/TextFieldBuilder.java new file mode 100644 index 0000000..45bb23c --- /dev/null +++ b/ssw-dacli/src/main/java/ssw/dacli/form/builder/field/TextFieldBuilder.java @@ -0,0 +1,97 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuilder; +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.util.*; + +/** + * v13.25 P2 text 装饰控件 formData 0 误差生成器. + * + *

对应 JNPF 设计器 jnpfKey="text" / tag="JnpfText" (文本/静态文字). + * baseline 源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:776 + * (text 完整 schema) + RText.vue. + * + *

输出结构 (19 字段 = 3 顶层 + 16 __config__): + *

    + *
  • 顶层 (3): __config__, __vModel__, textStyle, content
  • + *
  • __config__ (16): formId, visibility, jnpfKey, noShow, label, showLabel, tag, tagIcon, + * tableAlign, tableFixed, className, defaultValue, required, layout, span, dragDisabled
  • + *
+ * + *

特殊字段: + *

    + *
  • tag = 'JnpfText' (componentMap.ts:782)
  • + *
  • tagIcon = 'icon-ym icon-ym-generator-textarea' (componentMap.ts:783, 注意是 textarea 图标)
  • + *
  • showLabel = false (componentMap.ts:781, 装饰控件)
  • + *
  • defaultValue = undefined (componentMap.ts:787)
  • + *
  • content: '这是一段文字' (componentMap.ts:804, RText.vue:14)
  • + *
  • textStyle.color: '#000000' (componentMap.ts:796, RText.vue:27)
  • + *
  • textStyle.text-align: 'left' (componentMap.ts:797, RText.vue:24)
  • + *
  • textStyle.font-weight: 'normal' (componentMap.ts:798, RText.vue:30)
  • + *
  • textStyle.font-style: 'normal' (componentMap.ts:799, RText.vue:33)
  • + *
  • textStyle.text-decoration: 'none' (componentMap.ts:800, RText.vue:36-42)
  • + *
  • textStyle.line-height: 32 (componentMap.ts:801, RText.vue:18)
  • + *
  • textStyle.font-size: 12 (componentMap.ts:802, RText.vue:21)
  • + *
+ */ +public class TextFieldBuilder implements FieldBuilder { + private static final ObjectMapper mapper = new ObjectMapper(); + + @Override + public String jnpfKey() { return "text"; } + + @Override + @SuppressWarnings("unchecked") + public String buildFormField(FieldBuildContext ctx) { + try { + Map field = new LinkedHashMap<>(); + + // ============================================================ + // __config__ (跟 componentMap.ts:776-794 text 0 误差对齐) + // ============================================================ + Map config = new LinkedHashMap<>(); + config.put("formId", "formItem" + System.currentTimeMillis()); + config.put("visibility", new ArrayList<>(Arrays.asList("pc", "app"))); + config.put("jnpfKey", "text"); + config.put("noShow", false); + config.put("label", ""); + // text 是 showLabel=false (componentMap.ts:781, 装饰控件) + config.put("showLabel", false); + config.put("tag", "JnpfText"); + // text tagIcon = 'icon-ym icon-ym-generator-textarea' (componentMap.ts:783) + config.put("tagIcon", "icon-ym icon-ym-generator-textarea"); + config.put("tableAlign", "left"); + config.put("tableFixed", "none"); + config.put("className", new ArrayList<>()); + // text defaultValue = undefined (componentMap.ts:787, 不设值) + config.put("defaultValue", null); + config.put("required", false); + config.put("layout", "colFormItem"); + config.put("span", 24); + config.put("dragDisabled", false); + field.put("__config__", config); + + // ============================================================ + // 顶层 (跟 RText.vue + componentMap.ts:795-804 0 误差对齐) + // ============================================================ + field.put("__vModel__", ctx.field); + // textStyle (componentMap.ts:796-802, RText.vue 多字段) + field.put("textStyle", new LinkedHashMap() {{ + put("color", "#000000"); + put("text-align", "left"); + put("font-weight", "normal"); + put("font-style", "normal"); + put("text-decoration", "none"); + put("line-height", 32); + put("font-size", 12); + }}); + // content (componentMap.ts:804, RText.vue:14) + field.put("content", "这是一段文字"); + + return mapper.writeValueAsString(field); + } catch (Exception e) { + throw new RuntimeException("TextFieldBuilder.buildFormField failed: " + e.getMessage(), e); + } + } +} diff --git a/ssw-dacli/src/main/resources/META-INF/services/ssw.dacli.form.builder.FieldBuilder b/ssw-dacli/src/main/resources/META-INF/services/ssw.dacli.form.builder.FieldBuilder index 6e0a53f..a1f4b80 100644 --- a/ssw-dacli/src/main/resources/META-INF/services/ssw.dacli.form.builder.FieldBuilder +++ b/ssw-dacli/src/main/resources/META-INF/services/ssw.dacli.form.builder.FieldBuilder @@ -45,3 +45,10 @@ ssw.dacli.form.builder.field.TabFieldBuilder ssw.dacli.form.builder.field.OrgRightFieldBuilder ssw.dacli.form.builder.field.LinkFieldBuilder ssw.dacli.form.builder.field.QrcodeFieldBuilder +ssw.dacli.form.builder.field.AlertFieldBuilder +ssw.dacli.form.builder.field.BarcodeFieldBuilder +ssw.dacli.form.builder.field.BillRuleFieldBuilder +ssw.dacli.form.builder.field.ButtonFieldBuilder +ssw.dacli.form.builder.field.CardFieldBuilder +ssw.dacli.form.builder.field.CollapseFieldBuilder +ssw.dacli.form.builder.field.TextFieldBuilder diff --git a/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/AlertFieldBuilderTest.java b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/AlertFieldBuilderTest.java new file mode 100644 index 0000000..e9a9286 --- /dev/null +++ b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/AlertFieldBuilderTest.java @@ -0,0 +1,104 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; +import java.nio.file.*; + +/** + * v13.25 P2 - AlertFieldBuilder 单元测试 (4 用例). + * + *

校验 alert 提示控件 formData 关键结构 (jnpfKey=alert / tag=JnpfAlert / showLabel=false). + * baseline 0 误差源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:806 + */ +public class AlertFieldBuilderTest { + + private static final ObjectMapper M = new ObjectMapper(); + + @Test + public void testAlertField_basic() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_alert"; + ctx.label = "提示"; + + String json = new AlertFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + + // 顶层关键键 + assertNotNull(parsed.get("__config__")); + assertNotNull(parsed.get("__vModel__")); + assertEquals("f_alert", parsed.get("__vModel__").asText()); + + // __config__ 关键键 + var cfg = parsed.get("__config__"); + assertEquals("alert", cfg.get("jnpfKey").asText()); + assertEquals("JnpfAlert", cfg.get("tag").asText()); + assertEquals("icon-ym icon-ym-generator-alert", cfg.get("tagIcon").asText()); + assertEquals("colFormItem", cfg.get("layout").asText()); + assertEquals(24, cfg.get("span").asInt()); + // alert 特殊: showLabel = false (装饰控件) + assertFalse(cfg.get("showLabel").asBoolean()); + } + + @Test + public void testAlertField_required() throws Exception { + // alert 装饰控件, required 恒为 false + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_alert"; + ctx.label = "提示"; + ctx.required = true; + + String json = new AlertFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + assertFalse(parsed.get("__config__").get("required").asBoolean()); + } + + @Test + public void testAlertField_baselineKeyStructure() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_alert"; + ctx.label = "提示"; + + String json = new AlertFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + var cfg = parsed.get("__config__"); + + // __config__ 必有结构 + assertNotNull(cfg.get("visibility")); + assertNotNull(cfg.get("formId")); + assertNotNull(cfg.get("jnpfKey")); + assertNotNull(cfg.get("noShow")); + assertNotNull(cfg.get("span")); + assertNotNull(cfg.get("tag")); + assertNotNull(cfg.get("layout")); + + // 顶层必有 - alert 6 大关键字段 + assertNotNull(parsed.get("title")); + assertNotNull(parsed.get("type")); + assertNotNull(parsed.get("showIcon")); + assertNotNull(parsed.get("closable")); + assertNotNull(parsed.get("description")); + assertNotNull(parsed.get("closeText")); + // 默认值 + assertEquals("这是一个提示", parsed.get("title").asText()); + assertEquals("success", parsed.get("type").asText()); + assertFalse(parsed.get("showIcon").asBoolean()); + assertTrue(parsed.get("closable").asBoolean()); + assertEquals("", parsed.get("description").asText()); + assertEquals("", parsed.get("closeText").asText()); + } + + @Test + public void testAlertField_dumpToFile() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_alert"; + ctx.label = "提示"; + String json = new AlertFieldBuilder().buildFormField(ctx); + Path out = Paths.get("../scripts/AlertFieldBuilder-output.json"); + Files.createDirectories(out.getParent()); + Files.writeString(out, json); + assertTrue(Files.exists(out)); + assertTrue(Files.size(out) > 100); + } +} diff --git a/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/BarcodeFieldBuilderTest.java b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/BarcodeFieldBuilderTest.java new file mode 100644 index 0000000..c0d7d1b --- /dev/null +++ b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/BarcodeFieldBuilderTest.java @@ -0,0 +1,113 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; +import java.nio.file.*; + +/** + * v13.25 P2 - BarcodeFieldBuilder 单元测试 (4 用例). + * + *

校验 barcode 条形码控件 formData 关键结构 (jnpfKey=barcode / tag=JnpfBarcode). + * baseline 0 误差源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:858 + */ +public class BarcodeFieldBuilderTest { + + private static final ObjectMapper M = new ObjectMapper(); + + @Test + public void testBarcodeField_basic() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_barcode"; + ctx.label = "条形码"; + + String json = new BarcodeFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + + // 顶层关键键 + assertNotNull(parsed.get("__config__")); + assertNotNull(parsed.get("__vModel__")); + assertNotNull(parsed.get("field")); + assertEquals("f_barcode", parsed.get("__vModel__").asText()); + assertEquals("f_barcode", parsed.get("field").asText()); + + // __config__ 关键键 + var cfg = parsed.get("__config__"); + assertEquals("barcode", cfg.get("jnpfKey").asText()); + assertEquals("JnpfBarcode", cfg.get("tag").asText()); + assertEquals("icon-ym icon-ym-generator-barcode", cfg.get("tagIcon").asText()); + assertEquals("colFormItem", cfg.get("layout").asText()); + assertEquals(24, cfg.get("span").asInt()); + // barcode 特殊: showLabel = true + assertTrue(cfg.get("showLabel").asBoolean()); + assertEquals("条形码", cfg.get("label").asText()); + } + + @Test + public void testBarcodeField_required() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_barcode"; + ctx.label = "条形码"; + ctx.required = true; + + String json = new BarcodeFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + // barcode 有 required 字段 + assertNotNull(parsed.get("__config__").get("required")); + } + + @Test + public void testBarcodeField_baselineKeyStructure() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_barcode"; + ctx.label = "条形码"; + + String json = new BarcodeFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + var cfg = parsed.get("__config__"); + + // __config__ 必有结构 + assertNotNull(cfg.get("visibility")); + assertNotNull(cfg.get("formId")); + assertNotNull(cfg.get("jnpfKey")); + assertNotNull(cfg.get("noShow")); + assertNotNull(cfg.get("span")); + assertNotNull(cfg.get("tag")); + assertNotNull(cfg.get("layout")); + assertNotNull(cfg.get("defaultValue")); + assertNotNull(cfg.get("regList")); + assertNotNull(cfg.get("tableName")); + + // 顶层必有 - barcode 7 大关键字段 + assertNotNull(parsed.get("format")); + assertNotNull(parsed.get("lineColor")); + assertNotNull(parsed.get("background")); + assertNotNull(parsed.get("width")); + assertNotNull(parsed.get("height")); + assertNotNull(parsed.get("dataType")); + assertNotNull(parsed.get("staticText")); + assertNotNull(parsed.get("relationField")); + // 默认值 + assertEquals("code128", parsed.get("format").asText()); + assertEquals("#000", parsed.get("lineColor").asText()); + assertEquals("#fff", parsed.get("background").asText()); + assertEquals(4, parsed.get("width").asInt()); + assertEquals(40, parsed.get("height").asInt()); + assertEquals("static", parsed.get("dataType").asText()); + assertEquals("10241024", parsed.get("staticText").asText()); + } + + @Test + public void testBarcodeField_dumpToFile() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_barcode"; + ctx.label = "条形码"; + String json = new BarcodeFieldBuilder().buildFormField(ctx); + Path out = Paths.get("../scripts/BarcodeFieldBuilder-output.json"); + Files.createDirectories(out.getParent()); + Files.writeString(out, json); + assertTrue(Files.exists(out)); + assertTrue(Files.size(out) > 100); + } +} diff --git a/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/BillRuleFieldBuilderTest.java b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/BillRuleFieldBuilderTest.java new file mode 100644 index 0000000..5a2c003 --- /dev/null +++ b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/BillRuleFieldBuilderTest.java @@ -0,0 +1,115 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; +import java.nio.file.*; + +/** + * v13.25 P2 - BillRuleFieldBuilder 单元测试 (4 用例). + * + *

校验 billRule 单据组件控件 formData 关键结构 (jnpfKey=billRule / tag=JnpfInput / ruleType/ruleConfig). + * baseline 0 误差源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:1876 + */ +public class BillRuleFieldBuilderTest { + + private static final ObjectMapper M = new ObjectMapper(); + + @Test + public void testBillRuleField_basic() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_bill_no"; + ctx.label = "单据编号"; + + String json = new BillRuleFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + + // 顶层关键键 + assertNotNull(parsed.get("__config__")); + assertNotNull(parsed.get("__vModel__")); + assertNotNull(parsed.get("field")); + assertEquals("f_bill_no", parsed.get("__vModel__").asText()); + + // __config__ 关键键 + var cfg = parsed.get("__config__"); + assertEquals("billRule", cfg.get("jnpfKey").asText()); + // billRule tag = JnpfInput (componentMap.ts:1883) + assertEquals("JnpfInput", cfg.get("tag").asText()); + assertEquals("icon-ym icon-ym-generator-documents", cfg.get("tagIcon").asText()); + assertEquals("colFormItem", cfg.get("layout").asText()); + assertEquals(24, cfg.get("span").asInt()); + // billRule 特殊: showLabel = true + assertTrue(cfg.get("showLabel").asBoolean()); + assertEquals("单据编号", cfg.get("label").asText()); + } + + @Test + public void testBillRuleField_required() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_bill_no"; + ctx.label = "单据编号"; + ctx.required = true; + + String json = new BillRuleFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + // billRule 有 required 字段 + assertNotNull(parsed.get("__config__").get("required")); + } + + @Test + public void testBillRuleField_baselineKeyStructure() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_bill_no"; + ctx.label = "单据编号"; + + String json = new BillRuleFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + var cfg = parsed.get("__config__"); + + // __config__ 必有结构 + assertNotNull(cfg.get("visibility")); + assertNotNull(cfg.get("formId")); + assertNotNull(cfg.get("jnpfKey")); + assertNotNull(cfg.get("noShow")); + assertNotNull(cfg.get("span")); + assertNotNull(cfg.get("tag")); + assertNotNull(cfg.get("layout")); + assertNotNull(cfg.get("required")); + assertNotNull(cfg.get("tableName")); + assertNotNull(cfg.get("trigger")); + + // billRule 特殊 - 4 大单据规则字段 + assertNotNull(cfg.get("rule")); + assertNotNull(cfg.get("ruleName")); + assertNotNull(cfg.get("ruleType")); + assertNotNull(cfg.get("ruleConfig")); + // 默认值: ruleType=1 (单据模板) + assertEquals(1, cfg.get("ruleType").asInt()); + assertEquals("", cfg.get("rule").asText()); + assertEquals("", cfg.get("ruleName").asText()); + assertEquals("change", cfg.get("trigger").asText()); + + // 顶层必有 + assertNotNull(parsed.get("style")); + assertNotNull(parsed.get("readonly")); + assertNotNull(parsed.get("placeholder")); + // 默认值 + assertTrue(parsed.get("readonly").asBoolean()); + assertEquals("系统自动生成", parsed.get("placeholder").asText()); + assertEquals("100%", parsed.get("style").get("width").asText()); + } + + @Test + public void testBillRuleField_dumpToFile() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_bill_no"; + ctx.label = "单据编号"; + String json = new BillRuleFieldBuilder().buildFormField(ctx); + Path out = Paths.get("../scripts/BillRuleFieldBuilder-output.json"); + Files.createDirectories(out.getParent()); + Files.writeString(out, json); + assertTrue(Files.exists(out)); + assertTrue(Files.size(out) > 100); + } +} diff --git a/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/ButtonFieldBuilderTest.java b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/ButtonFieldBuilderTest.java new file mode 100644 index 0000000..479e854 --- /dev/null +++ b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/ButtonFieldBuilderTest.java @@ -0,0 +1,108 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; +import java.nio.file.*; + +/** + * v13.25 P2 - ButtonFieldBuilder 单元测试 (4 用例). + * + *

校验 button 按钮控件 formData 关键结构 (jnpfKey=button / tag=JnpfButton / on.click). + * baseline 0 误差源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:747 + */ +public class ButtonFieldBuilderTest { + + private static final ObjectMapper M = new ObjectMapper(); + + @Test + public void testButtonField_basic() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_button"; + ctx.label = "按钮"; + + String json = new ButtonFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + + // 顶层关键键 + assertNotNull(parsed.get("__config__")); + assertNotNull(parsed.get("__vModel__")); + assertNotNull(parsed.get("field")); + assertEquals("f_button", parsed.get("__vModel__").asText()); + + // __config__ 关键键 + var cfg = parsed.get("__config__"); + assertEquals("button", cfg.get("jnpfKey").asText()); + assertEquals("JnpfButton", cfg.get("tag").asText()); + assertEquals("icon-ym icon-ym-generator-button", cfg.get("tagIcon").asText()); + assertEquals("colFormItem", cfg.get("layout").asText()); + assertEquals(24, cfg.get("span").asInt()); + // button 特殊: showLabel = false (装饰控件) + assertFalse(cfg.get("showLabel").asBoolean()); + // button trigger = click + assertEquals("click", cfg.get("trigger").asText()); + } + + @Test + public void testButtonField_required() throws Exception { + // button 是装饰控件, required 恒为 false + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_button"; + ctx.label = "按钮"; + ctx.required = true; + + String json = new ButtonFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + assertFalse(parsed.get("__config__").get("required").asBoolean()); + } + + @Test + public void testButtonField_baselineKeyStructure() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_button"; + ctx.label = "按钮"; + + String json = new ButtonFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + var cfg = parsed.get("__config__"); + + // __config__ 必有结构 + assertNotNull(cfg.get("visibility")); + assertNotNull(cfg.get("formId")); + assertNotNull(cfg.get("jnpfKey")); + assertNotNull(cfg.get("noShow")); + assertNotNull(cfg.get("span")); + assertNotNull(cfg.get("tag")); + assertNotNull(cfg.get("layout")); + assertNotNull(cfg.get("regList")); + + // 顶层必有 - button 4 大关键字段 + assertNotNull(parsed.get("on")); + assertNotNull(parsed.get("align")); + assertNotNull(parsed.get("buttonText")); + assertNotNull(parsed.get("type")); + assertNotNull(parsed.get("disabled")); + // 默认值 + assertEquals("按钮", parsed.get("buttonText").asText()); + assertEquals("left", parsed.get("align").asText()); + assertEquals("", parsed.get("type").asText()); + assertFalse(parsed.get("disabled").asBoolean()); + // on.click 事件 + assertNotNull(parsed.get("on").get("click")); + assertTrue(parsed.get("on").get("click").asText().contains("setFormData")); + } + + @Test + public void testButtonField_dumpToFile() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_button"; + ctx.label = "按钮"; + String json = new ButtonFieldBuilder().buildFormField(ctx); + Path out = Paths.get("../scripts/ButtonFieldBuilder-output.json"); + Files.createDirectories(out.getParent()); + Files.writeString(out, json); + assertTrue(Files.exists(out)); + assertTrue(Files.size(out) > 100); + } +} diff --git a/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/CardFieldBuilderTest.java b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/CardFieldBuilderTest.java new file mode 100644 index 0000000..893c838 --- /dev/null +++ b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/CardFieldBuilderTest.java @@ -0,0 +1,109 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; +import java.nio.file.*; + +/** + * v13.25 P2 - CardFieldBuilder 单元测试 (4 用例). + * + *

校验 card 卡片容器 formData 关键结构 (jnpfKey=card / tag=ACard / layout=rowFormItem / children). + * baseline 0 误差源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:2093 + */ +public class CardFieldBuilderTest { + + private static final ObjectMapper M = new ObjectMapper(); + + @Test + public void testCardField_basic() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_card"; + ctx.label = "卡片"; + + String json = new CardFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + + // 顶层关键键 + assertNotNull(parsed.get("__config__")); + assertNotNull(parsed.get("__vModel__")); + assertEquals("f_card", parsed.get("__vModel__").asText()); + + // __config__ 关键键 + var cfg = parsed.get("__config__"); + assertEquals("card", cfg.get("jnpfKey").asText()); + assertEquals("ACard", cfg.get("tag").asText()); + assertEquals("icon-ym icon-ym-generator-card", cfg.get("tagIcon").asText()); + // card 特殊: layout = rowFormItem (布局容器) + assertEquals("rowFormItem", cfg.get("layout").asText()); + assertEquals(24, cfg.get("span").asInt()); + // card showLabel = false (装饰/布局控件) + assertFalse(cfg.get("showLabel").asBoolean()); + // card children 必须存在 (容器) + assertNotNull(cfg.get("children")); + assertTrue(cfg.get("children").isArray()); + assertEquals(0, cfg.get("children").size()); + } + + @Test + public void testCardField_required() throws Exception { + // card 是装饰/布局控件, componentMap.ts:2093 __config__ 不含 required 字段 + // 验证 ctx.required=true 不会污染输出 + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_card"; + ctx.label = "卡片"; + ctx.required = true; + + String json = new CardFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + // card __config__ 没有 required 字段, ctx.required 被忽略 + assertNull(parsed.get("__config__").get("required")); + } + + @Test + public void testCardField_baselineKeyStructure() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_card"; + ctx.label = "卡片"; + + String json = new CardFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + var cfg = parsed.get("__config__"); + + // __config__ 必有结构 + assertNotNull(cfg.get("visibility")); + assertNotNull(cfg.get("formId")); + assertNotNull(cfg.get("jnpfKey")); + assertNotNull(cfg.get("noShow")); + assertNotNull(cfg.get("span")); + assertNotNull(cfg.get("tag")); + assertNotNull(cfg.get("layout")); + assertNotNull(cfg.get("tipLabel")); + assertNotNull(cfg.get("className")); + assertNotNull(cfg.get("dragDisabled")); + // defaultValue = [] (componentMap.ts:2103) + assertNotNull(cfg.get("defaultValue")); + assertTrue(cfg.get("defaultValue").isArray()); + + // 顶层必有 + assertNotNull(parsed.get("header")); + assertNotNull(parsed.get("shadow")); + // 默认值 + assertEquals("卡片容器", parsed.get("header").asText()); + assertEquals("never", parsed.get("shadow").asText()); + } + + @Test + public void testCardField_dumpToFile() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_card"; + ctx.label = "卡片"; + String json = new CardFieldBuilder().buildFormField(ctx); + Path out = Paths.get("../scripts/CardFieldBuilder-output.json"); + Files.createDirectories(out.getParent()); + Files.writeString(out, json); + assertTrue(Files.exists(out)); + assertTrue(Files.size(out) > 100); + } +} diff --git a/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/CollapseFieldBuilderTest.java b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/CollapseFieldBuilderTest.java new file mode 100644 index 0000000..b33e7e2 --- /dev/null +++ b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/CollapseFieldBuilderTest.java @@ -0,0 +1,122 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; +import java.nio.file.*; + +/** + * v13.25 P2 - CollapseFieldBuilder 单元测试 (4 用例). + * + *

校验 collapse 折叠面板 formData 关键结构 (jnpfKey=collapse / tag=ACollapse / children/active). + * baseline 0 误差源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:1951 + */ +public class CollapseFieldBuilderTest { + + private static final ObjectMapper M = new ObjectMapper(); + + @Test + public void testCollapseField_basic() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_collapse"; + ctx.label = "折叠面板"; + + String json = new CollapseFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + + // 顶层关键键 + assertNotNull(parsed.get("__config__")); + assertNotNull(parsed.get("__vModel__")); + assertEquals("f_collapse", parsed.get("__vModel__").asText()); + + // __config__ 关键键 + var cfg = parsed.get("__config__"); + assertEquals("collapse", cfg.get("jnpfKey").asText()); + assertEquals("ACollapse", cfg.get("tag").asText()); + assertEquals("icon-ym icon-ym-generator-fold", cfg.get("tagIcon").asText()); + // collapse 特殊: layout = rowFormItem (布局容器) + assertEquals("rowFormItem", cfg.get("layout").asText()); + assertEquals(24, cfg.get("span").asInt()); + // collapse showLabel = false (装饰/布局控件) + assertFalse(cfg.get("showLabel").asBoolean()); + } + + @Test + public void testCollapseField_required() throws Exception { + // collapse 是装饰/布局控件, componentMap.ts:1951 __config__ 不含 required 字段 + // 验证 ctx.required=true 不会污染输出 + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_collapse"; + ctx.label = "折叠面板"; + ctx.required = true; + + String json = new CollapseFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + // collapse __config__ 没有 required 字段, ctx.required 被忽略 + assertNull(parsed.get("__config__").get("required")); + } + + @Test + public void testCollapseField_baselineKeyStructure() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_collapse"; + ctx.label = "折叠面板"; + + String json = new CollapseFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + var cfg = parsed.get("__config__"); + + // __config__ 必有结构 + assertNotNull(cfg.get("visibility")); + assertNotNull(cfg.get("formId")); + assertNotNull(cfg.get("jnpfKey")); + assertNotNull(cfg.get("noShow")); + assertNotNull(cfg.get("span")); + assertNotNull(cfg.get("tag")); + assertNotNull(cfg.get("layout")); + + // collapse 特殊: children + active 都在 __config__ 内 (componentMap.ts:1965-1983) + assertNotNull(cfg.get("children")); + assertTrue(cfg.get("children").isArray()); + assertEquals(2, cfg.get("children").size()); + // 第 1 个面板 + var panel1 = cfg.get("children").get(0); + assertEquals("面板1", panel1.get("title").asText()); + assertEquals("1", panel1.get("name").asText()); + assertEquals("collapseItem", panel1.get("__config__").get("jnpfKey").asText()); + // 第 2 个面板 + var panel2 = cfg.get("children").get(1); + assertEquals("面板2", panel2.get("title").asText()); + assertEquals("2", panel2.get("name").asText()); + // active: 默认 ['1'] + assertNotNull(cfg.get("active")); + assertEquals(1, cfg.get("active").size()); + assertEquals("1", cfg.get("active").get(0).asText()); + + // 顶层必有 + assertNotNull(parsed.get("on")); + assertNotNull(parsed.get("accordion")); + assertNotNull(parsed.get("ghost")); + assertNotNull(parsed.get("expandIconPosition")); + // 默认值 + assertFalse(parsed.get("accordion").asBoolean()); + assertTrue(parsed.get("ghost").asBoolean()); + assertEquals("end", parsed.get("expandIconPosition").asText()); + // on.change 事件 + assertNotNull(parsed.get("on").get("change")); + } + + @Test + public void testCollapseField_dumpToFile() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_collapse"; + ctx.label = "折叠面板"; + String json = new CollapseFieldBuilder().buildFormField(ctx); + Path out = Paths.get("../scripts/CollapseFieldBuilder-output.json"); + Files.createDirectories(out.getParent()); + Files.writeString(out, json); + assertTrue(Files.exists(out)); + assertTrue(Files.size(out) > 200); + } +} diff --git a/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/TextFieldBuilderTest.java b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/TextFieldBuilderTest.java new file mode 100644 index 0000000..6204ac2 --- /dev/null +++ b/ssw-dacli/src/test/java/ssw/dacli/form/builder/field/TextFieldBuilderTest.java @@ -0,0 +1,118 @@ +package ssw.dacli.form.builder.field; + +import ssw.dacli.form.builder.FieldBuildContext; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; +import java.nio.file.*; + +/** + * v13.25 P2 - TextFieldBuilder 单元测试 (4 用例). + * + *

校验 text 文本/静态文字 formData 关键结构 (jnpfKey=text / tag=JnpfText / textStyle). + * baseline 0 误差源: jnpf/前端/jnpf-web-apps-main/src/components/FormGenerator/src/helper/componentMap.ts:776 + */ +public class TextFieldBuilderTest { + + private static final ObjectMapper M = new ObjectMapper(); + + @Test + public void testTextField_basic() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_text"; + ctx.label = "文本"; + + String json = new TextFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + + // 顶层关键键 + assertNotNull(parsed.get("__config__")); + assertNotNull(parsed.get("__vModel__")); + assertEquals("f_text", parsed.get("__vModel__").asText()); + + // __config__ 关键键 + var cfg = parsed.get("__config__"); + assertEquals("text", cfg.get("jnpfKey").asText()); + assertEquals("JnpfText", cfg.get("tag").asText()); + // text 特殊: tagIcon = textarea 图标 (componentMap.ts:783) + assertEquals("icon-ym icon-ym-generator-textarea", cfg.get("tagIcon").asText()); + assertEquals("colFormItem", cfg.get("layout").asText()); + assertEquals(24, cfg.get("span").asInt()); + // text showLabel = false (装饰控件) + assertFalse(cfg.get("showLabel").asBoolean()); + } + + @Test + public void testTextField_required() throws Exception { + // text 是装饰控件, required 恒为 false + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_text"; + ctx.label = "文本"; + ctx.required = true; + + String json = new TextFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + assertFalse(parsed.get("__config__").get("required").asBoolean()); + } + + @Test + public void testTextField_baselineKeyStructure() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_text"; + ctx.label = "文本"; + + String json = new TextFieldBuilder().buildFormField(ctx); + var parsed = M.readTree(json); + var cfg = parsed.get("__config__"); + + // __config__ 必有结构 + assertNotNull(cfg.get("visibility")); + assertNotNull(cfg.get("formId")); + assertNotNull(cfg.get("jnpfKey")); + assertNotNull(cfg.get("noShow")); + assertNotNull(cfg.get("span")); + assertNotNull(cfg.get("tag")); + assertNotNull(cfg.get("layout")); + assertNotNull(cfg.get("tableAlign")); + assertNotNull(cfg.get("tableFixed")); + assertNotNull(cfg.get("className")); + assertNotNull(cfg.get("dragDisabled")); + + // 顶层必有 - text 2 大关键字段 + assertNotNull(parsed.get("textStyle")); + assertNotNull(parsed.get("content")); + // 默认值 + assertEquals("这是一段文字", parsed.get("content").asText()); + + // textStyle 7 大字段 (componentMap.ts:796-802, RText.vue 多字段) + var style = parsed.get("textStyle"); + assertNotNull(style.get("color")); + assertNotNull(style.get("text-align")); + assertNotNull(style.get("font-weight")); + assertNotNull(style.get("font-style")); + assertNotNull(style.get("text-decoration")); + assertNotNull(style.get("line-height")); + assertNotNull(style.get("font-size")); + // 默认值 + assertEquals("#000000", style.get("color").asText()); + assertEquals("left", style.get("text-align").asText()); + assertEquals("normal", style.get("font-weight").asText()); + assertEquals("normal", style.get("font-style").asText()); + assertEquals("none", style.get("text-decoration").asText()); + assertEquals(32, style.get("line-height").asInt()); + assertEquals(12, style.get("font-size").asInt()); + } + + @Test + public void testTextField_dumpToFile() throws Exception { + FieldBuildContext ctx = new FieldBuildContext(); + ctx.field = "f_text"; + ctx.label = "文本"; + String json = new TextFieldBuilder().buildFormField(ctx); + Path out = Paths.get("../scripts/TextFieldBuilder-output.json"); + Files.createDirectories(out.getParent()); + Files.writeString(out, json); + assertTrue(Files.exists(out)); + assertTrue(Files.size(out) > 100); + } +}