export interface ChatProps { items?: ItemType[]; } export interface ItemType { key: string | number; value: string | number; label: string; icon: string; items: ItemType[]; } export interface ChatEmits { (e: 'click', chat: ItemType): void; (e: 'edit', chat: ItemType): void; (e: 'delete', chat: ItemType): void; } export interface MsgType { key: string | number; msg: string; time: string; avatar: string; model: string; robot: boolean; items: ItemType[]; } export interface ChatMsgProps { items?: MsgType[]; } export interface ChatMsgEmits { (e: 'click', chat: MsgType): void; }