取消TableActionType的泛型

This commit is contained in:
抠脚本人
2023-07-29 12:31:31 +08:00
parent fc181ce543
commit 165c358ef5
2 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ import { provide, inject, ComputedRef } from 'vue';
const key = Symbol('s-table'); const key = Symbol('s-table');
type Instance = TableActionType<{}> & { type Instance = TableActionType & {
wrapRef: Ref<Nullable<HTMLElement>>; wrapRef: Ref<Nullable<HTMLElement>>;
getBindValues: ComputedRef<Recordable>; getBindValues: ComputedRef<Recordable>;
}; };

View File

@@ -18,11 +18,11 @@ export interface BasicColumn<T = InternalRowData> extends TableBaseColumn<T> {
draggable?: boolean; draggable?: boolean;
} }
export interface TableActionType<T> { export interface TableActionType {
reload: (opt) => Promise<void>; reload: (opt) => Promise<void>;
emit?: any; emit?: any;
getColumns: (opt?) => BasicColumn<T>[]; getColumns: (opt?) => BasicColumn[];
setColumns: (columns: BasicColumn<T>[] | string[]) => void; setColumns: (columns: BasicColumn[] | string[]) => void;
} }
export interface BasicTableProps { export interface BasicTableProps {