@artmate/chat
Version:
**开箱即用的AI组件库(基于 Vue3 + ElementPlus)**
22 lines (21 loc) • 674 B
TypeScript
import { BubbleProps } from '../bubble/interface';
export type BubbleDataType = {
key?: number | string;
role?: string;
[key: string]: any;
} & BubbleProps<any>;
export type RoleType = Partial<Omit<BubbleProps<any>, 'content'>>;
export type RolesType = Record<string, RoleType> | ((bubbleDataP: BubbleDataType, index: number) => RoleType);
export interface BubbleListProps {
autoScroll?: boolean;
className?: string;
items: BubbleDataType[];
roles?: RolesType;
rootClassName?: string;
}
export interface scrollTopParameters {
behavior?: ScrollBehavior;
block?: ScrollLogicalPosition;
key?: number | string;
offset?: number;
}