@fe6/water-pro
Version:
An enterprise-class UI design language and Vue-based implementation
15 lines (11 loc) • 316 B
text/typescript
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;