Browse Source

REPORT-56512 feat: 文本控件新增接口

es6
iapyang 3 years ago
parent
commit
c136d0faaa
  1. 4
      src/base/single/editor/editor.multifile.js
  2. 4
      src/base/single/input/file.js
  3. 11
      typescript/widget/editor/editor.multifile.ts

4
src/base/single/editor/editor.multifile.js

@ -78,6 +78,10 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
this.file.select(); this.file.select();
}, },
getQueue: function () {
return this.file.getQueue();
},
getValue: function () { getValue: function () {
return this.file.getValue(); return this.file.getValue();
}, },

4
src/base/single/input/file.js

@ -671,6 +671,10 @@
return this.wrap ? this.wrap.attach_array : []; return this.wrap ? this.wrap.attach_array : [];
}, },
getQueue: function () {
return this.wrap.files;
},
reset: function () { reset: function () {
if (this.wrap) { if (this.wrap) {
this.wrap.attach_array = []; this.wrap.attach_array = [];

11
typescript/widget/editor/editor.multifile.ts

@ -19,6 +19,15 @@ export declare class MultifileEditor extends Widget {
}[]; }[];
upload(): void; upload(): void;
reset(): void; reset(): void;
getQueue(): {
fileName: string;
lastModified: number;
lastModifiedDate: Date;
name: string;
size: number;
type: string;
}[];
} }

Loading…
Cancel
Save