@artmate/chat
Version:
借鉴字节开源react库AntX,通过vue实现的版本
9 lines (8 loc) • 353 B
TypeScript
import { Conversation, ConversationsProps, Groupable } from '../interface';
type GroupList = {
data: Conversation[];
name?: string;
title?: Groupable['title'];
}[];
declare const useGroupable: (groupable?: ConversationsProps["groupable"], items?: Conversation[]) => [groupList: GroupList, enableGroup: boolean];
export default useGroupable;