From 3cf56adeaca83193951d02821661ef04e8d26214 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Wed, 18 Dec 2024 15:04:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(web):=20=E4=BC=98=E5=8C=96=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E5=AF=B9=E8=AF=9D=E6=A1=86=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 fieldSet 组件替换为 wrapper 组件,以改善布局结构 - 为 wrapper 组件添加 size 属性,设置为 none,以适应不同资源类型的布局需求- 此修改涉及 API、FILE、DATABASE、HDFS 和 FTP资源类型的输入框布局 --- .../components/resource/dialog-resource.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/gringotts-frontend/components/resource/dialog-resource.js b/gringotts-frontend/components/resource/dialog-resource.js index 178dbbb..0c4eb88 100644 --- a/gringotts-frontend/components/resource/dialog-resource.js +++ b/gringotts-frontend/components/resource/dialog-resource.js @@ -62,7 +62,8 @@ function detailForm(showCreatedUserAndModifiedUser = false) { }, { visibleOn: "${resourceType === 'API'}", - type: 'fieldSet', + type: 'wrapper', + size: 'none', body: [ { type: 'input-text', @@ -87,7 +88,8 @@ function detailForm(showCreatedUserAndModifiedUser = false) { }, { visibleOn: "${resourceType === 'FILE'}", - type: 'fieldSet', + type: 'wrapper', + size: 'none', body: [ formInputSingleFileStatic('file', '数据文件'), { @@ -105,7 +107,8 @@ function detailForm(showCreatedUserAndModifiedUser = false) { }, { visibleOn: "${resourceType === 'DATABASE'}", - type: 'fieldSet', + type: 'wrapper', + size: 'none', body: [ { type: 'select', @@ -141,7 +144,8 @@ function detailForm(showCreatedUserAndModifiedUser = false) { }, { visibleOn: "${resourceType === 'HDFS'}", - type: 'fieldSet', + type: 'wrapper', + size: 'none', body: [ formInputSingleFileStatic('coreSiteFile', 'core-site.xml'), { @@ -169,7 +173,8 @@ function detailForm(showCreatedUserAndModifiedUser = false) { }, { visibleOn: "${resourceType === 'FTP'}", - type: 'fieldSet', + type: 'wrapper', + size: 'none', body: [ { type: 'input-text',