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. 9
      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();
},
getQueue: function () {
return this.file.getQueue();
},
getValue: function () {
return this.file.getValue();
},

4
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 = [];

9
typescript/widget/editor/editor.multifile.ts

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

Loading…
Cancel
Save