升级package, 以及更新声明文件

This commit is contained in:
zhengw
2026-01-09 16:33:18 +08:00
parent 0c4b2a886c
commit cf461d33f9
238 changed files with 46252 additions and 5857 deletions

View File

@@ -0,0 +1,53 @@
import { SuperComponent, ComponentsOptionsType } from '../../../components/common/src/index';
import { TdAttachmentsProps } from './type';
export interface AttachmentsProps extends TdAttachmentsProps {
}
export default class Attachments extends SuperComponent {
options: ComponentsOptionsType;
properties: {
inChat: {
type: BooleanConstructor;
value: boolean;
};
addable?: {
type: BooleanConstructor;
value?: boolean;
};
imageViewer?: {
type: BooleanConstructor;
value?: boolean;
};
items: {
type: ArrayConstructor;
value?: import("./type").FileItem[];
required?: boolean;
};
removable?: {
type: BooleanConstructor;
value?: boolean;
};
};
data: {
classPrefix: string;
files: any[];
};
observers: {
items(): void;
};
methods: {
onFileWrapTap(e: any): void;
onRemoveTap(e: any): void;
handleFileClick(item: any): void;
handleRemove(item: any, index: any): void;
renderDesc(item: any): string;
renderIcon(item: any): any;
renderFileType(item: any): any;
renderExtension(item: any): any;
setFiles(): void;
};
lifetimes: {
created(): void;
attached(): void;
detached(): void;
};
}