refactor(sj_1.2.0-beta1): 表格默认显示总条数
This commit is contained in:
parent
b5bd40c25e
commit
b654b5d780
@ -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__';
|
||||
|
||||
|
2
src/typings/naive-ui.d.ts
vendored
2
src/typings/naive-ui.d.ts
vendored
@ -47,7 +47,7 @@ declare namespace NaiveUI {
|
||||
/**
|
||||
* whether to display the total items count
|
||||
*
|
||||
* @default false
|
||||
* @default true
|
||||
*/
|
||||
showTotal?: boolean;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user