From 9a81b54392468bc221baf1fe63ffff221f2abf3a Mon Sep 17 00:00:00 2001 From: xiaxl Date: Thu, 21 Jul 2022 11:29:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=BB=84=E6=A8=A1=E6=9D=BF=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=AA=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/template/index.yaml | 5 ++ .../resources/static/template/model_group_card.ftl | 75 ++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/smtweb-framework/bpm/src/main/resources/static/template/index.yaml b/smtweb-framework/bpm/src/main/resources/static/template/index.yaml index 59b1a2b..d3a484f 100644 --- a/smtweb-framework/bpm/src/main/resources/static/template/index.yaml +++ b/smtweb-framework/bpm/src/main/resources/static/template/index.yaml @@ -217,6 +217,11 @@ model: type: 'ds' label: '主卡片数据集' desc: '请选择主要卡片数据集' + - + name: 'want_point' + type: 'checkbox' + label: '添加步骤条' + desc: '勾选则添加步骤条' - name: 'model_point_card' label: '分组锚点卡片' diff --git a/smtweb-framework/bpm/src/main/resources/static/template/model_group_card.ftl b/smtweb-framework/bpm/src/main/resources/static/template/model_group_card.ftl index a91d943..5738034 100644 --- a/smtweb-framework/bpm/src/main/resources/static/template/model_group_card.ftl +++ b/smtweb-framework/bpm/src/main/resources/static/template/model_group_card.ftl @@ -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" + } + } + ] + }, + { "id": "${newId()}", "type": "fx-split-panel",