@matechat/core
Version:
前端智能化场景解决方案UI库,轻松构建你的AI应用。
9 lines (8 loc) • 451 B
TypeScript
import type { Ref } from "vue";
import type { AttachmentEmits, AttachmentProps, FileItem } from "./attachment-types";
export declare function useUpload(props: AttachmentProps, emit: AttachmentEmits, inputRef: Ref<HTMLInputElement | undefined>, fileList: Ref<FileItem[]>): {
isDisabled: import("vue").ComputedRef<boolean>;
handleClick: () => void;
handleFileChange: (e: Event) => void;
uploadFiles: (files: File[]) => Promise<void>;
};