@artmate/chat
Version:
**开箱即用的AI组件库(基于 Vue3 + ElementPlus)**
29 lines (28 loc) • 790 B
TypeScript
import { UploadProps } from 'element-plus';
import { CSSProperties } from 'vue';
import { Attachment } from '../attachment/interface';
export interface FileListCardProps {
item: {
file?: Attachment;
percent?: number;
thumbUrl?: string;
} & Attachment;
onRemove?: (item: Attachment) => void;
className?: string;
style?: CSSProperties;
disabled?: boolean;
}
export interface fileListProps {
items: Attachment[];
onRemove?: FileListCardProps['onRemove'];
overflow?: 'scrollX' | 'scrollY' | 'wrap';
upload?: Partial<UploadProps>;
disabled?: boolean;
listClassName?: string;
listStyle?: CSSProperties;
itemClassName?: string;
itemStyle?: CSSProperties;
}
export interface ProgressProps {
percent: number;
}