Browse Source

Merge pull request #88858 in DEC/fineui from master to feature/x

* commit '2767ca7292510d5e5350a6b88be04b0b243f1c6a':
  chore: 给bi.file加个setUrl方法
es6
superman 2 years ago
parent
commit
563dc4fa42
  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