import type { CSSProperties, VNode } from 'vue'; import type { ImageProps, SpinProps } from 'ant-design-vue'; export type SemanticType = 'root' | 'file' | 'icon' | 'name' | 'description'; export type PresetIcons = 'default' | 'excel' | 'image' | 'markdown' | 'pdf' | 'ppt' | 'word' | 'zip' | 'video' | 'audio' | 'java' | 'javascript' | 'python'; export interface FileCardProps { prefixCls?: string; style?: CSSProperties; styles?: Partial>; class?: string; classNames?: Partial>; rootClassName?: string; name: string; byte?: number; size?: 'small' | 'default'; description?: VNode | string; loading?: boolean; src?: string; mask?: VNode | string; icon?: VNode | PresetIcons; type?: 'file' | 'image' | 'audio' | 'video' | string; imageProps?: ImageProps; spinProps?: SpinProps & { showText?: boolean; icon?: VNode; }; videoProps?: Record; audioProps?: Record; onClick?: () => void; } export type ListSemanticType = 'root' | 'card'; /** `key` is the list identity. Vue reserves `key` on the card component itself. */ export type FileCardListItem = FileCardProps & { key?: string | number; }; export interface FileCardListProps { prefixCls?: string; class?: string; classNames?: Partial>; rootClassName?: string; style?: CSSProperties; styles?: Partial>; items: FileCardListItem[]; size?: 'small' | 'default'; removable?: boolean | ((item: FileCardListItem) => boolean); onRemove?: (item: FileCardListItem) => void; extension?: VNode; overflow?: 'scrollX' | 'scrollY' | 'wrap'; }