feat:【infra 基础设施】文件配置时,增加“公开访问”

pull/196/MERGE
YunaiV 2025-08-18 00:00:04 +08:00
parent cb1b441f7b
commit 2dfa34d096
6 changed files with 60 additions and 0 deletions

View File

@ -16,6 +16,7 @@ export namespace InfraFileConfigApi {
accessKey?: string;
accessSecret?: string;
pathStyle?: boolean;
enablePublicAccess?: boolean;
domain: string;
}

View File

@ -200,6 +200,25 @@ export function useFormSchema(): VbenFormSchema[] {
},
defaultValue: false,
},
{
fieldName: 'config.enablePublicAccess',
label: '公开访问',
component: 'RadioGroup',
componentProps: {
options: [
{ label: '公开', value: true },
{ label: '私有', value: false },
],
buttonStyle: 'solid',
optionType: 'button',
},
rules: 'required',
dependencies: {
triggerFields: ['storage'],
show: (formValues) => formValues.storage === 20,
},
defaultValue: false,
},
// 通用
{
fieldName: 'config.domain',

View File

@ -16,6 +16,7 @@ export namespace InfraFileConfigApi {
accessKey?: string;
accessSecret?: string;
pathStyle?: boolean;
enablePublicAccess?: boolean;
domain: string;
}

View File

@ -213,6 +213,25 @@ export function useFormSchema(): VbenFormSchema[] {
},
defaultValue: false,
},
{
fieldName: 'config.enablePublicAccess',
label: '公开访问',
component: 'RadioGroup',
componentProps: {
options: [
{ label: '公开', value: true },
{ label: '私有', value: false },
],
buttonStyle: 'solid',
optionType: 'button',
},
rules: 'required',
dependencies: {
triggerFields: ['storage'],
show: (formValues) => formValues.storage === 20,
},
defaultValue: false,
},
// 通用
{
fieldName: 'config.domain',

View File

@ -16,6 +16,7 @@ export namespace InfraFileConfigApi {
accessKey?: string;
accessSecret?: string;
pathStyle?: boolean;
enablePublicAccess?: boolean;
domain: string;
}

View File

@ -214,6 +214,25 @@ export function useFormSchema(): VbenFormSchema[] {
},
defaultValue: false,
},
{
fieldName: 'config.enablePublicAccess',
label: '公开访问',
component: 'RadioGroup',
componentProps: {
options: [
{ label: '公开', value: true },
{ label: '私有', value: false },
],
buttonStyle: 'solid',
optionType: 'button',
},
rules: 'required',
dependencies: {
triggerFields: ['storage'],
show: (formValues) => formValues.storage === 20,
},
defaultValue: false,
},
// 通用
{
fieldName: 'config.domain',