chore: getPopupContainer

This commit is contained in:
dap 2024-09-20 17:52:35 +08:00
parent 631e4a414f
commit c15bc32d9b

View File

@ -1,4 +1,5 @@
import { DictEnum } from '@vben/constants';
import { getPopupContainer } from '@vben/utils';
import { type FormSchemaGetter, z } from '#/adapter';
import { getDictOptions } from '#/utils/dict';
@ -41,7 +42,11 @@ export const drawerSchema: FormSchemaGetter = () => [
},
{
component: 'TreeSelect',
componentProps: { class: 'w-full', placeholder: '请选择' },
componentProps: {
class: 'w-full',
getPopupContainer,
placeholder: '请选择',
},
fieldName: 'deptId',
label: '所属部门',
rules: 'selectRequired',