From a72cbe0c125bc5b121d7273b8d357c094001a068 Mon Sep 17 00:00:00 2001 From: jianglinjun Date: Tue, 16 Apr 2024 14:48:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E8=A1=8C=E4=B8=BA=E5=9B=BE=E6=A0=87=E9=BB=98=E8=AE=A4=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/publish/app-index-view-layout.ts | 90 ++++++++----------- 1 file changed, 39 insertions(+), 51 deletions(-) diff --git a/packages/web-theme/src/publish/app-index-view-layout.ts b/packages/web-theme/src/publish/app-index-view-layout.ts index e2ad9fd..247aebe 100644 --- a/packages/web-theme/src/publish/app-index-view-layout.ts +++ b/packages/web-theme/src/publish/app-index-view-layout.ts @@ -178,34 +178,30 @@ export default { { "panelItems": [ { - "actionType": "NONE", - "buttonHeight": 48, - "buttonStyle": "DEFAULT", - "buttonType": "PANELBUTTON", - "buttonWidth": 48, - "renderMode": "BUTTON", - "tooltip": "敬请期待", - "uiactionTarget": "NONE", - "caption": "敬请期待", - "contentHeight": 48, - "contentWidth": 48, - "height": 48, + "rawItem": { + "sysImage": { + "imagePath": "svg/setting.svg", + "imagePathX": "svg/setting.svg" + }, + "contentType": "IMAGE", + "predefinedType": "SETTING", + "id": "setting" + }, + "caption": "设置", "itemStyle": "DEFAULT", - "itemType": "BUTTON", + "itemType": "RAWITEM", "layoutPos": { "shrink": 1, - "height": 48, "heightMode": "FULL", "layout": "FLEX", - "width": 48, "widthMode": "FULL" }, "sysImage": { "imagePath": "svg/setting.svg", "imagePathX": "svg/setting.svg" }, - "width": 48, - "id": "button_calluilogic1" + "showCaption": true, + "id": "setting" } ], "layout": { @@ -232,34 +228,30 @@ export default { { "panelItems": [ { - "actionType": "NONE", - "buttonHeight": 48, - "buttonStyle": "DEFAULT", - "buttonType": "PANELBUTTON", - "buttonWidth": 48, - "renderMode": "BUTTON", - "tooltip": "敬请期待", - "uiactionTarget": "NONE", - "caption": "敬请期待", - "contentHeight": 48, - "contentWidth": 48, - "height": 48, + "rawItem": { + "sysImage": { + "imagePath": "svg/helper.svg", + "imagePathX": "svg/helper.svg" + }, + "contentType": "IMAGE", + "predefinedType": "HELPER", + "id": "helper" + }, + "caption": "帮助", "itemStyle": "DEFAULT", - "itemType": "BUTTON", + "itemType": "RAWITEM", "layoutPos": { "shrink": 1, - "height": 48, "heightMode": "FULL", "layout": "FLEX", - "width": 48, "widthMode": "FULL" }, "sysImage": { "imagePath": "svg/helper.svg", "imagePathX": "svg/helper.svg" }, - "width": 48, - "id": "button_calluilogic2" + "showCaption": true, + "id": "helper" } ], "layout": { @@ -286,34 +278,30 @@ export default { { "panelItems": [ { - "actionType": "NONE", - "buttonHeight": 48, - "buttonStyle": "DEFAULT", - "buttonType": "PANELBUTTON", - "buttonWidth": 48, - "renderMode": "BUTTON", - "tooltip": "敬请期待", - "uiactionTarget": "NONE", - "caption": "敬请期待", - "contentHeight": 48, - "contentWidth": 48, - "height": 48, + "rawItem": { + "sysImage": { + "imagePath": "svg/custom-workbench.svg", + "imagePathX": "svg/custom-workbench.svg" + }, + "contentType": "IMAGE", + "predefinedType": "CUSTOM", + "id": "custom" + }, + "caption": "自定义功能", "itemStyle": "DEFAULT", - "itemType": "BUTTON", + "itemType": "RAWITEM", "layoutPos": { "shrink": 1, - "height": 48, "heightMode": "FULL", "layout": "FLEX", - "width": 48, "widthMode": "FULL" }, "sysImage": { "imagePath": "svg/custom-workbench.svg", "imagePathX": "svg/custom-workbench.svg" }, - "width": 48, - "id": "button_calluilogic3" + "showCaption": true, + "id": "custom" } ], "layout": { -- Gitee