ant-design-vue/components/vc-virtual-list/interface.ts

15 lines
326 B
TypeScript
Raw Normal View History

2021-06-26 01:35:40 +00:00
import type { CSSProperties, VNodeTypes } from 'vue';
import type { Key } from '../_util/type';
2020-10-01 09:20:10 +00:00
export type RenderFunc<T> = (
item: T,
index: number,
props: { style?: CSSProperties },
) => VNodeTypes;
export interface SharedConfig<T> {
getKey: (item: T) => Key;
}
export type GetKey<T = object> = (item: T) => Key;