mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-04 05:32:26 +08:00
取消TableActionType的泛型
This commit is contained in:
@@ -4,7 +4,7 @@ import { provide, inject, ComputedRef } from 'vue';
|
||||
|
||||
const key = Symbol('s-table');
|
||||
|
||||
type Instance = TableActionType<{}> & {
|
||||
type Instance = TableActionType & {
|
||||
wrapRef: Ref<Nullable<HTMLElement>>;
|
||||
getBindValues: ComputedRef<Recordable>;
|
||||
};
|
||||
|
||||
@@ -18,11 +18,11 @@ export interface BasicColumn<T = InternalRowData> extends TableBaseColumn<T> {
|
||||
draggable?: boolean;
|
||||
}
|
||||
|
||||
export interface TableActionType<T> {
|
||||
export interface TableActionType {
|
||||
reload: (opt) => Promise<void>;
|
||||
emit?: any;
|
||||
getColumns: (opt?) => BasicColumn<T>[];
|
||||
setColumns: (columns: BasicColumn<T>[] | string[]) => void;
|
||||
getColumns: (opt?) => BasicColumn[];
|
||||
setColumns: (columns: BasicColumn[] | string[]) => void;
|
||||
}
|
||||
|
||||
export interface BasicTableProps {
|
||||
|
||||
Reference in New Issue
Block a user