From c136d0faaa78621c2e921e4e695523d8efebd6fb Mon Sep 17 00:00:00 2001 From: iapyang Date: Tue, 9 Nov 2021 09:59:54 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-56512=20feat:=20=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/editor/editor.multifile.js | 4 ++++ src/base/single/input/file.js | 4 ++++ typescript/widget/editor/editor.multifile.ts | 11 ++++++++++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/base/single/editor/editor.multifile.js b/src/base/single/editor/editor.multifile.js index d917a4762..68b5bcc2e 100644 --- a/src/base/single/editor/editor.multifile.js +++ b/src/base/single/editor/editor.multifile.js @@ -78,6 +78,10 @@ BI.MultifileEditor = BI.inherit(BI.Widget, { this.file.select(); }, + getQueue: function () { + return this.file.getQueue(); + }, + getValue: function () { return this.file.getValue(); }, diff --git a/src/base/single/input/file.js b/src/base/single/input/file.js index bf4e207b9..fa589681b 100644 --- a/src/base/single/input/file.js +++ b/src/base/single/input/file.js @@ -671,6 +671,10 @@ return this.wrap ? this.wrap.attach_array : []; }, + getQueue: function () { + return this.wrap.files; + }, + reset: function () { if (this.wrap) { this.wrap.attach_array = []; diff --git a/typescript/widget/editor/editor.multifile.ts b/typescript/widget/editor/editor.multifile.ts index f55abaf81..3a29e0960 100644 --- a/typescript/widget/editor/editor.multifile.ts +++ b/typescript/widget/editor/editor.multifile.ts @@ -19,6 +19,15 @@ export declare class MultifileEditor extends Widget { }[]; upload(): void; - + reset(): void; + + getQueue(): { + fileName: string; + lastModified: number; + lastModifiedDate: Date; + name: string; + size: number; + type: string; + }[]; }