ソースを参照

优化点模板名称

master
xiaxl 2年前
コミット
46f80dc678
4個のファイルの変更114行の追加238行の削除
  1. +107
    -0
      smtweb-framework/bpm/src/main/resources/static/template/incModel/inc_card_group.ftl
  2. +2
    -2
      smtweb-framework/bpm/src/main/resources/static/template/index.yaml
  3. +1
    -126
      smtweb-framework/bpm/src/main/resources/static/template/model_group_card.ftl
  4. +4
    -110
      smtweb-framework/bpm/src/main/resources/static/template/model_point_card.ftl

+ 107
- 0
smtweb-framework/bpm/src/main/resources/static/template/incModel/inc_card_group.ftl ファイルの表示

@@ -0,0 +1,107 @@
<#if (group.type == "card")>
{
"id": "${newId()}",
"type": "fx-form-panel",
"shape": "panel",
"props": {
"size": "0",
"gridTemplateColumns": "1fr 1fr 1fr",
"paddingTop": 32
},
"children": [
<#list group.fields as field>
{
"id": "${newId()}",
"type": "fx-${field.editor}",
"props": {
"label": "${field.label}",
"type": "text",
"dataset": "${field.dataset}",
"required": "${field.required}",
"field": "${field.id}",
"placeholder": "请输入内容",
"labelWidth": 150,
"readonly": "${field.readonly}",
"affixError": true
},
"events": {}
}<#if field_has_next>,</#if>
</#list>
]
},
<#elseif (group.type == "list")>
{
"id": "${newId()}",
"type": "fx-form-panel",
"shape": "panel",
"props": {
"size": "400",
"label": "列表",
"colNum": 0,
"paddingLeft": 20,
"paddingRight": 20,
"shadow": "",
"paddingTop": 0
},
"children": [
{
"id": "id${newId()}",
"type": "fx-table",
"props": {
"label": "表格",
"border": true,
"stripe": true,
"showHeader": true,
"fit": true,
"dataset": "${group.dataset}",
"actionWidth": 150
},
"slots": {
"default": [
<#list group.fields as field>
{
"id": "id${newId()}",
"type": "fx-table-column",
"props": {
"field": "${field.id}",
"label": "${field.label}"
}
}<#if field_has_next>,</#if>
</#list>
],
"button": [
{
"id": "id${newId()}",
"type": "fx-button",
"props": {
"label": "编辑",
"type": "text",
"leftIcon": "edit",
"action": "button:edit",
"dataset": "${group.dataset}",
"link": true,
"linkType": "",
"nextAction": "",
"fxLink": ""
}
},
{
"id": "id${newId()}",
"type": "fx-button",
"props": {
"label": "删除",
"type": "text",
"leftIcon": "delete-themes",
"action": "button:remove",
"preAction": "",
"link": true,
"confirm": ""
}
}
]
},
"events": {}
}
]
},
</#if>

+ 2
- 2
smtweb-framework/bpm/src/main/resources/static/template/index.yaml ファイルの表示

@@ -58,7 +58,7 @@ model:
desc: '请选择弹窗卡片列数(1或2)'
-
name: 'model_list_list'
label: '双列表(主+副)'
label: '主副列表(含卡片)'
# list/card/view
type: 'list'
# 布局
@@ -125,7 +125,7 @@ model:
desc: '请选择附弹窗卡片标题'
-
name: 'model_tree_list'
label: '左侧树+列表(含卡片)'
label: '树目录列表(含卡片)'
# list/card/view
type: 'list'
# 布局


+ 1
- 126
smtweb-framework/bpm/src/main/resources/static/template/model_group_card.ftl ファイルの表示

@@ -282,132 +282,7 @@
}
]
},
<#if (group.type == "card")>
{
"id": "${newId()}",
"type": "fx-form-panel",
"shape": "panel",
"props": {
"size": "0"
},
"children": [
{
"id": "id${newId()}",
"type": "fx-divider",
"props": {
"label": "",
"contentPosition": "center",
"direction": "horizontal"
}
}
]
},
{
"id": "${newId()}",
"type": "fx-form-panel",
"shape": "panel",
"props": {
"size": "0",
"gridTemplateColumns": "1fr 1fr 1fr",
"paddingTop": 32
},
"children": [
<#list group.fields as field>
{
"id": "${newId()}",
"type": "fx-${field.editor}",
"props": {
"label": "${field.label}",
"type": "text",
"dataset": "${field.dataset}",
"required": "${field.required}",
"field": "${field.id}",
"placeholder": "请输入内容",
"labelWidth": 150,
"readonly": "${field.readonly}",
"affixError": true
},
"events": {}
}<#if field_has_next>,</#if>
</#list>
]
},
<#elseif (group.type == "list")>
{
"id": "${newId()}",
"type": "fx-form-panel",
"shape": "panel",
"props": {
"size": "400",
"label": "列表",
"colNum": 0,
"paddingLeft": 20,
"paddingRight": 20,
"shadow": "",
"paddingTop": 0
},
"children": [
{
"id": "id${newId()}",
"type": "fx-table",
"props": {
"label": "表格",
"border": true,
"stripe": true,
"showHeader": true,
"fit": true,
"dataset": "${group.dataset}",
"actionWidth": 150
},
"slots": {
"default": [
<#list group.fields as field>
{
"id": "id${newId()}",
"type": "fx-table-column",
"props": {
"field": "${field.id}",
"label": "${field.label}"
}
}<#if field_has_next>,</#if>
</#list>
],
"button": [
{
"id": "id${newId()}",
"type": "fx-button",
"props": {
"label": "编辑",
"type": "text",
"leftIcon": "edit",
"action": "button:edit",
"dataset": "${group.dataset}",
"link": true,
"linkType": "",
"nextAction": "",
"fxLink": ""
}
},
{
"id": "id${newId()}",
"type": "fx-button",
"props": {
"label": "删除",
"type": "text",
"leftIcon": "delete-themes",
"action": "button:remove",
"preAction": "",
"link": true,
"confirm": ""
}
}
]
},
"events": {}
}
]
},
</#if>
<#include "incModel/inc_card_group.ftl"/>
{
"id": "${newId()}",
"type": "fx-form-panel",


+ 4
- 110
smtweb-framework/bpm/src/main/resources/static/template/model_point_card.ftl ファイルの表示

@@ -231,113 +231,7 @@
}
]
},
<#if (group.type == "card")>
{
"id": "${newId()}",
"type": "fx-form-panel",
"shape": "panel",
"props": {
"size": "0",
"gridTemplateColumns": "1fr 1fr 1fr",
"paddingTop": 32
},
"children": [
<#list group.fields as field>
{
"id": "${newId()}",
"type": "fx-${field.editor}",
"props": {
"label": "${field.label}",
"type": "text",
"dataset": "${field.dataset}",
"required": "${field.required}",
"field": "${field.id}",
"placeholder": "请输入内容",
"labelWidth": 150,
"readonly": "${field.readonly}",
"affixError": true
},
"events": {}
}<#if field_has_next>,</#if>
</#list>
]
},
<#elseif (group.type == "list")>
{
"id": "${newId()}",
"type": "fx-form-panel",
"shape": "panel",
"props": {
"size": "400",
"label": "列表",
"colNum": 0,
"paddingLeft": 20,
"paddingRight": 20,
"shadow": "",
"paddingTop": 0
},
"children": [
{
"id": "id${newId()}",
"type": "fx-table",
"props": {
"label": "表格",
"border": true,
"stripe": true,
"showHeader": true,
"fit": true,
"dataset": "${group.dataset}",
"actionWidth": 150
},
"slots": {
"default": [
<#list group.fields as field>
{
"id": "id${newId()}",
"type": "fx-table-column",
"props": {
"field": "${field.id}",
"label": "${field.label}"
}
}<#if field_has_next>,</#if>
</#list>
],
"button": [
{
"id": "id${newId()}",
"type": "fx-button",
"props": {
"label": "编辑",
"type": "text",
"leftIcon": "edit",
"action": "button:edit",
"dataset": "${group.dataset}",
"link": true,
"linkType": "",
"nextAction": "",
"fxLink": ""
}
},
{
"id": "id${newId()}",
"type": "fx-button",
"props": {
"label": "删除",
"type": "text",
"leftIcon": "delete-themes",
"action": "button:remove",
"preAction": "",
"link": true,
"confirm": ""
}
}
]
},
"events": {}
}
]
},
</#if>
<#include "incModel/inc_card_group.ftl"/>
</#list>
{
"id": "${newId()}",
@@ -471,7 +365,7 @@
"action": "button:add",
"linkType": "curr"
},
"id": "id${newId()}",
"id": "id${newId()}"
},
{
"type": "fx-button",
@@ -481,7 +375,7 @@
"type": "primary",
"action": "button:save"
},
"id": "id${newId()}",
"id": "id${newId()}"
},
{
"type": "fx-button",
@@ -491,7 +385,7 @@
"action": "button:return",
"type": "primary"
},
"id": "id${newId()}",
"id": "id${newId()}"
}
],
"dropdown": []


読み込み中…
キャンセル
保存