1
0

refactor(web): 优化资源对话框布局

- 将 fieldSet 组件替换为 wrapper 组件,以改善布局结构
- 为 wrapper 组件添加 size 属性,设置为 none,以适应不同资源类型的布局需求- 此修改涉及 API、FILE、DATABASE、HDFS 和 FTP资源类型的输入框布局
This commit is contained in:
2024-12-18 15:04:02 +08:00
parent 083a8771d2
commit 3cf56adeac

View File

@@ -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',