chore: 角色管理 优化Drawer布局

This commit is contained in:
dap 2024-11-29 15:45:42 +08:00
parent a3e98aedf9
commit 227cf1e72b
3 changed files with 8 additions and 3 deletions

View File

@ -5,6 +5,10 @@
- 节点树在编辑 & 空数组(不勾选)情况 勾选节点会造成watch延迟触发 导致会带上父节点id造成id重复
- 节点树在节点独立情况下的控制台warning: Invalid prop: type check failed for prop "value". Expected Array, got Object
**Others**
- 角色管理 优化Drawer布局
# 1.1.2
**Features**

View File

@ -153,12 +153,13 @@ export const drawerSchema: FormSchemaGetter = () => [
defaultValue: [],
fieldName: 'menuIds',
label: '菜单权限',
formItemClass: 'col-span-2',
},
{
component: 'Textarea',
defaultValue: '',
fieldName: 'remark',
formItemClass: 'items-baseline',
formItemClass: 'items-baseline col-span-2',
label: '备注',
},
];

View File

@ -24,12 +24,12 @@ const [BasicForm, formApi] = useVbenForm({
componentProps: {
class: 'w-full',
},
formItemClass: 'col-span-2',
formItemClass: 'col-span-1',
},
layout: 'vertical',
schema: drawerSchema(),
showDefaultActions: false,
wrapperClass: 'grid-cols-2',
wrapperClass: 'grid-cols-2 gap-x-4',
});
const menuTree = ref<any[]>([]);