Quellcode durchsuchen

分组模板添加一个参数

master
xiaxl vor 2 Jahren
Ursprung
Commit
9a81b54392
2 geänderte Dateien mit 80 neuen und 0 gelöschten Zeilen
  1. +5
    -0
      smtweb-framework/bpm/src/main/resources/static/template/index.yaml
  2. +75
    -0
      smtweb-framework/bpm/src/main/resources/static/template/model_group_card.ftl

+ 5
- 0
smtweb-framework/bpm/src/main/resources/static/template/index.yaml Datei anzeigen

@@ -217,6 +217,11 @@ model:
type: 'ds'
label: '主卡片数据集'
desc: '请选择主要卡片数据集'
-
name: 'want_point'
type: 'checkbox'
label: '添加步骤条'
desc: '勾选则添加步骤条'
-
name: 'model_point_card'
label: '分组锚点卡片'


+ 75
- 0
smtweb-framework/bpm/src/main/resources/static/template/model_group_card.ftl Datei anzeigen

@@ -154,6 +154,81 @@
}
]
},
<#if (param.want_point)>
{
"id": "1821e887b9a",
"type": "fx-form-panel",
"shape": "panel",
"props": {
"alignY": "center",
"size": "0",
"paddingTop": 20,
"paddingLeft": 200,
"paddingRight": 200,
"paddingBottom": 20
},
"children": [
{
"id": "id1821e887baf",
"type": "fx-steps",
"w": 3,
"h": 2,
"props": {
"active": 1,
"alignCenter": true
},
"slots": {
"default": [
{
"type": "fx-step",
"props": {
"label": "步骤一",
"description": "我是一段描述"
},
"id": "id1821e887bb0"
},
{
"type": "fx-step",
"props": {
"label": "步骤二",
"description": "我也是一段描述"
},
"id": "id1821e887bb1"
},
{
"type": "fx-step",
"props": {
"label": "步骤三",
"description": "我也也是一段描述"
},
"id": "id1821e887bb2"
}
]
},
"events": {}
}
]
},
{
"id": "734718093699321868",
"type": "fx-form-panel",
"shape": "panel",
"props": {
"size": "0"
},
"children": [
{
"id": "id734718093699321869",
"type": "fx-divider",
"props": {
"label": "",
"contentPosition": "center",
"direction": "horizontal"
}
}
]
},
</#if>
{
"id": "${newId()}",
"type": "fx-split-panel",


Laden…
Abbrechen
Speichern