From 0691181101f43ee4ac161961c3c0ab9eeb0ea3f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B7=E4=BA=AE=E8=BE=89?= Date: Wed, 27 Sep 2023 11:05:48 +0800 Subject: [PATCH] =?UTF-8?q?#5473=20=E8=BD=AF=E4=BB=B6=E5=8C=85=E5=88=97?= =?UTF-8?q?=E8=A1=A8=EF=BC=8C=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../steedos_packages_list.page.amis.json | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/services/service-package-registry/main/default/pages/steedos_packages_list.page.amis.json b/services/service-package-registry/main/default/pages/steedos_packages_list.page.amis.json index 6b5a093f2a..240ef7080f 100644 --- a/services/service-package-registry/main/default/pages/steedos_packages_list.page.amis.json +++ b/services/service-package-registry/main/default/pages/steedos_packages_list.page.amis.json @@ -17,6 +17,14 @@ "switchPerPage": false, "bulkActions": [], "card": { + "toolbar": [ + { + "type": "steedos-badge-ribbon", + "text": "静态(不支持卸载、升级)", + "body": [], + "visibleOn": "${static}" + } + ], "header": { "avatarText": "${label|split:/|last|substring:0:2|upperCase}", "avatarTextBackground": [ @@ -33,7 +41,7 @@ "className": "bg-white", "title": "${label}@${version}", "subTitle": "$description", - "description": "$_display.status ${static && '静态(不支持卸载、升级)'}" + "description": "$_display.status" }, "actions": [ { @@ -88,6 +96,9 @@ "id": "u:2775cd701d6a", "name": "page_test__c_list", "bodyClassName": "p-0", + "cssVars": { + "--text--muted-color": "#bebfc4" + }, "css": { ".antd-Wrapper.steedos-object-table > .antd-Service": { "flex-grow": "1" @@ -109,6 +120,15 @@ }, ".antd-Service.steedos-object-table .antd-Crud .antd-Cards .antd-Cards-body": { "margin": "0.25rem" + }, + ".antd-Card-toolbar .ant-ribbon-wrapper": { + "position": "absolute", + "top": "-14px", + "right": "0" + }, + ".antd-Crud .antd-Cards .antd-Card .antd-Card-title": { + "white-space": "break-spaces", + "word-break": "break-all" } } } \ No newline at end of file