feat:【INFRA】文件存储,增加 enablePathStyleAccess 选项
parent
b2011aea91
commit
3be2d4c87f
|
@ -15,6 +15,7 @@ export namespace InfraFileConfigApi {
|
||||||
bucket?: string;
|
bucket?: string;
|
||||||
accessKey?: string;
|
accessKey?: string;
|
||||||
accessSecret?: string;
|
accessSecret?: string;
|
||||||
|
pathStyle?: boolean;
|
||||||
domain: string;
|
domain: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||||
componentProps: {
|
componentProps: {
|
||||||
options: getDictOptions(DICT_TYPE.INFRA_FILE_STORAGE, 'number'),
|
options: getDictOptions(DICT_TYPE.INFRA_FILE_STORAGE, 'number'),
|
||||||
placeholder: '请选择存储器',
|
placeholder: '请选择存储器',
|
||||||
|
class: 'w-full',
|
||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
dependencies: {
|
dependencies: {
|
||||||
|
@ -134,6 +135,8 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||||
{ label: '主动模式', value: 'Active' },
|
{ label: '主动模式', value: 'Active' },
|
||||||
{ label: '被动模式', value: 'Passive' },
|
{ label: '被动模式', value: 'Passive' },
|
||||||
],
|
],
|
||||||
|
buttonStyle: 'solid',
|
||||||
|
optionType: 'button',
|
||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
dependencies: {
|
dependencies: {
|
||||||
|
@ -194,6 +197,25 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||||
show: (formValues) => formValues.storage === 20,
|
show: (formValues) => formValues.storage === 20,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldName: 'config.enablePathStyleAccess',
|
||||||
|
label: '是否 Path Style',
|
||||||
|
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',
|
fieldName: 'config.domain',
|
||||||
|
|
|
@ -26,6 +26,9 @@ const getTitle = computed(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const [Form, formApi] = useVbenForm({
|
const [Form, formApi] = useVbenForm({
|
||||||
|
commonConfig: {
|
||||||
|
labelWidth: 120,
|
||||||
|
},
|
||||||
layout: 'horizontal',
|
layout: 'horizontal',
|
||||||
schema: useFormSchema(),
|
schema: useFormSchema(),
|
||||||
showDefaultActions: false,
|
showDefaultActions: false,
|
||||||
|
|
Loading…
Reference in New Issue