Browse Source

Pull request #2276: REPORT-56512 文本控件新增接口

Merge in VISUAL/fineui from ~TELLER/fineui:master to master

* commit '0185db1920e13bd19a7336fe20c186775635c881':
  REPORT-56512 feat: 文本控件新增接口
es6
Teller 3 years ago
parent
commit
d22e41ac47
  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();
},
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 = [];

11
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;
}[];
}

Loading…
Cancel
Save