Commit ba2f2429f7fa95638ed694e200f2f618b554875e

Authored by xingyu4j
1 parent 786effd9

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

yudao-ui-admin-vue3/src/hooks/web/useVxeGrid.ts
... ... @@ -113,7 +113,7 @@ export const useVxeGrid = <T = any>(config?: UseVxeGridConfig<T>) => {
113 113 // 默认选中类型
114 114 type: 'csv',
115 115 // 自定义数据量列表
116   - modes: ['current', 'all'],
  116 + modes: config?.exportListApi ? ['current', 'all'] : ['current'],
117 117 columns: config?.allSchemas.printSchema
118 118 }
119 119 })
... ...