You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
316 B
15 lines
316 B
4 years ago
|
import { CSSProperties, VNodeTypes } from 'vue';
|
||
|
import { Key } from '../_util/type';
|
||
|
|
||
|
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;
|