free-imui-neo
Version:
基于VUE3实现的即时通讯UI组件
25 lines • 802 B
TypeScript
import type { MessageProps } from './Messages';
import { ComponentPublicInstance, Ref } from 'vue';
import { User } from '../free/types';
export declare type MessageStatus = 'success' | 'error' | 'uploading';
export declare type MessageType = 'text' | 'image' | 'file' | 'event';
export declare type Message = {
id: string | number;
time: number;
type: MessageType;
status: MessageStatus;
content: string;
toContactId: string | number;
fileName?: string;
fileSize?: number;
from: User;
};
declare type MessageExpose = {
loading: Ref;
resetLoading: () => void;
scrollToBottom: () => void;
loadend: () => void;
};
export declare type MessageInstance = ComponentPublicInstance<MessageProps, MessageExpose>;
export {};
//# sourceMappingURL=types.d.ts.map