update: [vxe table v4.12.5] 参数 "row-config.height" 已废弃,请使用 "cell-config.height"

This commit is contained in:
dap 2025-04-08 13:29:06 +08:00
parent ae6bf6ee53
commit 5b9f647cfd
2 changed files with 8 additions and 4 deletions

View File

@ -93,9 +93,11 @@ const gridOptions: VxeGridProps = {
}, },
}, },
}, },
cellConfig: {
height: 100,
},
rowConfig: { rowConfig: {
keyField: 'id', keyField: 'id',
height: 100,
}, },
id: 'workflow-definition-index', id: 'workflow-definition-index',
}; };

View File

@ -41,7 +41,7 @@ const formOptions: VbenFormProps = {
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4', wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4',
handleReset: async () => { handleReset: async () => {
selectedCode.value = []; selectedCode.value = [];
// eslint-disable-next-line no-use-before-define
const { formApi, reload } = tableApi; const { formApi, reload } = tableApi;
await formApi.resetForm(); await formApi.resetForm();
const formValues = formApi.form.values; const formValues = formApi.form.values;
@ -68,7 +68,7 @@ async function handleTypeChange(e: RadioChangeEvent) {
break; break;
} }
} }
// eslint-disable-next-line no-use-before-define
await tableApi.reload(); await tableApi.reload();
} }
@ -103,9 +103,11 @@ const gridOptions: VxeGridProps = {
}, },
}, },
}, },
cellConfig: {
height: 66,
},
rowConfig: { rowConfig: {
keyField: 'id', keyField: 'id',
height: 66,
}, },
id: 'workflow-definition-index', id: 'workflow-definition-index',
}; };