【代码优化】INFRA: vben next 树表代码生成

This commit is contained in:
puhui999 2025-04-11 21:38:39 +08:00
parent 015565cc9a
commit 37e5152a35
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,6 @@ import { $t } from '#/locales';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
#if (${table.templateType} == 2)## 树表接口
import { get${simpleClassName}List, delete${simpleClassName}, export${simpleClassName} } from '#/api/${table.moduleName}/${simpleClassName_strikeCase}';
import { handleTree } from '#/utils/tree';
#else## 标准表接口
import { get${simpleClassName}Page, delete${simpleClassName}, export${simpleClassName} } from '#/api/${table.moduleName}/${simpleClassName_strikeCase}';
#end
@ -120,6 +119,9 @@ const [Grid, gridApi] = useVbenVxeGrid({
expandAll: true,
reserve: true,
},
pagerConfig: {
enabled: false,
},
#else## 标准表设置
pagerConfig: {
enabled: true,