Browse Source

Pull request #2881: chore: 给bi.file加个setUrl方法

Merge in VISUAL/fineui from ~CAUCHY.KE/fineui:master to master

* commit 'c76190b2a07cbce68f6be5263b637e3557258157':
  chore: 给bi.file加个setUrl方法
es6
Cauchy.Ke 3 years ago
parent
commit
2767ca7292
  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