Browse Source

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

xingyu4j 2 years ago
parent
commit
ba2f2429f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      yudao-ui-admin-vue3/src/hooks/web/useVxeGrid.ts

+ 1 - 1
yudao-ui-admin-vue3/src/hooks/web/useVxeGrid.ts

@@ -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
     }
   })