chore: 调整表单布局

This commit is contained in:
dap 2024-09-12 21:06:10 +08:00
parent 80a93a170e
commit 8eead2ee4e
2 changed files with 6 additions and 0 deletions

View File

@ -23,9 +23,13 @@ const title = computed(() => {
}); });
const [BasicForm, formApi] = useVbenForm({ const [BasicForm, formApi] = useVbenForm({
commonConfig: {
formItemClass: 'col-span-2',
},
layout: 'vertical', layout: 'vertical',
schema: drawerSchema(), schema: drawerSchema(),
showDefaultActions: false, showDefaultActions: false,
wrapperClass: 'grid-cols-2',
}); });
function setupForm(update: boolean, record?: any) { function setupForm(update: boolean, record?: any) {

View File

@ -78,6 +78,7 @@ export const drawerSchema: FormSchemaGetter = () => [
}, },
defaultValue: 1800, defaultValue: 1800,
fieldName: 'activeTimeout', fieldName: 'activeTimeout',
formItemClass: 'col-span-2 lg:col-span-1',
help: '指定时间无操作则过期(单位:秒), 默认30分钟(1800秒)', help: '指定时间无操作则过期(单位:秒), 默认30分钟(1800秒)',
label: 'Token活跃超时时间', label: 'Token活跃超时时间',
rules: 'required', rules: 'required',
@ -90,6 +91,7 @@ export const drawerSchema: FormSchemaGetter = () => [
}, },
defaultValue: 604_800, defaultValue: 604_800,
fieldName: 'timeout', fieldName: 'timeout',
formItemClass: 'col-span-2 lg:col-span-1 ',
help: '指定时间必定过期(单位:秒),默认七天(604800秒)', help: '指定时间必定过期(单位:秒),默认七天(604800秒)',
label: 'Token固定超时时间', label: 'Token固定超时时间',
rules: 'required', rules: 'required',