refactor(sj_1.2.0-beta1): 表格默认显示总条数

This commit is contained in:
xlsea 2024-07-25 16:28:24 +08:00
parent b5bd40c25e
commit b654b5d780
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,9 @@ export function useTable<A extends NaiveUI.TableApiFn>(config: NaiveUI.NaiveTabl
const isMobile = computed(() => appStore.isMobile);
const { apiFn, apiParams, immediate, showTotal } = config;
const { apiFn, apiParams, immediate } = config;
const showTotal = config.showTotal || true;
const SELECTION_KEY = '__selection__';

View File

@ -47,7 +47,7 @@ declare namespace NaiveUI {
/**
* whether to display the total items count
*
* @default false
* @default true
*/
showTotal?: boolean;
};