1 | import { Emitter, RefObject } from '@mantou/gem/lib/decorators';
|
2 | import { GemElement } from '@mantou/gem/lib/element';
|
3 | import type { BasePickerElement } from './picker';
|
4 | import './use';
|
5 | import './image-preview';
|
6 | declare type FileStatus = 'success' | 'fail' | 'uploading';
|
7 | export interface FileItem extends File {
|
8 | status?: FileStatus;
|
9 | message?: string;
|
10 |
|
11 | progress?: number;
|
12 | }
|
13 |
|
14 |
|
15 |
|
16 | export declare class DuoyunFilePickElement extends GemElement implements BasePickerElement {
|
17 | #private;
|
18 | static button: string;
|
19 | static item: string;
|
20 | type: 'file' | 'image';
|
21 | accept: string;
|
22 | placeholder: string;
|
23 | directory: boolean;
|
24 | multiple: boolean;
|
25 | change: Emitter<FileItem[]>;
|
26 | inputRef: RefObject<HTMLInputElement>;
|
27 | value?: FileItem[];
|
28 | constructor();
|
29 | render: () => import("lit-html/lib/template-result").TemplateResult;
|
30 | showPicker(): void;
|
31 | }
|
32 | export {};
|
33 |
|
\ | No newline at end of file |