UNPKG

@artmate/chat

Version:

借鉴字节开源react库AntX,通过vue实现的版本

21 lines (20 loc) 614 B
import { BubbleProps } from '../bubble/interface'; export type BubbleDataType = { key?: number | string; role?: string; [key: string]: any; } & BubbleProps; export type RoleType = Partial<Omit<BubbleProps, 'content'>>; export interface BubbleListProps { autoScroll?: boolean; className?: string; items: BubbleDataType[]; roles?: ((bubbleDataP: BubbleDataType) => RoleType) | Record<string, RoleType>; rootClassName?: string; } export interface scrollTopParameters { behavior?: ScrollBehavior; block?: ScrollLogicalPosition; key?: number | string; offset?: number; }