perf: 右侧按钮默认固定列

This commit is contained in:
xingyu 2022-12-07 21:22:27 +08:00
parent 7617fb07b3
commit 6eb908dc4c

View File

@ -231,6 +231,7 @@ const filterTableSchema = (crudSchema: VxeCrudSchema): VxeGridPropTypes.Columns
const tableSchemaItem = { const tableSchemaItem = {
title: crudSchema.actionTitle ? crudSchema.actionTitle : t('table.action'), title: crudSchema.actionTitle ? crudSchema.actionTitle : t('table.action'),
field: 'actionbtns', field: 'actionbtns',
fixed: 'right' as unknown as VxeColumnPropTypes.Fixed,
width: crudSchema.actionWidth ? crudSchema.actionWidth : '200px', width: crudSchema.actionWidth ? crudSchema.actionWidth : '200px',
slots: { slots: {
default: 'actionbtns_default' default: 'actionbtns_default'