fix: 未传入exportApi 不展示导出全部

This commit is contained in:
xingyu4j 2022-12-07 15:30:59 +08:00
parent 786effd9da
commit ba2f2429f7

View File

@ -113,7 +113,7 @@ export const useVxeGrid = <T = any>(config?: UseVxeGridConfig<T>) => {
// 默认选中类型
type: 'csv',
// 自定义数据量列表
modes: ['current', 'all'],
modes: config?.exportListApi ? ['current', 'all'] : ['current'],
columns: config?.allSchemas.printSchema
}
})