Browse Source

Merge remote-tracking branch 'origin/master'

es6
guy 3 years ago
parent
commit
c74e9f6fb7
  1. 2
      package.json
  2. 2
      src/base/1.pane.js
  3. 4
      src/base/single/editor/editor.multifile.js
  4. 4
      src/base/single/input/file.js
  5. 9
      typescript/widget/editor/editor.multifile.ts

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "fineui", "name": "fineui",
"version": "2.0.20211108191350", "version": "2.0.20211109101231",
"description": "fineui", "description": "fineui",
"main": "dist/fineui.min.js", "main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts", "types": "dist/lib/index.d.ts",

2
src/base/1.pane.js

@ -150,3 +150,5 @@ BI.Pane = BI.inherit(BI.Widget, {
}); });
BI.Pane.EVENT_LOADED = "EVENT_LOADED"; BI.Pane.EVENT_LOADED = "EVENT_LOADED";
BI.Pane.EVENT_LOADING = "EVENT_LOADING"; BI.Pane.EVENT_LOADING = "EVENT_LOADING";
BI.shortcut("bi.pane", BI.Pane);

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

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

@ -21,4 +21,13 @@ 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