fix: file config

pull/134/head
xingyu4j 2025-06-07 15:48:35 +08:00
parent e3429f644b
commit 3c92f7daab
3 changed files with 12 additions and 12 deletions

View File

@ -37,14 +37,6 @@ export function useFormSchema(): VbenFormSchema[] {
show: (formValues) => !formValues.id,
},
},
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
componentProps: {
placeholder: '请输入备注',
},
},
// DB / Local / FTP / SFTP
{
fieldName: 'config.basePath',
@ -222,6 +214,14 @@ export function useFormSchema(): VbenFormSchema[] {
show: (formValues) => !!formValues.storage,
},
},
{
fieldName: 'remark',
label: '备注',
component: 'Textarea',
componentProps: {
placeholder: '请输入备注',
},
},
];
}

View File

@ -135,10 +135,10 @@ const [Grid, gridApi] = useVbenVxeGrid({
<TableAction
:actions="[
{
label: $t('ui.actionTitle.create', ['角色']),
label: $t('ui.actionTitle.create', ['文件配置']),
type: 'primary',
icon: ACTION_ICON.ADD,
auth: ['system:role:create'],
auth: ['infra:file-config:create'],
onClick: handleCreate,
},
]"

View File

@ -31,7 +31,7 @@ const [Form, formApi] = useVbenForm({
class: 'w-full',
},
formItemClass: 'col-span-2',
labelWidth: 80,
labelWidth: 120,
},
layout: 'horizontal',
schema: useFormSchema(),
@ -82,7 +82,7 @@ const [Modal, modalApi] = useVbenModal({
</script>
<template>
<Modal :title="getTitle">
<Modal :title="getTitle" class="w-[40%]">
<Form class="mx-4" />
</Modal>
</template>