@artmate/chat
Version:
**开箱即用的AI组件库(基于 Vue3 + ElementPlus)**
9 lines (8 loc) • 352 B
TypeScript
import { Conversation, ConversationsProps, Groupable } from '../interface';
type GroupList = {
data: Conversation[];
name?: string;
title?: Groupable['title'];
}[];
declare function useGroupable(groupable?: ConversationsProps['groupable'], items?: Conversation[]): [groupList: GroupList, enableGroup: boolean];
export default useGroupable;