refactor: vxe升级后一些过时用法

master
dap 6 months ago
parent ce6867994a
commit b737fa940a

@ -50,13 +50,15 @@ setupVbenVxeTable({
// 右上角工具栏 // 右上角工具栏
toolbarConfig: { toolbarConfig: {
// 自定义列 // 自定义列
custom: { custom: true,
customOptions: {
icon: 'vxe-icon-setting', icon: 'vxe-icon-setting',
}, },
// 最大化 // 最大化
zoom: true, zoom: true,
// 刷新 // 刷新
refresh: { refresh: true,
refreshOptions: {
// 默认为reload 修改为在当前页刷新 // 默认为reload 修改为在当前页刷新
code: 'query', code: 'query',
}, },

@ -86,11 +86,12 @@ const gridOptions: VxeGridProps = {
}, },
}, },
rowConfig: { rowConfig: {
keyField: 'tableId', keyField: 'tableName',
}, },
toolbarConfig: { toolbarConfig: {
enabled: false, enabled: false,
}, },
id: 'import-table-modal',
cellClassName: 'cursor-pointer', cellClassName: 'cursor-pointer',
}; };

Loading…
Cancel
Save