feat(projects): feat(projects): TableColumnCheck title support VNode (#716)

This commit is contained in:
Soybean
2025-03-11 11:30:02 +08:00
committed by GitHub
parent be6080ba0f
commit a1a5c74c74
3 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,5 @@
import { computed, reactive, ref } from 'vue';
import type { Ref } from 'vue';
import type { Ref, VNodeChild } from 'vue';
import { jsonClone } from '@sa/utils';
import useBoolean from './use-boolean';
import useLoading from './use-loading';
@ -8,9 +8,11 @@ export type MaybePromise<T> = T | Promise<T>;
export type ApiFn = (args: any) => Promise<unknown>;
export type TableColumnCheckTitle = string | ((...args: any) => VNodeChild);
export type TableColumnCheck = {
key: string;
title: string;
title: TableColumnCheckTitle;
checked: boolean;
};