mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-04 13:42:27 +08:00
取消TableActionType的泛型
This commit is contained in:
@@ -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>;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user