feat:【infra】文件配置,增加 region 区域
This commit is contained in:
@@ -17,6 +17,7 @@ export namespace InfraFileConfigApi {
|
|||||||
accessSecret?: string;
|
accessSecret?: string;
|
||||||
pathStyle?: boolean;
|
pathStyle?: boolean;
|
||||||
enablePublicAccess?: boolean;
|
enablePublicAccess?: boolean;
|
||||||
|
region?: string;
|
||||||
domain: string;
|
domain: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -229,6 +229,18 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
},
|
},
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldName: 'config.region',
|
||||||
|
label: '区域',
|
||||||
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请填写区域,一般仅 AWS 需要填写',
|
||||||
|
},
|
||||||
|
dependencies: {
|
||||||
|
triggerFields: ['storage'],
|
||||||
|
show: (formValues) => formValues.storage === 20,
|
||||||
|
},
|
||||||
|
},
|
||||||
// 通用
|
// 通用
|
||||||
{
|
{
|
||||||
fieldName: 'config.domain',
|
fieldName: 'config.domain',
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ export namespace InfraFileConfigApi {
|
|||||||
accessSecret?: string;
|
accessSecret?: string;
|
||||||
pathStyle?: boolean;
|
pathStyle?: boolean;
|
||||||
enablePublicAccess?: boolean;
|
enablePublicAccess?: boolean;
|
||||||
|
region?: string;
|
||||||
domain: string;
|
domain: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -225,6 +225,18 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
},
|
},
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldName: 'config.region',
|
||||||
|
label: '区域',
|
||||||
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请填写区域,一般仅 AWS 需要填写',
|
||||||
|
},
|
||||||
|
dependencies: {
|
||||||
|
triggerFields: ['storage'],
|
||||||
|
show: (formValues) => formValues.storage === 20,
|
||||||
|
},
|
||||||
|
},
|
||||||
// 通用
|
// 通用
|
||||||
{
|
{
|
||||||
fieldName: 'config.domain',
|
fieldName: 'config.domain',
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ export namespace InfraFileConfigApi {
|
|||||||
accessSecret?: string;
|
accessSecret?: string;
|
||||||
pathStyle?: boolean;
|
pathStyle?: boolean;
|
||||||
enablePublicAccess?: boolean;
|
enablePublicAccess?: boolean;
|
||||||
|
region?: string;
|
||||||
domain: string;
|
domain: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -224,6 +224,18 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
},
|
},
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldName: 'config.region',
|
||||||
|
label: '区域',
|
||||||
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请填写区域,一般仅 AWS 需要填写',
|
||||||
|
},
|
||||||
|
dependencies: {
|
||||||
|
triggerFields: ['storage'],
|
||||||
|
show: (formValues) => formValues.storage === 20,
|
||||||
|
},
|
||||||
|
},
|
||||||
// 通用
|
// 通用
|
||||||
{
|
{
|
||||||
fieldName: 'config.domain',
|
fieldName: 'config.domain',
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ export namespace InfraFileConfigApi {
|
|||||||
accessSecret?: string;
|
accessSecret?: string;
|
||||||
pathStyle?: boolean;
|
pathStyle?: boolean;
|
||||||
enablePublicAccess?: boolean;
|
enablePublicAccess?: boolean;
|
||||||
|
region?: string;
|
||||||
domain: string;
|
domain: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -229,6 +229,18 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
},
|
},
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldName: 'config.region',
|
||||||
|
label: '区域',
|
||||||
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请填写区域,一般仅 AWS 需要填写',
|
||||||
|
},
|
||||||
|
dependencies: {
|
||||||
|
triggerFields: ['storage'],
|
||||||
|
show: (formValues) => formValues.storage === 20,
|
||||||
|
},
|
||||||
|
},
|
||||||
// 通用
|
// 通用
|
||||||
{
|
{
|
||||||
fieldName: 'config.domain',
|
fieldName: 'config.domain',
|
||||||
|
|||||||
Reference in New Issue
Block a user