diff --git a/packages/hooks/src/use-table.ts b/packages/hooks/src/use-table.ts index f861009e..72ae01cb 100644 --- a/packages/hooks/src/use-table.ts +++ b/packages/hooks/src/use-table.ts @@ -1,5 +1,6 @@ import { computed, reactive, ref } from 'vue'; import type { Ref } from 'vue'; +import type { DataTableBaseColumn } from 'naive-ui'; import { jsonClone } from '@sa/utils'; import useBoolean from './use-boolean'; import useLoading from './use-loading'; @@ -10,7 +11,7 @@ export type ApiFn = (args: any) => Promise; export type TableColumnCheck = { key: string; - title: string; + title: DataTableBaseColumn['title']; checked: boolean; };