chore: w-full改为在commonConfig配置

This commit is contained in:
dap 2024-11-29 15:55:16 +08:00
parent 227cf1e72b
commit 0950022f09
5 changed files with 6 additions and 4 deletions

View File

@ -21,6 +21,9 @@ const title = computed(() => {
const [BasicForm, formApi] = useVbenForm({
commonConfig: {
formItemClass: 'col-span-2',
componentProps: {
class: 'w-full',
},
},
layout: 'vertical',
schema: drawerSchema(),

View File

@ -134,7 +134,6 @@ export const drawerSchema: FormSchemaGetter = () => [
{
component: 'Select',
componentProps: {
class: 'w-full',
getPopupContainer,
mode: 'multiple',
optionFilterProp: 'label',
@ -148,7 +147,6 @@ export const drawerSchema: FormSchemaGetter = () => [
component: 'Select',
componentProps: {
allowClear: false,
class: 'w-full',
getPopupContainer,
options: getDictOptions(DictEnum.SYS_DEVICE_TYPE),
},

View File

@ -82,7 +82,6 @@ export const drawerSchema: FormSchemaGetter = () => [
{
component: 'TreeSelect',
componentProps: {
class: 'w-full',
getPopupContainer,
},
fieldName: 'deptId',

View File

@ -175,7 +175,6 @@ export const drawerSchema: FormSchemaGetter = () => [
{
component: 'Select',
componentProps: {
class: 'w-full',
getPopupContainer,
},
fieldName: 'packageId',

View File

@ -23,6 +23,9 @@ const [BasicForm, formApi] = useVbenForm({
commonConfig: {
formItemClass: 'col-span-2',
labelWidth: 100,
componentProps: {
class: 'w-full',
},
},
schema: drawerSchema(),
showDefaultActions: false,