From 4242940e6ba0a71465ce450ee45543dcdb720f32 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Tue, 14 Jan 2025 15:48:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E5=A2=9E=E5=8A=A0=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gringotts-frontend/pages/test/index.html | 25 +++++ gringotts-frontend/pages/test/main.js | 124 +++++++++++++++++++++++ 2 files changed, 149 insertions(+) create mode 100644 gringotts-frontend/pages/test/index.html create mode 100644 gringotts-frontend/pages/test/main.js diff --git a/gringotts-frontend/pages/test/index.html b/gringotts-frontend/pages/test/index.html new file mode 100644 index 0000000..82658dd --- /dev/null +++ b/gringotts-frontend/pages/test/index.html @@ -0,0 +1,25 @@ + + + + + + + + + + + + +
+ + + + diff --git a/gringotts-frontend/pages/test/main.js b/gringotts-frontend/pages/test/main.js new file mode 100644 index 0000000..03b4f91 --- /dev/null +++ b/gringotts-frontend/pages/test/main.js @@ -0,0 +1,124 @@ +import {useAmis} from "../../components/constants.js"; + +useAmis((information) => { + return { + "type": "wrapper", + "size": "none", + "body": [ + { + "type": "wrapper", + "body": [ + { + "items": [ + { + "label": "资源名称", + "span": 3, + "content": "文件资源" + }, + { + "content": "FIle", + "span": 3, + "label": "资源描述" + } + ], + "type": "property" + }, + { + "type": "divider" + }, + { + "title": "资源类型定义", + "type": "property", + "items": [ + { + "span": 3, + "label": "资源类型", + "content": "文件" + }, + { + "span": 3, + "content": { + "type": "flex", + "alignItems": "start", + "items": [ + { + "label": "arthas-bin.zip", + "api": { + "method": "get", + "url": "${base}/upload/download/3557040775256064", + "headers": { + "token": "${token|default:undefined}" + }, + "responseType": "blob" + }, + "actionType": "ajax", + "type": "action", + "level": "link" + } + ], + "direction": "column" + }, + "label": "文件" + }, + { + label: '格式详情', + content: { + type: 'editor', + language: 'json', + value: { + "name": "arthas-bin.zip", + "size": 1024, + "type": "application/zip", + "lastModified": 1673920000000, + "lastModifiedDate": "2023-01-14T14:40:00.000Z", + "webkitRelativePath": "" + } + }, + } + ] + }, + { + "type": "divider" + }, + { + "items": [ + { + "label": "格式类型", + "content": "Json" + } + ], + "type": "property", + "title": "资源格式定义" + } + ], + "size": "none" + }, + { + "type": "divider" + }, + { + "items": [ + { + "label": "创建人", + "span": 2, + "content": "administrator@eshore.com" + }, + { + "content": "2025-01-14 14:41:56", + "label": "创建时间" + }, + { + "span": 2, + "content": "administrator@eshore.com", + "label": "修改人" + }, + { + "content": "2025-01-14 14:41:56", + "label": "修改时间" + } + ], + "type": "property" + } + ] + } +})