chore: 调整表单布局
This commit is contained in:
parent
80a93a170e
commit
8eead2ee4e
@ -23,9 +23,13 @@ const title = computed(() => {
|
||||
});
|
||||
|
||||
const [BasicForm, formApi] = useVbenForm({
|
||||
commonConfig: {
|
||||
formItemClass: 'col-span-2',
|
||||
},
|
||||
layout: 'vertical',
|
||||
schema: drawerSchema(),
|
||||
showDefaultActions: false,
|
||||
wrapperClass: 'grid-cols-2',
|
||||
});
|
||||
|
||||
function setupForm(update: boolean, record?: any) {
|
||||
|
@ -78,6 +78,7 @@ export const drawerSchema: FormSchemaGetter = () => [
|
||||
},
|
||||
defaultValue: 1800,
|
||||
fieldName: 'activeTimeout',
|
||||
formItemClass: 'col-span-2 lg:col-span-1',
|
||||
help: '指定时间无操作则过期(单位:秒), 默认30分钟(1800秒)',
|
||||
label: 'Token活跃超时时间',
|
||||
rules: 'required',
|
||||
@ -90,6 +91,7 @@ export const drawerSchema: FormSchemaGetter = () => [
|
||||
},
|
||||
defaultValue: 604_800,
|
||||
fieldName: 'timeout',
|
||||
formItemClass: 'col-span-2 lg:col-span-1 ',
|
||||
help: '指定时间必定过期(单位:秒),默认七天(604800秒)',
|
||||
label: 'Token固定超时时间',
|
||||
rules: 'required',
|
||||
|
Loading…
Reference in New Issue
Block a user