Browse Source

chore: 给bi.file加个setUrl方法

es6
Cauchy.Ke 2 years ago
parent
commit
c76190b2a0
  1. 4
      src/base/single/editor/editor.multifile.js
  2. 7
      src/base/single/input/file.js

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

@ -71,6 +71,10 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
this.file.reset(); this.file.reset();
}, },
setUrl: function (v) {
this.file.setUrl(v);
},
setMaxFileLength: function (v) { setMaxFileLength: function (v) {
this.file.setMaxFileLength(v); this.file.setMaxFileLength(v);
}, },

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

@ -655,6 +655,13 @@
}); });
}, },
setUrl: function(v) {
this.options.url = v;
if (this.wrap) {
this.wrap.url = v;
}
},
setMaxFileLength: function (v) { setMaxFileLength: function (v) {
this.options.maxLength = v; this.options.maxLength = v;
if (this.wrap) { if (this.wrap) {

Loading…
Cancel
Save