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({ const [BasicForm, formApi] = useVbenForm({
commonConfig: { commonConfig: {
formItemClass: 'col-span-2', formItemClass: 'col-span-2',
componentProps: {
class: 'w-full',
},
}, },
layout: 'vertical', layout: 'vertical',
schema: drawerSchema(), schema: drawerSchema(),

View File

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

View File

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

View File

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

View File

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